Exemplo n.º 1
0
 private void PutCU()
 {
     if (string.IsNullOrEmpty(tBoxInput1.Text))
     {
         EnableRows(9);
         SetRow9("Negalimas vietos kodas", ContentAlignment.MiddleCenter, Color.Red);
         return;
     }
     else if (PickingActions.ZoneExists(tBoxInput1.Text) <= 0)
     {
         EnableRows(9);
         SetRow9("Vieta neegzistuoja", ContentAlignment.MiddleCenter, Color.Red);
         return;
     }
     Cache.AddParameter("@StageLocation", tBoxInput1.Text);
     PickingActions.PutAwayCU();
     PickingActions.PutAwayItems(Sql.GetTable("GetItemIdByOutOrderIdForStore", new object[] { "@OutOrderId", Cache.ReturnValueByKey("@OutOrderId") }));
     PickingActions.DeductSpotVolume(TotalVolume, tBoxInput1.Text);
     PickingActions.FinishOutOrderStatus();
     DisableInfo();
     EnableRows(5);
     SetRow5("Baigtas prekių surinkimas", ContentAlignment.MiddleCenter);
     ClearInput();
     EnableInput();
     this.Select();
 }
Exemplo n.º 2
0
        private void ProcessWarehouseSpotInput()
        {
            if (string.IsNullOrEmpty(tBoxInput1.Text))
            {
                EnableRows(9);
                SetRow9("Negalima vieta", ContentAlignment.MiddleCenter, Color.Red);
                return;
            }
            int Exists = ReceivingActions.ZoneExists(tBoxInput1.Text);

            if (Exists <= 0)
            {
                EnableRows(9);
                SetRow9("Vieta neegzistuoja sandėlyje", ContentAlignment.MiddleCenter, Color.Red);
                return;
            }
            Cache.AddParameter("@Location", tBoxInput1.Text);
            ClearInput();
            DisableRows(9, 5);
            ItemList    = ReceivingActions.GetReceivingItemList();
            TotalVolume = ReceivingActions.CalculateTotalVolume(ItemList);
            if (ItemList != null && ItemList.Rows.Count > 0)
            {
                CheckItemScan();
            }
            else
            {
                DisableInfo();
                EnableRows(5);
                SetRow5("Nėra užsakytu prekių", ContentAlignment.MiddleCenter, Color.Red);
                processMethod = new Action(BackToMainMenu);
            }
        }
Exemplo n.º 3
0
 private void SetScanItem()
 {
     ClearInput();
     ClearLabels();
     DisableInfo();
     EnableRows(new string[] { "5", "8" });
     SetRow5("Įrašykite gautą kiekį", ContentAlignment.MiddleCenter);
     SetRow8($"Prekė: [{NullCheck.IsNullString(ItemList.Rows[0]["Name"])}]     Barkodas: [{NullCheck.IsNullString(ItemList.Rows[0]["Barcode"])}]", ContentAlignment.MiddleCenter, Color.Chocolate);
     EnableRows(new string[] { "t1" });
     SetTextBoxLabel1("Kiekis:");
     Cache.AddParameter("@ScanBarcode", NullCheck.IsNullString(ItemList.Rows[0]["Barcode"]));
     EnableInput(input1: true);
     FocusInput1();
 }
Exemplo n.º 4
0
 private void ProcessPalletTypeForReceive()
 {
     try
     {
         Cache.AddParameter("@PalletType", dViewDataShow.SelectedRows[0].Cells[4].Value);
     }
     catch
     {
         ProcessBarcodeInput();
     }
     ResetMenu();
     HideMenu();
     DisableInfo();
     HideDataShow();
     ProcessLocationInput();
 }
Exemplo n.º 5
0
 private void ProcessPalletTypeForPick()
 {
     try
     {
         Cache.AddParameter("@PalletType", dViewDataShow.SelectedRows[0].Cells[4].Value);
     }
     catch
     {
         ProcessPalletBarcode();
         return;
     }
     ResetMenu();
     HideMenu();
     DisableInfo();
     HideDataShow();
     ProcessPicking();
 }
Exemplo n.º 6
0
 private void ProcessMovePalletBarcode()
 {
     if (string.IsNullOrEmpty(tBoxInput1.Text))
     {
         EnableRows(9);
         SetRow9("Negalimas barkodas", ContentAlignment.MiddleCenter, Color.Red);
         return;
     }
     if (StoringActions.ValidatePallet(tBoxInput1.Text) <= 0)
     {
         EnableRows(9);
         SetRow9("Paletė neegzistuoja sandėlyje", ContentAlignment.MiddleCenter, Color.Red);
         return;
     }
     Cache.AddParameter("@Barcode", tBoxInput1.Text);
     CreateSelection();
 }
Exemplo n.º 7
0
 private void StartLoading()
 {
     ResetMenu();
     HideMenu();
     try
     {
         Cache.AddParameter("@ShippingId", dViewDataShow.SelectedRows[0].Cells[0].Value);
         Cache.AddParameter("@ShippingNo", dViewDataShow.SelectedRows[0].Cells[1].Value);
     }
     catch
     {
         StartLoad();
         return;
     }
     HideDataShow();
     SetTitle("Pakrovimas");
     ItemList = ShippingActions.GetRelatedCU();
     EnableRows(3, 6);
     SetRow3($"Siunta: {Cache.ReturnValueByKey("@ShippingNo")}", ContentAlignment.MiddleLeft);
     SetRow6($"Nuskenuokite paletės barkodą", ContentAlignment.MiddleCenter);
     EnableInput(true);
     EnableBoxDescriptionRows(row1: true);
     SetTextBoxLabel1("Barkodas:");
     FocusInput1();
     if (ItemList != null && ItemList.Rows.Count > 0)
     {
         ProcessLoading();
     }
     else
     {
         DisableInfo();
         EnableRows(5);
         SetRow5("Nėra nepakrautų palečių", ContentAlignment.MiddleCenter, Color.Red);
         HideInput();
         this.Select();
         processMethod = new Action(StartLoad);
     }
 }
Exemplo n.º 8
0
 private void StartReceiving()
 {
     ResetMenu();
     HideMenu();
     try
     {
         Cache.AddParameter("@RcvDocId", dViewDataShow.SelectedRows[0].Cells[0].Value);
     }
     catch
     {
         SelectDocument();
         return;
     }
     HideDataShow();
     SetTitle("Priėmimas");
     EnableRows(3);
     SetRow3("Nuskenuokite barkodą", ContentAlignment.MiddleCenter);
     EnableInput(input1: true);
     EnableRows(new string[] { "t1" });
     SetTextBoxLabel1("Barkodas");
     processMethod = new Action(ProcessBarcodeInput);
     FocusInput1();
 }
Exemplo n.º 9
0
        private void ProcessPalletBarcode()
        {
            //@TODO: Add pallet type select procedure + implement save pattern in receiving
            if (string.IsNullOrEmpty(tBoxInput1.Text))
            {
                EnableRows(9);
                SetRow9("Negalimas barkodas", ContentAlignment.MiddleCenter, Color.Red);
                return;
            }
            Cache.AddParameter("@Barcode", tBoxInput1.Text);
            EmptyMenu();
            DataTable dt = PickingActions.GetPalletTypes();

            SetTitle("Pasirinkite paletės tipą");
            dViewDataShow.DataSource            = dt;
            dViewDataShow.Columns[0].HeaderText = "Paletės tipo nr";
            dViewDataShow.Columns[1].HeaderText = "Ilgis";
            dViewDataShow.Columns[2].HeaderText = "Plotis";
            dViewDataShow.Columns[3].HeaderText = "Aukštis";
            dViewDataShow.Columns[4].Visible    = false;
            dViewDataShow.Select();
            ShowDataShow();
            processMethod = new Action(ProcessPalletTypeForPick);
        }
Exemplo n.º 10
0
 private void StartPicking()
 {
     ResetMenu();
     HideMenu();
     DisableInfo();
     try
     {
         Cache.AddParameter("@OutOrderId", dViewDataShow.SelectedRows[0].Cells[0].Value);
     }
     catch
     {
         SelectOutOrder();
         return;
     }
     HideDataShow();
     SetTitle("Surinkimas");
     EnableRows(3);
     SetRow3("Nuskenuokite paletės barkodą", ContentAlignment.MiddleCenter);
     EnableInput(input1: true);
     EnableRows(new string[] { "t1" });
     SetTextBoxLabel1("Barkodas");
     processMethod = new Action(ProcessPalletBarcode);
     FocusInput1();
 }
Exemplo n.º 11
0
 private void ProcessSelection()
 {
     ResetMenu();
     HideMenu();
     try
     {
         Cache.AddParameter("@Location", dViewDataShow.SelectedRows[0].Cells[0].Value);
     }
     catch
     {
         CreateSelection();
         return;
     }
     HideDataShow();
     SetTitle("Perkėlimas");
     EnableRows(5);
     EnableInput(true);
     EnableRows(9);
     SetRow9("T / N", ContentAlignment.MiddleCenter, Color.Red);
     SetRow5($"Ar tikrai norite perkelti į zoną: {dViewDataShow.SelectedRows[0].Cells[2].Value} ({dViewDataShow.SelectedRows[0].Cells[1].Value})?", ContentAlignment.MiddleCenter, Color.Red);
     ClearInput();
     FocusInput1();
     processMethod = new Action(ProcessYesNoStoringSelection);
 }