public static void ShowSetDialog() { FrmReportPrinterSet frmSet = new FrmReportPrinterSet( ); frmSet.ShowDialog( ); }
/// <summary> /// 根据函数名称实例化窗体 /// </summary> public void InstanceXcForm() { if (_functionName == "") { throw new Exception("引出函数名不能为空!"); } GWMHIS.BussinessLogicLayer.Classes.User currentUser = new GWMHIS.BussinessLogicLayer.Classes.User(_currentUserId); GWMHIS.BussinessLogicLayer.Classes.Deptment currentDept = new GWMHIS.BussinessLogicLayer.Classes.Deptment(_currentDeptId); switch (_functionName) { case "Fun_Public_ReportPrinterSet": FrmReportPrinterSet fSet = new FrmReportPrinterSet(); fSet.ShowDialog(); break; case "Fxc_FrmFavorable": FrmFavorable frmFavorable = new FrmFavorable(); if (_mdiParent != null) { frmFavorable.MdiParent = _mdiParent; } frmFavorable.WindowState = FormWindowState.Maximized; frmFavorable.Show(); break; case "Fxc_FrmPatientType": FrmPatientType frmPt = new FrmPatientType(); if (_mdiParent != null) { frmPt.MdiParent = _mdiParent; } frmPt.WindowState = FormWindowState.Maximized; frmPt.Show(); break; case "Fxc_FrmformulaManager": FrmformulaManager frmformula = new FrmformulaManager(); if (_mdiParent != null) { frmformula.MdiParent = _mdiParent; } frmformula.WindowState = FormWindowState.Maximized; frmformula.Show(); break; case "Fxc_FrmClient": string value = GWMHIS.BussinessLogicLayer.Forms.DlgInputBoxStatic.InputBox("输入使用密码?", "数据库维护", "", false, true, '*'); if (value != null && value != "") { if (value.Trim() == "kakake!@#$%^") { FrmClient fc = new FrmClient(); if (_mdiParent != null) { fc.MdiParent = _mdiParent; } fc.WindowState = FormWindowState.Maximized; fc.Show(); } else { MessageBox.Show("密码错误!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error); } } break; default: throw new Exception("引出函数名称错误!"); } }