public new void Load(IEmrHost app) { m_Host = app; if (!string.IsNullOrEmpty(CurrentNoofinpat)) { CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat)); } else if (m_Host.CurrentPatientInfo != null) { CurrentInpatient = m_Host.CurrentPatientInfo; } else { return; } CurrentInpatient.ReInitializeAllProperties(); manger = new IemMainPageManger(m_Host, CurrentInpatient); info = manger.GetIemInfo(); LoadForm(); //病案室人员拥有编辑病案首页的权限(未归档病历) InitFirstPageEditFlag(null == CurrentInpatient ? "" : CurrentInpatient.NoOfFirstPage.ToString()); if (editFlag) { SetButtonsEditState(true); } }
private void MainForm_Load(object sender, EventArgs e) { manger = new IemMainPageManger(m_Host); info = manger.GetIemInfo(); util = new DrawMainPageUtil(info); pictureBox1.BackgroundImage = util.MF1; pictureBox1.BackgroundImageLayout = ImageLayout.Stretch; pictureBox2.BackgroundImage = util.MF2; pictureBox2.BackgroundImageLayout = ImageLayout.Stretch; }
/// <summary> /// 根据跳转来传来的状态值,控制此页面的显示情况 /// add by ywk /// </summary> /// <param name="operatetype"></param> private void BridFormValue(string operatetype, string diagcode, string statusid, string admitinfo, string morphoicd, string statusIDOut) { if (operatetype == "add") { this.lueOutDiag.CodeValue = ""; this.lue_inHosPatiResult.EditValue = string.Empty; this.lue_subInHosPatiResult.EditValue = string.Empty; } if (operatetype == "edit") { if (!string.IsNullOrEmpty(diagcode)) { lueOutDiag.CodeValue = diagcode; } if (!string.IsNullOrEmpty(morphoicd)) //add by jxh { lueMorpho.CodeValue = morphoicd; } if (!string.IsNullOrEmpty(statusid)) { this.lue_inHosPatiResult.EditValue = statusid; this.lue_outHosPatiResult.EditValue = statusIDOut; //如果上级页面传来的是有,就显示子项目的几个控件 add by ywk 2012年7月26日15:09:15 if (statusid == "1") { CanSeeContorl = "1"; lue_subInHosPatiResult.Visible = true; } if (!string.IsNullOrEmpty(admitinfo)) { lue_subInHosPatiResult.EditValue = admitinfo; } } //编辑状态进来。带过来几个诊断的符合情况 #region 控制诊断符合情况的复选框 IemMainPageManger IemM = new IemMainPageManger(m_App, m_App.CurrentPatientInfo); DataTable DTIemDiag = IemM.GetIemInfo().IemDiagInfo.OutDiagTable; DataTable NewDt = DTIemDiag.Clone(); DataRow[] SpliteRows = DTIemDiag.Select("DIAGNOSIS_CODE='" + diagcode + "'"); if (SpliteRows.Length > 0) { for (int i = 0; i < SpliteRows.Length; i++) { NewDt.ImportRow(SpliteRows[i]); } } #endregion } }
public new void Load(IYidanEmrHost app) { m_Host = app; if (!string.IsNullOrEmpty(CurrentNoofinpat)) { CurrentInpatient = new Common.Eop.Inpatient(Convert.ToDecimal(CurrentNoofinpat)); } else if (m_Host.CurrentPatientInfo != null) { CurrentInpatient = m_Host.CurrentPatientInfo; } else { return; } CurrentInpatient.ReInitializeAllProperties(); manger = new IemMainPageManger(m_Host, CurrentInpatient); info = manger.GetIemInfo(); LoadForm(); }
/// <summary> /// 根据跳转来传来的状态值,控制此页面的显示情况 /// add by ywk /// </summary> /// <param name="operatetype"></param> private void BridFormValue(string operatetype, string diagcode, string statusid, string admitinfo) { if (operatetype == "add") { this.lueOutDiag.CodeValue = ""; this.lue_inHosPatiResult.EditValue = string.Empty; this.lue_subInHosPatiResult.EditValue = string.Empty; } if (operatetype == "edit") { if (!string.IsNullOrEmpty(diagcode)) { lueOutDiag.CodeValue = diagcode; } if (!string.IsNullOrEmpty(statusid)) { this.lue_inHosPatiResult.EditValue = statusid; //如果上级页面传来的是有,就显示子项目的几个控件 add by ywk 2012年7月26日15:09:15 if (statusid == "1") { CanSeeContorl = "1"; lue_subInHosPatiResult.Visible = true; //labelControl1.Visible = true; //chkAdmitInfo1.Visible = true; //chkAdmitInfo2.Visible = true; //chkAdmitInfo3.Visible = true; //chkAdmitInfo4.Visible = true; } if (!string.IsNullOrEmpty(admitinfo)) { lue_subInHosPatiResult.EditValue = admitinfo; } } //编辑状态进来。带过来几个诊断的符合情况 #region 控制诊断符合情况的复选框 IemMainPageManger IemM = new IemMainPageManger(m_App, m_App.CurrentPatientInfo); DataTable DTIemDiag = IemM.GetIemInfo().IemDiagInfo.OutDiagTable; DataTable NewDt = DTIemDiag.Clone(); DataRow[] SpliteRows = DTIemDiag.Select("DIAGNOSIS_CODE='" + diagcode + "'"); if (SpliteRows.Length > 0) { for (int i = 0; i < SpliteRows.Length; i++) { NewDt.ImportRow(SpliteRows[i]); } } if (NewDt.Rows.Count > 0) { //if (NewDt.Rows[0]["AdmitInfo"].ToString() == "1") //{ // chkAdmitInfo1.Checked = true; //} //if (NewDt.Rows[0]["AdmitInfo"].ToString() == "2") //{ // chkAdmitInfo2.Checked = true; //} //if (NewDt.Rows[0]["AdmitInfo"].ToString() == "3") //{ // chkAdmitInfo3.Checked = true; //} //if (NewDt.Rows[0]["AdmitInfo"].ToString() == "4") //{ // chkAdmitInfo4.Checked = true; //} //门诊和住院 //if (NewDt.Rows[0]["MENANDINHOP"].ToString() == "0") //{ // chkMandZ0.Checked = true; //} //if (NewDt.Rows[0]["MENANDINHOP"].ToString() == "1") //{ // chkMandZ1.Checked = true; //} //if (NewDt.Rows[0]["MENANDINHOP"].ToString() == "2") //{ // chkMandZ2.Checked = true; //} //if (NewDt.Rows[0]["MENANDINHOP"].ToString() == "3") //{ // chkMandZ3.Checked = true; //} ////入院和出院 //if (NewDt.Rows[0]["INHOPANDOUTHOP"].ToString() == "0") //{ // chkRandC0.Checked = true; //} //if (NewDt.Rows[0]["INHOPANDOUTHOP"].ToString() == "1") //{ // chkRandC1.Checked = true; //} //if (NewDt.Rows[0]["INHOPANDOUTHOP"].ToString() == "2") //{ // chkRandC2.Checked = true; //} //if (NewDt.Rows[0]["INHOPANDOUTHOP"].ToString() == "3") //{ // chkRandC3.Checked = true; //} ////术前和术后 //if (NewDt.Rows[0]["BEFOREOPEANDAFTEROPER"].ToString() == "0") //{ // chkSqAndSh0.Checked = true; //} //if (NewDt.Rows[0]["BEFOREOPEANDAFTEROPER"].ToString() == "1") //{ // chkSqAndSh1.Checked = true; //} //if (NewDt.Rows[0]["BEFOREOPEANDAFTEROPER"].ToString() == "2") //{ // chkSqAndSh2.Checked = true; //} //if (NewDt.Rows[0]["BEFOREOPEANDAFTEROPER"].ToString() == "3") //{ // chkSqAndSh3.Checked = true; //} ////临床和病;理 //if (NewDt.Rows[0]["LINANDBINGLI"].ToString() == "0") //{ // chkLandB0.Checked = true; //} //if (NewDt.Rows[0]["LINANDBINGLI"].ToString() == "1") //{ // chkLandB1.Checked = true; //} //if (NewDt.Rows[0]["LINANDBINGLI"].ToString() == "2") //{ // chkLandB2.Checked = true; //} //if (NewDt.Rows[0]["LINANDBINGLI"].ToString() == "3") //{ // chkLandB3.Checked = true; //} ////入院三日内 //if (NewDt.Rows[0]["INHOPTHREE"].ToString() == "0") //{ // chkRThree0.Checked = true; //} //if (NewDt.Rows[0]["INHOPTHREE"].ToString() == "1") //{ // chkRThree1.Checked = true; //} //if (NewDt.Rows[0]["INHOPTHREE"].ToString() == "2") //{ // chkRThree2.Checked = true; //} //if (NewDt.Rows[0]["INHOPTHREE"].ToString() == "3") //{ // chkRThree3.Checked = true; //} ////放射和病理 //if (NewDt.Rows[0]["FANGANDBINGLI"].ToString() == "0") //{ // chkFandB0.Checked = true; //} //if (NewDt.Rows[0]["FANGANDBINGLI"].ToString() == "1") //{ // chkFandB1.Checked = true; //} //if (NewDt.Rows[0]["FANGANDBINGLI"].ToString() == "2") //{ // chkFandB2.Checked = true; //} //if (NewDt.Rows[0]["FANGANDBINGLI"].ToString() == "3") //{ // chkFandB3.Checked = true; //} } #endregion } }
private void FillUIInner() { #region //if (m_IemInfo.IemBasicInfo.Iem_Mainpage_NO == "") //{ // //to do 病患基本信息 //} //else //{ //出院诊断 //DataTable dataTableOper = new DataTable(); //foreach (Iem_Mainpage_Diagnosis im in m_IemInfo.IemDiagInfo) //{ // if (m_DiagInfoForm == null) // m_DiagInfoForm = new IemNewDiagInfoForm(m_App); // if (im.Diagnosis_Type_Id == 7 || im.Diagnosis_Type_Id == 8) // { // m_DiagInfoForm.IemOperInfo = im; // DataTable dataTable = m_DiagInfoForm.DataOper; // if (dataTableOper.Rows.Count == 0) // dataTableOper = dataTable.Clone(); // foreach (DataRow row in dataTable.Rows) // { // dataTableOper.ImportRow(row); // } // //dataTableOper.AcceptChanges(); // } //} //DataTable dataTableOper = m_IemInfo.IemDiagInfo.OutDiagTable;//这种取值,进行编辑后再进入娶不到值 IemMainPageManger IemM = new IemMainPageManger(m_App, m_App.CurrentPatientInfo); DataTable dataTableOper = IemM.GetIemInfo().IemDiagInfo.OutDiagTable; this.gridControl1.DataSource = null; this.gridControl1.BeginUpdate(); if (dataTableOper.Select("Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8'").Length != 0) { this.gridControl1.DataSource = dataTableOper.Select("Diagnosis_Type_Id = '7' or Diagnosis_Type_Id = '8'").CopyToDataTable(); } this.gridControl1.EndUpdate(); m_App.PublicMethod.ConvertGridDataSourceUpper(gridViewDiagnose); lueHurt_Toxicosis_Ele.CodeValue = m_IemInfo.IemDiagInfo.Hurt_Toxicosis_ElementID; txtPathologyName.Text = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_Name; txtPathologyID.Text = m_IemInfo.IemDiagInfo.Pathology_Diagnosis_ID; txtPathologySn.Text = m_IemInfo.IemDiagInfo.Pathology_Observation_Sn; txtAllergicDrug.Text = m_IemInfo.IemDiagInfo.Allergic_Drug; if (m_IemInfo.IemDiagInfo.Allergic_Flag == "1") { chkAllergic1.Checked = true; } else if (m_IemInfo.IemDiagInfo.Allergic_Flag == "2") { chkAllergic2.Checked = true; } if (m_IemInfo.IemBasicInfo.Autopsy_Flag == "1") { chkAutopsy1.Checked = true; } else if (m_IemInfo.IemBasicInfo.Autopsy_Flag == "2") { chkAutopsy2.Checked = true; } if (m_IemInfo.IemDiagInfo.BloodType == "1") { chkBlood1.Checked = true; } else if (m_IemInfo.IemDiagInfo.BloodType == "2") { chkBlood2.Checked = true; } else if (m_IemInfo.IemDiagInfo.BloodType == "3") { chkBlood3.Checked = true; } else if (m_IemInfo.IemDiagInfo.BloodType == "4") { chkBlood4.Checked = true; } else if (m_IemInfo.IemDiagInfo.BloodType == "5") { chkBlood5.Checked = true; } else if (m_IemInfo.IemDiagInfo.BloodType == "6") { chkBlood6.Checked = true; } if (m_IemInfo.IemDiagInfo.Rh == "1") { chkRH1.Checked = true; } else if (m_IemInfo.IemDiagInfo.Rh == "2") { chkRH2.Checked = true; } else if (m_IemInfo.IemDiagInfo.Rh == "3") { chkRH3.Checked = true; } else if (m_IemInfo.IemDiagInfo.Rh == "4") { chkRH4.Checked = true; } foreach (DataRow im in dataTableOper.Rows) { if (im["Diagnosis_Type_Id"].ToString() == "13") { this.lueOutDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString(); } //else if (im["Diagnosis_Type_Id"].ToString() == "2") // this.lueInDiag.CodeValue = im["Diagnosis_Code"].ToString() == "" ? "" : im["Diagnosis_Code"].ToString(); } //如果dataTableOper为0,将门诊诊断的值赋给下拉框add by ywk 2012年6月15日 13:32:01 if (dataTableOper.Rows.Count == 0 && !string.IsNullOrEmpty(m_IemInfo.IemDiagInfo.OutDiagID)) { this.lueOutDiag.CodeValue = m_IemInfo.IemDiagInfo.OutDiagID; } lueKszr.CodeValue = m_IemInfo.IemDiagInfo.Section_DirectorID; lueZrys.CodeValue = m_IemInfo.IemDiagInfo.DirectorID; lueZzys.CodeValue = m_IemInfo.IemDiagInfo.Vs_EmployeeID; lueZyys.CodeValue = m_IemInfo.IemDiagInfo.Resident_EmployeeID; lueDuty_Nurse.CodeValue = m_IemInfo.IemDiagInfo.Duty_NurseID; luejxys.CodeValue = m_IemInfo.IemDiagInfo.Refresh_EmployeeID; lueSxys.CodeValue = m_IemInfo.IemDiagInfo.InterneID; lueBmy.CodeValue = m_IemInfo.IemDiagInfo.Coding_UserID; //病案质量 if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 1) { chkMedicalQuality1.Checked = true; } if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 2) { chkMedicalQuality2.Checked = true; } if (Convertmy.ToDecimal(m_IemInfo.IemDiagInfo.Medical_Quality_Id) == 3) { chkMedicalQuality3.Checked = true; } lueZkys.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_DoctorID; lueZkhs.CodeValue = m_IemInfo.IemDiagInfo.Quality_Control_NurseID; if (!String.IsNullOrEmpty(m_IemInfo.IemDiagInfo.Quality_Control_Date)) { deZkDate.DateTime = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date); //teZkDate.Time = Convert.ToDateTime(m_IemInfo.IemDiagInfo.Quality_Control_Date); } #endregion }
private void LoadForm() { if (manger == null) { manger = new IemMainPageManger(m_Host, CurrentInpatient); } info = manger.GetIemInfo(); DeleteMetaFile(); util = new DrawMainPageUtil(info); pictureBox1.Width = GetPageWidth(); pictureBox1.Height = GetPageHeight(); pictureBox2.Width = GetPageWidth(); pictureBox2.Height = GetPageHeight(); pictureBox1.BackgroundImage = util.MF1; pictureBox2.BackgroundImage = util.MF2; pictureBox1.BackgroundImageLayout = ImageLayout.Stretch; pictureBox2.BackgroundImageLayout = ImageLayout.Stretch; ReLocationPicture(); BindParentFormCloseEvent(); if (this.Parent != null) { if (this.Parent.AccessibleName != null && this.Parent.AccessibleName.Trim() != "") //父窗体的AccessibleName不为空则表示没有编辑的权限 { simpleButton1.Visible = false; simpleButton2.Visible = false; simpleButton3.Visible = false; simpleButton4.Visible = false; simpleButton5.Visible = false; simpleButton6.Visible = false; } } Employee emp = new Employee(m_Host.User.Id); emp.ReInitializeProperties(); DataHelper help = new DataHelper(); string hoscode = help.GetConfigValueByKey("HosCode"); if (hoscode == "1") { string static_save = help.GetStatic_SaveValue(info.IemBasicInfo.NoOfInpat); if (static_save == "1") { simpleButton1.Enabled = false; simpleButton2.Enabled = false; simpleButton3.Enabled = false; simpleButton4.Enabled = false; simpleButton5.Enabled = false; simpleButton6.Enabled = false; } } if (emp.Grade.Trim() != "") { DoctorGrade grade = (DoctorGrade)Enum.Parse(typeof(DoctorGrade), emp.Grade); if (grade == DoctorGrade.Nurse) { simpleButton3.Enabled = false; simpleButton4.Enabled = false; simpleButton5.Enabled = false; simpleButton6.Enabled = false; } } else { simpleButton1.Enabled = false; simpleButton2.Enabled = false; simpleButton3.Enabled = false; simpleButton4.Enabled = false; simpleButton5.Enabled = false; simpleButton6.Enabled = false; } }