/// <summary> /// 构造函数 /// </summary> /// <param name="Pid">住院号</param> public FrmMedicalRecord(string Pid, string id) { InitializeComponent(); pid = Pid; //诊断 UcCodeDiagnose ucCodeDiagnose = new UcCodeDiagnose(pid); tabControlPanel9.Controls.Add(ucCodeDiagnose); ucCodeDiagnose.Dock = DockStyle.Fill; App.UsControlStyle(ucCodeDiagnose); //手术 UcCodeOperation ucCodeOperation = new UcCodeOperation(pid); tabControlPanel6.Controls.Add(ucCodeOperation); ucCodeOperation.Dock = DockStyle.Fill; App.UsControlStyle(ucCodeOperation); bool sqc = false; bool fgs = false; InPatientInfo inPatient = DataInit.GetInpatientInfoByPid(id); ucDocs fq = new ucDocs(inPatient, "Y"); tabControlPanel1.Controls.Add(fq); fq.Dock = DockStyle.Fill; BLL_DOCTOR.HisInStance.医嘱单.frmYzd frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.frmYzd(inPatient, sqc, fgs); tabControlPanel2.Controls.Add(frm); frm.Dock = DockStyle.Fill; //App.UsControlStyle(frm); BLL_DOCTOR.HisInStance.LIS.UcLis uc = new Base_Function.BLL_DOCTOR.HisInStance.LIS.UcLis(inPatient, sqc, fgs); tabControlPanel3.Controls.Add(uc); uc.Dock = DockStyle.Fill; //App.UsControlStyle(uc); BLL_DOCTOR.HisInStance.PACS.ucPasc ucp = new Base_Function.BLL_DOCTOR.HisInStance.PACS.ucPasc(inPatient, sqc, fgs); tabControlPanel4.Controls.Add(ucp); ucp.Dock = DockStyle.Fill; DataInit.O_Edite = false; DataInit.O_UpOrNext = false; DataInit.D_UpOrNext = false; DataInit.D_Edite = false; }
private void frmQualityChild_Load(object sender, EventArgs e) { try { DataInit.CurrentPatient = inPatient; //自动质控界面lable赋值 lblInCount.Text = inPatient.InHospital_count.ToString() != "" ? inPatient.InHospital_count.ToString() : ""; lblPName.Text = inPatient.Patient_Name.ToString() != "" ? inPatient.Patient_Name.ToString() : ""; //lblSex.Text = DataInit.StringFormat(inPatient.Gender_Code);//DataInit方法与性别字典中的性别code对应不上 if (!string.IsNullOrEmpty(inPatient.Gender_Code)) { lblSex.Text = inPatient.Gender_Code.ToString() == "1" ? "男" : "女"; } if (!string.IsNullOrEmpty(inPatient.Age) && !string.IsNullOrEmpty(inPatient.Age_unit)) { lblAge.Text = inPatient.Age.ToString() + inPatient.Age_unit.ToString(); } lblSectionName.Text = inPatient.Section_Name.ToString() != "" ? inPatient.Section_Name.ToString() : ""; //if (inPatient.Pay_Manager != null) //{ if (!string.IsNullOrEmpty(inPatient.Pay_Manager)) { // string strs = "select name from t_data_code where type='70' and enable='Y' and code='" + inPatient.Pay_Manager + "'"; lblPay.Text = inPatient.Pay_Manager;//App.ReadSqlVal(strs, 0, "name"); } //} lblQPperson.Text = qPerson; lblQsection.Text = qSection; lblQTime.Text = qTime; //病历评分,"发送评分通知显示",“整改通知不显示” if (type == "M") { btnSendResult.Visible = false; btnNotice.Enabled = false; } else if (type == "H") { btnFinish.Visible = false; } else if (type == "D") { btnNotice.Enabled = false; chkKouFen.Enabled = false; } else if (type == "S" || type == "E") //科级和终末需要判断是否有未完成的整改通知流程,如果有则只能暂存,确定按钮不可用 { string id = ""; id = App.ReadSqlVal("select id from t_amendments_info t where t.patient_id='" + inPatient.Id.ToString() + "' and t.type='" + type + "' and t.state_flag<>4 ", 0, "id"); if (!string.IsNullOrEmpty(id)) { btnFinish.Enabled = false; } } if (isRead == "Y")//仅限查看模式,自动质控只读、扣分项全选不可用、按钮不可用 { panel_Q.Enabled = false; dgvAutomaticScoring.ReadOnly = true; chkKouFen.Enabled = false; } //手动质控页签 ucManualDoc fq = new ucManualDoc(inPatient, isRead); fq.Dock = DockStyle.Fill; fq.DelScore += new ucManualDoc.RefEventHandler(DelScore); fq.AddMark += new ucManualDoc.RefEventHandlerAdd(AddMarkData); fq.DelMark += new ucManualDoc.RefEventHandlerDel(DelMark); panel_Main.Controls.Add(fq); dgvKouFen = this.Controls.Find("dgvKouFen", true)[0] as DataGridView; cmbLevel.SelectedIndex = 0; //绑定自动质控页签dgv数据 dgvAutomaticScoringShow(); SetKouFenHuiZong(); DelScore(); BLL_DOCTOR.HisInStance.医嘱单.ucYZ frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.ucYZ(inPatient); tabControlPanel4.Controls.Add(frm); frm.Dock = DockStyle.Fill; //App.UsControlStyle(frm); BLL_DOCTOR.HisInStance.LIS.UcLis uc = new Base_Function.BLL_DOCTOR.HisInStance.LIS.UcLis(inPatient, sqc, fgs); tabControlPanel5.Controls.Add(uc); uc.Dock = DockStyle.Fill; //App.UsControlStyle(uc); BLL_DOCTOR.HisInStance.PACS.ucPasc ucp = new Base_Function.BLL_DOCTOR.HisInStance.PACS.ucPasc(inPatient, sqc, fgs); tabControlPanel6.Controls.Add(ucp); uc.Dock = DockStyle.Fill; //App.UsControlStyle(ucp); if (type == "D") { tabControl1.Tabs.Remove(tabItem2); this.dgvAutomaticScoring.CellPainting -= new System.Windows.Forms.DataGridViewCellPaintingEventHandler(this.dgvAutomaticScoring_CellPainting); } } catch { this.Dispose(); this.Close(); App.Msg("加载病人数据错误,请检查病人相关数据!"); } }