Ejemplo n.º 1
0
 /// <summary>
 /// 病案室人员编辑首页(未归档)
 /// <auth>Yanqiao.Cai</auth>
 /// <date>2012-12-05</date>
 /// </summary>
 /// <param name="noofinpat">首页序号</param>
 /// <return></return>
 private void InitFirstPageEditFlag(string noofinpat)
 {
     try
     {
         editFlag = DS_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id);
         //如果是病案人员则继续判断是否为未归档病历
         if (editFlag)
         {
             editFlag = DS_BaseService.CheckRecordRebacked(noofinpat);
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 加载文书录入页面
        /// edit by Yanqiao.Cai 2012-11-23
        /// </summary>
        /// <param name="bolMessage"></param>
        private void BrowserMedicalRecord(bool bolMessage)
        {
            try
            {
                int fouceRowIndex = gridviewRecordNoOnFile.FocusedRowHandle;
                if (fouceRowIndex < 0)
                {
                    if (bolMessage)
                    {
                        gridControlRecordNoOnFile.Focus();
                        SqlUtil.App.CustomMessageBox.MessageShow("请选择一条病人记录");
                    }
                    return;
                }
                DataRow foucesRow = gridviewRecordNoOnFile.GetDataRow(fouceRowIndex);

                //edit by wyt 2012-11-09 新建病历显示窗口
                string noOfFirstPage = foucesRow["NOOFINPAT"].ToString();
                //设置文书录入左侧菜单图标状态
                FloderState floaderState = FloderState.None;
                if (DS_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id))
                {
                    floaderState = FloderState.FirstPage;
                }
                EmrBrowser frm = new EmrBrowser(noOfFirstPage, SqlUtil.App, floaderState);
                frm.StartPosition = FormStartPosition.CenterParent;
                //添加窗体关闭事件 add by cyq 2012-12-06
                frm.FormClosed += new FormClosedEventHandler(EmrBrowser_FormClosed);
                frm.ShowDialog();
                //移除窗体关闭事件 add by cyq 2012-12-06
                frm.FormClosed -= new FormClosedEventHandler(EmrBrowser_FormClosed);

                #region 取消加载插件方式显示病历 edit by wyt 2012-11-09
                //SqlUtil.App.ChoosePatient(Convert.ToDecimal(noOfInpat));
                //SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", "DrectSoft.Core.MainEmrPad.MainForm");
                #endregion

                //HistoryRecordBrowser frmHistoryRecordBrowser = new HistoryRecordBrowser(PatID);
                //frmHistoryRecordBrowser.ShowDialog();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 病案室人员编辑首页(未归档)
 /// <auth>Yanqiao.Cai</auth>
 /// <date>2012-12-05</date>
 /// </summary>
 /// <param name="noofinpat">首页序号</param>
 /// <return></return>
 private void InitFirstPageEditFlag(string noofinpat)
 {
     try
     {
         if (!string.IsNullOrEmpty(m_Host.FloderState) && (FloderState)Enum.Parse(typeof(FloderState), m_Host.FloderState) == FloderState.FirstPage)
         {
             editFlag = DS_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id);
             ///如果是病案人员则继续判断是否为未归档病历
             if (editFlag)
             {
                 IsShowBackRecord = DS_BaseService.CheckRecordRebacked(noofinpat);
             }
         }
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Ejemplo n.º 4
0
        /// <summary>
        /// 窗体加载事件
        /// edit by Yanqiao.Cai 2012-11-05
        /// 1、add try ... catch
        /// 2、封装初始化方法
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UCRecordNoOnFile_Load(object sender, EventArgs e)
        {
            try
            {
                //edit by cyq 2012-12-04
                //IntiRecordID();
                //InitName();
                InitDepartment();
                InitDiag();
                InitPhysician();
                //获取病历状态
                SqlUtil.GetDictionarydetail(lookUpRecordStatus, "1", "47", "usp_GetRecordManageFrm");

                //add by cyq 2012-12-23 病案室人员显示归档按钮
                this.btn_reback.Visible = DS_BaseService.CheckIfQuatityControlPerson(DS_Common.currentUser.Id);

                Reset();
                this.ActiveControl = txt_recordID;
            }
            catch (Exception ex)
            {
                DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show(1, ex);
            }
        }