Exemplo n.º 1
0
 void wizRPL_Closed(object sender, EventArgs e)
 {
     RT2020.Inventory.Replenishment.Wizard wizRPL = sender as RT2020.Inventory.Replenishment.Wizard;
     if (wizRPL.RplId != System.Guid.Empty)
     {
         BindList();
         this.Update();
     }
 }
Exemplo n.º 2
0
 private void ShowItem()
 {
     if (lvList.SelectedItem != null)
     {
         Guid id = Guid.Empty;
         if (Guid.TryParse(lvList.SelectedItem.SubItems[2].Text, out id))
         {
             RT2020.Inventory.Replenishment.Wizard wizRPL = new RT2020.Inventory.Replenishment.Wizard(id);
             wizRPL.Closed += new EventHandler(wizRPL_Closed);
             wizRPL.ShowDialog();
         }
     }
 }
Exemplo n.º 3
0
        private void SaveNewMessageHandler(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.Yes)
            {
                Save();

                if (this.RplId != System.Guid.Empty)
                {
                    Helper.DesktopHelper.RefreshMainList <Default>();
                    this.Close();
                    RT2020.Inventory.Replenishment.Wizard wizard = new RT2020.Inventory.Replenishment.Wizard();
                    wizard.ShowDialog();
                }
            }
        }
Exemplo n.º 4
0
        void cmdMenuClick(object sender, MenuItemEventArgs e)
        {
            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                case "prepare_replenishment":
                    RT2020.Inventory.Replenishment.Preparation wizRepPreparation = new RT2020.Inventory.Replenishment.Preparation();
                    wizRepPreparation.ShowDialog();
                    break;

                case "replenishment":
                    RT2020.Inventory.Replenishment.Wizard wizRPL = new RT2020.Inventory.Replenishment.Wizard();
                    wizRPL.ShowDialog();
                    break;

                case "replenishment_advance":
                    RT2020.Inventory.Replenishment.Wizard_Advance wizRPLAdv = new RT2020.Inventory.Replenishment.Wizard_Advance();
                    wizRPLAdv.ShowDialog();
                    break;

                case "replenishment_confirmation":
                    RT2020.Inventory.Replenishment.Confirmation wizConfirm = new RT2020.Inventory.Replenishment.Confirmation();
                    wizConfirm.ShowDialog();
                    break;

                case "replenishment_authorization":
                    RT2020.Inventory.Replenishment.Authorization wizAuth = new RT2020.Inventory.Replenishment.Authorization();
                    wizAuth.ShowDialog();
                    break;

                case "worksheet":
                    RT2020.Inventory.Replenishment.Reports.WorksheetWizard wizWorksheet = new RT2020.Inventory.Replenishment.Reports.WorksheetWizard();
                    wizWorksheet.ShowDialog();
                    break;

                case "history":
                    RT2020.Inventory.Replenishment.Reports.HistoryWizard wizHistory = new RT2020.Inventory.Replenishment.Reports.HistoryWizard();
                    wizHistory.ShowDialog();
                    break;

                case "journal":
                    RT2020.Inventory.Replenishment.Reports.JournalWizard wizJournal = new RT2020.Inventory.Replenishment.Reports.JournalWizard();
                    wizJournal.ShowDialog();
                    break;
                }
            }
        }
Exemplo n.º 5
0
        private void TabChangedMessageHandler(object sender, EventArgs e)
        {
            if (((Form)sender).DialogResult == DialogResult.Yes)
            {
                Save();

                if (this.RplId != System.Guid.Empty)
                {
                    MessageBox.Show("Success!", "Save Result");

                    this.Close();
                    RT2020.Inventory.Replenishment.Wizard wizard = new RT2020.Inventory.Replenishment.Wizard(this.RplId);
                    wizard.ShowDialog();
                }
            }
            else
            {
                tabGoodsRpl.SelectedIndex = 0;
            }
        }
Exemplo n.º 6
0
        void cmdMenuClick(object sender, MenuItemEventArgs e)
        {
            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                case "goods_receive":
                    RT2020.Inventory.GoodsReceive.Wizard wizCAP = new RT2020.Inventory.GoodsReceive.Wizard();
                    wizCAP.ShowDialog();
                    break;

                case "goods_receive_authorization":
                    RT2020.Inventory.GoodsReceive.Authorization wizAuthRecv = new RT2020.Inventory.GoodsReceive.Authorization();
                    wizAuthRecv.ShowDialog();
                    break;

                case "goods_return":
                    RT2020.Inventory.GoodsReturn.Wizard wizRej = new RT2020.Inventory.GoodsReturn.Wizard();
                    wizRej.ShowDialog();
                    break;

                case "goods_return_authorization":
                    RT2020.Inventory.GoodsReturn.Authorization wizAuthRej = new RT2020.Inventory.GoodsReturn.Authorization();
                    wizAuthRej.ShowDialog();
                    break;

                case "transfer":
                    RT2020.Inventory.Transfer.Wizard wizTxfer = new RT2020.Inventory.Transfer.Wizard(EnumHelper.TxType.TXF);
                    wizTxfer.ShowDialog();
                    break;

                case "transfer_picking_note":
                    RT2020.Inventory.Transfer.Wizard wizTxfer_PNQ = new RT2020.Inventory.Transfer.Wizard(EnumHelper.TxType.PNQ);
                    wizTxfer_PNQ.ShowDialog();
                    break;

                case "transfer_picking_note_fast":
                    RT2020.Inventory.Transfer.PickingNoteFast wizPNQFast = new RT2020.Inventory.Transfer.PickingNoteFast();
                    wizPNQFast.ShowDialog();
                    break;

                case "adjustment":
                    RT2020.Inventory.Adjustment.Wizard wizAdj = new RT2020.Inventory.Adjustment.Wizard();
                    wizAdj.ShowDialog();
                    break;

                case "adjustment_authorization":
                    RT2020.Inventory.Adjustment.Authorization wizAuthAdj = new RT2020.Inventory.Adjustment.Authorization();
                    wizAuthAdj.ShowDialog();
                    break;

                case "prepare_replenishment":
                    RT2020.Inventory.Replenishment.Preparation wizRepPreparation = new RT2020.Inventory.Replenishment.Preparation();
                    wizRepPreparation.ShowDialog();
                    break;

                case "replenishment":
                    RT2020.Inventory.Replenishment.Wizard wizRPL = new RT2020.Inventory.Replenishment.Wizard();
                    wizRPL.ShowDialog();
                    break;

                case "replenishment_advance":
                    RT2020.Inventory.Replenishment.Wizard_Advance wizRPLAdv = new RT2020.Inventory.Replenishment.Wizard_Advance();
                    wizRPLAdv.ShowDialog();
                    break;

                case "replenishment_confirmation":
                    RT2020.Inventory.Replenishment.Confirmation wizConfirm = new RT2020.Inventory.Replenishment.Confirmation();
                    wizConfirm.ShowDialog();
                    break;

                case "replenishment_authorization":
                    RT2020.Inventory.Replenishment.Authorization wizAuth = new RT2020.Inventory.Replenishment.Authorization();
                    wizAuth.ShowDialog();
                    break;

                case "stocktake_allitems":
                    RT2020.Inventory.StockTake.AllItems wizStkAll = new RT2020.Inventory.StockTake.AllItems();
                    wizStkAll.ShowDialog();
                    break;

                case "stocktake_partial":
                    RT2020.Inventory.StockTake.PartialItems wizStkPartial = new RT2020.Inventory.StockTake.PartialItems();
                    wizStkPartial.ShowDialog();
                    break;

                case "stocktake":
                    RT2020.Inventory.StockTake.Wizard wizStockTake = new RT2020.Inventory.StockTake.Wizard();
                    wizStockTake.ShowDialog();
                    break;

                case "recapture_onhand_quantity":
                    RT2020.Inventory.StockTake.RecaptureOnhand wizRecaptureOnhand = new RT2020.Inventory.StockTake.RecaptureOnhand();
                    wizRecaptureOnhand.ShowDialog();
                    break;

                case "stocktake_approval":
                    RT2020.Inventory.StockTake.Approval wizApproval = new RT2020.Inventory.StockTake.Approval();
                    wizApproval.ShowDialog();
                    break;

                case "stocktake_authorization":
                    RT2020.Inventory.StockTake.Authorization wizAuthStk = new RT2020.Inventory.StockTake.Authorization();
                    wizAuthStk.ShowDialog();
                    break;

                case "goods_receive_import_xls":
                    RT2020.Inventory.GoodsReceive.Import.ImportXls wizXlsImport = new RT2020.Inventory.GoodsReceive.Import.ImportXls();
                    wizXlsImport.ShowDialog();
                    break;

                case "goods_receive_import_txt":
                    RT2020.Inventory.GoodsReceive.Import.ImportTxt wizCAPTxtImport = new RT2020.Inventory.GoodsReceive.Import.ImportTxt();
                    wizCAPTxtImport.ShowDialog();
                    break;

                case "goods_return_import":
                    break;

                case "transfer_import":
                    RT2020.Inventory.Transfer.Import.ImportTxt wizTxferImport = new RT2020.Inventory.Transfer.Import.ImportTxt();
                    wizTxferImport.ShowDialog();
                    break;

                case "transfer_import_advance":
                    RT2020.Inventory.Transfer.Import.AdvanceImport wizTxferImportAdv = new RT2020.Inventory.Transfer.Import.AdvanceImport();
                    wizTxferImportAdv.ShowDialog();
                    break;

                case "adjustment_import":
                    break;

                case "goods_receive_export":
                    RT2020.Inventory.GoodsReceive.Export.Export2Txt wizCAPExport = new RT2020.Inventory.GoodsReceive.Export.Export2Txt();
                    wizCAPExport.ShowDialog();
                    break;

                case "goods_return_export":
                    break;

                case "transfer_export":
                    RT2020.Inventory.Transfer.Export.Export2Txt wizTxferExport = new RT2020.Inventory.Transfer.Export.Export2Txt();
                    wizTxferExport.ShowDialog();
                    break;

                case "adjustment_export":
                    break;

                case "stockstatus_monthly":
                    RT2020.Inventory.Reports.StockStatus.StockStatus_Monthly wizMonthly = new RT2020.Inventory.Reports.StockStatus.StockStatus_Monthly();
                    wizMonthly.ShowDialog();
                    break;

                case "stockstatus_stockvalue":
                    RT2020.Inventory.Reports.StockStatus.StockStatus_StockValue wizStockValue = new RT2020.Inventory.Reports.StockStatus.StockStatus_StockValue();
                    wizStockValue.ShowDialog();
                    break;

                case "stockstatus_retailvalue":
                    RT2020.Inventory.Reports.StockStatus.StockStatus_RetailValue wizRetailValue = new RT2020.Inventory.Reports.StockStatus.StockStatus_RetailValue();
                    wizRetailValue.ShowDialog();
                    break;
                }
            }
        }