Example #1
0
        void cmdMenuClick(object sender, MenuItemEventArgs e)
        {
            if (!(e.MenuItem.Tag == null))
            {
                switch (e.MenuItem.Tag.ToString().ToLower())
                {
                case "product_code":
                    ProductWizard wizProduct = new ProductWizard();
                    wizProduct.EditMode = EnumHelper.EditMode.Add;
                    wizProduct.ShowDialog();
                    break;

                case "product_code_fast":
                    QuickWizard wizProduct_Fast = new QuickWizard();
                    wizProduct_Fast.ShowDialog();
                    break;

                case "product_code_batch":
                    BatchWizard wizProduct_Batch = new BatchWizard();
                    wizProduct_Batch.ShowDialog();
                    break;

                case "product_code_batch_posting":
                    ApproveWizard wizProduct_Auth = new ApproveWizard();
                    wizProduct_Auth.ShowDialog();
                    break;

                case "product_code_mass_update":
                    ModifyWizard wizProduct_MU = new ModifyWizard();
                    wizProduct_MU.ShowDialog();
                    break;

                case "productcodeimport":
                    RT2020.Product.Import.ProductCodeImport prodImport = new RT2020.Product.Import.ProductCodeImport();
                    prodImport.ShowDialog();
                    break;

                case "product_appendix1":
                    ProductAppendixWizard wizAppendix1 = new ProductAppendixWizard();
                    wizAppendix1.EditMode     = EnumHelper.EditMode.Add;
                    wizAppendix1.AppendixMode = ProductHelper.Appendix.Appendix3;
                    wizAppendix1.ShowDialog();
                    break;

                case "product_appendix2":
                    ProductAppendixWizard wizAppendix2 = new ProductAppendixWizard();
                    wizAppendix2.EditMode     = EnumHelper.EditMode.Add;
                    wizAppendix2.AppendixMode = ProductHelper.Appendix.Appendix3;
                    wizAppendix2.ShowDialog();
                    break;

                case "product_appendix3":
                    ProductAppendixWizard wizAppendix3 = new ProductAppendixWizard();
                    wizAppendix3.EditMode     = EnumHelper.EditMode.Add;
                    wizAppendix3.AppendixMode = ProductHelper.Appendix.Appendix3;
                    wizAppendix3.ShowDialog();
                    break;

                case "product_class1":
                    //ProductClassWizard wizClass1 = new ProductClassWizard(typeof(ProductClass1));
                    ProductClassWizard wizClass1 = new ProductClassWizard();
                    wizClass1.ClassMode = ProductHelper.Classes.Class1;
                    wizClass1.EditMode  = EnumHelper.EditMode.Add;
                    wizClass1.ShowDialog();
                    break;

                case "product_class2":
                    //ProductClassWizard wizClass2 = new ProductClassWizard(typeof(ProductClass2));
                    ProductClassWizard wizClass2 = new ProductClassWizard();
                    wizClass2.ClassMode = ProductHelper.Classes.Class2;
                    wizClass2.EditMode  = EnumHelper.EditMode.Add;
                    wizClass2.ShowDialog();
                    break;

                case "product_class3":
                    //ProductClassWizard wizClass3 = new ProductClassWizard(typeof(ProductClass3));
                    ProductClassWizard wizClass3 = new ProductClassWizard();
                    wizClass3.ClassMode = ProductHelper.Classes.Class3;
                    wizClass3.EditMode  = EnumHelper.EditMode.Add;
                    wizClass3.ShowDialog();
                    break;

                case "product_class4":
                    //ProductClassWizard wizClass4 = new ProductClassWizard(typeof(ProductClass4));
                    ProductClassWizard wizClass4 = new ProductClassWizard();
                    wizClass4.ClassMode = ProductHelper.Classes.Class4;
                    wizClass4.EditMode  = EnumHelper.EditMode.Add;
                    wizClass4.ShowDialog();
                    break;

                case "product_class5":
                    //ProductClassWizard wizClass5 = new ProductClassWizard(typeof(ProductClass5));
                    ProductClassWizard wizClass5 = new ProductClassWizard();
                    wizClass5.ClassMode = ProductHelper.Classes.Class5;
                    wizClass5.EditMode  = EnumHelper.EditMode.Add;
                    wizClass5.ShowDialog();
                    break;

                case "product_class6":
                    //ProductClassWizard wizClass6 = new ProductClassWizard(typeof(ProductClass6));
                    ProductClassWizard wizClass6 = new ProductClassWizard();
                    wizClass6.ClassMode = ProductHelper.Classes.Class6;
                    wizClass6.EditMode  = EnumHelper.EditMode.Add;
                    wizClass6.ShowDialog();
                    break;

                case "combination":
                    CombinationWizard wizCombin = new CombinationWizard();
                    wizCombin.ShowDialog();
                    break;

                case "analysiscode":
                    AnalysisCodeWizardAio wizAnalysis = new AnalysisCodeWizardAio();
                    //wizAnalysis.EditMode = EnumHelper.EditMode.Add;
                    wizAnalysis.ShowDialog();
                    break;

                case "postendertype":
                    RT2020.Settings.PosTenderTypeWizard wizTender = new RT2020.Settings.PosTenderTypeWizard();
                    wizTender.ShowDialog();
                    break;

                case "product master list":
                    RT2020.Product.Reports.RptProductMasterList productlist = new RT2020.Product.Reports.RptProductMasterList();
                    productlist.ShowDialog();
                    break;

                case "product barcode list":
                    RT2020.Product.Reports.RptProductBarcodeList productBarcodeList = new RT2020.Product.Reports.RptProductBarcodeList();
                    productBarcodeList.ShowDialog();
                    break;

                case "appendix1 list":
                    RT2020.Product.Reports.RptAppendixList a1List = new RT2020.Product.Reports.RptAppendixList();
                    a1List.AppendixType = "Appendix1";
                    a1List.ShowDialog();
                    break;

                case "appendix2 list":
                    RT2020.Product.Reports.RptAppendixList a2List = new RT2020.Product.Reports.RptAppendixList();
                    a2List.AppendixType = "Appendix2";
                    a2List.ShowDialog();
                    break;

                case "appendix3 list":
                    RT2020.Product.Reports.RptAppendixList a3List = new RT2020.Product.Reports.RptAppendixList();
                    a3List.AppendixType = "Appendix3";
                    a3List.ShowDialog();
                    break;

                case "class1 list":
                    RT2020.Product.Reports.RptClassList c1List = new RT2020.Product.Reports.RptClassList();
                    c1List.ClassType = "Class1";
                    c1List.ShowDialog();
                    break;

                case "class2 list":
                    RT2020.Product.Reports.RptClassList c2List = new RT2020.Product.Reports.RptClassList();
                    c2List.ClassType = "Class2";
                    c2List.ShowDialog();
                    break;

                case "class3 list":
                    RT2020.Product.Reports.RptClassList c3List = new RT2020.Product.Reports.RptClassList();
                    c3List.ClassType = "Class3";
                    c3List.ShowDialog();
                    break;

                case "class4 list":
                    RT2020.Product.Reports.RptClassList c4List = new RT2020.Product.Reports.RptClassList();
                    c4List.ClassType = "Class4";
                    c4List.ShowDialog();
                    break;

                case "class5 list":
                    RT2020.Product.Reports.RptClassList c5List = new RT2020.Product.Reports.RptClassList();
                    c5List.ClassType = "Class5";
                    c5List.ShowDialog();
                    break;

                case "class6 list":
                    RT2020.Product.Reports.RptClassList c6List = new RT2020.Product.Reports.RptClassList();
                    c6List.ClassType = "Class6";
                    c6List.ShowDialog();
                    break;

                case "currency list":
                    RT2020.Settings.Reports.RptCurrencyList currencyList = new RT2020.Settings.Reports.RptCurrencyList();
                    currencyList.ShowDialog();
                    break;

                case "dimension list":
                    RT2020.Product.Reports.RptDimensionList dimList = new RT2020.Product.Reports.RptDimensionList();
                    dimList.ShowDialog();
                    break;

                case "payment list":
                    RT2020.Product.Reports.RptPaymentList paymentList = new RT2020.Product.Reports.RptPaymentList();
                    paymentList.ShowDialog();
                    break;

                case "a1combin list":
                    RT2020.Product.Reports.RptAppendix1CombinList a1combinList = new RT2020.Product.Reports.RptAppendix1CombinList();
                    a1combinList.ShowDialog();
                    break;

                case "a2combin list":
                    RT2020.Product.Reports.RptAppendix2CombinList a2combinList = new RT2020.Product.Reports.RptAppendix2CombinList();
                    a2combinList.ShowDialog();
                    break;

                case "a3combin list":
                    RT2020.Product.Reports.RptAppendix3CombinList a3combinList = new RT2020.Product.Reports.RptAppendix3CombinList();
                    a3combinList.ShowDialog();
                    break;
                }
            }
        }
Example #2
0
        private void ShowWorkspace(ref Panel wspPane, string Tag)
        {
            if (!string.IsNullOrEmpty(Tag))
            {
                Control[] controls = this.Form.Controls.Find("wspPane", true);

                switch (Tag.ToLower())
                {
                case "product.product":
                    RT2020.Product.ProductList oProd = new RT2020.Product.ProductList(controls[0]);
                    oProd.DockPadding.All = 6;
                    oProd.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oProd);
                    break;

                case "product.product.quick":
                    var quick = new Product.QuickWizard();
                    quick.ShowDialog();
                    break;

                case "product.product.batch":
                    var batch = new Product.BatchWizard();
                    batch.ShowDialog();
                    break;

                case "product.product.approve":
                    var approve = new Product.ApproveWizard();
                    approve.ShowDialog();
                    break;

                case "product.product.modify":
                    var modify = new Product.ModifyWizard();
                    modify.ShowDialog();
                    break;

                case "product.appendix1":
                    RT2020.Product.AppendixList oAppendix1List = new RT2020.Product.AppendixList(ProductHelper.Appendix.Appendix1, controls[0]);
                    oAppendix1List.DockPadding.All = 6;
                    oAppendix1List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oAppendix1List);
                    break;

                case "product.appendix2":
                    RT2020.Product.AppendixList oAppendix2List = new RT2020.Product.AppendixList(ProductHelper.Appendix.Appendix2, controls[0]);
                    oAppendix2List.DockPadding.All = 6;
                    oAppendix2List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oAppendix2List);
                    break;

                case "product.appendix3":
                    RT2020.Product.AppendixList oAppendix3List = new RT2020.Product.AppendixList(ProductHelper.Appendix.Appendix3, controls[0]);
                    oAppendix3List.DockPadding.All = 6;
                    oAppendix3List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oAppendix3List);
                    break;

                case "product.class1":
                    RT2020.Product.ClassList oClass1List = new RT2020.Product.ClassList("Class1", controls[0]);
                    oClass1List.DockPadding.All = 6;
                    oClass1List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass1List);
                    break;

                case "product.class2":
                    RT2020.Product.ClassList oClass2List = new RT2020.Product.ClassList("Class2", controls[0]);
                    oClass2List.DockPadding.All = 6;
                    oClass2List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass2List);
                    break;

                case "product.class3":
                    RT2020.Product.ClassList oClass3List = new RT2020.Product.ClassList("Class3", controls[0]);
                    oClass3List.DockPadding.All = 6;
                    oClass3List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass3List);
                    break;

                case "product.class4":
                    RT2020.Product.ClassList oClass4List = new RT2020.Product.ClassList("Class4", controls[0]);
                    oClass4List.DockPadding.All = 6;
                    oClass4List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass4List);
                    break;

                case "product.class5":
                    RT2020.Product.ClassList oClass5List = new RT2020.Product.ClassList("Class5", controls[0]);
                    oClass5List.DockPadding.All = 6;
                    oClass5List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass5List);
                    break;

                case "product.class6":
                    RT2020.Product.ClassList oClass6List = new RT2020.Product.ClassList("Class6", controls[0]);
                    oClass6List.DockPadding.All = 6;
                    oClass6List.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oClass6List);
                    break;

                case "product.combination":
                    RT2020.Product.CombinationList oCombinList = new RT2020.Product.CombinationList(controls[0]);
                    oCombinList.DockPadding.All = 6;
                    oCombinList.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oCombinList);
                    break;

                case "product.analysiscode":
                    RT2020.Product.AnalysisCodeList oAnalysisList = new RT2020.Product.AnalysisCodeList(controls[0]);
                    oAnalysisList.DockPadding.All = 6;
                    oAnalysisList.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oAnalysisList);
                    break;

                case "product.tendertype":
                    var wizTender = new RT2020.Settings.PosTenderTypeWizard();
                    wizTender.ShowDialog();
                    break;

                case "product.pricemanagement.pricechange":
                    RT2020.PriceMgmt.PriceMgmtList wizPriceChangeList = new RT2020.PriceMgmt.PriceMgmtList(controls[0], EnumHelper.PriceMgmtPMType.Price);
                    wizPriceChangeList.DockPadding.All = 6;
                    wizPriceChangeList.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(wizPriceChangeList);
                    break;

                case "product.pricemanagement.discountchange":
                    RT2020.PriceMgmt.PriceMgmtList wizDiscChangeList = new RT2020.PriceMgmt.PriceMgmtList(controls[0], EnumHelper.PriceMgmtPMType.Discount);
                    wizDiscChangeList.DockPadding.All = 6;
                    wizDiscChangeList.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(wizDiscChangeList);
                    break;

                case "product.pricemanagement.reason":
                    var oReasonList = new RT2020.PriceMgmt.DiscountReasonList(controls[0]);
                    oReasonList.DockPadding.All = 6;
                    oReasonList.Dock            = DockStyle.Fill;
                    wspPane.Controls.Add(oReasonList);
                    break;
                }
            }
        }