Beispiel #1
0
 //删除未装箱信息
 public bool DeleteBox(string customer, string cartonno, string poid, string user, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     bool res = bll.DeleteBox(customer, cartonno, poid, user, contextInfo.WorkGroup);
     GC.Collect();
     return res;
 }
Beispiel #2
0
 //开箱时修改
 public void OpenBoxUpdateCarton(DataTable dt, string trayID, ContextInfo contextInfo, string customer, string cartonno, string poid)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     bll.openBoxUpdate(dt, trayID, contextInfo.CurrentUser, contextInfo.WorkGroup, customer, cartonno, poid);
     GC.Collect();
     return;
 }
Beispiel #3
0
 //开箱时保存 by carton
 public bool OpenBoxSaveCarton(DataTable dt, string trayID, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     bool rs = bll.openBoxSave(dt, trayID, contextInfo.CurrentUser, contextInfo.WorkGroup);
     GC.Collect();
     return rs;
 }
Beispiel #4
0
 //开箱时的和大货入库比较/看是否已经开过箱子
 public String OpenBoxCheckGroup(DataTable dt)
 {
     ContextInfo contextInfo = new ContextInfo();
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     String rs = bll.CheckGroup(dt);
     GC.Collect();
     return rs;
 }
Beispiel #5
0
 //开箱时暂存线上
 public bool lineWarehouseSave(DataTable dt, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     bool res = bll.lineWarehouseSave(dt, contextInfo.CurrentUser, contextInfo.WorkGroup);
     GC.Collect();
     return res;
 }
Beispiel #6
0
 //是否已经封箱
 public bool isBoxing(string customer, string poid, string cartonno, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
     bll.CallAccessControl();
     bool res = bll.isBoxing(customer, poid, cartonno);
     GC.Collect();
     return res;
 }
Beispiel #7
0
 //套装信息
 public DataSet GetMixBox(string customer, string poid, string cartonno, ContextInfo contextInfo)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.OpenBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.OpenBoxBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.GetMixDetail(customer, poid, cartonno);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return null;
     }
 }