예제 #1
0
        private void dbGrid_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                DataRow dataRow   = dbGridView.GetDataRow(dbGridView.FocusedRowHandle);
                string  noofinpat = dataRow["noofinpat"].ToString();
                MedicalRecordManage.UI.EmrBrowerDlg frm = new MedicalRecordManage.UI.EmrBrowerDlg(noofinpat, SqlUtil.App, FloderState.None);
                //frm.StartPosition = FormStartPosition.CenterScreen;
                frm.StartPosition = FormStartPosition.CenterParent;
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                throw ex;
            }

            //if (SqlUtil.HasBaby(noofinpat))
            //{
            //    ChoosePatOrBaby choosepat = new ChoosePatOrBaby(SqlUtil.App, noofinpat);
            //    choosepat.StartPosition = FormStartPosition.CenterParent;
            //    if (choosepat.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            //    {
            //        SqlUtil.App.ChoosePatient(decimal.Parse(choosepat.NOOfINPAT));
            //        SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
            //    }
            //}
            //else
            //{
            //    SqlUtil.App.ChoosePatient(Convert.ToDecimal(noofinpat));
            //    SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
            //}
        }
예제 #2
0
        private void BrowserMedicalRecord(bool bolMessage)
        {
            try
            {
                int fouceRowIndex = gridViewRecordOnFile.FocusedRowHandle;
                if (fouceRowIndex < 0)
                {
                    if (bolMessage)
                    {
                        SqlUtil.App.CustomMessageBox.MessageShow("请选择一条病人记录");
                    }
                    return;
                }
                DataRow foucesRow = gridViewRecordOnFile.GetDataRow(fouceRowIndex);


                //edit by wyt 2012-11-09 新建病历显示窗口
                string noOfFirstPage = foucesRow["NOOFINPAT"].ToString();
                MedicalRecordManage.UI.EmrBrowerDlg frm = new MedicalRecordManage.UI.EmrBrowerDlg(noOfFirstPage, SqlUtil.App, FloderState.None);
                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

                //this.LoadEmrContent(noOfFirstPage);
                //if (m_UCEmrInput != null)
                //{
                //    EmrBrowser browser = new EmrBrowser();
                //    browser.Controls.Add(m_UCEmrInput);
                //    m_UCEmrInput.Dock = DockStyle.Fill;
                //    browser.ShowDialog();
                //}

                //HistoryRecordBrowser frmHistoryRecordBrowser = new HistoryRecordBrowser(PatID);
                //frmHistoryRecordBrowser.ShowDialog();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }