Exemplo n.º 1
0
        private ManualSingleLocate GetParamValues()
        {
            ManualSingleLocate singleLocate = new ManualSingleLocate();

            if (this.hdnScanMode.Value != string.Empty)
            {
                singleLocate.ScanMode = this.hdnScanMode.Value;
            }

            if (this.hdnChuteId.Value != string.Empty)
            {
                singleLocate.ChuteID = this.hdnChuteId.Value;
            }

            if (this.hdnTrolleyId.Value != string.Empty)
            {
                singleLocate.TrolleyID = this.hdnTrolleyId.Value;
            }

            if (this.Master.BarcodeValue != string.Empty)
            {
                singleLocate.ScanBarcode = this.Master.BarcodeValue;
            }


            return(singleLocate);
        }
Exemplo n.º 2
0
        public ManualSingleLocate  GetSingleLocate(ManualSingleLocate scanLocate)
        {
            ManualSingleLocate maualSortItem = (ManualSingleLocate)_dal.Get(ManualSingleLocate.ClassMethods.GetSingleLocate.ToString()
                                                                            , this._singleLocate
                                                                            , new object[] {
                scanLocate.ChuteID,
                scanLocate.TrolleyID,
                scanLocate.ScanMode,
                scanLocate.ScanBarcode,
                Shared.CurrentUser
            })[0];

            return(maualSortItem);
        }
Exemplo n.º 3
0
        private void SetParamValues(ManualSingleLocate values)
        {
            if (null != values)
            {
                if (values.ActionResult == true)
                {
                    this.hdnScanMode.Value = (this.hdnScanMode.Value == LocateScanMode.CS.ToString()) ?
                                             LocateScanMode.TS.ToString() :
                                             LocateScanMode.CS.ToString();
                }
                else
                {
                    this.hdnScanMode.Value = values.ScanMode;
                }

                this.hdnChuteId.Value = values.ChuteID;

                this.hdnTrolleyId.Value = values.TrolleyID;
            }
        }
Exemplo n.º 4
0
        private void ScanItem()
        {
            ManualSingleLocate singleLocate = new ManualSingleLocate();

            singleLocate = GetParamValues();

            ManualSingleLocate itemScan = _manualSort.GetSingleLocate(singleLocate);



            if (itemScan != null)
            {
                this.SetParamValues(itemScan);

                this.Master.Reset();

                if (true == itemScan.ActionResult && itemScan.ScanMode == LocateScanMode.CS.ToString())
                {
                    this.ShowMessage("Scan trolley to locate.", MessageType.NormalMessage);
                }
                else if (false == itemScan.ActionResult && itemScan.ScanMode == LocateScanMode.CS.ToString())
                {
                    this.ShowMessage(itemScan.ActionMessage, MessageType.ErrorConfirm);
                }
                else if (true == itemScan.ActionResult && itemScan.ScanMode == LocateScanMode.TS.ToString())
                {
                    ShowMessage("Chute successfully located, Scan Next Chute to locate.", MessageType.NormalMessage);
                }
                else if (false == itemScan.ActionResult && itemScan.ScanMode == LocateScanMode.TS.ToString())
                {
                    this.ShowMessage(itemScan.ActionMessage, MessageType.ErrorConfirm);
                }


                this.Master.RegisterStandardScript = true;
            }
        }