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()); }
/// <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); } }
/// <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); } }
public void MyLoadNurseDocument(IWin32Window wind, IEmrHost m_app, DataRow drInpatient, out DevExpress.XtraEditors.XtraUserControl MymainNursingMeasure) { try { Form form = null; //获取病人对象 Inpatient m_NewPat = new Inpatient(); m_app.ChoosePatient(Convert.ToDecimal((drInpatient["NOOFINPAT"])).ToString(), out m_NewPat); DrectSoft.Core.NurseDocument.MainNursingMeasure mainNursingMeasure = new DrectSoft.Core.NurseDocument.MainNursingMeasure(drInpatient["NOOFINPAT"].ToString()); string version = DrectSoft.Core.NurseDocument.ConfigInfo.GetNurseMeasureVersion(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); mainNursingMeasure.CurrentPat = drInpatient["NOOFINPAT"].ToString(); mainNursingMeasure.eventHandlerXieRu += delegate(object sender1, EventArgs e1) { if (form == null) { Assembly a = Assembly.Load("DrectSoft.Core.NurseDocument"); Type type = a.GetType(version); form = (Form)Activator.CreateInstance(type, new object[] { m_app, drInpatient["NOOFINPAT"].ToString() }); form.Height = DrectSoft.Core.NurseDocument.ConfigInfo.GetNurseRecordSize(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); form.FormClosed += delegate(object sender2, FormClosedEventArgs e2) { form = null; mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; form.Show(wind); } mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; mainNursingMeasure.Load(m_app, m_NewPat); mainNursingMeasure.ReadOnlyControl = true; if (form != null) { switch (version.Trim()) { case "DrectSoft.Core.NurseDocument.Controls.NursingRecordNew": (form as DrectSoft.Core.NurseDocument.Controls.NursingRecordNew).RefreshDate(drInpatient["NOOFINPAT"].ToString()); (form as DrectSoft.Core.NurseDocument.Controls.NursingRecordNew).dateEdit_DateTimeChanged(null, null); break; case "DrectSoft.Core.NurseDocument.Controls.NursingRecord": (form as DrectSoft.Core.NurseDocument.Controls.NursingRecord).RefreshDate(drInpatient["NOOFINPAT"].ToString()); (form as DrectSoft.Core.NurseDocument.Controls.NursingRecord).dateEdit_DateTimeChanged(null, null); break; } form.FormClosed += delegate(object sender2, FormClosedEventArgs e2) { mainNursingMeasure.LoadDataImage(decimal.Parse(drInpatient["NOOFINPAT"].ToString())); }; } MymainNursingMeasure = mainNursingMeasure; } catch (Exception ex) { MymainNursingMeasure = null; } }
/// <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; } }
/// <summary> /// 加载文书录入界面 /// </summary> private void AddEmrInputNew() { try { WaitDialogForm m_WaitDialog = new WaitDialogForm("正在加载病人信息...", "请稍候"); m_app.ChoosePatient(Convert.ToDecimal(nOofinpat));//切换病人 DS_Common.HideWaitDialog(m_WaitDialog); m_UCEmrInputNew = new DrectSoft.Core.MainEmrPad.New.UCEmrInput(m_app.CurrentPatientInfo, m_app, floderState); m_UCEmrInputNew.SetVarData(m_app); xtraEmrInfo.Controls.Add(m_UCEmrInputNew); m_UCEmrInputNew.Dock = DockStyle.Fill; } catch (Exception ex) { throw ex; } }
/// <summary> /// 加载病历 /// edit by Yanqiao.Cai 2012-11-23 /// 1、add try ... catch /// </summary> private void AddEmrInputNew() { try { WaitDialogForm m_WaitDialog = new WaitDialogForm("正在加载病人信息...", "请稍候"); m_Host.ChoosePatient(Convert.ToDecimal(m_NoOfFirstPage), floderState.ToString());//切换病人 DS_Common.HideWaitDialog(m_WaitDialog); m_UCEmrInputNew = new DrectSoft.Core.MainEmrPad.New.UCEmrInput(m_Host.CurrentPatientInfo, m_Host, floderState); m_UCEmrInputNew.SetVarData(m_Host); this.Controls.Add(m_UCEmrInputNew); m_UCEmrInputNew.HideBar(); m_UCEmrInputNew.Dock = DockStyle.Fill; } catch (Exception ex) { throw ex; } }
private void AddEmrInputNew() { try { DS_Common.SetWaitDialogCaption(m_WaitDialog, "正在加载病人信息..."); m_App.ChoosePatient(Convert.ToDecimal(m_noofinpat));//切换病人 DS_Common.HideWaitDialog(m_WaitDialog); m_UCEmrInputNew = new DrectSoft.Core.MainEmrPad.New.UCEmrInput(m_App.CurrentPatientInfo, m_App, FloderState.None); m_UCEmrInputNew.SetVarData(m_App); this.panelControl1.Controls.Add(m_UCEmrInputNew); m_UCEmrInputNew.OnLoad(); m_UCEmrInputNew.HideBar(); m_UCEmrInputNew.Dock = DockStyle.Fill; } catch (Exception) { throw; } }
/// <summary> /// 加载病历 /// </summary> private void AddEmrInputNew() { try { if (string.IsNullOrEmpty(m_NoOfFirstPage) || m_IsLoadedEmrContentNew) { return; } m_Host.ChoosePatient(Convert.ToDecimal(m_NoOfFirstPage), FloderState.None.ToString());//切换病人 m_UCEmrInputNew = new DrectSoft.Core.MainEmrPad.New.UCEmrInput(m_Host.CurrentPatientInfo, m_Host, FloderState.None); m_UCEmrInputNew.SetVarData(m_Host); xtraTabPageEmrContent.Controls.Add(m_UCEmrInputNew); m_UCEmrInputNew.OnLoad(); m_UCEmrInputNew.HideBar(); m_UCEmrInputNew.Dock = DockStyle.Fill; m_IsLoadedEmrContentNew = true; } catch (Exception ex) { throw ex; } }
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()); } }
/// <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"); }
/// <summary> /// 创建UCEmrInput实例 /// </summary> private void CreateUCEmrInput() { _EmrHost.ChoosePatient(_noOfInpat); _UCEmrInput = new UCEmrInput(_EmrHost.CurrentPatientInfo, _EmrHost); _UCEmrInput.Dock = DockStyle.Fill; }