public void ChannelWechatQuery_Click(object sender, EventArgs e) { frmWechatManagement frmWechatManagementTmp = new frmWechatManagement(); frmWechatManagementTmp.wechatType = "Agent"; CheckChildOpenState(this, frmWechatManagementTmp); }
/**/ /// <summary> /// 菜单单击事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void subItem_Click(object sender, EventArgs e) { try { string acName = ((ToolStripItem)sender).Tag.ToString(); switch (acName) { case "Exit": if (MessageBox.Show("是否退出代理商系统?", "退出", MessageBoxButtons.YesNo) == DialogResult.Yes) { Application.Exit(); } break; case "CommissionImport": frmAgentFeeImport frmAgentFeeImport = new frmAgentFeeImport(); CheckChildOpenState(this, frmAgentFeeImport); break; case "CommissionPublish": frmAgentQuery frmAgentQuery = new frmAgentQuery(); CheckChildOpenState(this, frmAgentQuery); break; case "CommissionOpenReport": frmMailReport frmMailReport = new frmMailReport(); CheckChildOpenState(this, frmMailReport); break; case "ChannelWechatBroadcast": frmBroadcast frmBroadcast = new frmBroadcast(); frmBroadcast.Wechat_secretId = Settings.Default.Wechat_Secret; frmBroadcast.Wechar_AppId = Settings.Default.Wechat_Agent_AppId; frmBroadcast.ShowInTaskbar = false; frmBroadcast.ShowDialog(); // frmBroadcast.WindowState = FormWindowState.Maximized; break; case "ErrorCodeImport": frmErrorCodeImport frmErrorCodeImport = new frmErrorCodeImport(); CheckChildOpenState(this, frmErrorCodeImport); break; case "ErrorCodeQuery": frmErrorCodeQuery frmErrorCodeQuery = new frmErrorCodeQuery(); CheckChildOpenState(this, frmErrorCodeQuery); break; case "ErrorWechatImport": frmErrorCodeWechat frmErrorCodeWechat = new frmErrorCodeWechat(); CheckChildOpenState(this, frmErrorCodeWechat); break; case "ErrorWechatQuery": frmWechatManagement frmErrorWechatManagementTmp = new frmWechatManagement(); frmErrorWechatManagementTmp.wechatType = "ErrorCode"; CheckChildOpenState(this, frmErrorWechatManagementTmp); break; case "ErrorWehatBroadcast": frmBroadcast frmErrorWechatBroadcast = new frmBroadcast(); frmErrorWechatBroadcast.Wechat_secretId = Settings.Default.Wechat_Secret; frmErrorWechatBroadcast.Wechar_AppId = Settings.Default.Wechar_Error_AppId; frmErrorWechatBroadcast.ShowInTaskbar = false; frmErrorWechatBroadcast.ShowDialog(); break; case "CaseStudy": CaseStudyForm.frmCasePublish frmCasePublish = new CaseStudyForm.frmCasePublish(); frmCasePublish.loginUser = this.loginUser; CheckChildOpenState(this, frmCasePublish); break; case "OnlineExamManagement": OnlineExamForm.frmOnlineExamManagement frmOnlineExamManagement = new OnlineExamForm.frmOnlineExamManagement(); frmOnlineExamManagement.Text = "考题发布"; CheckChildOpenState(this, frmOnlineExamManagement); break; case "OnlineExamQuery": OnlineExamForm.frmAgentScoreQuery frmOnlineExamQuery = new OnlineExamForm.frmAgentScoreQuery(); frmOnlineExamQuery.Text = "成绩查询"; CheckChildOpenState(this, frmOnlineExamQuery); break; case "PolicyPublish": frmPolicyPublish frmPolicyPublish = new frmPolicyPublish(); frmPolicyPublish.loginUser = this.loginUser; CheckChildOpenState(this, frmPolicyPublish); break; case "PolicyReadLog": frmPolicyReadLog frmPolicyReadLog = new frmPolicyReadLog(); //frmPolicyReadLog.loginUser = this.loginUser; CheckChildOpenState(this, frmPolicyReadLog); break; case "Broadcast": PolicyForm.frmBroadcast frmBroadcast1 = new PolicyForm.frmBroadcast(); //frmPolicyPublish.loginUser = this.loginUser; CheckChildOpenState(this, frmBroadcast1); break; case "StudyPublish": frmStudyPublish frmStudyPublish = new frmStudyPublish(); frmStudyPublish.loginUser = this.loginUser; CheckChildOpenState(this, frmStudyPublish); break; case "StudyReadLog": frmStudyReadLog frmStudyReadLog = new frmStudyReadLog(); //frmPolicyReadLog.loginUser = this.loginUser; CheckChildOpenState(this, frmStudyReadLog); break; case "UserMantain": frmUserManagement frmUserManagement = new frmUserManagement(); CheckChildOpenState(this, frmUserManagement); break; case "ChangePassword": frmUserModification frmUserModification = new frmUserModification(); frmUserModification.loginUser = this.loginUser; CheckChildOpenState(this, frmUserModification); break; case "WechatMemberManagement": frmWechatContactManagement frmWechatContactManagement = new frmWechatContactManagement(); CheckChildOpenState(this, frmWechatContactManagement); break; case "AgentTypeQuery": MasterDataForm.frmAgentTypeQuery frmAgentTypeQuery = new MasterDataForm.frmAgentTypeQuery(); CheckChildOpenState(this, frmAgentTypeQuery); break; case "AgentTypeImport": MasterDataForm.frmAgentTypeImport frmAgentTypeImport = new MasterDataForm.frmAgentTypeImport(); CheckChildOpenState(this, frmAgentTypeImport); break; case "WechatSync": MasterDataForm.frmWechatSync frmWechatSync = new MasterDataForm.frmWechatSync(); CheckChildOpenState(this, frmWechatSync); break; case "WechatQuery": MasterDataForm.frmWechatQuery frmWechatQuery = new MasterDataForm.frmWechatQuery(); frmWechatQuery.wechatType = "Agent"; CheckChildOpenState(this, frmWechatQuery); break; case "WechatImport": MasterDataForm.frmAgentWechatAccountImport frmAgentWechatAccountImport = new MasterDataForm.frmAgentWechatAccountImport(); CheckChildOpenState(this, frmAgentWechatAccountImport); break; case "userDefineGroup": UserManagement.frmUserGroup frmUserGroup = new UserManagement.frmUserGroup(); CheckChildOpenState(this, frmUserGroup); break; case "InvoicePaymentImport": InvoiceForm.frmInvoicePaymentImport frmInvoicePaymentImport = new frmInvoicePaymentImport(); CheckChildOpenState(this, frmInvoicePaymentImport); break; case "InvoicePaymentManagement": InvoiceForm.frmInvoicePaymentManagement frmInvoicePaymentManagement = new frmInvoicePaymentManagement(); CheckChildOpenState(this, frmInvoicePaymentManagement); break; case "MonthPermanceImport": PerformanceForm.frmAgentMonthPerformanceImport frmAgentMonthPerformanceImport = new PerformanceForm.frmAgentMonthPerformanceImport(); frmAgentMonthPerformanceImport.performanceType = MyConstant.NoDIRECT; frmAgentMonthPerformanceImport.Text = "月绩效导入-非直供渠道"; CheckChildOpenState(this, frmAgentMonthPerformanceImport); break; case "MonthPermanceQuery": PerformanceForm.frmAgentMonthPerformanceQuery frmAgentMonthPerformanceQuery = new PerformanceForm.frmAgentMonthPerformanceQuery(); frmAgentMonthPerformanceQuery.performanceType = MyConstant.NoDIRECT; frmAgentMonthPerformanceQuery.Text = "月绩效查询-非直供渠道"; CheckChildOpenState(this, frmAgentMonthPerformanceQuery); break; case "MonthPermanceDirectImport": PerformanceForm.frmAgentMonthPerformanceImport frmAgentMonthPerformanceDirectImport = new PerformanceForm.frmAgentMonthPerformanceImport(); frmAgentMonthPerformanceDirectImport.performanceType = MyConstant.DIRECT; frmAgentMonthPerformanceDirectImport.Text = "月绩效导入-直供渠道"; CheckChildOpenState(this, frmAgentMonthPerformanceDirectImport); break; case "MonthPermanceDirectQuery": PerformanceForm.frmAgentMonthPerformanceQuery frmAgentMonthPerformanceDirectQuery = new PerformanceForm.frmAgentMonthPerformanceQuery(); frmAgentMonthPerformanceDirectQuery.performanceType = MyConstant.DIRECT; frmAgentMonthPerformanceDirectQuery.Text = "月绩效查询-直供渠道"; CheckChildOpenState(this, frmAgentMonthPerformanceDirectQuery); break; case "DailyPermanceImport": PerformanceForm.frmAgentDailyPerformanceImport frmAgentDailyPerformanceImport = new PerformanceForm.frmAgentDailyPerformanceImport(); frmAgentDailyPerformanceImport.performanceType = MyConstant.NoDIRECT; frmAgentDailyPerformanceImport.Text = "日绩效导入-非直供渠道"; CheckChildOpenState(this, frmAgentDailyPerformanceImport); break; case "DailyPermanceQuery": PerformanceForm.frmAgentDailyPerformanceQuery frmAgentDailyPerformanceQuery = new PerformanceForm.frmAgentDailyPerformanceQuery(); frmAgentDailyPerformanceQuery.performanceType = MyConstant.NoDIRECT; frmAgentDailyPerformanceQuery.Text = "日绩效查询-非直供渠道"; CheckChildOpenState(this, frmAgentDailyPerformanceQuery); break; case "DailyPermanceDirectImport": PerformanceForm.frmAgentDailyPerformanceImport frmAgentDailyPerformanceDirectImport = new PerformanceForm.frmAgentDailyPerformanceImport(); frmAgentDailyPerformanceDirectImport.performanceType = MyConstant.DIRECT; frmAgentDailyPerformanceDirectImport.Text = "日绩效导入-直供渠道"; CheckChildOpenState(this, frmAgentDailyPerformanceDirectImport); break; case "DailyPermanceDirectQuery": PerformanceForm.frmAgentDailyPerformanceQuery frmAgentDailyPerformanceDirectQuery = new PerformanceForm.frmAgentDailyPerformanceQuery(); frmAgentDailyPerformanceDirectQuery.performanceType = MyConstant.DIRECT; frmAgentDailyPerformanceDirectQuery.Text = "日绩效查询-直供渠道"; CheckChildOpenState(this, frmAgentDailyPerformanceDirectQuery); break; case "ContactImport": ContactUs.frmAgentContactImport frmAgentContactImport = new ContactUs.frmAgentContactImport(); CheckChildOpenState(this, frmAgentContactImport); break; case "ContactQuery": ContactUs.frmAgentContactQuery frmAgentContactQuery = new ContactUs.frmAgentContactQuery(); CheckChildOpenState(this, frmAgentContactQuery); break; case "BonusImport": ScoreGrade.frmAgentBonusImport frmAgentBonusImport = new ScoreGrade.frmAgentBonusImport(); CheckChildOpenState(this, frmAgentBonusImport); break; case "BonusQuery": ScoreGrade.frmAgentBonusQuery frmAgentBonusQuery = new ScoreGrade.frmAgentBonusQuery(); CheckChildOpenState(this, frmAgentBonusQuery); break; case "StarImport": ScoreGrade.frmAgentStarImport frmAgentStarImport = new ScoreGrade.frmAgentStarImport(); CheckChildOpenState(this, frmAgentStarImport); break; case "StarQuery": ScoreGrade.frmAgentStarQuery frmAgentStarQuery = new ScoreGrade.frmAgentStarQuery(); CheckChildOpenState(this, frmAgentStarQuery); break; case "ScoreImport": ScoreGrade.frmAgentScoreImport frmAgentScoreImport = new ScoreGrade.frmAgentScoreImport(); CheckChildOpenState(this, frmAgentScoreImport); break; case "ScoreQuery": ScoreGrade.frmAgentScoreQuery frmAgentScoreQuery = new ScoreGrade.frmAgentScoreQuery(); CheckChildOpenState(this, frmAgentScoreQuery); break; case "SuggestionReply": SuggestionForm.frmSuggestionQuery frmSuggestionQuery = new SuggestionForm.frmSuggestionQuery(); CheckChildOpenState(this, frmSuggestionQuery); break; case "ComplainManagement": ComplainForm.frmComplainManagement frmComplainManagement = new ComplainForm.frmComplainManagement(); CheckChildOpenState(this, frmComplainManagement); break; case "AnyasisReport": Analysis.frmReport frmReport = new Analysis.frmReport(); CheckChildOpenState(this, frmReport); break; } } catch (Exception) { } }
public void ErrorWechatQuery_Click(object sender, EventArgs e) { frmWechatManagement frmWechatManagementTmp = new frmWechatManagement(); frmWechatManagementTmp.wechatType = "ErrorCode"; CheckChildOpenState(this, frmWechatManagementTmp); }