Esempio n. 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;
                }
            }
        }
Esempio n. 2
0
        void cmdMenuClick(object sender, MenuItemEventArgs e)
        {
            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                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 "importfromppc":
                    RT2020.Inventory.StockTake.Import.ImportFromPPC wizPPC = new RT2020.Inventory.StockTake.Import.ImportFromPPC();
                    wizPPC.ShowDialog();
                    break;

                case "importfrompos":
                    RT2020.Inventory.StockTake.Import.ImportFromPoS wizPoS = new RT2020.Inventory.StockTake.Import.ImportFromPoS();
                    wizPoS.ShowDialog();
                    break;

                case "importfrompalm":
                    break;

                case "hhtreview_summation":
                    RT2020.Inventory.StockTake.HHTDataReviewAndSummation wizReview_Summation = new HHTDataReviewAndSummation();
                    wizReview_Summation.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 "rpt_worksheet":
                    RT2020.Inventory.StockTake.Reports.Worksheet wizRptWorksheet = new RT2020.Inventory.StockTake.Reports.Worksheet();
                    wizRptWorksheet.ShowDialog();
                    break;

                case "rpt_history":
                    RT2020.Inventory.StockTake.Reports.History wizRptHistory = new RT2020.Inventory.StockTake.Reports.History();
                    wizRptHistory.ShowDialog();
                    break;

                case "rpt_journal":
                    RT2020.Inventory.StockTake.Reports.JournalWizard wizRptJournal = new RT2020.Inventory.StockTake.Reports.JournalWizard();
                    wizRptJournal.ShowDialog();
                    break;

                case "rpt_hhtworksheet":
                    RT2020.Inventory.StockTake.Reports.HHTWorksheet wizHHTWorksheet = new RT2020.Inventory.StockTake.Reports.HHTWorksheet();
                    wizHHTWorksheet.ShowDialog();
                    break;

                case "rpt_hhthistory":
                    RT2020.Inventory.StockTake.Reports.HHTHistory wizHHTHistory = new RT2020.Inventory.StockTake.Reports.HHTHistory();
                    wizHHTHistory.ShowDialog();
                    break;

                case "rpt_varianceworksheet":
                    RT2020.Inventory.StockTake.Reports.VarianceList wizVarianceWorksheet = new RT2020.Inventory.StockTake.Reports.VarianceList();
                    wizVarianceWorksheet.ReportType = RT2020.Inventory.StockTake.Reports.VarianceList.VarianceReportType.Worksheet;
                    wizVarianceWorksheet.ShowDialog();
                    break;

                case "rpt_variancehistory":
                    RT2020.Inventory.StockTake.Reports.VarianceList wizVarianceHistory = new RT2020.Inventory.StockTake.Reports.VarianceList();
                    wizVarianceHistory.ReportType = RT2020.Inventory.StockTake.Reports.VarianceList.VarianceReportType.History;
                    wizVarianceHistory.ShowDialog();
                    break;

                case "rpt_varianceworksheet_withoutcost":
                    RT2020.Inventory.StockTake.Reports.VarianceList wizVarianceWorksheetWithoutCost = new RT2020.Inventory.StockTake.Reports.VarianceList();
                    wizVarianceWorksheetWithoutCost.ReportType = RT2020.Inventory.StockTake.Reports.VarianceList.VarianceReportType.WorksheetWithoutCost;
                    wizVarianceWorksheetWithoutCost.ShowDialog();
                    break;

                case "rpt_variancehistory_withoutcost":
                    RT2020.Inventory.StockTake.Reports.VarianceList wizVarianceHistoryWithoutCost = new RT2020.Inventory.StockTake.Reports.VarianceList();
                    wizVarianceHistoryWithoutCost.ReportType = RT2020.Inventory.StockTake.Reports.VarianceList.VarianceReportType.HistoryWithoutCost;
                    wizVarianceHistoryWithoutCost.ShowDialog();
                    break;
                }
            }
        }