예제 #1
0
        private void btQuery_Click(object sender, EventArgs e)
        {
            FrmWardBedQuery frmWardBedQuery = new FrmWardBedQuery(-1, -1, "床位情况查询");

            frmWardBedQuery.ShowDialog();
        }
예제 #2
0
        /// <summary>
        /// 根据函数名称实例化窗体
        /// </summary>
        public void InstanceXcForm()
        {
            if (_functionName == "")
            {
                throw new Exception("引出函数名不能为空!");
            }

            switch (_functionName)
            {
                #region 日常业务
            case "Fun_FrmMedicalManage":
                if (!(new Deptment(_currentDeptId)).MZ_Flag || !HIS.MZDoc_BLL.OP_ReadBaseData.IsClinicDept((int)_currentDeptId))
                {
                    MessageBox.Show("请您选择登录门诊临床科室!", "提示");
                    return;
                }
                FrmMedicalManage frmMedicalManage = FrmMedicalManage.GetInstance(_currentUserId, _currentDeptId, _chineseName);
                //if (_mdiParent != null)
                //{
                //    frmMedicalManage.MdiParent = _mdiParent;
                //}
                frmMedicalManage.WindowState = FormWindowState.Maximized;
                frmMedicalManage.Show();
                frmMedicalManage.Select();
                break;

            case "Fun_FrmSkinTestProcess":
                FrmHisPreQuery frmSkinTestProcess = new FrmHisPreQuery(_currentUserId, _currentDeptId, _chineseName, true);
                if (_mdiParent != null)
                {
                    frmSkinTestProcess.MdiParent = _mdiParent;
                }
                frmSkinTestProcess.WindowState = FormWindowState.Maximized;
                frmSkinTestProcess.Show();
                break;

            case "Fun_FrmTransfusionCard":
                FrmTransfusionCard frmTransfusionCard = new FrmTransfusionCard(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmTransfusionCard.MdiParent = _mdiParent;
                }
                frmTransfusionCard.WindowState = FormWindowState.Maximized;
                frmTransfusionCard.Show();
                break;
                #endregion

                #region 查询统计
            case "Fun_FrmWardBedQuery":
                FrmWardBedQuery frmWardBedQuery = new FrmWardBedQuery(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmWardBedQuery.MdiParent = _mdiParent;
                }
                frmWardBedQuery.WindowState = FormWindowState.Maximized;
                frmWardBedQuery.Show();
                break;

            case "Fun_FrmHisPreQuery":
                FrmHisPreQuery frmHisPreQuery = new FrmHisPreQuery(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmHisPreQuery.MdiParent = _mdiParent;
                }
                frmHisPreQuery.WindowState = FormWindowState.Maximized;
                frmHisPreQuery.Show();
                break;

            case "Fun_FrmDocWorkQuery":
                FrmDocWorkQuery frmDocWorkQuery = new FrmDocWorkQuery(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmDocWorkQuery.MdiParent = _mdiParent;
                }
                frmDocWorkQuery.WindowState = FormWindowState.Maximized;
                frmDocWorkQuery.Show();
                break;
                #endregion

                #region 数据维护
            case "Fun_FrmPreMould":
                FrmPreMould frmPreMould = new FrmPreMould(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmPreMould.MdiParent = _mdiParent;
                }
                frmPreMould.WindowState = FormWindowState.Maximized;
                frmPreMould.Show();
                break;

            case "Fun_FrmCommonItem":
                FrmCommonItem frmCommonItem = new FrmCommonItem(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmCommonItem.MdiParent = _mdiParent;
                }
                frmCommonItem.WindowState = FormWindowState.Maximized;
                frmCommonItem.Show();
                break;

            case "Fun_FrmCommonDrug":
                FrmCommonDrug frmCommonDrug = new FrmCommonDrug(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmCommonDrug.MdiParent = _mdiParent;
                }
                frmCommonDrug.WindowState = FormWindowState.Maximized;
                frmCommonDrug.Show();
                break;

            case "Fun_FrmCommonDiagnosis":
                FrmCommonDiagnosis frmCommonDiagnosis = new FrmCommonDiagnosis(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmCommonDiagnosis.MdiParent = _mdiParent;
                }

                frmCommonDiagnosis.WindowState = FormWindowState.Maximized;
                frmCommonDiagnosis.Show();
                break;

            case "Fun_FrmMedicalApplyFormatSite":
                FrmApplyFormat frmApplyFormat = new FrmApplyFormat(_currentUserId, _currentDeptId, _chineseName);
                if (_mdiParent != null)
                {
                    frmApplyFormat.MdiParent = _mdiParent;
                }

                frmApplyFormat.WindowState = FormWindowState.Maximized;
                frmApplyFormat.Show();
                break;
                #endregion

            default:
                throw new Exception("引出函数名称错误!");
            }
        }