private string encryptkey = "Oyea"; //密钥 #region 执行“目录”控件中的项操作 /// <summary> /// 执行“目录”控件中的项操作 /// </summary> /// <param name="control">控件类型</param> /// <param name="form">所属窗体</param> public void ShowForm(ToolStripMenuItem control, Form form) { switch (control.Tag.ToString()) { case "1": EmployeeInfo employee = new EmployeeInfo(); employee.MdiParent = form; employee.StartPosition = FormStartPosition.CenterScreen; employee.Show(); break; case "2": CompanyInfo company = new CompanyInfo(); company.MdiParent = form; company.StartPosition = FormStartPosition.CenterScreen; company.Show(); break; case "3": Login login = new Login(); login.StartPosition = FormStartPosition.CenterScreen; login.ShowDialog(); form.Dispose(); //释放窗体资源 break; case "5": GoodsIn goodsin = new GoodsIn(); goodsin.MdiParent = form; goodsin.StartPosition = FormStartPosition.CenterScreen; goodsin.Show(); break; case "6": ReGoods regoods = new ReGoods(); regoods.MdiParent = form; regoods.StartPosition = FormStartPosition.CenterScreen; regoods.Show(); break; case "7": GoodsFind stockfind = new GoodsFind(); stockfind.MdiParent = form; stockfind.StartPosition = FormStartPosition.CenterScreen; stockfind.Show(); break; case "8": s sellgoods = new s(); sellgoods.MdiParent = form; sellgoods.StartPosition = FormStartPosition.CenterScreen; sellgoods.Show(); break; case "9": CustomerReGoods customerregoods = new CustomerReGoods(); customerregoods.MdiParent = form; customerregoods.StartPosition = FormStartPosition.CenterScreen; customerregoods.Show(); break; case "10": SellFind sellfind = new SellFind(); sellfind.MdiParent = form; sellfind.StartPosition = FormStartPosition.CenterScreen; sellfind.Show(); break; case "11": ChangeGoods changegoods = new ChangeGoods(); changegoods.MdiParent = form; changegoods.StartPosition = FormStartPosition.CenterScreen; changegoods.Show(); break; case "12": StockAlarm stockalarm = new StockAlarm(); stockalarm.MdiParent = form; stockalarm.StartPosition = FormStartPosition.CenterScreen; stockalarm.Show(); break; case "13": StockFind stockfindall = new StockFind(); stockfindall.MdiParent = form; stockfindall.StartPosition = FormStartPosition.CenterScreen; stockfindall.Show(); break; case "14": EmployeeReport employeereport = new EmployeeReport(); employeereport.MdiParent = form; employeereport.StartPosition = FormStartPosition.CenterScreen; employeereport.Show(); break; case "15": CompanyReport companyreport = new CompanyReport(); companyreport.MdiParent = form; companyreport.StartPosition = FormStartPosition.CenterScreen; companyreport.Show(); break; case "16": GoodsInReport goodsinreport = new GoodsInReport(); goodsinreport.MdiParent = form; goodsinreport.StartPosition = FormStartPosition.CenterScreen; goodsinreport.Show(); break; case "17": GoodsInAnalysisReport sellgodsreport = new GoodsInAnalysisReport(); sellgodsreport.MdiParent = form; sellgodsreport.StartPosition = FormStartPosition.CenterScreen; sellgodsreport.Show(); break; case "18": EmployeeSellReport employeesellreport = new EmployeeSellReport(); employeesellreport.MdiParent = form; employeesellreport.StartPosition = FormStartPosition.CenterScreen; employeesellreport.Show(); break; case "19": GoodsInAnalysisReport goodsinana = new GoodsInAnalysisReport(); goodsinana.MdiParent = form; goodsinana.StartPosition = FormStartPosition.CenterScreen; goodsinana.Show(); break; case "20": SellGoodsAnalysisReport sellana = new SellGoodsAnalysisReport(); sellana.MdiParent = form; sellana.StartPosition = FormStartPosition.CenterScreen; sellana.Show(); break; case "21": SetPopedom setpopedom = new SetPopedom(); setpopedom.MdiParent = form; setpopedom.StartPosition = FormStartPosition.CenterScreen; setpopedom.Show(); break; case "22": ChangePwd changepwd = new ChangePwd(); changepwd.MdiParent = form; changepwd.StartPosition = FormStartPosition.CenterScreen; changepwd.Show(); break; case "23": BakData bakdata = new BakData(); bakdata.MdiParent = form; bakdata.StartPosition = FormStartPosition.CenterScreen; bakdata.Show(); break; case "24": ReBakData rebakdata = new ReBakData(); rebakdata.MdiParent = form; rebakdata.StartPosition = FormStartPosition.CenterScreen; rebakdata.Show(); break; case "25": SysUser sysuser = new SysUser(); sysuser.MdiParent = form; sysuser.StartPosition = FormStartPosition.CenterScreen; sysuser.Show(); break; case "30": CustomerInfo customer = new CustomerInfo(); customer.MdiParent = form; customer.StartPosition = FormStartPosition.CenterScreen; customer.Show(); break; case "31": EmployeeSellAnalysisReport sell = new EmployeeSellAnalysisReport(); sell.MdiParent = form; sell.StartPosition = FormStartPosition.CenterScreen; sell.Show(); break; default: break; } }