private void myIconButton1_Click(object sender, EventArgs e) { if (!MyLove.PermissionsBalidation(oper_type, "18")) { return; } frmRegion frm = new frmRegion(); windowsList.ShowForm(frm); }
private void treeViewMain_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e) { if (e.Node.Text == "User") { User.Owner = this; User.UserName = UserName; User.ShowDialog(); } if (e.Node.Text == "User Group") { userGroup.Owner = this; userGroup.UserName = UserName; userGroup.ShowDialog(); } if (e.Node.Text == "Group Authorization") { grpAuth.Owner = this; grpAuth.UserName = UserName; grpAuth.ShowDialog(); } if (e.Node.Text == "User Authorization") { userAuth.Owner = this; userAuth.UserName = UserName; userAuth.ShowDialog(); } if (e.Node.Text == "Agent Information") { frmAgentInfo agentInfo = new frmAgentInfo(); agentInfo.UserName = UserName; agentInfo.Owner = this; agentInfo.ShowDialog(); } if (e.Node.Text == "Employee Hierarchy") { frmEmpHierarchy empHierarchy = new frmEmpHierarchy(); empHierarchy.UserName = UserName; empHierarchy.Owner = this; empHierarchy.ShowDialog(); } if (e.Node.Text == "Sales Area") { salesArea.UserName = UserName; salesArea.Owner = this; salesArea.ShowDialog(); } if (e.Node.Text == "Weekly Rate Setup") { frmRateSetup rateSetup = new frmRateSetup(); rateSetup.Owner = this; rateSetup.ShowDialog(); } if (e.Node.Text == "Reason Of Unsold") { frmROU rou = new frmROU(); rou.UserName = UserName; rou.Owner = this; rou.ShowDialog(); } if (e.Node.Text == "CTP Setup") { frmCTPSetup ctpSetup = new frmCTPSetup(); ctpSetup.UserName = UserName; ctpSetup.Owner = this; ctpSetup.ShowDialog(); } if (e.Node.Text == "Page Setup") { frmPageSetup pageSetup = new frmPageSetup(); pageSetup.UserName = UserName; pageSetup.Owner = this; pageSetup.ShowDialog(); } if (e.Node.Text == "Category Setup") { frmCategorySetup categorySetup = new frmCategorySetup(); categorySetup.UserName = UserName; categorySetup.Owner = this; categorySetup.ShowDialog(); } if (e.Node.Text == "Region") { frmRegion region = new frmRegion(); region.UserName = UserName; region.Owner = this; region.ShowDialog(); } if (e.Node.Text == "Population") { frmPopulation population = new frmPopulation(); population.UserName = UserName; population.Owner = this; population.ShowDialog(); } if (e.Node.Text == "Route") { frmRoute route = new frmRoute(); route.Owner = this; route.ShowDialog(); } if (e.Node.Text == "Sub-Route") { frmSubRoute subRoute = new frmSubRoute(); subRoute.Owner = this; subRoute.ShowDialog(); } if (e.Node.Text == "Vehicle") { frmVehicleInfo vehicleInfo = new frmVehicleInfo(); vehicleInfo.Owner = this; vehicleInfo.ShowDialog(); } if (e.Node.Text == "Transport Maintenance") { frmTransportMaintenance transportMaintenance = new frmTransportMaintenance(); transportMaintenance.Owner = this; transportMaintenance.ShowDialog(); } if (e.Node.Text == "Order Entry") { frmOrdEntry ordEntry = new frmOrdEntry(); ordEntry.UserName = UserName; ordEntry.Owner = this; ordEntry.ShowDialog(); } if (e.Node.Text == "Copy Order") { frmCopyOrd copyOrd = new frmCopyOrd(); copyOrd.Owner = this; copyOrd.ShowDialog(); } if (e.Node.Text == "Modify Order") { frmModifyOrd modifyOrd = new frmModifyOrd(); modifyOrd.Owner = this; modifyOrd.ShowDialog(); } if (e.Node.Text == "Return Entry") { frmRtnEntry rtnEntry = new frmRtnEntry(); rtnEntry.Owner = this; rtnEntry.ShowDialog(); } if (e.Node.Text == "Regular Modify") { frmRegularMod regularMod = new frmRegularMod(); regularMod.Owner = this; regularMod.ShowDialog(); } if (e.Node.Text == "Challan Modify") { frmChallanMod challanMod = new frmChallanMod(); challanMod.Owner = this; challanMod.ShowDialog(); } if (e.Node.Text == "Order Synchronize") { frmOrdSync ordSync = new frmOrdSync(); ordSync.Owner = this; ordSync.ShowDialog(); } if (e.Node.Text == "Corporate Order") { frmCrpOrd crpOrd = new frmCrpOrd(); crpOrd.UserName = UserName; crpOrd.Owner = this; crpOrd.ShowDialog(); } if (e.Node.Text == "Rate Change") { frmRateChange rateChange = new frmRateChange(); rateChange.Owner = this; rateChange.ShowDialog(); } if (e.Node.Text == "Yearly") { frmYearly yearly = new frmYearly(); yearly.Owner = this; yearly.ShowDialog(); } if (e.Node.Text == "Monthly") { frmMonthly monthly = new frmMonthly(); monthly.Owner = this; monthly.ShowDialog(); } if (e.Node.Text == "Quarterly") { frmQuarterly quarterly = new frmQuarterly(); quarterly.Owner = this; quarterly.ShowDialog(); } if (e.Node.Text == "Competitor Name") { frmCompetitorName competitorName = new frmCompetitorName(); competitorName.Owner = this; competitorName.ShowDialog(); } if (e.Node.Text == "Competitor Sales") { frmCompetitorSales competitosSales = new frmCompetitorSales(); competitosSales.Owner = this; competitosSales.ShowDialog(); } }
public static Form GetFrom(cons.WindowsList windows, string oper_id) { Form frm = new Form(); switch (oper_id) { case "010100": frm = new frmRegion(); break; case "010200": frm = new frmItemCls(); break; case "010300": frm = new frmBranch(windows); break; case "010400": frm = new frmSupcust() { runType = 0 }; break; case "010500": frm = new frmItem(windows); break; case "010600": frm = new frmDept(); break; case "010700": frm = new frmSupcust() { runType = 1 }; break; case "010800": frm = new frmPeople(); break; case "020001": var frms = new ReportForm.frmReport(); frms.GetPmDetail(); frm = frms; break; case "020100": frm = new PriceForm.frmCustPrice(); break; case "020200": frm = new PriceForm.frmSupPrice(); break; case "020300": frm = new VoucherForm.OrderMerge("调价单", new VoucherForm.frmCusPriceOrderList(), new VoucherForm.frmCusPriceOrder()); break; case "030001": frms = new ReportForm.frmReport(); frms.GetSaleSum(); frm = frms; break; case "030002": frms = new ReportForm.frmReport(); frms.GetSaleDetail(); frm = frms; break; case "030003": frms = new ReportForm.frmReport(); frms.GetSaleOutDetail(); frm = frms; break; case "030004": frms = new ReportForm.frmReport(); frms.GetCusCredit(); frm = frms; break; case "030005": frms = new ReportForm.frmReport(); frms.GetNoSaleCus(); frm = frms; break; case "030006": frms = new ReportForm.frmReport(); frms.GetSheetPayInfo(); frm = frms; break; case "030007": frms = new ReportForm.frmReport(); frms.GetCGSum(); frm = frms; break; case "030008": frms = new ReportForm.frmReport(); frms.GetCGDetail(); frm = frms; break; case "030100": frm = new VoucherForm.OrderMerge("采购入库单", new VoucherForm.frmCGInSheetList(), new VoucherForm.frmCGInSheet()); break; case "030200": frm = frm = new VoucherForm.OrderMerge("采购退货单", new VoucherForm.frmCGOutSheetList(), new VoucherForm.frmCGOutSheet()); break; case "030300": frm = frm = new VoucherForm.OrderMerge("批发销售单", new VoucherForm.frmSaleSheetList(), new VoucherForm.frmSaleSheet()); break; case "030400": frm = new VoucherForm.OrderMerge("客户退货单", new VoucherForm.frmSaleInSheetList(), new VoucherForm.frmSaleInSheet()); break; case "040001": frms = new ReportForm.frmReport(); frms.GetICSum(); frm = frms; break; case "040002": frms = new ReportForm.frmReport(); frms.GetICFlow(); frm = frms; break; case "040003": frms = new ReportForm.frmReport(); frms.GetICOutDetail(); frm = frms; break; case "040004": frms = new ReportForm.frmReport(); frms.GetJXCSum(); frm = frms; break; case "040006": frms = new ReportForm.frmReport(); frms.GetCheckPlanDetail(); frm = frms; break; case "040100": frm = new VoucherForm.OrderMerge("盘点初始化", new StockForm.frmStockPDList(), new StockForm.frmStockInit()); break; case "040200": frm = new VoucherForm.OrderMerge("库存盘点", new VoucherForm.frmCheckSheetList(), new VoucherForm.frmCheckSheet()); break; case "040300": frms = new ReportForm.frmReport(); frms.GetCheckPlan(); frm = frms; break; case "040400": frm = new VoucherForm.OrderMerge("盘点结束审核", new StockForm.frmStockPCList(), new StockForm.frmStockPC()); break; case "040500": frm = new VoucherForm.OrderMerge("其他出入单", new VoucherForm.frmOtherInOutSheetList(), new VoucherForm.frmOtherInOutSheet()); break; case "040600": frm = new VoucherForm.OrderMerge("调拨单", new VoucherForm.frmIOList(), new VoucherForm.frmIOMaster()); break; case "050001": frms = new ReportForm.frmReport(); frms.GetRpCusSum(); frm = frms; break; case "050002": frms = new ReportForm.frmReport(); frms.GetRpCusDetail(); frm = frms; break; case "050003": frms = new ReportForm.frmReport(); frms.GetRpSupSum(); frm = frms; break; case "050004": frms = new ReportForm.frmReport(); frms.GetRpSupDetail(); frm = frms; break; case "050005": frms = new ReportForm.frmReport(); frms.GetRpSupAccount(); frm = frms; break; case "050006": frms = new ReportForm.frmReport(); frms.GetRpCusAccount(); frm = frms; break; case "050007": frms = new ReportForm.frmReport(); frms.GetRpTodayInc(); frm = frms; break; case "050008": frms = new ReportForm.frmReport(); frms.GetRpTodayPay(); frm = frms; break; case "050009": frms = new ReportForm.frmReport(); frms.GetRpCusFyDetail(); frm = frms; break; case "050010": frms = new ReportForm.frmReport(); frms.GetRpSupFyDetail(); frm = frms; break; case "050011": frms = new ReportForm.frmReport(); frms.GetRpCashBank(); frm = frms; break; case "050012": frms = new ReportForm.frmReport(); frms.GetRpAdminCost(); frm = frms; break; case "050100": frm = new FinanceForm.frmBank(); break; case "050200": frm = new FinanceForm.frmPayment(); break; case "050300": frm = new FinanceForm.frmIncome(); break; case "050400": frm = new VoucherForm.OrderMerge("客户费用单", new VoucherForm.frmCusFYList(), new VoucherForm.frmCusFY()); break; case "050500": frm = new VoucherForm.OrderMerge("供应商费用单", new VoucherForm.frmSupFYList(), new VoucherForm.frmSupFY()); break; case "050600": frm = new VoucherForm.OrderMerge("现金银行转账单", new VoucherForm.frmCashOrderList(), new VoucherForm.frmCashOrder()); break; case "050700": frm = new VoucherForm.OrderMerge("管理费用单", new VoucherForm.frmFYOrderList(), new VoucherForm.frmFYOrder()); break; case "050800": frm = new VoucherForm.OrderMerge("供应商结算单", new VoucherForm.frmSupSettleList(), new VoucherForm.frmSupSettle()); break; case "050900": frm = new VoucherForm.OrderMerge("客户结算单", new VoucherForm.frmCusSettleList(), new VoucherForm.frmCusSettle()); break; case "070100": frm = new SysForm.frmOper(); break; case "070200": frm = new SysForm.SysSetting(); frm.Tag = "1"; break; case "070300": frm = new SysForm.SysSetting(); frm.Tag = "1"; break; case "070400": frm = new SysForm.frmRegisterList(); frm.Tag = "1"; break; case "070500": frm = new SysForm.frmUpdatePwd(); frm.Tag = "1"; break; } return(frm); }