You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1104 lines
29 KiB
1104 lines
29 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using ICSSoft.Frame.Data.Entity;
|
|
using ICSSoft.Frame.Data.DAL;
|
|
using ICSSoft.Base.Config.AppConfig;
|
|
using System.Data;
|
|
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSNCRDocBLL
|
|
{
|
|
#region 增加修改
|
|
|
|
public static void AddPicture(ICSNCRDocPicture info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocDAL.AddPicture(info, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDocRectify AddEditRectify(ICSNCRDocRectify info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocRectify entity = ICSNCRDocDAL.AddEditRectify(info, dsconn);
|
|
return entity;
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDocPrevention AddEditPrevention(ICSNCRDocPrevention info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocPrevention entity = ICSNCRDocDAL.AddEditPrevention(info, dsconn);
|
|
return entity;
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static void EditPreventionActComTime(ICSNCRDocPrevention info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocDAL.EditPreventionActComTime(info, dsconn);
|
|
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
|
|
}
|
|
}
|
|
|
|
public static void AddRectifyProcessLog(ICSNCRDocRectifyProcessLog info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocDAL.AddRectifyProcessLog(info, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
|
|
}
|
|
}
|
|
|
|
public static void AddRectifyProcessLog_Type(string SecdocNo, string DoType, int seq, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocDAL.AddRectifyProcessLog_Type(SecdocNo, DoType, seq, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
|
|
}
|
|
}
|
|
|
|
public static void AddPreventionProcessLog(ICSNCRDocPreventionProcessLog info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocDAL.AddPreventionProcessLog(info, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDocPrevention AddEditRectify(ICSNCRDocPrevention info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocPrevention entity = ICSNCRDocDAL.AddEditPrevention(info, dsconn);
|
|
return entity;
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static String CreateNCR(ICSNCRDoc line, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
//炉号
|
|
// if (string.IsNullOrEmpty(line.Furnace) && !string.IsNullOrEmpty(line.SrcDocInfo))
|
|
// {
|
|
// line.Furnace = ICSInvLotFurnaceBLL.GetInvLotFurnaceStr(line.SrcDocInfo, Appconstr);
|
|
// }
|
|
String returnid = ICSNCRDocDAL.CreateNCR(line, Appconstr);
|
|
return returnid;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
//0913传图NCR
|
|
public static String CreateNCRS(ICSNCRDoc line, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
|
|
String returnid = ICSNCRDocDAL.CreateNCRS(line, Appconstr);
|
|
return returnid;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
public static String AddEditNCR(ICSNCRDoc line, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
//if (string.IsNullOrEmpty(line.ID) && string.IsNullOrEmpty(line.Furnace) && !string.IsNullOrEmpty(line.SrcDocInfo))
|
|
//{
|
|
// //炉号
|
|
// line.Furnace = ICSInvLotFurnaceBLL.GetInvLotFurnaceStr(line.SrcDocInfo, Appconstr);
|
|
//}
|
|
String returnid = ICSNCRDocDAL.AddEditNCR(line, Appconstr);
|
|
return returnid;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void Edit_ICSNCRDocRectifyProcess(ICSNCRDocRectifyProcess Info, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.Edit_ICSNCRDocRectifyProcess(Info, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void Edit_ICSNCRDocPreventionProcess(ICSNCRDocPreventionProcess Info, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.Edit_ICSNCRDocPreventionProcess(Info, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void UpdateRectifyProcessDate(DateTime DD, string SecDocNO, int seq, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UpdateRectifyProcessDate(DD, SecDocNO, seq, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void UpdatePreventionProcessDate(DateTime DD, string SecDocNO, int seq, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UpdatePreventionProcessDate(DD, SecDocNO, seq, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDocRectifyBonusPenalty AddEditRectifyBonusPenalty(ICSNCRDocRectifyBonusPenalty info, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("数据库连接字符串错误");
|
|
}
|
|
|
|
ICSNCRDocRectifyBonusPenalty entity = ICSNCRDocDAL.AddEditRectifyBonusPenalty(info, dsconn);
|
|
return entity;
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static void UpdateNCR_ToUserList(string ID, string ToUserList, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UpdateNCR_ToUserList(ID, ToUserList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void UpdateNCR_DoPerson(string SecDocNo, string DoPerson, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UpdateNCR_DoPerson(SecDocNo, DoPerson, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
public static void BaoFeiLot(string LotnoList, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.BaoFeiLot(LotnoList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void HuiFuLot(string LotnoList, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.HuiFuLot(LotnoList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void ZanTingLot(string LotnoList, string OPList,String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.ZanTingLot(LotnoList, OPList,Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void UpdateNCR_CPIR(string SecDocNo, string IsCPIR, string ItemType, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UpdateNCR_CPIR(SecDocNo, IsCPIR, ItemType, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void UPDatePZLJMOCode(string MOCode, string SecDocNo, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.UPDatePZLJMOCode(MOCode, SecDocNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void SetLotNGQTY(string LotnoList, decimal NGQty ,string opcode,String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.SetLotNGQTY(LotnoList, NGQty, opcode,Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
#region 查询
|
|
public static ICSNCRDoc select(String guid, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.select(guid, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDoc selectBySrcDocInfo(String SrcDocInfo, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.selectBySrcDocInfo(SrcDocInfo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static FormICSNCRDataUIModel select_FormICSNCRDataUIModel(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.select_FormICSNCRDataUIModel(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDoc selectBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.selectBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string selectDepByUserCode(String UserCode, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.selectDepByUserCode(UserCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
//public static ICSNCRDocDoDetail selectDoDetailBySecDocNO(String SecDocNO, String Appconstr)
|
|
//{
|
|
// try
|
|
// {
|
|
// return ICSNCRDocDAL.selectDoDetailBySecDocNO(SecDocNO, Appconstr);
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
//}
|
|
|
|
public static ICSNCRDocRectify SelectRectifyBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectRectifyBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<NCRDocRectifyProcessModel> SelectRectifyProcessBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectRectifyProcessBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static ICSNCRDocPrevention SelectPreventionBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPreventionBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<NCRDocPreventionProcessModel> SelectPreventionProcessBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPreventionProcessBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<ICSNCRDocPicture> SelectPictureBySecDocNO(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPictureBySecDocNO(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsExistRectifyLog(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsExistRectifyLog(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsConfirmAllRectify(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsConfirmAllRectify(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsSubmitAllRectify(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsSubmitAllRectify(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsConfirmAllPrevention(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsConfirmAllPrevention(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsSubmitAllPrevention(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsSubmitAllPrevention(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsExistPreventionLog(String SecDocNO, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsExistPreventionLog(SecDocNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static bool IsOPBefore(String LotNo, String OP, String OP_CURRENT, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsOPBefore(LotNo, OP, OP_CURRENT, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static String QualityEngineer(string type, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.QualityEngineer(type, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static List<Sys_EnumValues> SelectRoute(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectRoute(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectPreventionMail(List<NCRDocPreventionProcessModel> list, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPreventionMail(list, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectPreventionMail_Final(String ProcessName, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPreventionMail_Final(ProcessName, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectRectifyMail(List<NCRDocRectifyProcessModel> list, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectRectifyMail(list, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectRectifyMail_Final(String ProcessName, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectRectifyMail_Final(ProcessName, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static String GetQualityEngineerType(string DocTypeID, string OPCode, string itemcode, string LOTNO, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetQualityEngineerType(DocTypeID, OPCode, itemcode, LOTNO, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static DataTable GetReCheck(string LotList, DateTime Mtime, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetReCheck(LotList, Mtime, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public static string GetCustomerCode(string RCVNo, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetCustomerCode(RCVNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectToUserListMail(String ToUserList, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectToUserListMail(ToUserList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectMailCopy(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectMailCopy(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static Sys_EnumValues SelectSetDatePersonListMail(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectSetDatePersonListMail(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string selectTypeByEQPCode(string EQPCode, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.selectTypeByEQPCode(EQPCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static string GetCurrentOPCode(string lotno)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetCurrentOPCode(lotno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static string GetNextOpCodeByModel(string lotno)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetNextOpCodeByModel(lotno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static string GetUserName(string UserCode, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetUserName(UserCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static string GetCurrentUserDep(string UserCode, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetCurrentUserDep(UserCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
|
|
public static string SelectPoint(string lotno)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.SelectPoint(lotno);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static List<NCRProcessBackModel> listPBackLog(String SecDocNO, string Type, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.listPBackLog(SecDocNO, Type, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<NCRProcessBackModel> listRBackLog(String SecDocNO, string Type, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.listRBackLog(SecDocNO, Type, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable GetUserList(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetUserList(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable GetUserDepList(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetUserDepList(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable GetUserGHList(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetUserGHList(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static DataTable GetToUserList(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetToUserList(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string IsCurrentDoPersonORToUserList(String SecDocNO, string CurrentUser, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsCurrentDoPersonORToUserList(SecDocNO, CurrentUser, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
public static string GetCanYuRenList(String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetCanYuRenList(Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static List<NCR_SupplyModel> GetNCR_GongYingShang(String SecDocNO, List<string> TypeList, NCRCPIRModel CPIR, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetNCR_GongYingShang(SecDocNO, TypeList, CPIR, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
public static NCRCPIRModel GetNCR_CPIR(ICSNCRDoc NCR, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetNCR_CPIR(NCR, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string CheckPZLJMO(String MOCode, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.CheckPZLJMO(MOCode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static string GetInvLotFurnaceStrNew(string LotNo,string colsname, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.GetInvLotFurnaceStrNew(LotNo, Appconstr, colsname);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//throw ex;
|
|
return "";
|
|
|
|
}
|
|
}
|
|
|
|
|
|
//public static ICSQualityCKDATA GetLastWXCK(string LotNo, string opcode, string Appconstr)
|
|
//{
|
|
// try
|
|
// {
|
|
// return ICSNCRDocDAL.GetLastWXCK(LotNo, opcode, Appconstr);
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// //throw ex;
|
|
// return null;
|
|
|
|
// }
|
|
//}
|
|
|
|
public static bool IsLastOP(string LotNo, string opcode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.IsLastOP(LotNo, opcode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//throw ex;
|
|
return false;
|
|
|
|
}
|
|
}
|
|
|
|
public static string WXOpcodeCK(string LotNo, string opcode, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
return ICSNCRDocDAL.WXOpcodeCK(LotNo, opcode, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
//throw ex;
|
|
return "";
|
|
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 删除
|
|
|
|
#endregion
|
|
|
|
#region AddandEditList
|
|
public static void AddPreventionProcessList(List<ICSNCRDocPreventionProcess> InfoList, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.AddPreventionProcessList(InfoList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void AddRectifyProcessList(List<ICSNCRDocRectifyProcess> InfoList, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.AddRectifyProcessList(InfoList, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void EditRectifyProcessList(List<ICSNCRDocRectifyProcess> InfoList, string SecDocNo, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.EditRectifyProcessList(InfoList, SecDocNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public static void EditPreventionProcessList(List<ICSNCRDocPreventionProcess> InfoList, string SecDocNo, string Appconstr)
|
|
{
|
|
try
|
|
{
|
|
ICSNCRDocDAL.EditPreventionProcessList(InfoList, SecDocNo, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
#region 退料
|
|
|
|
//public static void AddUpdateNCRTuiLiao(List<ICSNCRDocTuiLiao> List, String Appconstr)
|
|
//{
|
|
// try
|
|
// {
|
|
// ICSNCRDocDAL.AddUpdateNCRTuiLiao(List, Appconstr);
|
|
// }
|
|
// catch (Exception ex)
|
|
// {
|
|
// throw ex;
|
|
// }
|
|
//}
|
|
|
|
public static void NCRTuiLiaoToWMShip(string secdocno, String Appconstr)
|
|
{
|
|
try
|
|
{
|
|
//ICSNCRDocDAL.NCRTuiLiaoToWMShip(secdocno, Appconstr);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|