Example #1
0
        public string PackagingSstation(Entity.PackInfoParameter Epp, int Flag)
        {
            if (Flag == 0) //是否有carton未关闭
            {
                DataTable dt = palt.GetPalletInfo(new Entity.tPalletInfoTable
                {
                    Line       = Epp.Line,
                    woId       = Epp.woId,
                    PartNumber = Epp.PartNumber,
                    CloseFlag  = 0,
                    Packtype   = 1
                }).Tables[0];
                if (dt != null && dt.Rows.Count != 0)
                {
                    return(dt.Rows[0]["palletnumber"].ToString());
                }

                if (dt.Rows.Count == 0)
                {
                    // ProPubStor.SP_GetPalletNumber
                }
            }

            if (Flag == 1)
            {
                DataTable dtchk = new DataTable("mydt");
                dtchk.Columns.Add("Code");
                dtchk.Columns.Add("Param");
                dtchk.Rows.Add("DATA", Epp.ESN);
                dtchk.Rows.Add("MYGROUP", Epp.MyGroup);
                //dtchk.Rows.Add("ROUTECODE", Epp.RouteCode);
                //dtchk.Rows.Add("ERRFLAG", Epp.ErrFlag);
                //dtchk.Rows.Add("LOCGROUP", Epp.LocStation);
                //dtchk.Rows.Add("NEXTSTATION", Epp.NextStation);
                //dtchk.Rows.Add("WO", Epp.woId);
                //dtchk.Rows.Add("ENDGROUP", Epp.EndGroup);
                return(ProPubStor.SP_PublicStoredproc("pro_CheckRoute", dtchk));
            }
            if (Flag == 2)
            {
                try
                {
                    string msg = palt.SP_TEST_CTN_PALT_TRAY(Epp.ESN, Epp.MyGroup, Epp.EMP, "NA", Epp.Line, Epp.CartonNo, Epp.MCartonNo, 1);
                    return(msg);
                }
                catch (Exception ex)
                {
                    return("Call SP_TEST_CTN_PALT_TRAY Fail" + ex.Message);
                }
            }

            return("ERROR");
        }
Example #2
0
 public byte[] GetPalletInfo(string dicstring)
 {
     return(mlc.GetDataSetSurrogateZipBytes(_palletinfo.GetPalletInfo(MapListConverter.JsonToDictionary(dicstring))));
 }