Пример #1
0
 /// <summary>
 /// 双击事件
 /// xlb 2013-01-11
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gridViewTimeLimit_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         if (gridViewTimeLimit.FocusedRowHandle < 0)
         {
             return;
         }
         if (App == null)
         {
             return;
         }
         DataRow dr = gridViewTimeLimit.GetDataRow(gridViewTimeLimit.FocusedRowHandle);
         if (dr == null)
         {
             return;
         }
         decimal patid = Convert.ToDecimal(dr["noofinpat"]);
         if (patid < 0)
         {
             return;
         }
         App.ChoosePatient(patid);
         App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
     }
     catch (Exception ex)
     {
         MyMessageBox.Show(1, ex);
     }
 }
Пример #2
0
        private void advBandedGridView1_DoubleClick(object sender, EventArgs e)
        {
            if (advBandedGridView1.FocusedRowHandle < 0)
            {
                return;
            }
            if (App == null)
            {
                return;
            }
            DataRow dr = advBandedGridView1.GetDataRow(advBandedGridView1.FocusedRowHandle);

            if (dr == null)
            {
                return;
            }
            decimal patid = Convert.ToDecimal(dr[ConstRes.cstFieldFirstPage]);

            if (patid < 0)
            {
                return;
            }

            App.ChoosePatient(patid);
            App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
        }
Пример #3
0
        /// <summary>
        /// 查看病历信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void barButtonItemMedicalInfo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                DataRow dr = gridViewList.GetDataRow(gridViewList.FocusedRowHandle);
                if (dr != null)
                {
                    string noOfFirstPage = dr["NoOfInpat"].ToString();
                    string stateID       = dr["StateID"].ToString();
                    string deptName      = dr["DeptName"].ToString();

                    if (stateID == Convert.ToString((int)ConsultStatus.WaitConsultation))
                    {
                        if (deptName != m_App.User.CurrentDeptName)
                        {
                            m_App.EmrAllowEdit = false;
                        }
                        m_App.ChoosePatient(Convert.ToDecimal(noOfFirstPage), FloderState.None.ToString());

                        m_App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                        m_App.EmrAllowEdit = true;
                    }
                }
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }
Пример #4
0
        private void btn_ReWrite_Click(object sender, EventArgs e)
        {
            if (gridViewHistoryInfo.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow row = gridViewHistoryInfo.GetDataRow(gridViewHistoryInfo.FocusedRowHandle);

            m_App.ChoosePatient(Convert.ToDecimal(row["noofinpat"]), FloderState.NoneAudit.ToString());
            m_App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
        }
Пример #5
0
 /// <summary>
 /// 重新加载整个文书录入界面
 /// </summary>
 private void RefreshEMRMainPad()
 {
     try
     {
         m_App.ChoosePatient(m_CurrentInpatient.NoOfFirstPage);
         m_App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Пример #6
0
        private void gridHistoryInp_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            GridHitInfo hitInfo = gridViewHistoryInfo.CalcHitInfo(e.Location);

            if (hitInfo.RowHandle >= 0)
            {
                DataRowView drv = gridViewHistoryInfo.GetRow(hitInfo.RowHandle) as DataRowView;
                if (drv != null)
                {
                    m_App.ChoosePatient(Convert.ToDecimal(drv["noofinpat"]), FloderState.NoneAudit.ToString());
                    m_App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                }
            }
        }
Пример #7
0
        /// <summary>
        /// 双击事件
        /// edit by Yanqiao.Cai 2012-11-12
        /// 1、add try ... catch
        /// 2、双击小标题无操作
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridControl1_DoubleClick(object sender, EventArgs e)
        {
            try
            {
                GridHitInfo hitInfo = gridViewInpatientFail.CalcHitInfo(gridInpatientFail.PointToClient(Cursor.Position));
                if (hitInfo.RowHandle < 0)
                {
                    return;
                }
                DataRow dataRow = gridViewInpatientFail.GetDataRow(gridViewInpatientFail.FocusedRowHandle);
                if (null == dataRow)
                {
                    return;
                }
                string noofinpat = dataRow["noofinpat"].ToString();
                if (HasBaby(noofinpat))
                {
                    ChoosePatOrBaby choosepat = new ChoosePatOrBaby(_app, noofinpat);
                    choosepat.StartPosition = FormStartPosition.CenterParent;
                    if (choosepat.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                    {
                        _app.ChoosePatient(decimal.Parse(choosepat.NOOfINPAT));
                        _app.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                    }
                }
                else
                {
                    _app.ChoosePatient(Convert.ToDecimal(noofinpat));
                    _app.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                }
                #region edit by cyq 2012-11-14
                //GridHitInfo hitInfo = gridViewInpatientFail.CalcHitInfo(gridInpatientFail.PointToClient(Cursor.Position));
                //if (hitInfo.RowHandle < 0)
                //{
                //    return;
                //}
                //decimal syxh = GetCurrentPat();
                //if (syxh < 0) return;

                //App.ChoosePatient(syxh);
                //App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                #endregion
            }
            catch (Exception ex)
            {
                MyMessageBox.Show(1, ex);
            }
        }
Пример #8
0
        /// <summary>
        /// 显示病历信息方法
        /// </summary>
        private void ShowEmrMessage()
        {
            try
            {
                int[] list = dbGridView.GetSelectedRows();
                if (list.Length > 0)
                {
                    string status = dbGridView.GetRowCellValue(list[0], "STATUS").ToString();
                    //调用病历查看窗口,进行病历的查询
                    if (status.Equals("2"))
                    {
                        string noofinpat = dbGridView.GetRowCellValue(list[0], "NOOFINPAT").ToString();
                        // LoadEmrContent(noofinpat);

                        //  LoadEmrContent(noofinpat);
                        decimal syxh = decimal.Parse(noofinpat);
                        if (syxh < 0)
                        {
                            return;
                        }
                        if (syxh < 0)
                        {
                            return;
                        }

                        if (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(syxh);
                            SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Пример #9
0
        private void LoadPatView()
        {
            if (gridViewDetail.FocusedRowHandle < 0)
            {
                return;
            }
            DataRow foucesRow = gridViewDetail.GetDataRow(gridViewDetail.FocusedRowHandle);

            if (foucesRow == null)
            {
                return;
            }

            if (foucesRow.IsNull("NOOFINPAT"))
            {
                return;
            }

            m_app.ChoosePatient(Convert.ToDecimal(foucesRow["NOOFINPAT"].ToString()));
            if (m_app.CurrentPatientInfo != null)
            {
                m_app.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
            }
        }
Пример #10
0
        /// <summary>
        /// 显示病历信息方法
        /// </summary>
        private void ShowEmrMessage()
        {
            try
            {
                foreach (RecordWriteUpModel re in listAll)
                {
                    if (re.Index == this.tabControl.SelectedTabPageIndex)
                    {
                        MedicalRecordWriteUp mf = re.MyControl;
                        DevExpress.XtraGrid.Views.Grid.GridView dbGridView = mf.dbGridView;
                        if (dbGridView.RowCount > 0)
                        {
                            int[] list = dbGridView.GetSelectedRows();
                            if (list.Length > 0)
                            {
                                string status = dbGridView.GetRowCellValue(list[0], "STATUS").ToString();
                                //调用病历查看窗口,进行病历的查询
                                if (status.Equals("2"))
                                {
                                    string noofinpat = dbGridView.GetRowCellValue(list[0], "NOOFINPAT").ToString();
                                    //  LoadEmrContent(noofinpat);
                                    decimal syxh = decimal.Parse(noofinpat);
                                    if (syxh < 0)
                                    {
                                        return;
                                    }
                                    if (syxh < 0)
                                    {
                                        return;
                                    }

                                    if (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(syxh);
                                        SqlUtil.App.LoadPlugIn("DrectSoft.Core.MainEmrPad.dll", DS_BaseService.GetUCEmrInputPath());
                                    }
                                }
                            }
                        }
                        break;
                    }
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }