Esempio n. 1
0
 //是否可以存空箱
 public int canSaveEnptycarton(string customerid, string custorderno, string cartonNum, string action, string currStep, string user, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     int res = bll.canSaveEnptycarton(customerid, custorderno, cartonNum, action, currStep);
     GC.Collect();
     return res;
 }
Esempio n. 2
0
 public bool CancelPack(string customer, string cartonno, string poid, string user, ContextInfo contextInfo)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
         bll.CallAccessControl();
         bool rs = bll.CancelPack(customer, cartonno, poid, user);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return false;
     }
 }
Esempio n. 3
0
 //封箱时保存 by carton
 public bool PackBoxSaveCarton(DataTable dt, string trayID, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     bool rs = bll.AssyBoxSave(dt, trayID, contextInfo.CurrentUser, contextInfo.WorkGroup);
     GC.Collect();
     return rs;
 }
Esempio n. 4
0
 //201306 George --Begin
 //空箱封箱 by carton
 public bool PackBoxSaveDummyCarton(string _customerid, string _poid, string _cartonNumber, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     bool rs = bll.AssyBoxSaveDummy(_customerid, _poid, _cartonNumber, contextInfo.CurrentUser, contextInfo.WorkGroup);
     GC.Collect();
     return rs;
 }
Esempio n. 5
0
 //201306 George --End
 //封箱时防呆
 public String PackBoxCheckGroup(DataTable dt)
 {
     ContextInfo contextInfo = new ContextInfo();
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     String rs = bll.CheckGroup(dt);
     GC.Collect();
     return rs;
 }
Esempio n. 6
0
 //是否已经ship
 public bool isShipped(string customer, string poid, string cartonno, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     bool res = bll.isShipped(customer, poid, cartonno);
     GC.Collect();
     return res;
 }
Esempio n. 7
0
 //当前WIP
 public int getWIPByPO(string customerid, string custorderno, string styleno, string color, string size, string workgroup, string action, string currStep, ContextInfo contextInfo)
 {
     contextInfo.Action = MES_ActionType.Query;
     GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
     bll.CallAccessControl();
     int wip = bll.getWIPByPO(customerid, custorderno, styleno, color, size, workgroup, action, currStep);
     GC.Collect();
     return wip;
 }
Esempio n. 8
0
 //开箱明细信息
 public DataSet GetOpenBox(string customer, string poid, string cartonno, string action, string currStep, ContextInfo contextInfo)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.getOpenDetail(customer, poid, cartonno, action, currStep);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return null;
     }
 }
Esempio n. 9
0
 public DataSet getLineWarehouse(string customer, string poid, string cartonno, string workgroup, ContextInfo contextInfo)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.AssyBoxBll bll = new GENLSYS.MES.Services.Inspection.INP.AssyBoxBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.getLineWarehouse(customer, poid, cartonno, workgroup);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return null;
     }
 }