示例#1
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;
                }
            }
        }
示例#2
0
        void cmdMenuClick(object sender, MenuItemEventArgs e)
        {
            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                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 "transfer_authorization":
                    RT2020.Inventory.Transfer.Authorization wizAuth = new Authorization();
                    wizAuth.ShowDialog();
                    break;

                case "transfer_confirmation":
                    Confirmation wizConfirm = new Confirmation();
                    wizConfirm.ShowDialog();
                    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 "transfer_export":
                    RT2020.Inventory.Transfer.Export.Export2Txt wizTxferExport = new RT2020.Inventory.Transfer.Export.Export2Txt();
                    wizTxferExport.ShowDialog();
                    break;

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

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

                case "journal":
                    RT2020.Inventory.Transfer.Reports.JournalWizard wizJournal = new RT2020.Inventory.Transfer.Reports.JournalWizard();
                    wizJournal.ShowDialog();
                    break;
                }
            }
        }