Ejemplo n.º 1
0
        private bool AnalysisScanResult(string Result)
        {
            //this is designed for future scan enhancement, such as scan one code to fill in all stuff...
            bool rtn = CSIDcJsonObjects.ReadJobReceiptJson(Result, out string Job, out string Suffix, out string OperNum, out string Qty, out string Loc, out string Lot);

            if (rtn)
            {
                if (!string.IsNullOrEmpty(Job))
                {
                    JobEdit.Text = Job;
                    JobValidated = false;
                    ValidateJob();
                }
                if (!string.IsNullOrEmpty(Suffix))
                {
                    SuffixEdit.Text = Suffix;
                    SuffixValidated = false;
                    ValidateSuffix();
                }
                if (!string.IsNullOrEmpty(OperNum))
                {
                    OperNumEdit.Text = OperNum;
                    OperNumValidated = false;
                    ValidateOperNum();
                }
                if (!string.IsNullOrEmpty(Qty))
                {
                    QtyEdit.Text = Qty;
                    QtyValidated = false;
                    ValidateQty();
                }
                if (!string.IsNullOrEmpty(Loc))
                {
                    LocEdit.Text = Loc;
                    LocValidated = false;
                    ValidateLoc();
                }
                if (!string.IsNullOrEmpty(Lot))
                {
                    LotEdit.Text = Lot;
                    LotValidated = false;
                    ValidateLot();
                }
                if (SNTracked)
                {
                    SNPicked = false;
                    ValidateSN();
                }
                EnableDisableComponents();
                try
                {
                    ProcessButton_Click(null, null);
                }catch (Exception Ex)
                {
                    WriteErrorLog(Ex);
                }
            }
            return(rtn);
        }
Ejemplo n.º 2
0
        private bool AnalysisScanResult(string Result)
        {
            //this is designed for future scan enhancement, such as scan one code to fill in all stuff...
            bool rtn = CSIDcJsonObjects.ReadMiscIssueReceiptAndQtyAdjustJson(Result, out string Item, out string UM, out string Qty, out string Loc, out string Lot, out string Reason);

            if (rtn)
            {
                if (!string.IsNullOrEmpty(Item))
                {
                    ItemEdit.Text = Item;
                    ItemValidated = false;
                    ValidateItem();
                }
                if (!string.IsNullOrEmpty(UM))
                {
                    UMEdit.Text = UM;
                    UMValidated = false;
                    ValidateUM();
                }
                if (!string.IsNullOrEmpty(Qty))
                {
                    QtyEdit.Text = Qty;
                    QtyValidated = false;
                    ValidateQty();
                }
                if (!string.IsNullOrEmpty(Loc))
                {
                    LocEdit.Text = Loc;
                    LocValidated = false;
                    ValidateLoc();
                }
                if (!string.IsNullOrEmpty(Lot))
                {
                    LotEdit.Text = Lot;
                    LotValidated = false;
                    ValidateLot();
                }
                if (!string.IsNullOrEmpty(Reason))
                {
                    ReasonEdit.Text = Reason;
                    ReasonValidated = false;
                    ValidateReason();
                }
                if (SNTracked)
                {
                    SNPicked = false;
                    ValidateSN();
                }
                EnableDisableComponents();
                try
                {
                    ProcessButton_Click(null, null);
                }catch (Exception Ex)
                {
                    WriteErrorLog(Ex);
                }
            }
            return(rtn);
        }
Ejemplo n.º 3
0
        private bool AnalysisScanResult(string Result)
        {
            //this is designed for future scan enhancement, such as scan one code to fill in all stuff...
            bool rtn = CSIDcJsonObjects.ReadQtyMoveJson(Result, out string Item, out string UM, out string Qty, out string Loc1, out string Lot1, out string Loc2, out string Lot2);

            if (rtn)
            {
                if (!string.IsNullOrEmpty(Item))
                {
                    ItemEdit.Text = Item;
                    ItemValidated = false;
                    ValidateItem();
                }
                if (!string.IsNullOrEmpty(UM))
                {
                    UMEdit.Text = UM;
                    UMValidated = false;
                    ValidateUM();
                }
                if (!string.IsNullOrEmpty(Qty))
                {
                    QtyEdit.Text = Qty;
                    QtyValidated = false;
                    ValidateQty();
                }
                if (!string.IsNullOrEmpty(Loc1))
                {
                    FromLocEdit.Text = Loc1;
                    FromLocValidated = false;
                    ValidateFromLoc();
                }
                if (!string.IsNullOrEmpty(Lot1))
                {
                    FromLotEdit.Text = Lot1;
                    FromLotValidated = false;
                    ValidateFromLot();
                }
                if (!string.IsNullOrEmpty(Loc2))
                {
                    ToLocEdit.Text = Loc2;
                    ToLocValidated = false;
                    ValidateToLoc();
                }
                if (!string.IsNullOrEmpty(Lot2))
                {
                    ToLotEdit.Text = Lot2;
                    ToLotValidated = false;
                    ValidateToLot();
                }
                if (SNTracked)
                {
                    SNPicked = false;
                    ValidateSN();
                }
                EnableDisableComponents();
                try
                {
                    ProcessButton_Click(null, null);
                }catch (Exception Ex)
                {
                    WriteErrorLog(Ex);
                }
            }
            return(rtn);
        }
Ejemplo n.º 4
0
        private bool AnalysisScanResult(string Result)
        {
            //this is designed for future scan enhancement, such as scan one code to fill in all stuff...
            bool rtn = CSIDcJsonObjects.ReadPurchaseReceiveJson(Result, out string PoNum, out string Line, out string Release, out string UM, out string Qty, out string Loc, out string Lot, out string Reason);

            if (rtn)
            {
                if (!string.IsNullOrEmpty(PoNum))
                {
                    PoNumEdit.Text = PoNum;
                    PoNumValidated = false;
                    ValidatePoNum();
                }
                if (!string.IsNullOrEmpty(Line))
                {
                    LineEdit.Text = Line;
                    LineValidated = false;
                    ValidateLine();
                }
                if (!string.IsNullOrEmpty(Release))
                {
                    ReleaseEdit.Text = Release;
                    ReleaseValidated = false;
                    ValidateRelease();
                }
                if (!string.IsNullOrEmpty(UM))
                {
                    UMEdit.Text = UM;
                    UMValidated = false;
                    ValidateUM();
                }
                if (!string.IsNullOrEmpty(Qty))
                {
                    QtyEdit.Text = Qty;
                    QtyValidated = false;
                    ValidateQty();
                }
                if (!string.IsNullOrEmpty(Loc))
                {
                    LocEdit.Text = Loc;
                    LocValidated = false;
                    ValidateLoc();
                }
                if (!string.IsNullOrEmpty(Lot))
                {
                    LotEdit.Text = Lot;
                    LotValidated = false;
                    ValidateLot();
                }
                //if (!string.IsNullOrEmpty(Reason))
                //{
                //    ReasonEdit.Text = Reason;
                //    ReasonValidated = false;
                //    ValidateReason();
                //}
                if (SNTracked)
                {
                    SNPicked = false;
                    ValidateSN();
                }
                EnableDisableComponents();
                try
                {
                    ProcessButton_Click(null, null);
                }catch (Exception Ex)
                {
                    WriteErrorLog(Ex);
                }
            }
            return(rtn);
        }