using AIMSBLL; using AIMSExtension; using DevComponents.DotNetBar.Controls; using DrawGraph; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace AIMS.OperationAanesthesia { public partial class frmOpeRecoverInfo : Form { /// /// 手术记录 /// public OperationRecord _record; public frmOpeRecoverInfo() { InitializeComponent(); } private void frmOpeRecoverInfo_Load(object sender, EventArgs e) { button1.Visible = true; if (_record.OpeRecoverInInfo != null) { txtConsciousness.Text = _record.OpeRecoverInInfo.Consciousness; txtVenousPatency.Text = _record.OpeRecoverInInfo.VenousPatency; txtSkin.Text = _record.OpeRecoverInInfo.Skin; txtTemp.Text = _record.OpeRecoverInInfo.Temp; txtRespiratorySystem.Text = _record.OpeRecoverInInfo.RespiratorySystem; txtIiquid.Text = _record.OpeRecoverInInfo.Iiquid; txtInducedFlow.Text = _record.OpeRecoverInInfo.InducedFlow; txtBlood.Text = _record.OpeRecoverInInfo.Blood;//血浆 txtOutOther.Text = _record.OpeRecoverInInfo.OutOther; //引流量 txtUrineVolume.Text = _record.OpeRecoverInInfo.UrineVolume; //尿量 } if (_record.OpeRecoverOutInfo != null) { cboHD.Text = _record.OpeRecoverOutInfo.AldteteActivity; cboHX.Text = _record.OpeRecoverOutInfo.AldteteBreathing; cboXY.Text = _record.OpeRecoverOutInfo.AldteteBloodPressure; cboYS1.Text = _record.OpeRecoverOutInfo.AldteteConsciousness; cboSPO2.Text = _record.OpeRecoverOutInfo.AldteteSPO2; if (_record.OpeRecoverOutInfo.PACUAldteteScore != null) txtAndree.Text = _record.OpeRecoverOutInfo.PACUAldteteScore.ToString(); cboJSHF.Text = _record.OpeRecoverOutInfo.MuscleRelaxation;// cboTT.Text = _record.OpeRecoverOutInfo.Pain; txtT.Text = _record.OpeRecoverOutInfo.T; txtDrainageIdentification.Text = _record.OpeRecoverOutInfo.DrainageIdentification; //红细胞 txtDrainagePosition.Text = _record.OpeRecoverOutInfo.DrainagePosition;//平衡液 txtLeftPupil.Text = _record.OpeRecoverOutInfo.LeftPupil;//胶体液 txtRightPupil.Text = _record.OpeRecoverOutInfo.RightPupil; //生理盐水 txtSkin2.Text = _record.OpeRecoverOutInfo.Skin; txtVenousPatency2.Text = _record.OpeRecoverOutInfo.VenousPatency; txtDrainageName.Text = _record.OpeRecoverOutInfo.DrainageName; txtBreathSounds.Text = _record.OpeRecoverOutInfo.BreathSounds; txtReflex.Text = _record.OpeRecoverOutInfo.Reflex; txtNausea.Text = _record.OpeRecoverOutInfo.Nausea; txtOrientationAbility.Text = _record.OpeRecoverOutInfo.OrientationAbility; txtIndexing.Text = _record.OpeRecoverOutInfo.Indexing; txtPressureSite.Text = _record.OpeRecoverOutInfo.PressureSite; txtRemark.Text = _record.OpeRecoverOutInfo.Remark; txtHoarseness.Text = _record.OpeRecoverOutInfo.Hoarseness; if (_record.OpeRecoverOutInfo.State == "病房") { radioButton1.Checked = true; } else if (_record.OpeRecoverOutInfo.State == "ICU") { radioButton3.Checked = true; } else if (_record.OpeRecoverOutInfo.State == "急诊") { radioButton4.Checked = true; } else if (_record.OpeRecoverOutInfo.State == "离院") { radioButton5.Checked = true; } else if (_record.OpeRecoverOutInfo.State == "死亡") { rdbSW.Checked = true; } else if (_record.OpeRecoverOutInfo.State == "手术间") { radioButton6.Checked = true; } } } /// /// 活动 /// int AldteteActivity = 0; /// /// 呼吸 /// int AldteteBreathing = 0; /// /// 血压 /// int AldteteBloodPressure = 0; /// /// 意识 /// int AldteteConsciousness = 0; /// /// SPO2 /// int AldteteSPO2 = 0; /// /// Aldtete评分 /// /// /// private void cboHD_SelectedIndexChanged(object sender, EventArgs e) { if (cboHD.Text != null && cboHD.Text.Trim() != "") AldteteActivity = GetSourcesDate(cboHD).Value; if (cboHX.Text != null && cboHX.Text.Trim() != "") AldteteBreathing = GetSourcesDate(cboHX).Value; if (cboXY.Text != null && cboXY.Text.Trim() != "") AldteteBloodPressure = GetSourcesDate(cboXY).Value; if (cboYS1.Text != null && cboYS1.Text.Trim() != "") AldteteConsciousness = GetSourcesDate(cboYS1).Value; if (cboSPO2.Text != null && cboSPO2.Text.Trim() != "") AldteteSPO2 = GetSourcesDate(cboSPO2).Value; txtAndree.Text = (AldteteActivity + AldteteBreathing + AldteteBloodPressure + AldteteConsciousness + AldteteSPO2).ToString(); } public int? GetSourcesDate(ComboBox SelCombo) { int? res = null; string text = SelCombo.Text.Substring(0, 4); if (text.Contains("0")) { res = 0; } if (text.Contains("1")) { res = 1; } if (text.Contains("2")) { res = 2; } if (text.Contains("3")) { res = 3; } return res; } /// /// 关闭时保存 /// /// /// private void btExit_Click(object sender, EventArgs e) { try { if (_record.OpeRecoverInInfo != null) { _record.OpeRecoverInInfo.PatientId = _record.PatientId; _record.OpeRecoverInInfo.ApplyId = _record.OperationApplyId; _record.OpeRecoverInInfo.OperationRecordId = _record.Id; _record.OpeRecoverInInfo.Consciousness = txtConsciousness.Text; _record.OpeRecoverInInfo.VenousPatency = txtVenousPatency.Text; _record.OpeRecoverInInfo.Skin = txtSkin.Text; _record.OpeRecoverInInfo.Temp = txtTemp.Text; _record.OpeRecoverInInfo.RespiratorySystem = txtRespiratorySystem.Text; _record.OpeRecoverInInfo.Iiquid = txtIiquid.Text; _record.OpeRecoverInInfo.InducedFlow = txtInducedFlow.Text; _record.OpeRecoverInInfo.Blood = txtBlood.Text;//血浆 _record.OpeRecoverInInfo.OutOther = txtOutOther.Text; //引流量 _record.OpeRecoverInInfo.UrineVolume = txtUrineVolume.Text; //尿量 _record.OpeRecoverInInfo.OperatorId = PublicMethod.OperatorId; _record.OpeRecoverInInfo.OperatorTime = DateTime.Now; if (_record.OpeRecoverInInfo.Id == null) { _record.OpeRecoverInInfo.Id = BOperationRecoverInInfo.Insert(_record.OpeRecoverInInfo); } else { BOperationRecoverInInfo.Update(_record.OpeRecoverInInfo); } } if (_record.OpeRecoverOutInfo != null) { _record.OpeRecoverOutInfo.PatientId = _record.PatientId; _record.OpeRecoverOutInfo.ApplyId = _record.OperationApplyId; _record.OpeRecoverOutInfo.OperationRecordId = _record.Id; if (cboHD.Text.Trim() != "") _record.OpeRecoverOutInfo.AldteteActivity = cboHD.Text; if (cboHX.Text.Trim() != "") _record.OpeRecoverOutInfo.AldteteBreathing = cboHX.Text; if (cboXY.Text.Trim() != "") _record.OpeRecoverOutInfo.AldteteBloodPressure = cboXY.Text; if (cboYS1.Text.Trim() != "") _record.OpeRecoverOutInfo.AldteteConsciousness = cboYS1.Text; if (cboSPO2.Text.Trim() != "") _record.OpeRecoverOutInfo.AldteteSPO2 = cboSPO2.Text; if (txtAndree.Text.Trim() != "") _record.OpeRecoverOutInfo.PACUAldteteScore = int.Parse(txtAndree.Text); _record.OpeRecoverOutInfo.MuscleRelaxation = cboJSHF.Text; _record.OpeRecoverOutInfo.Pain = cboTT.Text; _record.OpeRecoverOutInfo.T = txtT.Text; _record.OpeRecoverOutInfo.DrainageIdentification = txtDrainageIdentification.Text; //红细胞 _record.OpeRecoverOutInfo.DrainagePosition = txtDrainagePosition.Text;//平衡液 _record.OpeRecoverOutInfo.LeftPupil = txtLeftPupil.Text;//胶体液 _record.OpeRecoverOutInfo.RightPupil = txtRightPupil.Text; //生理盐水 _record.OpeRecoverOutInfo.Skin = txtSkin2.Text; _record.OpeRecoverOutInfo.VenousPatency = txtVenousPatency2.Text; _record.OpeRecoverOutInfo.DrainageName = txtDrainageName.Text; _record.OpeRecoverOutInfo.BreathSounds = txtBreathSounds.Text; _record.OpeRecoverOutInfo.Reflex = txtReflex.Text; _record.OpeRecoverOutInfo.Nausea = txtNausea.Text; _record.OpeRecoverOutInfo.OrientationAbility = txtOrientationAbility.Text; _record.OpeRecoverOutInfo.Indexing = txtIndexing.Text; _record.OpeRecoverOutInfo.PressureSite = txtPressureSite.Text; _record.OpeRecoverOutInfo.Remark = txtRemark.Text; _record.OpeRecoverOutInfo.Hoarseness = txtHoarseness.Text; if (radioButton1.Checked == true) { _record.OpeRecoverOutInfo.State = "病房"; } else if (radioButton3.Checked == true) { // _record.OpeRecoverOutInfo.State = "计划入ICU"; _record.OpeRecoverOutInfo.State = "ICU"; } else if (radioButton4.Checked == true) { _record.OpeRecoverOutInfo.State = "急诊"; } else if (radioButton5.Checked == true) { _record.OpeRecoverOutInfo.State = "离院"; } else if (rdbSW.Checked == true) { _record.OpeRecoverOutInfo.State = "死亡"; } else if (radioButton6.Checked == true) { _record.OpeRecoverOutInfo.State = "手术间"; } _record.OpeRecoverOutInfo.OperatorId = PublicMethod.OperatorId; _record.OpeRecoverOutInfo.OperatorTime = DateTime.Now; if (_record.OpeRecoverOutInfo.Id == null) { _record.OpeRecoverOutInfo.Id = BOperationRecoverOutInfo.Insert(_record.OpeRecoverOutInfo); } else { BOperationRecoverOutInfo.Update(_record.OpeRecoverOutInfo); } } } catch (Exception exp) { PublicMethod.WriteLog(exp, ""); return; } } /// /// 保存 /// /// /// private void frmOutPACUConditionSYD_FormClosing(object sender, FormClosingEventArgs e) { btExit_Click(null, null); } private void button1_Click(object sender, EventArgs e) { if (txtConsciousness.Text == "") txtConsciousness.Text = "清醒";// if (txtVenousPatency.Text == "") txtVenousPatency.Text = "正常";//_record.OpeRecoverInInfo.VenousPatency; if (txtSkin.Text == "") txtSkin.Text = "未见异常";//_record.OpeRecoverInInfo.Skin; if (txtTemp.Text == "") txtTemp.Text = "-";//_record.OpeRecoverInInfo.Temp; if (txtRespiratorySystem.Text == "") txtRespiratorySystem.Text = "自主呼吸";//_record.OpeRecoverInInfo.RespiratorySystem; if (txtIiquid.Text == "") txtIiquid.Text = "-";//_record.OpeRecoverInInfo.Iiquid; if (txtInducedFlow.Text == "") txtInducedFlow.Text = "-";//_record.OpeRecoverInInfo.InducedFlow; if (txtT.Text == "") txtT.Text = "-";//_record.OpeRecoverOutInfo.T; if (txtDrainageIdentification.Text == "") txtDrainageIdentification.Text = "-";//_record.OpeRecoverOutInfo.DrainageIdentification; //红细胞 if (txtDrainagePosition.Text == "") txtDrainagePosition.Text = "-";//_record.OpeRecoverOutInfo.DrainagePosition;//平衡液 if (txtLeftPupil.Text == "") txtLeftPupil.Text = "-";//_record.OpeRecoverOutInfo.LeftPupil;//胶体液 if (txtRightPupil.Text == "") txtRightPupil.Text = "-";//_record.OpeRecoverOutInfo.RightPupil; //生理盐水 if (txtBlood.Text == "") txtBlood.Text = "-";//_record.OpeRecoverInInfo.Blood;//血浆 if (txtOutOther.Text == "") txtOutOther.Text = "-";//_record.OpeRecoverInInfo.OutOther; //引流量 if (txtUrineVolume.Text == "") txtUrineVolume.Text = "-";//_record.OpeRecoverInInfo.UrineVolume; //尿量 if (txtSkin2.Text == "") txtSkin2.Text = "-";//_record.OpeRecoverOutInfo.Skin; if (txtVenousPatency2.Text == "") txtVenousPatency2.Text = "正常";//_record.OpeRecoverOutInfo.VenousPatency; if (txtDrainageName.Text == "") txtDrainageName.Text = "无";//_record.OpeRecoverOutInfo.DrainageName; if (txtBreathSounds.Text == "") txtBreathSounds.Text = "正常";//_record.OpeRecoverOutInfo.BreathSounds; if (txtReflex.Text == "") txtReflex.Text = "正常";//_record.OpeRecoverOutInfo.Reflex; if (txtNausea.Text == "") txtNausea.Text = "无";//_record.OpeRecoverOutInfo.Nausea; if (txtOrientationAbility.Text == "") txtOrientationAbility.Text = "否";//_record.OpeRecoverOutInfo.OrientationAbility; if (txtIndexing.Text == "") txtIndexing.Text = "无";//_record.OpeRecoverOutInfo.Indexing; if (txtPressureSite.Text == "") txtPressureSite.Text = "无";//_record.OpeRecoverOutInfo.PressureSite; if (txtRemark.Text == "") txtRemark.Text = "-";//_record.OpeRecoverOutInfo.Remark; if (txtHoarseness.Text == "") txtHoarseness.Text = "否";//_record.OpeRecoverOutInfo.Hoarseness; if (cboHD.Text == "") cboHD.Text = "2分-自主或遵嘱活动四肢和抬头"; if (cboHX.Text == "") cboHX.Text = "2分-能深呼吸和有效咳嗽,呼吸频率和幅度正常"; if (cboXY.Text == "") cboXY.Text = "2分-麻醉前±20%以内"; if (cboYS1.Text == "") cboYS1.Text = "2分-完全清醒(准确回答)"; if (cboSPO2.Text == "") cboSPO2.Text = "2分-呼吸空气SpO2≥92%"; if (cboJSHF.Text == "") cboJSHF.Text = "Ⅴ级 肌力正常,运动自如"; if (cboTT.Text == "") cboTT.Text = "0分-无疼痛"; radioButton1.Checked = true; } } }