From 4b4dc788f0bbef301b254ef75d16fcc704f5e234 Mon Sep 17 00:00:00 2001 From: leomo Date: Sat, 15 Oct 2022 23:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=99=A8=E6=A2=B0=E6=B8=85=E7=82=B9=E5=8D=95?= =?UTF-8?q?=E9=BA=BB=E9=86=89=E8=AE=B0=E5=BD=95=E5=8D=95=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=BA=90=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AnasRecordBill/frmAnasRecordBill.cs | 8 +- .../AnasRecordBill/frmAnasRecordInstrument.cs | 2 + .../AnasRecordBill/frmOperationInfoNew.cs | 1 + .../oldSystemCode/PublicToDoument.cs | 10 +- AIMS/OremrUserControl/PrescriptionDocument.cs | 3 +- AIMSEntity/DAL/Extension/DOperationRecord.cs | 6 +- AIMSEntity/Extensions/ParameterList.cs | 21 + AIMSExtension/AIMSExtension.csproj | 1 + AIMSExtension/JsonTextForDoc.cs | 16 + DrawGraph/AreaManage/DBManage.cs | 8 +- DrawGraph/AreaManage/DrugsManage.cs | 4 +- DrawGraph/AreaManage/OperationRecord.cs | 57 +- .../OperationRecordInstrumentList.cs | 824 ++++++++++- DrawGraph/AreaManage/OperationRecordOld.cs | 1293 +++++++++++++++++ DrawGraph/AreaManage/SapManage.cs | 2 +- DrawGraph/AreaManage/TempDataManage.cs | 50 +- DrawGraph/DrawGraph.csproj | 1 + 17 files changed, 2174 insertions(+), 133 deletions(-) create mode 100644 AIMSExtension/JsonTextForDoc.cs create mode 100644 DrawGraph/AreaManage/OperationRecordOld.cs diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs index f1ae810..82160ff 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs @@ -76,7 +76,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void frmAnasRecordBillNew_Load(object sender, EventArgs e) { //系统演示 收费功能 - if (PublicMethod.OperatorNo=="admin") + if (PublicMethod.OperatorNo == "admin") { btnChage.Visible = true; } @@ -643,7 +643,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } if (Inevent != null) { - BOperationRecord.Update("InRoomTime=@InRoom,OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.HasValue ? (object)_record.InRoomTime.Value : (object)DateTime.Now, "@OperationBegin", _record.OperationBeginTime.HasValue ? (object)_record.OperationBeginTime.Value : (object)DBNull.Value, "@OperationEnd", _record.OperationEndTime.HasValue ? (object)_record.OperationEndTime.Value : (object)DBNull.Value, "@OutRoom", _record.OutRoomTime.HasValue ? (object)_record.OutRoomTime.Value : (object)DBNull.Value, "@id", _record.Id)); + BOperationRecord.Update("InRoomTime=@InRoom,AnesthesiaBeginTime=@AnesthesiaBeginTime,OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,AnesthesiaEndTime=@AnesthesiaEndTime,OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.HasValue ? (object)_record.InRoomTime.Value : (object)DateTime.Now, "@AnesthesiaBeginTime", _record.AnesthesiaBeginTime.HasValue ? (object)_record.AnesthesiaBeginTime.Value : (object)DBNull.Value, "@OperationBegin", _record.OperationBeginTime.HasValue ? (object)_record.OperationBeginTime.Value : (object)DBNull.Value, "@OperationEnd", _record.OperationEndTime.HasValue ? (object)_record.OperationEndTime.Value : (object)DBNull.Value, "@AnesthesiaEndTime", _record.AnesthesiaEndTime.HasValue ? (object)_record.AnesthesiaEndTime.Value : (object)DBNull.Value, "@OutRoom", _record.OutRoomTime.HasValue ? (object)_record.OutRoomTime.Value : (object)DBNull.Value, "@id", _record.Id)); } } } @@ -1895,9 +1895,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } } private void btnChage_Click(object sender, EventArgs e) - { + { frmChargRecordPrint frmchargRecord = new frmChargRecordPrint(_record); - frmchargRecord.TemplateType = "麻醉"; + frmchargRecord.TemplateType = "麻醉"; frmchargRecord.Show(); frmchargRecord.BringToFront(); } diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs index ab220ff..a28b680 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs @@ -1721,6 +1721,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (templateManage != null) { _record.InstrumentList.ApplianceRecordList = GetApplianceRecord(); + _record.InstrumentList.JsonTextData = PublicToDoument.SerializeControl(panel18, _record, new List()); } mPanes = new List(); UpPanes = new List(); @@ -1843,6 +1844,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (templateManage != null) { _record.InstrumentList.ApplianceRecordList = GetApplianceRecord(); + _record.InstrumentList.JsonTextData = PublicToDoument.SerializeControl(panel18, _record, new List()); } try { diff --git a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs index ebda639..14160ee 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew.cs @@ -407,6 +407,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI OPInfo.AnesthesiaMethodChangeTime = dtpTime.Value; } + OPInfo.OperatorId = PublicMethod.OperatorName; if (OPInfo.Id == null) { OPInfo.Id = BOperationRecordInfo.Insert(OPInfo); diff --git a/AIMS/OperationDoing/oldSystemCode/PublicToDoument.cs b/AIMS/OperationDoing/oldSystemCode/PublicToDoument.cs index c12ae9f..e7898ba 100644 --- a/AIMS/OperationDoing/oldSystemCode/PublicToDoument.cs +++ b/AIMS/OperationDoing/oldSystemCode/PublicToDoument.cs @@ -318,13 +318,5 @@ namespace AIMS.OperationDoing.AnasRecordBill } } } - - public class JsonTextForDoc - { - public string Id { get; set; } - public string Value { get; set; } - public string Type { get; set; } - public string Tag { get; set; } - public string Text { get; set; } - } + } \ No newline at end of file diff --git a/AIMS/OremrUserControl/PrescriptionDocument.cs b/AIMS/OremrUserControl/PrescriptionDocument.cs index 2a1c5d7..a6f8a66 100644 --- a/AIMS/OremrUserControl/PrescriptionDocument.cs +++ b/AIMS/OremrUserControl/PrescriptionDocument.cs @@ -1,4 +1,5 @@ -using AIMSModel; +using AIMSExtension; +using AIMSModel; using DrawGraph; using System; using System.Collections.Generic; diff --git a/AIMSEntity/DAL/Extension/DOperationRecord.cs b/AIMSEntity/DAL/Extension/DOperationRecord.cs index bde2133..95e7f31 100644 --- a/AIMSEntity/DAL/Extension/DOperationRecord.cs +++ b/AIMSEntity/DAL/Extension/DOperationRecord.cs @@ -69,11 +69,9 @@ namespace AIMSDAL + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='出室' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OutRoomTime, " + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术开始' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationBeginTime, " + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术结束' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationEndTime, " + - "od.OperationLevelName, od.OpeAfterMode, od.SpecialSituation," + - "od.PunctureBodyPosition, od.PuncturePosition, od.CatheterDepth,od.NeedleSize, od.NeedleDirection, od.AnaesthesiaPlane," + - "od.AnaesthesiaEffect, od.DiagnoseInfoName, od.OperationInfoName,od.AnaesthesiaMethodName, od.OperationCutTypeName," + + " od.DiagnoseInfoName, od.OperationInfoName,od.AnaesthesiaMethodName, od.OperationCutTypeName," + "od.OperationBodyPositionName, od.OperationPositionName, od.OperationDoctor,od.Assistant, od.AnesthesiaDoctor, od.Nurse,od.Nurse2," + - "od.OperatorNo,od.OperatorName,od.OperateDate,od.Remarks,od.State,OperationDoctorId ,[AssistantId] ,[AnesthesiaDoctorId] ,[InstrumentNurseId],[TourNurseId],DiagnoseInfoId,OperationInfoId,AnaesthesiaMethodId,OrtherDoctor,OrtherDoctorId,OperationPositionId,OperationBodyPositionId,ASALevel,SpecialCase,Fasting,BloodType FROM V_OperationDoing od WHERE od.PatientId=" + PatientId + " and od.RecoverId='" + TypeId + "'"; + "od.OperatorNo,od.OperatorName,od.OperateDate,od.State,OperationDoctorId ,[AssistantId] ,[AnesthesiaDoctorId] ,[InstrumentNurseId],[TourNurseId],DiagnoseInfoId,OperationInfoId,AnaesthesiaMethodId,OrtherDoctor,OrtherDoctorId,OperationPositionId,OperationBodyPositionId,ASALevel,SpecialCase,Fasting,BloodType FROM V_OperationDoing od WHERE od.PatientId=" + PatientId + " and od.RecoverId='" + TypeId + "'"; return HelperDB.DbHelperSQL.GetDataTable(strSql); } diff --git a/AIMSEntity/Extensions/ParameterList.cs b/AIMSEntity/Extensions/ParameterList.cs index eca40b6..c4493f2 100644 --- a/AIMSEntity/Extensions/ParameterList.cs +++ b/AIMSEntity/Extensions/ParameterList.cs @@ -48,6 +48,27 @@ namespace AIMSModel this.Add(parameterName5, parameterValue5); this.Add(parameterName6, parameterValue6); } + public ParameterList(string parameterName1, object parameterValue1, string parameterName2, object parameterValue2,string parameterName3, object parameterValue3, string parameterName4, object parameterValue4, string parameterName5, object parameterValue5, string parameterName6, object parameterValue6, string parameterName7, object parameterValue7 ) + { + this.Add(parameterName1, parameterValue1); + this.Add(parameterName2, parameterValue2); + this.Add(parameterName3, parameterValue3); + this.Add(parameterName4, parameterValue4); + this.Add(parameterName5, parameterValue5); + this.Add(parameterName6, parameterValue6); + this.Add(parameterName7, parameterValue7); + } + public ParameterList(string parameterName1, object parameterValue1, string parameterName2, object parameterValue2,string parameterName3, object parameterValue3, string parameterName4, object parameterValue4, string parameterName5, object parameterValue5, string parameterName6, object parameterValue6, string parameterName7, object parameterValue7, string parameterName8, object parameterValue8) + { + this.Add(parameterName1, parameterValue1); + this.Add(parameterName2, parameterValue2); + this.Add(parameterName3, parameterValue3); + this.Add(parameterName4, parameterValue4); + this.Add(parameterName5, parameterValue5); + this.Add(parameterName6, parameterValue6); + this.Add(parameterName7, parameterValue7); + this.Add(parameterName8, parameterValue8); + } } /// /// 递归查询的方式,Parent:查询实体的同时也查询实体的外键属性;Child:查询实体的同时也查询子实体集合;None只查询实体 diff --git a/AIMSExtension/AIMSExtension.csproj b/AIMSExtension/AIMSExtension.csproj index 70eceb6..e25a1eb 100644 --- a/AIMSExtension/AIMSExtension.csproj +++ b/AIMSExtension/AIMSExtension.csproj @@ -125,6 +125,7 @@ + diff --git a/AIMSExtension/JsonTextForDoc.cs b/AIMSExtension/JsonTextForDoc.cs new file mode 100644 index 0000000..39c7b73 --- /dev/null +++ b/AIMSExtension/JsonTextForDoc.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace AIMSExtension +{ + public class JsonTextForDoc + { + public string Id { get; set; } + public string Value { get; set; } + public string Type { get; set; } + public string Tag { get; set; } + public string Text { get; set; } + } +} diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs index 45e9b94..f98d833 100644 --- a/DrawGraph/AreaManage/DBManage.cs +++ b/DrawGraph/AreaManage/DBManage.cs @@ -126,10 +126,10 @@ namespace DrawGraph { i += AddPerson(_operationRecord, _operationRecord.TourNurse, 7); } - else if (items[1] == "AnesthesiaDoctorAssistant") - { - i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctorAssistant, 11); - } + ////else if (items[1] == "AnesthesiaDoctorAssistant") + ////{ + //// i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctorAssistant, 11); + ////} else if (items[1] == "Operation") { i += AddOperation(_operationRecord, _operationRecord.Operation); diff --git a/DrawGraph/AreaManage/DrugsManage.cs b/DrawGraph/AreaManage/DrugsManage.cs index 9acd016..4c0e24d 100644 --- a/DrawGraph/AreaManage/DrugsManage.cs +++ b/DrawGraph/AreaManage/DrugsManage.cs @@ -147,7 +147,7 @@ namespace DrawGraph if (item.GiveDrugType == "术后镇痛药") { myOpeRecord.AfterDrugsListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", x + 1, (item.DrugBeginTime == item.DrugEndTime) ? item.DrugBeginTime.ToShortTimeString() : item.DrugBeginTime.ToShortTimeString() + "->" + item.DrugEndTime.ToShortTimeString(), item.DrugName.Trim(), dose, "", item.DrugChannel == null ? "" : " " + item.DrugChannel.ToString())); - myOpeRecord.AnalgesiaModeDrugs += string.Format("{0}{1} ", item.DrugName.Trim(), dose); + myOpeRecord.AnalgesiaDrug += string.Format("{0}{1} ", item.DrugName.Trim(), dose); x++; } } @@ -262,7 +262,7 @@ namespace DrawGraph if (myOpeRecord.BeforeDrugs == null || myOpeRecord.BeforeDrugs == "") myOpeRecord.BeforeDrugs = "无"; template.SetObjValue(myOpeRecord, "OperationRecord.BeforeDrugs", myOpeRecord.BeforeDrugs, myOpeRecord.BeforeDrugs); - template.SetObjValue(myOpeRecord, "OperationRecord.AnalgesiaModeDrugs", myOpeRecord.AnalgesiaModeDrugs, myOpeRecord.AnalgesiaModeDrugs); + template.SetObjValue(myOpeRecord, "OperationRecord.AnalgesiaDrug", myOpeRecord.AnalgesiaDrug, myOpeRecord.AnalgesiaDrug); DrawDrugSapDose(); } catch (Exception ex) diff --git a/DrawGraph/AreaManage/OperationRecord.cs b/DrawGraph/AreaManage/OperationRecord.cs index 80657a7..02e700b 100644 --- a/DrawGraph/AreaManage/OperationRecord.cs +++ b/DrawGraph/AreaManage/OperationRecord.cs @@ -29,6 +29,7 @@ namespace DrawGraph private string contacts; private string contactsPhone; private string isFasting; + private string age; //申请信息 private string patientType; @@ -120,8 +121,6 @@ namespace DrawGraph private string spareEight; private string spareNine; private string spareTen; - private int PageCount; - private string age; private List factEventsList; private List factDrugList; @@ -130,8 +129,8 @@ namespace DrawGraph private List anaseDataQualityRecordList; private OperationRecordInfo opeRecordInfo; private OperationRecoverInInfo opeRecoverInInfo; - private OperationRecoverOutInfo opeRecoverOutInfo; - private OperationRecordInstrumentList instrumentList; + private OperationRecoverOutInfo opeRecoverOutInfo; + private OperationRecordInstrumentList instrumentList; public List EventListstr = new List(); public List DrugsListstr = new List(); @@ -171,11 +170,7 @@ namespace DrawGraph [ClassAttributs(Description = "总页数")] public int currentPage { get; set; } [ClassAttributs(Description = "当前页数")] - public int pageCount - { - get { return PageCount; } - set { PageCount = value; } - } + public int pageCount { get; set; } [ClassAttributs(Description = "手术记录编号,自增")] /// @@ -194,7 +189,7 @@ namespace DrawGraph { get { return patientId; } set { patientId = value; } - } + } [NoCreatControlAttributs] /// /// 是否是恢复室 1不是 2是 @@ -771,12 +766,12 @@ namespace DrawGraph set { beforeDrugs = value; } } - public string analgesiaModeDrugs; + public string analgesiaDrug; [ClassAttributs(Description = "镇痛用药")] - public string AnalgesiaModeDrugs + public string AnalgesiaDrug { - get { return analgesiaModeDrugs; } - set { analgesiaModeDrugs = value; } + get { return analgesiaDrug ; } + set { analgesiaDrug = value; } } [ClassAttributs(Description = "麻醉助手")] @@ -1126,7 +1121,7 @@ namespace DrawGraph } set { - opeRecoverInInfo = value; + opeRecoverInInfo = value; } } [ClassAttributs(Description = "出恢复信息类")] @@ -1138,7 +1133,7 @@ namespace DrawGraph } set { - opeRecoverOutInfo = value; + opeRecoverOutInfo = value; } } [ClassAttributs(Description = "器械清点单类")] @@ -1153,30 +1148,6 @@ namespace DrawGraph instrumentList = value; } } - /// - /// 选择的药品名称和显示行索引表示的Hashtable - /// - [NoCreatControlAttributs] - [XmlIgnore] - public Hashtable hashSelectDrugs; - /// - /// 选择的输液名称和显示行索引表示的Hashtable - /// - [NoCreatControlAttributs] - [XmlIgnore] - public Hashtable hashSelectSaps; - /// - /// 选择的出量名称和显示行索引表示的Hashtable用于画图 - /// - [NoCreatControlAttributs] - [XmlIgnore] - public Hashtable hashSelectFluids; - /// - /// 存储事件的哈希表 - /// - [NoCreatControlAttributs] - [XmlIgnore] - public Hashtable hashEventLists; public OperationRecord() { @@ -1209,7 +1180,7 @@ namespace DrawGraph FluidListstr = new List(); PunctureAndIntubatio = new List(); BeforeDrugs = ""; - AnalgesiaModeDrugs = ""; + AnalgesiaDrug = ""; } /// /// 清除各种对象数据 @@ -1233,8 +1204,8 @@ namespace DrawGraph { if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; delAddObj("allDrugDose"); - delAddObj("allOutDose"); - delAddObj("allqtDrugDose"); + delAddObj("allOutDose"); + delAddObj("allqtDrugDose"); for (int i = 1; i <= 19; i++) { delAddObj("Out" + i); diff --git a/DrawGraph/AreaManage/OperationRecordInstrumentList.cs b/DrawGraph/AreaManage/OperationRecordInstrumentList.cs index 5f0627a..aaa812f 100644 --- a/DrawGraph/AreaManage/OperationRecordInstrumentList.cs +++ b/DrawGraph/AreaManage/OperationRecordInstrumentList.cs @@ -4,99 +4,809 @@ using System.Collections.Generic; namespace DrawGraph { - [Serializable] + [Serializable] public partial class OperationRecordInstrumentList - { - private int? id; - private int? operationRecordId; - private string applianceUseType; - private string tagPicture; - private string remark; - private string jsonTextData; - private string operatorNo; - private string operatorName; + { + private int? id; + private int? operationRecordId; + private string applianceUseType; + private string tagPicture; + private string remark; + private string jsonTextData; + private string operatorNo; + private string operatorName; private DateTime? operateDate; + private string operationName; + private string operationNameRermark; + private string diseaseName; + private string operationSite; + private string skinBackInfo; + private string beforSkinInfo; + private string deepVeniPuncture; + private string specialInfected; + private string gastricCanal; + private string catheterization; + private string inBloodType; + private string inBloodName; + private string inBloodXXB; + private string inBloodXFHXB; + private string inBloodXJ; + private string inBloodLCD; + private string inBloodZTX; + private string inBloodQT; + private string inBloodDose; + private string veinInfuse; + private string inDose; + private string outDose; + private string imagingData; + private string specimen; + private string specimenCount; + private string pathologyCount; + private string specimenState; + private string specimanToFrozen; + private string specimanToPathology; + private string submitForInspection; + private string submitPerson; + private string opeOutState; + private string opeSpecialGoods; + private string specialProblems; + private string antibioticUserTime; + private string beforInvasive; + private string tourniquetBegin1; + private string tourniquetEnd1; + private string tourniquetBegin2; + private string tourniquetEnd2; + private string tourniquetBegin3; + private string tourniquetEnd3; + private string tourniquetPosition; + private string negativePlatePosition; + private string inWardTime; + private string eMRInfo; + private string consciousness; + private string bloodPressure; + private string pulse; + private string breathing; + private string skinType; + private string hbsAg; + private string afterSkinStatus; + private string drainage; + private string inBloodPosition; + private string asepticBagMonitor; + private string drugAllergy; + private string operationDoctor; + private string instrumentNurse; + private string instrumentNurseSucceed; + private string instrumentNurseSucceedTime; + private string tourNurse; + private string tourNurseSucceed; + private string tourNurseSucceedTime; + private string outInstrumentNurse; + private string outInstrumentNurseSucceed; + private string outTourNurse; + private string outTourNurseSucceed; + private string otherInfo; + private string operationNurse; + private string wardNurse; - public List ApplianceRecordList; + public List ApplianceRecordList; [NoCreatControlAttributs] public int? Id - { - get{ return id; } - set{ id=value; } + { + get { return id; } + set { id = value; } } [NoCreatControlAttributs] public int? OperationRecordId - { - get{ return operationRecordId; } - set{ operationRecordId=value; } - } + { + get { return operationRecordId; } + set { operationRecordId = value; } + } /// /// 器械包Id /// - [NoCreatControlAttributs] + [NoCreatControlAttributs] public string ApplianceUseType - { - get{ return applianceUseType; } - set{ applianceUseType=value; } - } + { + get { return applianceUseType; } + set { applianceUseType = value; } + } /// /// 人体标记图 /// - [NoCreatControlAttributs] - public string TagPicture - { - get{ return tagPicture; } - set{ tagPicture=value; } - } + [NoCreatControlAttributs] + public string TagPicture + { + get { return tagPicture; } + set { tagPicture = value; } + } [ClassAttributs(Description = "人体标记图")] - public string TagPicturePanel { get; set; } + public string TagPicturePanel { get; set; } [ClassAttributs(Description = "灭菌包列表")] - public string PackPanel { get; set; } + public string PackPanel { get; set; } /// /// 备注 /// [ClassAttributs(Description = "备注")] - public string Remark - { - get{ return remark; } - set{ remark=value; } - } - /// + public string Remark + { + get { return remark; } + set { remark = value; } + } + /// /// 格式化文本 /// - [NoCreatControlAttributs] - public string JsonTextData - { - get{ return jsonTextData; } - set{ jsonTextData=value; } - } + [NoCreatControlAttributs] + public string JsonTextData + { + get { return jsonTextData; } + set { jsonTextData = value; } + } /// /// 操作工号3 /// [NoCreatControlAttributs] - public string OperatorNo - { - get{ return operatorNo; } - set{ operatorNo=value; } - } + public string OperatorNo + { + get { return operatorNo; } + set { operatorNo = value; } + } /// /// 操作人名称 /// [NoCreatControlAttributs] public string OperatorName - { - get{ return operatorName; } - set{ operatorName=value; } - } + { + get { return operatorName; } + set { operatorName = value; } + } /// /// 操作时间 /// [NoCreatControlAttributs] public DateTime? OperateDate - { - get{ return operateDate; } - set{ operateDate=value; } - } - } + { + get { return operateDate; } + set { operateDate = value; } + } + /// + /// 手术名称 + /// + [ClassAttributs(Description = "手术名称")] + public string OperationName + { + get { return operationName; } + set { operationName = value; } + } + /// + /// 手术名称备注 + /// + [ClassAttributs(Description = "手术名称备注")] + public string OperationNameRermark + { + get { return operationNameRermark; } + set { operationNameRermark = value; } + } + /// + /// 术后诊断 + /// + [ClassAttributs(Description = "术后诊断")] + public string DiseaseName + { + get { return diseaseName; } + set { diseaseName = value; } + } + /// + /// 手术体位 + /// + [ClassAttributs(Description = "手术体位")] + public string OperationSite + { + get { return operationSite; } + set { operationSite = value; } + } + /// + /// 备皮情况 + /// + [ClassAttributs(Description = "备皮情况")] + public string SkinBackInfo + { + get { return skinBackInfo; } + set { skinBackInfo = value; } + } + /// + /// 术前皮肤完整情况 + /// + [ClassAttributs(Description = "术前皮肤完整情况")] + public string BeforSkinInfo + { + get { return beforSkinInfo; } + set { beforSkinInfo = value; } + } + /// + /// 深静脉穿刺 + /// + [ClassAttributs(Description = "深静脉穿刺")] + public string DeepVeniPuncture + { + get { return deepVeniPuncture; } + set { deepVeniPuncture = value; } + } + /// + /// 特殊感染 + /// + [ClassAttributs(Description = "特殊感染")] + public string SpecialInfected + { + get { return specialInfected; } + set { specialInfected = value; } + } + /// + /// 胃管 + /// + [ClassAttributs(Description = "胃管")] + public string GastricCanal + { + get { return gastricCanal; } + set { gastricCanal = value; } + } + /// + /// 导尿 + /// + [ClassAttributs(Description = "导尿")] + public string Catheterization + { + get { return catheterization; } + set { catheterization = value; } + } + /// + /// 输血血型 + /// + [ClassAttributs(Description = "输血血型")] + public string InBloodType + { + get { return inBloodType; } + set { inBloodType = value; } + } + /// + /// 输血成分名称 + /// + [ClassAttributs(Description = "输血成分名称")] + public string InBloodName + { + get { return inBloodName; } + set { inBloodName = value; } + } + /// + /// 输血成分名称血小板 + /// + [ClassAttributs(Description = "输血成分名称血小板")] + public string InBloodXXB + { + get { return inBloodXXB; } + set { inBloodXXB = value; } + } + /// + /// 输血成分名称悬浮红细胞 + /// + [ClassAttributs(Description = "输血成分名称悬浮红细胞")] + public string InBloodXFHXB + { + get { return inBloodXFHXB; } + set { inBloodXFHXB = value; } + } + /// + /// 输血成分名称血浆 + /// + [ClassAttributs(Description = "输血成分名称血浆")] + public string InBloodXJ + { + get { return inBloodXJ; } + set { inBloodXJ = value; } + } + /// + /// 输血成分名称冷沉淀 + /// + [ClassAttributs(Description = "输血成分名称冷沉淀")] + public string InBloodLCD + { + get { return inBloodLCD; } + set { inBloodLCD = value; } + } + /// + /// 输血成分名称自体血 + /// + [ClassAttributs(Description = "输血成分名称自体血")] + public string InBloodZTX + { + get { return inBloodZTX; } + set { inBloodZTX = value; } + } + /// + /// 输血成分名称其他 + /// + [ClassAttributs(Description = "输血成分名称其他")] + public string InBloodQT + { + get { return inBloodQT; } + set { inBloodQT = value; } + } + /// + /// 输血量 + /// + [ClassAttributs(Description = "输血量")] + public string InBloodDose + { + get { return inBloodDose; } + set { inBloodDose = value; } + } + /// + /// 静脉输液 + /// + [ClassAttributs(Description = "静脉输液")] + public string VeinInfuse + { + get { return veinInfuse; } + set { veinInfuse = value; } + } + /// + /// 液体 + /// + [ClassAttributs(Description = "液体")] + public string InDose + { + get { return inDose; } + set { inDose = value; } + } + /// + /// 出量 + /// + [ClassAttributs(Description = "出量")] + public string OutDose + { + get { return outDose; } + set { outDose = value; } + } + /// + /// 影像资料 + /// + [ClassAttributs(Description = "影像资料")] + public string ImagingData + { + get { return imagingData; } + set { imagingData = value; } + } + /// + /// 有无标本 + /// + [ClassAttributs(Description = "有无标本")] + public string Specimen + { + get { return specimen; } + set { specimen = value; } + } + /// + /// 标本数量 + /// + [ClassAttributs(Description = "标本数量")] + public string SpecimenCount + { + get { return specimenCount; } + set { specimenCount = value; } + } + /// + /// 病理数量 + /// + [ClassAttributs(Description = "病理数量")] + public string PathologyCount + { + get { return pathologyCount; } + set { pathologyCount = value; } + } + /// + /// 标本去处 + /// + [ClassAttributs(Description = "标本去处")] + public string SpecimenState + { + get { return specimenState; } + set { specimenState = value; } + } + /// + /// 标本送冰冻 + /// + [ClassAttributs(Description = "标本送冰冻")] + public string SpecimanToFrozen + { + get { return specimanToFrozen; } + set { specimanToFrozen = value; } + } + /// + /// 标本送病理 + /// + [ClassAttributs(Description = "标本送病理")] + public string SpecimanToPathology + { + get { return specimanToPathology; } + set { specimanToPathology = value; } + } + /// + /// 是否送检 + /// + [ClassAttributs(Description = "是否送检")] + public string SubmitForInspection + { + get { return submitForInspection; } + set { submitForInspection = value; } + } + /// + /// 送检者 + /// + [ClassAttributs(Description = "送检者")] + public string SubmitPerson + { + get { return submitPerson; } + set { submitPerson = value; } + } + /// + /// 术后送回 + /// + [ClassAttributs(Description = "术后送回")] + public string OpeOutState + { + get { return opeOutState; } + set { opeOutState = value; } + } + /// + /// 术中使用特殊物品 + /// + [ClassAttributs(Description = "术中使用特殊物品")] + public string OpeSpecialGoods + { + get { return opeSpecialGoods; } + set { opeSpecialGoods = value; } + } + /// + /// 特殊问题处理 + /// + [ClassAttributs(Description = "特殊问题处理")] + public string SpecialProblems + { + get { return specialProblems; } + set { specialProblems = value; } + } + /// + /// 预防性抗生素术前用药时间 + /// + [ClassAttributs(Description = "预防性抗生素术前用药时间")] + public string AntibioticUserTime + { + get { return antibioticUserTime; } + set { antibioticUserTime = value; } + } + /// + /// 术前有创筛查 + /// + [ClassAttributs(Description = "术前有创筛查")] + public string BeforInvasive + { + get { return beforInvasive; } + set { beforInvasive = value; } + } + /// + /// 止血带开始时间 + /// + [ClassAttributs(Description = "止血带开始时间")] + public string TourniquetBegin1 + { + get { return tourniquetBegin1; } + set { tourniquetBegin1 = value; } + } + /// + /// 止血带结束时间 + /// + [ClassAttributs(Description = "止血带结束时间")] + public string TourniquetEnd1 + { + get { return tourniquetEnd1; } + set { tourniquetEnd1 = value; } + } + /// + /// 止血带开始时间2 + /// + [ClassAttributs(Description = "止血带开始时间2")] + public string TourniquetBegin2 + { + get { return tourniquetBegin2; } + set { tourniquetBegin2 = value; } + } + /// + /// 止血带结束时间2 + /// + [ClassAttributs(Description = "止血带结束时间2")] + public string TourniquetEnd2 + { + get { return tourniquetEnd2; } + set { tourniquetEnd2 = value; } + } + /// + /// 止血带开始时间3 + /// + [ClassAttributs(Description = "止血带开始时间3")] + public string TourniquetBegin3 + { + get { return tourniquetBegin3; } + set { tourniquetBegin3 = value; } + } + /// + /// 止血带结束时间3 + /// + [ClassAttributs(Description = "止血带结束时间3")] + public string TourniquetEnd3 + { + get { return tourniquetEnd3; } + set { tourniquetEnd3 = value; } + } + /// + /// 止血带部位 + /// + [ClassAttributs(Description = "止血带部位")] + public string TourniquetPosition + { + get { return tourniquetPosition; } + set { tourniquetPosition = value; } + } + /// + /// 负极板部位 + /// + [ClassAttributs(Description = "负极板部位")] + public string NegativePlatePosition + { + get { return negativePlatePosition; } + set { negativePlatePosition = value; } + } + /// + /// 回病房时间 + /// + [ClassAttributs(Description = "回病房时间")] + public string InWardTime + { + get { return inWardTime; } + set { inWardTime = value; } + } + /// + /// 病历资料 + /// + [ClassAttributs(Description = "病历资料")] + public string EMRInfo + { + get { return eMRInfo; } + set { eMRInfo = value; } + } + /// + /// 意识 + /// + [ClassAttributs(Description = "意识")] + public string Consciousness + { + get { return consciousness; } + set { consciousness = value; } + } + /// + /// 血压 + /// + [ClassAttributs(Description = "血压")] + public string BloodPressure + { + get { return bloodPressure; } + set { bloodPressure = value; } + } + /// + /// 脉搏 + /// + [ClassAttributs(Description = "脉搏")] + public string Pulse + { + get { return pulse; } + set { pulse = value; } + } + /// + /// 呼吸 + /// + [ClassAttributs(Description = "呼吸")] + public string Breathing + { + get { return breathing; } + set { breathing = value; } + } + /// + /// 皮肤 + /// + [ClassAttributs(Description = "皮肤")] + public string SkinType + { + get { return skinType; } + set { skinType = value; } + } + /// + /// HbsAg + /// + [ClassAttributs(Description = "HbsAg")] + public string HbsAg + { + get { return hbsAg; } + set { hbsAg = value; } + } + /// + /// 皮肤情况 + /// + [ClassAttributs(Description = "皮肤情况")] + public string AfterSkinStatus + { + get { return afterSkinStatus; } + set { afterSkinStatus = value; } + } + /// + /// 引流 + /// + [ClassAttributs(Description = "引流")] + public string Drainage + { + get { return drainage; } + set { drainage = value; } + } + /// + /// 静脉输液(血)/部位 + /// + [ClassAttributs(Description = "静脉输液(血)/部位")] + public string InBloodPosition + { + get { return inBloodPosition; } + set { inBloodPosition = value; } + } + /// + /// 无菌包监测合格 + /// + [ClassAttributs(Description = "无菌包监测合格")] + public string AsepticBagMonitor + { + get { return asepticBagMonitor; } + set { asepticBagMonitor = value; } + } + /// + /// 药物过敏史 + /// + [ClassAttributs(Description = "药物过敏史")] + public string DrugAllergy + { + get { return drugAllergy; } + set { drugAllergy = value; } + } + /// + /// 主刀医生 + /// + [ClassAttributs(Description = "主刀医生")] + public string OperationDoctor + { + get { return operationDoctor; } + set { operationDoctor = value; } + } + /// + /// 器械护士 + /// + [ClassAttributs(Description = "器械护士")] + public string InstrumentNurse + { + get { return instrumentNurse; } + set { instrumentNurse = value; } + } + /// + /// 器械护士接台 + /// + [ClassAttributs(Description = "器械护士接台")] + public string InstrumentNurseSucceed + { + get { return instrumentNurseSucceed; } + set { instrumentNurseSucceed = value; } + } + /// + /// 器械护士接台时间 + /// + [ClassAttributs(Description = "器械护士接台时间")] + public string InstrumentNurseSucceedTime + { + get { return instrumentNurseSucceedTime; } + set { instrumentNurseSucceedTime = value; } + } + /// + /// 巡回护士 + /// + [ClassAttributs(Description = "巡回护士")] + public string TourNurse + { + get { return tourNurse; } + set { tourNurse = value; } + } + /// + /// 巡回护士接台 + /// + [ClassAttributs(Description = "巡回护士接台")] + public string TourNurseSucceed + { + get { return tourNurseSucceed; } + set { tourNurseSucceed = value; } + } + /// + /// 巡回护士接台时间 + /// + [ClassAttributs(Description = "巡回护士接台时间")] + public string TourNurseSucceedTime + { + get { return tourNurseSucceedTime; } + set { tourNurseSucceedTime = value; } + } + /// + /// 结束器械护士 + /// + [ClassAttributs(Description = "结束器械护士")] + public string OutInstrumentNurse + { + get { return outInstrumentNurse; } + set { outInstrumentNurse = value; } + } + /// + /// 结束器械护士接台 + /// + [ClassAttributs(Description = "结束器械护士接台")] + public string OutInstrumentNurseSucceed + { + get { return outInstrumentNurseSucceed; } + set { outInstrumentNurseSucceed = value; } + } + /// + /// 结束巡回护士 + /// + [ClassAttributs(Description = "结束巡回护士")] + public string OutTourNurse + { + get { return outTourNurse; } + set { outTourNurse = value; } + } + /// + /// 结束巡回护士接台 + /// + [ClassAttributs(Description = "结束巡回护士接台")] + public string OutTourNurseSucceed + { + get { return outTourNurseSucceed; } + set { outTourNurseSucceed = value; } + } + /// + /// 其他 + /// + [ClassAttributs(Description = "其他")] + public string OtherInfo + { + get { return otherInfo; } + set { otherInfo = value; } + } + /// + /// 手术护士 + /// + [ClassAttributs(Description = "手术护士")] + public string OperationNurse + { + get { return operationNurse; } + set { operationNurse = value; } + } + /// + /// 病房护士 + /// + [ClassAttributs(Description = "病房护士")] + public string WardNurse + { + get { return wardNurse; } + set { wardNurse = value; } + } + } } diff --git a/DrawGraph/AreaManage/OperationRecordOld.cs b/DrawGraph/AreaManage/OperationRecordOld.cs new file mode 100644 index 0000000..3f2d3c9 --- /dev/null +++ b/DrawGraph/AreaManage/OperationRecordOld.cs @@ -0,0 +1,1293 @@ +using HelperDB; +using System; +using System.Collections; +using System.Collections.Generic; +using System.Data; +using System.Xml.Serialization; + +namespace DrawGraph +{ + [Serializable] + public partial class OperationRecordNew : EventObj + { + //患者信息 + private string hISPatientId; + private string inHospitalNo; + private string medicalHistoryNo; + private int? departmentId; + private string name; + private string sex; + private DateTime? birthDay; + private string height; + private string weight; + private string identity; + private string bloodType; + private string rHBloodType; + private string fareType; + private string endemicArea; + private string bed; + private string contacts; + private string contactsPhone; + private string isFasting; + private string age; + + + [ClassAttributs(Description = "HIS编号")] + public string HISPatientId + { + get { return hISPatientId; } + set { hISPatientId = value; } + } + + [ClassAttributs(Description = "住院号")] + public string InHospitalNo + { + get { return inHospitalNo; } + set { inHospitalNo = value; } + } + + [ClassAttributs(Description = "病历号")] + public string MedicalHistoryNo + { + get { return medicalHistoryNo; } + set { medicalHistoryNo = value; } + } + + [ClassAttributs(Description = "科室编号")] + public int? DepartmentId + { + get { return departmentId; } + set { departmentId = value; } + } + + [ClassAttributs(Description = "患者姓名")] + public string Name + { + get { return name; } + set { name = value; } + } + + [ClassAttributs(Description = "性别")] + public string Sex + { + get { return sex; } + set { sex = value; } + } + + [ClassAttributs(Description = "出生日期")] + public DateTime? BirthDay + { + get { return birthDay; } + set { birthDay = value; } + } + [ClassAttributs(Description = "年龄")] + public string Age + { + get { return age; } + set { age = value; } + } + + [ClassAttributs(Description = "身高,单位cm")] + public string Height + { + get { return height; } + set { height = value; } + } + + [ClassAttributs(Description = "体重,单位kg")] + public string Weight + { + get { return weight; } + set { weight = value; } + } + + [ClassAttributs(Description = "身份证号码")] + public string Identity + { + get { return identity; } + set { identity = value; } + } + + [ClassAttributs(Description = "血型")] + public string BloodType + { + get { return bloodType; } + set { bloodType = value; } + } + + [ClassAttributs(Description = "RH血型")] + public string RHBloodType + { + get { return rHBloodType; } + set { rHBloodType = value; } + } + + [ClassAttributs(Description = "医保类别")] + public string FareType + { + get { return fareType; } + set { fareType = value; } + } + + [ClassAttributs(Description = "病区")] + public string EndemicArea + { + get { return endemicArea; } + set { endemicArea = value; } + } + + [ClassAttributs(Description = "病区床位")] + public string Bed + { + get { return bed; } + set { bed = value; } + } + + [ClassAttributs(Description = "联系人")] + public string Contacts + { + get { return contacts; } + set { contacts = value; } + } + + [ClassAttributs(Description = "联系人电话")] + public string ContactsPhone + { + get { return contactsPhone; } + set { contactsPhone = value; } + } + [ClassAttributs(Description = "是否禁食")] + public string IsFasting + { + get { return isFasting; } + set { isFasting = value; } + } + + //申请信息 + private string patientType; + private int? applyDepartmentId; + private string applyDepartmentName; + private string applyDepName; + private string applydiagnose; + private string applydiagnoseRemark; + private string applyoperation; + private string applyOperationRemark; + private string operationPriority; + public DateTime PlanOperationTime; + + private string operation; + private string operationDoctor; + private string assistant1; + private string assistant2; + private string assistant3; + private string anaesthesiaMethodId; + private string anesthesiaDoctor; + private string instrumentNurse; + private string tourNurse; + private string operationSiteId; + + [ClassAttributs(Description = "住院门诊类型")] + public string PatientType + { + get { return patientType; } + set { patientType = value; } + } + [NoCreatControlAttributs] + public int? ApplyDepartmentId + { + get { return applyDepartmentId; } + set { applyDepartmentId = value; } + } + [ClassAttributs(Description = "申请科室")] + public string ApplyDepartmentName + { + get { return applyDepartmentName; } + set { applyDepartmentName = value; } + } + [ClassAttributs(Description = "申请科室2")] + public string ApplyDepName + { + get { return applyDepName; } + set { applyDepName = value; } + } + [ClassAttributs(Description = "术前诊断")] + public string Applydiagnose + { + get { return applydiagnose; } + set { applydiagnose = value; } + } + [ClassAttributs(Description = "术前诊断备注")] + public string ApplydiagnoseRemark + { + get { return applydiagnoseRemark; } + set { applydiagnoseRemark = value; } + } + [ClassAttributs(Description = "术前手术")] + public string Applyoperation + { + get { return applyoperation; } + set { applyoperation = value; } + } + [ClassAttributs(Description = "术前手术备注")] + public string ApplyOperationRemark + { + get { return applyOperationRemark; } + set { applyOperationRemark = value; } + } + [ClassAttributs(Description = "择期急诊")] + public string OperationPriority + { + get { return operationPriority; } + set { operationPriority = value; } + } + + [ClassAttributs(Description = "手术名称")] + /// + /// 手术名称,保存手术Id,可多选,逗号分隔 + /// + public string Operation + { + get { return operation; } + set { operation = value; } + } + [ClassAttributs(Description = "手术医生")] + /// + /// 手术医生,保存手术医生Id,可多选,逗号分隔 + /// + public string OperationDoctor + { + get { return operationDoctor; } + set { operationDoctor = value; } + } + [ClassAttributs(Description = "助理1")] + /// + /// 助理1,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant1 + { + get { return assistant1; } + set { assistant1 = value; } + } + [ClassAttributs(Description = "助理2")] + /// + /// 助理2,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant2 + { + get { return assistant2; } + set { assistant2 = value; } + } + [ClassAttributs(Description = "助理3")] + /// + /// 助理3,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant3 + { + get { return assistant3; } + set { assistant3 = value; } + } + [ClassAttributs(Description = "麻醉方式")] + /// + /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 + /// + public string AnaesthesiaMethodId + { + get { return anaesthesiaMethodId; } + set { anaesthesiaMethodId = value; } + } + [ClassAttributs(Description = "麻醉医生")] + /// + /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 + /// + public string AnesthesiaDoctor + { + get { return anesthesiaDoctor; } + set { anesthesiaDoctor = value; } + } + [ClassAttributs(Description = "器械护士")] + /// + /// 器械护士,保存器械护士Id,可多选,逗号分隔 + /// + public string InstrumentNurse + { + get { return instrumentNurse; } + set { instrumentNurse = value; } + } + [ClassAttributs(Description = "巡回护士")] + /// + /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 + /// + public string TourNurse + { + get { return tourNurse; } + set { tourNurse = value; } + } + [ClassAttributs(Description = "手术体位")] + /// + /// 手术体位,保存手术体位Id,可多选,逗号分隔 + /// + public string OperationSiteId + { + get { return operationSiteId; } + set { operationSiteId = value; } + } + + //术中信息 + + private int? id; + private int? patientId; + private int? operationApplyId; + private DateTime? inRoomTime; + private DateTime? outRoomTime; + private DateTime? operationBeginTime; + private DateTime? operationEndTime; + private DateTime? anesthesiaBeginTime; + private DateTime? anesthesiaEndTime; + private int? aSALevel; + private string specialCase; + private int? fasting; + private string operationDate; + private string opeSpecialCondition; + private string bMI; + private string beforeDrugs; + private string anaesthesiaMethodName; + private string anaesthesiaTechnology; + private string anaesthesiaComplication; + private string specialEvent; + private string suddenSituation; + private string conditionChage; + private string rescueMeasures; + private string rescueTime; + private string rescuePerson; + private string rescueTechnology; + private string spileInTime; + private string spileOutTime; + private string spileSituation; + private string spileWard; + private string spileBeforCondition; + private string spileAffterCondition; + private string refluxFlag; + private string muscleStrengthRecovery; + private string coughReflex; + private string inOperaRoomState; + private string bloodPressure; + private string tempeture; + private string pulse; + private string breath; + private string isolationIndicator; + private string anesMachine; + private string controlledAnalgesia; + private string analgesiaModel; + private string analgesiaRate; + private string analgesiaDrug; + private string aldreteScore; + private string routeMonitoring; + private string entourage; + private string remark1; + private string remark2; + private string remark3; + private string crystal; + private string colloid; + private string inAmount; + private string outAmount; + private string operationTimeSpan; + private string anaesthesiaTimeSpan; + private string roomTimeSpan; + private string anesthesiaDoctorTimeMinute; + private string anesthesiaDoctorSucceedTimeMinute; + private string instrumentNurseTimeMinute; + private string instrumentNurseSucceedTimeMinute; + private string tourNurseTimeMinute; + private string tourNurseSucceedTimeMinute; + private string recordPageCount; + private string signName; + private string signTime; + private int? roomId; + private int? state; + private int? recoverId; + private string operatorNo; + private string operatorName; + private DateTime? operateDate; + private string remarks; + + + /// + /// + /// + public int? Id + { + get { return id; } + set { id = value; } + } + /// + /// + /// + public int? PatientId + { + get { return patientId; } + set { patientId = value; } + } + /// + /// + /// + public int? OperationApplyId + { + get { return operationApplyId; } + set { operationApplyId = value; } + } + /// + /// + /// + public DateTime? InRoomTime + { + get { return inRoomTime; } + set { inRoomTime = value; } + } + /// + /// + /// + public DateTime? OutRoomTime + { + get { return outRoomTime; } + set { outRoomTime = value; } + } + /// + /// + /// + public DateTime? OperationBeginTime + { + get { return operationBeginTime; } + set { operationBeginTime = value; } + } + /// + /// + /// + public DateTime? OperationEndTime + { + get { return operationEndTime; } + set { operationEndTime = value; } + } + /// + /// + /// + public DateTime? AnesthesiaBeginTime + { + get { return anesthesiaBeginTime; } + set { anesthesiaBeginTime = value; } + } + /// + /// + /// + public DateTime? AnesthesiaEndTime + { + get { return anesthesiaEndTime; } + set { anesthesiaEndTime = value; } + } + /// + /// + /// + public int? ASALevel + { + get { return aSALevel; } + set { aSALevel = value; } + } + /// + /// + /// + public string SpecialCase + { + get { return specialCase; } + set { specialCase = value; } + } + /// + /// + /// + public int? Fasting + { + get { return fasting; } + set { fasting = value; } + } + /// + /// + /// + public string OperationDate + { + get { return operationDate; } + set { operationDate = value; } + } + /// + /// + /// + public string OpeSpecialCondition + { + get { return opeSpecialCondition; } + set { opeSpecialCondition = value; } + } + /// + /// + /// + public string BMI + { + get { return bMI; } + set { bMI = value; } + } + /// + /// + /// + public string BeforeDrugs + { + get { return beforeDrugs; } + set { beforeDrugs = value; } + } + /// + /// + /// + public string AnaesthesiaMethodName + { + get { return anaesthesiaMethodName; } + set { anaesthesiaMethodName = value; } + } + /// + /// + /// + public string AnaesthesiaTechnology + { + get { return anaesthesiaTechnology; } + set { anaesthesiaTechnology = value; } + } + /// + /// + /// + public string AnaesthesiaComplication + { + get { return anaesthesiaComplication; } + set { anaesthesiaComplication = value; } + } + /// + /// + /// + public string SpecialEvent + { + get { return specialEvent; } + set { specialEvent = value; } + } + /// + /// + /// + public string SuddenSituation + { + get { return suddenSituation; } + set { suddenSituation = value; } + } + /// + /// + /// + public string ConditionChage + { + get { return conditionChage; } + set { conditionChage = value; } + } + /// + /// + /// + public string RescueMeasures + { + get { return rescueMeasures; } + set { rescueMeasures = value; } + } + /// + /// + /// + public string RescueTime + { + get { return rescueTime; } + set { rescueTime = value; } + } + /// + /// + /// + public string RescuePerson + { + get { return rescuePerson; } + set { rescuePerson = value; } + } + /// + /// + /// + public string RescueTechnology + { + get { return rescueTechnology; } + set { rescueTechnology = value; } + } + /// + /// + /// + public string SpileInTime + { + get { return spileInTime; } + set { spileInTime = value; } + } + /// + /// + /// + public string SpileOutTime + { + get { return spileOutTime; } + set { spileOutTime = value; } + } + /// + /// + /// + public string SpileSituation + { + get { return spileSituation; } + set { spileSituation = value; } + } + /// + /// + /// + public string SpileWard + { + get { return spileWard; } + set { spileWard = value; } + } + /// + /// + /// + public string SpileBeforCondition + { + get { return spileBeforCondition; } + set { spileBeforCondition = value; } + } + /// + /// + /// + public string SpileAffterCondition + { + get { return spileAffterCondition; } + set { spileAffterCondition = value; } + } + /// + /// + /// + public string RefluxFlag + { + get { return refluxFlag; } + set { refluxFlag = value; } + } + /// + /// + /// + public string MuscleStrengthRecovery + { + get { return muscleStrengthRecovery; } + set { muscleStrengthRecovery = value; } + } + /// + /// + /// + public string CoughReflex + { + get { return coughReflex; } + set { coughReflex = value; } + } + /// + /// + /// + public string InOperaRoomState + { + get { return inOperaRoomState; } + set { inOperaRoomState = value; } + } + /// + /// + /// + public string BloodPressure + { + get { return bloodPressure; } + set { bloodPressure = value; } + } + /// + /// + /// + public string Tempeture + { + get { return tempeture; } + set { tempeture = value; } + } + /// + /// + /// + public string Pulse + { + get { return pulse; } + set { pulse = value; } + } + /// + /// + /// + public string Breath + { + get { return breath; } + set { breath = value; } + } + /// + /// + /// + public string IsolationIndicator + { + get { return isolationIndicator; } + set { isolationIndicator = value; } + } + /// + /// + /// + public string AnesMachine + { + get { return anesMachine; } + set { anesMachine = value; } + } + /// + /// + /// + public string ControlledAnalgesia + { + get { return controlledAnalgesia; } + set { controlledAnalgesia = value; } + } + /// + /// + /// + public string AnalgesiaModel + { + get { return analgesiaModel; } + set { analgesiaModel = value; } + } + /// + /// + /// + public string AnalgesiaRate + { + get { return analgesiaRate; } + set { analgesiaRate = value; } + } + /// + /// + /// + public string AnalgesiaDrug + { + get { return analgesiaDrug; } + set { analgesiaDrug = value; } + } + /// + /// + /// + public string AldreteScore + { + get { return aldreteScore; } + set { aldreteScore = value; } + } + /// + /// + /// + public string RouteMonitoring + { + get { return routeMonitoring; } + set { routeMonitoring = value; } + } + /// + /// + /// + public string Entourage + { + get { return entourage; } + set { entourage = value; } + } + /// + /// + /// + public string Remark1 + { + get { return remark1; } + set { remark1 = value; } + } + /// + /// + /// + public string Remark2 + { + get { return remark2; } + set { remark2 = value; } + } + /// + /// + /// + public string Remark3 + { + get { return remark3; } + set { remark3 = value; } + } + /// + /// + /// + public string Crystal + { + get { return crystal; } + set { crystal = value; } + } + /// + /// + /// + public string Colloid + { + get { return colloid; } + set { colloid = value; } + } + /// + /// + /// + public string InAmount + { + get { return inAmount; } + set { inAmount = value; } + } + /// + /// + /// + public string OutAmount + { + get { return outAmount; } + set { outAmount = value; } + } + /// + /// + /// + public string OperationTimeSpan + { + get { return operationTimeSpan; } + set { operationTimeSpan = value; } + } + /// + /// + /// + public string AnaesthesiaTimeSpan + { + get { return anaesthesiaTimeSpan; } + set { anaesthesiaTimeSpan = value; } + } + /// + /// + /// + public string RoomTimeSpan + { + get { return roomTimeSpan; } + set { roomTimeSpan = value; } + } + /// + /// + /// + public string AnesthesiaDoctorTimeMinute + { + get { return anesthesiaDoctorTimeMinute; } + set { anesthesiaDoctorTimeMinute = value; } + } + /// + /// + /// + public string AnesthesiaDoctorSucceedTimeMinute + { + get { return anesthesiaDoctorSucceedTimeMinute; } + set { anesthesiaDoctorSucceedTimeMinute = value; } + } + /// + /// + /// + public string InstrumentNurseTimeMinute + { + get { return instrumentNurseTimeMinute; } + set { instrumentNurseTimeMinute = value; } + } + /// + /// + /// + public string InstrumentNurseSucceedTimeMinute + { + get { return instrumentNurseSucceedTimeMinute; } + set { instrumentNurseSucceedTimeMinute = value; } + } + /// + /// + /// + public string TourNurseTimeMinute + { + get { return tourNurseTimeMinute; } + set { tourNurseTimeMinute = value; } + } + /// + /// + /// + public string TourNurseSucceedTimeMinute + { + get { return tourNurseSucceedTimeMinute; } + set { tourNurseSucceedTimeMinute = value; } + } + /// + /// + /// + public string RecordPageCount + { + get { return recordPageCount; } + set { recordPageCount = value; } + } + /// + /// + /// + public string SignName + { + get { return signName; } + set { signName = value; } + } + /// + /// + /// + public string SignTime + { + get { return signTime; } + set { signTime = value; } + } + /// + /// + /// + public int? RoomId + { + get { return roomId; } + set { roomId = value; } + } + /// + /// 1手术中 + /// 2.手术结束 + /// + public int? State + { + get { return state; } + set { state = value; } + } + /// + /// + /// + public int? RecoverId + { + get { return recoverId; } + set { recoverId = value; } + } + /// + /// + /// + public string OperatorNo + { + get { return operatorNo; } + set { operatorNo = value; } + } + /// + /// + /// + public string OperatorName + { + get { return operatorName; } + set { operatorName = value; } + } + /// + /// + /// + public DateTime? OperateDate + { + get { return operateDate; } + set { operateDate = value; } + } + /// + /// + /// + public string Remarks + { + get { return remarks; } + set { remarks = value; } + } + + private List factEventsList; + private List factDrugList; + private List factOutputLiquidsList; + private List factBloodGasAnalysisList; + private List anaseDataQualityRecordList; + private OperationRecordInfo opeRecordInfo; + private OperationRecoverInInfo opeRecoverInInfo; + private OperationRecoverOutInfo opeRecoverOutInfo; + private OperationRecordInstrumentList instrumentList; + + public List EventListstr = new List(); + public List DrugsListstr = new List(); + public List AfterDrugsListstr = new List(); + public List FluidListstr = new List(); + public List PunctureAndIntubatio; + public List addPhysioList; + + [ClassAttributs(Description = "总页数")] + public int currentPage { get; set; } + [ClassAttributs(Description = "当前页数")] + public int pageCount { get; set; } + [ClassAttributs(Description = "是否只读")] + public bool IsReadOnly = false; + [ClassAttributs(Description = "绘图开始时间")] + public DateTime sharpBegin; + [ClassAttributs(Description = "页开始时间")] + public DateTime pageBegin; + [ClassAttributs(Description = "页结束时间")] + public DateTime lastPageBegin; + [ClassAttributs(Description = "入CG时间")] + public DateTime? InCGTime; + [ClassAttributs(Description = "出CG时间")] + public DateTime? OutCGTime; + [NoCreatControlAttributs] + public string InCGType; + [NoCreatControlAttributs] + public string MedicalRecord; + [NoCreatControlAttributs] + public DataTable PhysioParamList; + + [ClassAttributs(Description = "选中范围的对象")] + [NoCreatControlAttributs] + public SelectedAreaObj SAreaObj + { + get { return SelectedAreaObj.GetInstance(); } + } + + + + [NoCreatControlAttributs] + public List FactEventsList + { + get + { + return factEventsList; + } + set + { + factEventsList = value; + } + } + + + [NoCreatControlAttributs] + public List FactDrugList + { + get + { + return factDrugList; + } + set + { + factDrugList = value; + } + } + + + [NoCreatControlAttributs] + public List FactOutputLiquidsList + { + get + { + return factOutputLiquidsList; + } + set + { + factOutputLiquidsList = value; + } + } + + [NoCreatControlAttributs] + public List FactBloodGasAnalysisList + { + get + { + return factBloodGasAnalysisList; + } + set + { + factBloodGasAnalysisList = value; + } + } + + [NoCreatControlAttributs] + public List AnaseDataQualityRecordList + { + get + { + return anaseDataQualityRecordList; + } + set + { + anaseDataQualityRecordList = value; + } + } + [ClassAttributs(Description = "麻醉信息类")] + public OperationRecordInfo OpeRecordInfo + { + get + { + return opeRecordInfo; + } + set + { + opeRecordInfo = value; + } + } + [ClassAttributs(Description = "入恢复信息类")] + public OperationRecoverInInfo OpeRecoverInInfo + { + get + { + return opeRecoverInInfo; + } + set + { + opeRecoverInInfo = value; + } + } + [ClassAttributs(Description = "出恢复信息类")] + public OperationRecoverOutInfo OpeRecoverOutInfo + { + get + { + return opeRecoverOutInfo; + } + set + { + opeRecoverOutInfo = value; + } + } + [ClassAttributs(Description = "器械清点单类")] + public OperationRecordInstrumentList InstrumentList + { + get + { + return instrumentList; + } + set + { + instrumentList = value; + } + } + + public OperationRecordNew() + { + iniAddList(); + + SetDefaultValue(); + } + /// + /// 初始化各种对象列表 + /// + public void iniAddList() + { + PhysioParamList = AddOtherPhysioParamList(); + FactEventsList = new List(); + FactDrugList = new List(); + FactOutputLiquidsList = new List(); + AnaseDataQualityRecordList = new List(); + addPhysioList = new List(); + OpeRecordInfo = new OperationRecordInfo(); + OpeRecoverInInfo = new OperationRecoverInInfo(); + OpeRecoverOutInfo = new OperationRecoverOutInfo(); + InstrumentList = new OperationRecordInstrumentList(); + FactBloodGasAnalysisList = new List(); + } + + private void SetDefaultValue() + { + EventListstr = new List(); + DrugsListstr = new List(); + FluidListstr = new List(); + PunctureAndIntubatio = new List(); + BeforeDrugs = ""; + AnalgesiaDrug = ""; + } + /// + /// 清除各种对象数据 + /// + /// + public void ClearEventstr(ZedGraphControl zgc) + { + if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; + for (int i = 0; i <= 67; i++) + { + delAddObj("RemarkRow" + i); + delAddObj("PunctureAndIntubatio" + i); + } + delAddObj("allOutputLiquidsDose"); + delAddObj("allOutputLiquidsDoseDate"); + delAddObj("allSapDose"); + delAddObj("allSapDosedate"); + } + + public void ClearDrugsDose(ZedGraphControl zgc) + { + if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; + delAddObj("allDrugDose"); + delAddObj("allOutDose"); + delAddObj("allqtDrugDose"); + for (int i = 1; i <= 19; i++) + { + delAddObj("Out" + i); + } + } + + public DataTable AddOtherPhysioParamList() + { + string strSql = "SELECT pc.Id, pc.Name, pc.Color, pc.imgPath, pc.HighLimit, pc.LowLimit,pc.IsValid" + + " FROM PhysioDataConfig pc WHERE pc.NAME IN ('入室','麻醉开始','手术开始','手术结束','麻醉完成','出室','插管','拔管')"; + DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql); + return dt; + } + public static DateTime getOpeMaxTime(OperationRecordNew myOpeRecord) + { + try + { + DateTime dts = lastMaxOperationDate(myOpeRecord.patientId.Value); + DateTime nowDate = DateTime.Now; + TimeSpan tsp = nowDate - dts; + if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false + { + dts = nowDate; + } + if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.pageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm")) + { + dts = myOpeRecord.pageBegin.AddMinutes(240); + } + if (myOpeRecord.OutRoomTime != null) + { + DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString()); + if (DateTime.Compare(dts, outRoomTime) > 0) + { + dts = outRoomTime; + } + } + return dts; + } + catch (Exception) + { + return DateTime.Now; + } + } + /// + /// 得到手术的最大时间点 + /// + /// + /// + public static DateTime lastMaxOperationDate(int PatientId) + { + string sqlStr = "select top 1 * from (SELECT s.PatientId , s.EventEndTime etime FROM FactEvents s WHERE s.PatientId = " + PatientId + " union all SELECT s.PatientId , s.DrugEndTime FROM[dbo].[FactDrug] s WHERE s.PatientId = " + PatientId + " ) a order by a.etime desc"; + DataTable dt = DBHelper.GetDataTable(sqlStr); + return DateTime.Parse(dt.Rows[0][1].ToString()); + } + + } +} diff --git a/DrawGraph/AreaManage/SapManage.cs b/DrawGraph/AreaManage/SapManage.cs index f1cd029..d79dc89 100644 --- a/DrawGraph/AreaManage/SapManage.cs +++ b/DrawGraph/AreaManage/SapManage.cs @@ -131,7 +131,7 @@ namespace DrawGraph List DrugListstr = new List(); DrugListstr.Add("【手术用药】"); myOpeRecord.BeforeDrugs = ""; - myOpeRecord.AnalgesiaModeDrugs = ""; + myOpeRecord.AnalgesiaDrug = ""; //当前时间段加药集合 myOpeRecord.FactDrugList.ForEach(drug => { diff --git a/DrawGraph/AreaManage/TempDataManage.cs b/DrawGraph/AreaManage/TempDataManage.cs index 1e7890f..dd270f5 100644 --- a/DrawGraph/AreaManage/TempDataManage.cs +++ b/DrawGraph/AreaManage/TempDataManage.cs @@ -1,4 +1,6 @@ using AIMSExtension; +using DevComponents.Editors.DateTimeAdv; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.IO; @@ -17,6 +19,7 @@ namespace DrawGraph private bool valChang = false; //值不变 AbleEditPackObj ableEdit2; + AbleEditPackObj ableEdit3; public TempDataManage() { } public TempDataManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) { } @@ -26,6 +29,7 @@ namespace DrawGraph //自己要用的手术对象 myOpeRecord = OpeRecord as OperationRecord; ableEdit2 = template.GetPackObjectOTag("TempDataManage_AbleEditPackObj_357_OperationRecord_InstrumentList_TagPicturePanel"); + ableEdit3 = template.GetPackObjectOTag("TempDataManage_AbleEditPackObj_397_OperationRecord_InstrumentList_PackPanel"); } #region 重写的事件 /// @@ -73,6 +77,19 @@ namespace DrawGraph ZUtil.DrawImage("bjtp", ableEdit2.RealEndX, ableEdit2.RealY, (ableEdit2.RealEndX - ableEdit2.RealX), (ableEdit2.RealEndY - ableEdit2.RealY) / 2, ZedControl, TextPrefix.IM + "InstrumentListTagPicturePanel2"); } } + if (ableEdit3 != null) + { + for (int i = 593; i < 617; i++) + { + TextPackObj packObj = template.GetPackObjectOTag("TempDataManage_TextPackObj_" + i); + if (packObj != null) + { + packObj.PackText = ""; + packObj.PackValue = ""; + packObj.Draw(); + } + } + } List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) { @@ -181,16 +198,33 @@ namespace DrawGraph { if (myOpeRecord != null && myOpeRecord.Id != null) { - GraphObj gos = ZedControl.MasterPane.GraphObjList[TextPrefix.IM + "InstrumentListTagPicturePanel"]; - if (gos != null) + if (ableEdit2 != null) { - ZedControl.MasterPane.GraphObjList.Remove(gos); + GraphObj gos = ZedControl.MasterPane.GraphObjList[TextPrefix.IM + "InstrumentListTagPicturePanel"]; + if (gos != null) + { + ZedControl.MasterPane.GraphObjList.Remove(gos); + } + if (myOpeRecord.InstrumentList != null && myOpeRecord.InstrumentList.TagPicture != null && myOpeRecord.InstrumentList.TagPicture != "") + { + MemoryStream ms = new MemoryStream(Convert.FromBase64String(myOpeRecord.InstrumentList.TagPicture)); + System.Drawing.Image image = System.Drawing.Image.FromStream(ms); + ZUtil.DrawImage(image, ableEdit2.RealX, ableEdit2.RealY, (ableEdit2.RealEndX - ableEdit2.RealX), (ableEdit2.RealEndY - ableEdit2.RealY), ZedControl, TextPrefix.IM + "InstrumentListTagPicturePanel"); + } } - if (myOpeRecord.InstrumentList != null && ableEdit2 != null && myOpeRecord.InstrumentList.TagPicture != null && myOpeRecord.InstrumentList.TagPicture != "") + if (ableEdit3 != null && myOpeRecord.InstrumentList != null && myOpeRecord.InstrumentList.JsonTextData != null && myOpeRecord.InstrumentList.JsonTextData != "") { - MemoryStream ms = new MemoryStream(Convert.FromBase64String(myOpeRecord.InstrumentList.TagPicture)); - System.Drawing.Image image = System.Drawing.Image.FromStream(ms); - ZUtil.DrawImage(image, ableEdit2.RealX, ableEdit2.RealY, (ableEdit2.RealEndX - ableEdit2.RealX), (ableEdit2.RealEndY - ableEdit2.RealY), ZedControl, TextPrefix.IM + "InstrumentListTagPicturePanel"); + //593-616 + List list = JsonConvert.DeserializeObject>(myOpeRecord.InstrumentList.JsonTextData); + foreach (JsonTextForDoc m in list) + { + if (m.Id.Trim() == "") + continue; + TextPackObj packObj = template.GetPackObjectOTag(m.Tag); + packObj.PackText = m.Value; + packObj.PackValue = m.Value; + packObj.Draw(); + } } } List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); @@ -199,7 +233,7 @@ namespace DrawGraph pack.Draw(); } } - + /// /// 公共验证方法 /// diff --git a/DrawGraph/DrawGraph.csproj b/DrawGraph/DrawGraph.csproj index 48b8198..9da8d7b 100644 --- a/DrawGraph/DrawGraph.csproj +++ b/DrawGraph/DrawGraph.csproj @@ -67,6 +67,7 @@ Form +