예제 #1
0
        //按订单获得型号列表
        public string[] GetTypeListByPO(string po, ContextInfo contextInfo)
        {
            try
            {
                contextInfo.Action = MES_ActionType.Query;
                GENLSYS.MES.Services.Inspection.INP.POBll bll = new GENLSYS.MES.Services.Inspection.INP.POBll(contextInfo);
                bll.CallAccessControl();
                DataSet rs = bll.getTypeByPo(po);
                GC.Collect();
                DataTable dt = rs.Tables[0];

                List<string> list = new List<string>();

                foreach (DataRow row in dt.Rows)
                {
                    string color = row["styleno"].ToString();
                    list.Add(color);
                }

                return list.ToArray();
            }
            catch (Exception ex)
            {
                return null;
            }
        }
예제 #2
0
 //获得可以cancel的箱子
 public DataSet GetCancelableCarton(ContextInfo contextInfo, List<MESParameterInfo> lstParameters)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.POBll bll = new GENLSYS.MES.Services.Inspection.INP.POBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.GetCancelableCarton(contextInfo.CurrentUser, lstParameters);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return null;
     }
 }
예제 #3
0
 public DataSet GetPOListByStep(string funcid, ContextInfo contextInfo, List<MESParameterInfo> lstParameters)
 {
     try
     {
         contextInfo.Action = MES_ActionType.Query;
         GENLSYS.MES.Services.Inspection.INP.POBll bll = new GENLSYS.MES.Services.Inspection.INP.POBll(contextInfo);
         bll.CallAccessControl();
         DataSet rs = bll.getPODtl(funcid, contextInfo.CurrentUser, contextInfo.WorkGroup, lstParameters);
         GC.Collect();
         return rs;
     }
     catch (Exception ex)
     {
         return null;
     }
 }