Esempio n. 1
0
        public void MatchingResult(string Results)
        {
            if (Results == "Complete")
            {
                decimal QTY = decimal.Parse(sysQTY);

                DBT.InsertTScanLabel(sysCUSTOMER, sysPartID, sysPARTNO, sysPARTNAME, QTY, sysRANKNO, txtCusIssueNo.Text, "", "", username, UNIQUEID);
                MatchingComplete MC = new MatchingComplete();
                MC.PartID    = sysPartID;
                MC.MCPartno  = sysPARTNO;
                MC.MCIssueNO = txtCusIssueNo.Text;
                MC.MCQTY     = sysQTY;
                MC.MCRANNO   = sysRANKNO;
                MC.ShowDialog();
            }
            else
            {
                MatchingError MC = new MatchingError();
                MC.DYNAPartno  = sysPARTNO;
                MC.DYNAIssueNO = txtCusIssueNo.Text;
                MC.DYNAQTY     = sysQTY;
                MC.DYNARANNO   = sysRANKNO;

                MC.ShowDialog();
            }

            ClearScreen();
        }
Esempio n. 2
0
        public void MatchingResult(string Results)
        {
            if (Results == "Complete")
            {
                if (sysQTY.Trim() == "")
                {
                    sysQTY = "0";
                }

                decimal QTY = decimal.Parse(sysQTY);

                sysCUSTOMER = "NISSAN NMT";

                sysIssueNo = txtIssueNo.Text.Trim();
                sysRANNO   = txtRANNO.Text.Trim();

                DBT.InsertTScanLabel(sysCUSTOMER, sysPartID, sysPARTNO, sysPARTNAME, QTY, sysRANNO, sysIssueNo, sysSerialNo, sysOrderNo, userkey, UNIQUEID, sysRANNO, sysLable_Id);
                MatchingComplete MC = new MatchingComplete();
                MC.PartID   = sysPartID;
                MC.MCPartno = sysPARTNO;
                MC.MCQTY    = sysQTY;
                MC.MCRANNO  = sysRANNO;
                MC.ShowDialog();
            }
            else
            {
                MatchingError MC = new MatchingError();
                //MC.PartID = sysPartID;

                MC.DYNAPartno  = sysPARTNO;
                MC.DYNAQTY     = sysQTY;
                MC.DYNAIssueNO = "";
                MC.DYNARANNO   = "";

                MC.CUSPartno  = txtCusPartNo.Text.Trim();
                MC.CUSQTY     = txtCusQTY.Text.Trim();
                MC.CUSIssueNO = txtIssueNo.Text.Trim();
                MC.CUSRANNO   = txtRANNO.Text.Trim();

                MC.ShowDialog();
            }

            ClearScreen();
        }