Пример #1
0
        private bool SP_TEST_INPUT_ALL(string DATA, string LINE, string MYGROUP, string WO, string EMP)
        {
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("DATA", DATA);
            dic.Add("LINE", LINE);
            dic.Add("MYGROUP", MYGROUP);
            dic.Add("WO", WO);
            dic.Add("EMP", EMP);

            string RES = PubStor.ExecuteProcedure("PRO_TEST_INPUT_ALL", GenericUtil.MapListConverter.DictionaryToJson(dic));

            if (RES == "OK")
            {
                LabInput.Text = (Convert.ToInt32(LabInput.Text) + 1).ToString();
                LabInput.Update();
                sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Incoming, "SN " + RES);
                PrintLabel(DATA.Trim());
                return(true);
            }
            else
            {
                sPrint.SendMsg(PrintDLL.PrintLabel.mLogMsgType.Error, RES);
                SendBuzz();
                return(false);
            }
        }
Пример #2
0
        private bool SP_TEST_INPUT_ALL(string DATA, string LINE, string MYGROUP, string WO, string EMP)
        {
            //List<WebServices.tPublicStoredproc.ProcedureKey> LsPdk = new List<WebServices.tPublicStoredproc.ProcedureKey>();
            //WebServices.tPublicStoredproc.ProcedureKey Pdk = new WebServices.tPublicStoredproc.ProcedureKey();
            //Pdk.Variable = "DATA";
            //Pdk.Value = DATA;
            //LsPdk.Add(Pdk);

            //Pdk = new WebServices.tPublicStoredproc.ProcedureKey();
            //Pdk.Variable = "LINE";
            //Pdk.Value = LINE;
            //LsPdk.Add(Pdk);

            //Pdk = new WebServices.tPublicStoredproc.ProcedureKey();
            //Pdk.Variable = "MYGROUP";
            //Pdk.Value = MYGROUP;
            //LsPdk.Add(Pdk);

            //Pdk = new WebServices.tPublicStoredproc.ProcedureKey();
            //Pdk.Variable = "WO";
            //Pdk.Value = WO;
            //LsPdk.Add(Pdk);

            //Pdk = new WebServices.tPublicStoredproc.ProcedureKey();
            //Pdk.Variable = "EMP";
            //Pdk.Value = EMP;
            //LsPdk.Add(Pdk);
            Dictionary <string, object> dic = new Dictionary <string, object>();

            dic.Add("DATA", DATA);
            dic.Add("LINE", LINE);
            dic.Add("MYGROUP", MYGROUP);
            dic.Add("WO", WO);
            dic.Add("EMP", EMP);
            string dicstring = Newtonsoft.Json.JsonConvert.SerializeObject(dic);

            string RES = PubStor.ExecuteProcedure("PRO_TEST_INPUT_ALL", dicstring);

            if (RES == "OK")
            {
                Calculation_MacPassword(DATA);

                LabInput.Text = (Convert.ToInt32(LabInput.Text) + 1).ToString();
                LabInput.Update();
                SendMsg(mLogMsgType.Incoming, "SN " + RES);
                PrintLabel(DATA.Trim());
                return(true);
            }
            else
            {
                SendMsg(mLogMsgType.Error, RES);
                SendBuzz();
                return(false);
            }
        }