private void 病人出区ToolStripMenuItem_Click(object sender, EventArgs e) { FrmPatOut frmpatout = new FrmPatOut(_currentUser.UserID, _currentDept.DeptID, "病人出区"); frmpatout.MdiParent = this.MdiParent; frmpatout.WindowState = FormWindowState.Maximized; ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmpatout); frmpatout.Show(); }
/// <summary> /// 根据函数名称实例化窗体 /// </summary> public void InstanceXcForm() { if (_functionName == "") { throw new Exception("引出函数名不能为空!"); } switch (_functionName) { case "FrmPatOut": FrmPatOut frmPatOut = new FrmPatOut(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmPatOut.MdiParent = _mdiParent; } frmPatOut.WindowState = FormWindowState.Maximized; frmPatOut.Show(); break; case "FrmInsertNewBed": FrmInsertNewBed frmInsertNewBed = new FrmInsertNewBed(_currentUserId, _currentDeptId, _chineseName, false); if (_mdiParent != null) { frmInsertNewBed.MdiParent = _mdiParent; } frmInsertNewBed.WindowState = FormWindowState.Maximized; frmInsertNewBed.Show(); break; //本科室床位维护 case "FrmInsertBedCurrDept": FrmInsertNewBed frmInsertBedCurrDept = new FrmInsertNewBed(_currentUserId, _currentDeptId, _chineseName, true); if (_mdiParent != null) { frmInsertBedCurrDept.MdiParent = _mdiParent; } frmInsertBedCurrDept.WindowState = FormWindowState.Maximized; frmInsertBedCurrDept.Show(); break; case "FrmOrderTrans": FrmOrderTrans frmOrderTrans = new FrmOrderTrans(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmOrderTrans.MdiParent = _mdiParent; } frmOrderTrans.WindowState = FormWindowState.Maximized; frmOrderTrans.Show(); break; case "FrmOrderManager": FrmOrderManager frmOrderManager = new FrmOrderManager(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmOrderManager.MdiParent = _mdiParent; } frmOrderManager.WindowState = FormWindowState.Maximized; frmOrderManager.Show(); break; case "FrmFeeInput": FrmFeeInput frmFeeInput = new FrmFeeInput(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmFeeInput.MdiParent = _mdiParent; } frmFeeInput.WindowState = FormWindowState.Maximized; frmFeeInput.Show(); break; case "FrmBedShow": FrmBedShow frmBedShow = new FrmBedShow(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmBedShow.MdiParent = _mdiParent; } frmBedShow.WindowState = FormWindowState.Maximized; frmBedShow.Show(); break; case "FrmOrderExec": FrmOrderExec frmOrderExec = new FrmOrderExec(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmOrderExec.MdiParent = _mdiParent; } frmOrderExec.WindowState = FormWindowState.Maximized; frmOrderExec.Show(); break; case "FrmAccountCheck": FrmAccountCheck frmaccountcheck = new FrmAccountCheck(_currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmaccountcheck.MdiParent = _mdiParent; } frmaccountcheck.WindowState = FormWindowState.Maximized; frmaccountcheck.Show(); break; case "FrmOrderPrint": FrmOrderPrint frmOrderPrint = new FrmOrderPrint(-1, _currentUserId, _currentDeptId, _chineseName); if (_mdiParent != null) { frmOrderPrint.MdiParent = _mdiParent; } frmOrderPrint.WindowState = FormWindowState.Maximized; frmOrderPrint.Show(); break; case "FrmFeeModel": FrmFeeModel frmfeeModel = new FrmFeeModel(_currentUserId, _currentDeptId); if (_mdiParent != null) { frmfeeModel.MdiParent = _mdiParent; } frmfeeModel.WindowState = FormWindowState.Maximized; frmfeeModel.Show(); break; default: throw new Exception("引出函数名称错误!"); } }