Esempio n. 1
0
        private void BrowserMedicalRecord(bool bolMessage)
        {
            try
            {
                string noOfInpat; //住院号

                int fouceRowIndex = gridViewApplyRecord.FocusedRowHandle;
                if (fouceRowIndex < 0)
                {
                    if (bolMessage)
                    {
                        SqlUtil.App.CustomMessageBox.MessageShow("请选择一条病人记录");
                    }
                    return;
                }
                DataRow foucesRow = gridViewApplyRecord.GetDataRow(fouceRowIndex);

                //edit by wyt 2012-11-09 新建病历显示窗口
                string     noOfFirstPage = foucesRow["NOOFINPAT"].ToString();
                EmrBrowser frm           = new EmrBrowser(noOfFirstPage, SqlUtil.App);
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.ShowDialog();
                #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);
            }
        }
Esempio 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);
            }
        }
Esempio n. 3
0
        private void BrowserMedicalRecord(bool bolMessage)
        {
            try
            {
                #region 注释 by cyq 2012-12-06 修复权限问题 病案管理模块不可编辑病历
                //string noOfInpat; //住院号

                //int fouceRowIndex = gridViewSingInRecord.FocusedRowHandle;
                //if (fouceRowIndex < 0)
                //{
                //    if (bolMessage) SqlUtil.App.CustomMessageBox.MessageShow("请选择需要阅览的病历记录");
                //    return;
                //}
                //DataRow foucesRow = gridViewSingInRecord.GetDataRow(fouceRowIndex);
                //noOfInpat = foucesRow["noofinpat"].ToString();

                //SqlUtil.App.ChoosePatient(Convert.ToDecimal(noOfInpat));
                //SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", "DrectSoft.Core.MainEmrPad.MainForm");
                ////HistoryRecordBrowser frmHistoryRecordBrowser = new HistoryRecordBrowser(PatID);
                ////frmHistoryRecordBrowser.ShowDialog();
                #endregion

                int fouceRowIndex = gridViewSingInRecord.FocusedRowHandle;
                if (fouceRowIndex < 0)
                {
                    if (bolMessage)
                    {
                        DrectSoft.Common.Ctrs.DLG.MyMessageBox.Show("请选择一条病人记录");
                    }
                    return;
                }
                DataRow foucesRow = gridViewSingInRecord.GetDataRow(fouceRowIndex);

                string     noOfFirstPage = foucesRow["NOOFINPAT"].ToString();
                EmrBrowser frm           = new EmrBrowser(noOfFirstPage, SqlUtil.App);
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }