Ejemplo n.º 1
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());
        }
Ejemplo n.º 2
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);
            }
        }
Ejemplo n.º 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);
            }
        }
Ejemplo n.º 4
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;
     }
 }
Ejemplo n.º 5
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());
            }
        }
Ejemplo n.º 6
0
 /// <summary>
 /// 重新加载整个文书录入界面
 /// </summary>
 private void RefreshEMRMainPad()
 {
     m_App.ChoosePatient(m_CurrentInpatient.NoOfFirstPage);
     m_App.LoadPlugIn("DrectSoft.Core.EMR_NursingDocument.EMRInput.Table.dll", "DrectSoft.Core.EMR_NursingDocument.EMRInput.Table.MainForm");
 }