/// <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 frm_Pasc_Load(object sender, EventArgs e) { App.LisResault = ""; App.His_Yz_Resault = ""; if (pt != null) { lblName.Text = pt.Patient_Name; if (pt.Gender_Code == "0") { lblSex.Text = "男"; } else { lblSex.Text = "女"; } lblAge.Text = pt.Age.ToString(); if (pt.Birthday != "") { lblBirthday.Text = Convert.ToDateTime(pt.Birthday).ToString("yyyy-MM-dd"); } lblSickNo.Text = pt.PId; //病案号 if (App.UserAccount.CurrentSelectRole.Role_type == "O") { btnOutPutYxxbx.Visible = false; btnOutPutYxxyj.Visible = false; } } DataSet ds = App.GetDataSet("select * from t_pasc_data where ZYH='" + pt.PId + "'"); this.tabControl1.Tabs.Clear(); string yxh; string jch; string shys; string bgys; string sqks; string sqbw; string sqys; string jcff; string yxxbx; string yxxyj; string sqsj; string jclx; if (ds != null) { sqsj = string.Empty; for (int i = 0; i < ds.Tables[0].Rows.Count; i++) { yxh = ds.Tables[0].Rows[i]["YXH"].ToString(); jch = ds.Tables[0].Rows[i]["JCH"].ToString(); shys = ds.Tables[0].Rows[i]["SHYD"].ToString(); bgys = ds.Tables[0].Rows[i]["BGYS"].ToString(); sqks = ds.Tables[0].Rows[i]["SQKS"].ToString(); sqbw = ds.Tables[0].Rows[i]["JCBW"].ToString(); sqys = ds.Tables[0].Rows[i]["SQYS"].ToString(); jcff = ds.Tables[0].Rows[i]["METHOD"].ToString(); yxxbx = ds.Tables[0].Rows[i]["EYESEE"].ToString(); yxxyj = ds.Tables[0].Rows[i]["ZDBG"].ToString(); //sqsj = ds.Tables[0].Rows[i]["JCSJ"].ToString(); jclx = ds.Tables[0].Rows[i]["JCLX"].ToString(); if (sqsj.Trim() != "") { sqsj = Convert.ToDateTime(sqsj).ToString("yyyy-MM-dd"); } ucPascInfo pascinfo = new ucPascInfo(yxh, jch, shys, bgys, sqks, sqbw, sqys, jcff, yxxbx, yxxyj, sqsj, jclx, pt.PId); pascinfo.Dock = DockStyle.Fill; DevComponents.DotNetBar.TabControlPanel tabctpnDoc = new DevComponents.DotNetBar.TabControlPanel(); tabctpnDoc.AutoScroll = true; DevComponents.DotNetBar.TabItem page = new DevComponents.DotNetBar.TabItem(); page.Text = jch + "--" + jclx; tabctpnDoc.TabItem = page; tabctpnDoc.Dock = DockStyle.Fill; page.AttachedControl = tabctpnDoc; page.Tag = pascinfo; tabctpnDoc.Controls.Add(pascinfo); this.tabControl1.Controls.Add(tabctpnDoc); //this.tabControl1.Tabs.Add(page); this.tabControl1.Refresh(); this.tabControl1.SelectedTab = page; } if (arg == false) { string msg = ""; BLL_DOCTOR.HisInStance.LIS.UcLis uc = new Base_Function.BLL_DOCTOR.HisInStance.LIS.UcLis(pt,msg); tabControlPanel9.Controls.Add(uc); uc.Dock = DockStyle.Fill; BLL_DOCTOR.HisInStance.医嘱单.frmYzd frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.frmYzd(pt, msg); tabControlPanel6.Controls.Add(frm); frm.Dock = DockStyle.Fill; btn_ok.Enabled = false; } else { BLL_DOCTOR.HisInStance.LIS.UcLis uc = new Base_Function.BLL_DOCTOR.HisInStance.LIS.UcLis(pt); tabControlPanel9.Controls.Add(uc); uc.Dock = DockStyle.Fill; BLL_DOCTOR.HisInStance.医嘱单.frmYzd frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.frmYzd(pt); tabControlPanel6.Controls.Add(frm); frm.Dock = DockStyle.Fill; btn_ok.Enabled = true; } } }
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.医嘱单.frmYzd frm = new Base_Function.BLL_DOCTOR.HisInStance.医嘱单.frmYzd(inPatient, sqc, fgs); 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("加载病人数据错误,请检查病人相关数据!"); } }