恢复记录单功能开发

This commit is contained in:
leomo 2022-09-29 19:39:02 +08:00
parent f1911638ba
commit eb02a21f0b
62 changed files with 9427 additions and 5426 deletions

View File

@ -176,6 +176,7 @@ Global
GlobalSection(NestedProjects) = preSolution
{E023509F-235B-45FC-BB6B-666E46D5492E} = {A2A87698-6E67-428D-B369-098A254125FA}
{74124360-D9EF-4DC1-891E-FBF73BF5B5F6} = {A2A87698-6E67-428D-B369-098A254125FA}
{E7B10062-4B19-4542-B46D-D103CF1D7BA3} = {A2A87698-6E67-428D-B369-098A254125FA}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {364F5ECD-A324-41B8-9BAA-7CDBACF649B6}

View File

@ -77,10 +77,6 @@
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="WLibGPClass, Version=1.3.3.2, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\OREMR\oremr_new8 - 副本\KHD_OREMRReport\bin\Debug\WLibGPClass.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="DataDictionary\frmBasicDictionary.cs">
@ -341,6 +337,12 @@
<Compile Include="OperationDoing\oldSystemCode\frmHemodynamics.designer.cs">
<DependentUpon>frmHemodynamics.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\AnasRecoverBill\frmOpeRecoverInInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationDoing\AnasRecoverBill\frmOpeRecoverInInfo.designer.cs">
<DependentUpon>frmOpeRecoverInInfo.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\oldSystemCode\frmInstrumentRegistration.cs">
<SubType>Form</SubType>
</Compile>
@ -365,6 +367,12 @@
<Compile Include="OperationDoing\oldSystemCode\frmOperatingRoomRegister.designer.cs">
<DependentUpon>frmOperatingRoomRegister.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\AnasRecoverBill\frmOpeRecoverOutInfo.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="OperationDoing\AnasRecoverBill\frmOpeRecoverOutInfo.designer.cs">
<DependentUpon>frmOpeRecoverOutInfo.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\oldSystemCode\frmPhysioDataUpdateLog.cs">
<SubType>Form</SubType>
</Compile>
@ -543,7 +551,6 @@
<DependentUpon>frmOperationReview.cs</DependentUpon>
</Compile>
<Compile Include="OperationDoing\AnasRecordBill\DrawAnasReordBill.cs" />
<Compile Include="OperationDoing\AnasRecordBill\FillAnasReordBill.cs" />
<Compile Include="OperationDoing\AnasRecordBill\frmAnasRecordBillNew.cs">
<SubType>Form</SubType>
</Compile>
@ -833,12 +840,6 @@
<Compile Include="ReportManager\frmOperationPlanReportPrint.Designer.cs">
<DependentUpon>frmOperationPlanReportPrint.cs</DependentUpon>
</Compile>
<Compile Include="ReportManager\frmOperationRecoverInfoReport.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="ReportManager\frmOperationRecoverInfoReport.Designer.cs">
<DependentUpon>frmOperationRecoverInfoReport.cs</DependentUpon>
</Compile>
<Compile Include="ReportManager\frmOperationWorkloadStatisticsReport.cs">
<SubType>Form</SubType>
</Compile>
@ -879,11 +880,6 @@
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="ReportManager\ReportDataSource\OperationRecoverInfoDataSet.Designer.cs">
<DependentUpon>OperationRecoverInfoDataSet.xsd</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="ReportManager\ReportDataSource\OperationWorkloadStatisticsReportDataSet.cs">
<DependentUpon>OperationWorkloadStatisticsReportDataSet.xsd</DependentUpon>
</Compile>
@ -1028,6 +1024,9 @@
<EmbeddedResource Include="OperationDoing\oldSystemCode\frmHemodynamics.resx">
<DependentUpon>frmHemodynamics.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\AnasRecoverBill\frmOpeRecoverInInfo.resx">
<DependentUpon>frmOpeRecoverInInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\oldSystemCode\frmInstrumentRegistration.resx">
<DependentUpon>frmInstrumentRegistration.cs</DependentUpon>
</EmbeddedResource>
@ -1040,6 +1039,9 @@
<EmbeddedResource Include="OperationDoing\oldSystemCode\frmOperatingRoomRegister.resx">
<DependentUpon>frmOperatingRoomRegister.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\AnasRecoverBill\frmOpeRecoverOutInfo.resx">
<DependentUpon>frmOpeRecoverOutInfo.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="OperationDoing\oldSystemCode\frmPhysioDataUpdateLog.resx">
<DependentUpon>frmPhysioDataUpdateLog.cs</DependentUpon>
</EmbeddedResource>
@ -1273,9 +1275,6 @@
<EmbeddedResource Include="ReportManager\frmOperationPlanReportPrint.resx">
<DependentUpon>frmOperationPlanReportPrint.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ReportManager\frmOperationRecoverInfoReport.resx">
<DependentUpon>frmOperationRecoverInfoReport.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="ReportManager\frmOperationWorkloadStatisticsReport.resx">
<DependentUpon>frmOperationWorkloadStatisticsReport.cs</DependentUpon>
</EmbeddedResource>
@ -1285,7 +1284,6 @@
<EmbeddedResource Include="ReportManager\ReportTemplate\OperationCutTypeSumReport.rdlc" />
<EmbeddedResource Include="ReportManager\ReportTemplate\OperationInfoReport.rdlc" />
<EmbeddedResource Include="ReportManager\ReportTemplate\OperationPlanReport.rdlc" />
<EmbeddedResource Include="ReportManager\ReportTemplate\OperationRecoverInfoReport.rdlc" />
<EmbeddedResource Include="ReportManager\ReportTemplate\OperationWorkloadStatisticsReport.rdlc" />
<EmbeddedResource Include="ReportManager\ReportTemplate\QuietOperationRecordSheetSDY.rdlc" />
<None Include="Clear.Bat">
@ -1529,17 +1527,6 @@
<None Include="ReportManager\ReportDataSource\OperationInfoReportDataSet.xss">
<DependentUpon>OperationInfoReportDataSet.xsd</DependentUpon>
</None>
<None Include="ReportManager\ReportDataSource\OperationRecoverInfoDataSet.xsc">
<DependentUpon>OperationRecoverInfoDataSet.xsd</DependentUpon>
</None>
<None Include="ReportManager\ReportDataSource\OperationRecoverInfoDataSet.xsd">
<Generator>MSDataSetGenerator</Generator>
<LastGenOutput>OperationRecoverInfoDataSet.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</None>
<None Include="ReportManager\ReportDataSource\OperationRecoverInfoDataSet.xss">
<DependentUpon>OperationRecoverInfoDataSet.xsd</DependentUpon>
</None>
<None Include="ReportManager\ReportDataSource\OperationWorkloadStatisticsReportDataSet.xsc">
<DependentUpon>OperationWorkloadStatisticsReportDataSet.xsd</DependentUpon>
</None>

View File

@ -34,6 +34,10 @@
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.tsbOperationReview = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.tspBAGD = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.tsbOperationRecover = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.tsbExit = new System.Windows.Forms.ToolStripButton();
@ -51,42 +55,6 @@
this.label1 = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.dgv = new System.Windows.Forms.DataGridView();
this.tspBAGD = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
this.PatientId = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn();
@ -120,6 +88,38 @@
this.RemarksColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MedicalRecord = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.MedicalRecordtIME = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn25 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn26 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn30 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.dataGridViewTextBoxColumn32 = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.panel1.SuspendLayout();
this.toolStrip1.SuspendLayout();
this.panel2.SuspendLayout();
@ -147,12 +147,12 @@
this.toolStripSeparator1,
this.tsbOperationReview,
this.toolStripSeparator4,
this.tsbOperationRecover,
this.toolStripSeparator3,
this.tspBAGD,
this.toolStripSeparator6,
this.toolStripButton1,
this.toolStripSeparator5,
this.tsbOperationRecover,
this.toolStripSeparator3,
this.tsbExit,
this.toolStripSeparator2,
this.tsbSet});
@ -194,6 +194,40 @@
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(6, 51);
//
// tspBAGD
//
this.tspBAGD.Font = new System.Drawing.Font("微软雅黑", 9F);
this.tspBAGD.Image = global::AIMS.Properties.Resources._访视单;
this.tspBAGD.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tspBAGD.Name = "tspBAGD";
this.tspBAGD.Size = new System.Drawing.Size(64, 48);
this.tspBAGD.Text = " 病案归档";
this.tspBAGD.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tspBAGD.ToolTipText = "病案归档";
this.tspBAGD.Click += new System.EventHandler(this.tspBAGD_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(6, 51);
//
// toolStripButton1
//
this.toolStripButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
this.toolStripButton1.Image = global::AIMS.Properties.Resources._申请作废;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(88, 48);
this.toolStripButton1.Text = " 取消病案归档";
this.toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.toolStripButton1.ToolTipText = "病案归档";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 51);
//
// tsbOperationRecover
//
this.tsbOperationRecover.Font = new System.Drawing.Font("微软雅黑", 9F);
@ -203,14 +237,12 @@
this.tsbOperationRecover.Size = new System.Drawing.Size(68, 48);
this.tsbOperationRecover.Text = " 回顾恢复";
this.tsbOperationRecover.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tsbOperationRecover.Visible = false;
this.tsbOperationRecover.Click += new System.EventHandler(this.tsbOperationRecover_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(6, 51);
this.toolStripSeparator3.Visible = false;
//
// tsbExit
//
@ -391,272 +423,6 @@
this.dgv.Size = new System.Drawing.Size(873, 360);
this.dgv.TabIndex = 4;
//
// tspBAGD
//
this.tspBAGD.Font = new System.Drawing.Font("微软雅黑", 9F);
this.tspBAGD.Image = global::AIMS.Properties.Resources._访视单;
this.tspBAGD.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tspBAGD.Name = "tspBAGD";
this.tspBAGD.Size = new System.Drawing.Size(64, 48);
this.tspBAGD.Text = " 病案归档";
this.tspBAGD.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.tspBAGD.ToolTipText = "病案归档";
this.tspBAGD.Click += new System.EventHandler(this.tspBAGD_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(6, 51);
//
// toolStripButton1
//
this.toolStripButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
this.toolStripButton1.Image = global::AIMS.Properties.Resources._申请作废;
this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
this.toolStripButton1.Name = "toolStripButton1";
this.toolStripButton1.Size = new System.Drawing.Size(88, 48);
this.toolStripButton1.Text = " 取消病案归档";
this.toolStripButton1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
this.toolStripButton1.ToolTipText = "病案归档";
this.toolStripButton1.Click += new System.EventHandler(this.toolStripButton1_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(6, 51);
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "PatientId";
this.dataGridViewTextBoxColumn1.HeaderText = "PatientId";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Visible = false;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "ApplyId";
this.dataGridViewTextBoxColumn2.HeaderText = "ApplyId";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.Visible = false;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "MdrecNo";
this.dataGridViewTextBoxColumn3.HeaderText = "住院号";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 80;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "ArchivesNo";
this.dataGridViewTextBoxColumn4.HeaderText = "病历号";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.Width = 80;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "ApplyDepName";
this.dataGridViewTextBoxColumn5.HeaderText = "申请科室";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.Width = 80;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "PatientKind";
this.dataGridViewTextBoxColumn6.HeaderText = "医保类别";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
this.dataGridViewTextBoxColumn6.Width = 80;
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "PatientName";
this.dataGridViewTextBoxColumn7.HeaderText = "患者姓名";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.ReadOnly = true;
this.dataGridViewTextBoxColumn7.Width = 80;
//
// dataGridViewTextBoxColumn8
//
this.dataGridViewTextBoxColumn8.DataPropertyName = "Sex";
this.dataGridViewTextBoxColumn8.HeaderText = "性别";
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
this.dataGridViewTextBoxColumn8.ReadOnly = true;
this.dataGridViewTextBoxColumn8.Width = 60;
//
// dataGridViewTextBoxColumn9
//
this.dataGridViewTextBoxColumn9.DataPropertyName = "BirthDay";
this.dataGridViewTextBoxColumn9.HeaderText = "出生日期";
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
this.dataGridViewTextBoxColumn9.Width = 80;
//
// dataGridViewTextBoxColumn10
//
this.dataGridViewTextBoxColumn10.DataPropertyName = "Height";
this.dataGridViewTextBoxColumn10.HeaderText = "身高";
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
this.dataGridViewTextBoxColumn10.Width = 70;
//
// dataGridViewTextBoxColumn11
//
this.dataGridViewTextBoxColumn11.DataPropertyName = "Weight";
this.dataGridViewTextBoxColumn11.HeaderText = "体重";
this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
this.dataGridViewTextBoxColumn11.ReadOnly = true;
this.dataGridViewTextBoxColumn11.Width = 70;
//
// dataGridViewTextBoxColumn12
//
this.dataGridViewTextBoxColumn12.DataPropertyName = "BloodType";
this.dataGridViewTextBoxColumn12.HeaderText = "血型";
this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
this.dataGridViewTextBoxColumn12.ReadOnly = true;
this.dataGridViewTextBoxColumn12.Width = 70;
//
// dataGridViewTextBoxColumn13
//
this.dataGridViewTextBoxColumn13.DataPropertyName = "RHBloodType";
this.dataGridViewTextBoxColumn13.HeaderText = "RH血型";
this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
this.dataGridViewTextBoxColumn13.Width = 70;
//
// dataGridViewTextBoxColumn14
//
this.dataGridViewTextBoxColumn14.DataPropertyName = "Illdistrict";
this.dataGridViewTextBoxColumn14.HeaderText = "病区";
this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
this.dataGridViewTextBoxColumn14.Width = 70;
//
// dataGridViewTextBoxColumn15
//
this.dataGridViewTextBoxColumn15.DataPropertyName = "SickBed";
this.dataGridViewTextBoxColumn15.HeaderText = "床位";
this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
this.dataGridViewTextBoxColumn15.ReadOnly = true;
this.dataGridViewTextBoxColumn15.Width = 70;
//
// dataGridViewTextBoxColumn16
//
this.dataGridViewTextBoxColumn16.DataPropertyName = "OperationType";
this.dataGridViewTextBoxColumn16.HeaderText = "手术类型";
this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
this.dataGridViewTextBoxColumn16.ReadOnly = true;
this.dataGridViewTextBoxColumn16.Width = 80;
//
// dataGridViewTextBoxColumn17
//
this.dataGridViewTextBoxColumn17.DataPropertyName = "State";
this.dataGridViewTextBoxColumn17.HeaderText = "状态";
this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
this.dataGridViewTextBoxColumn17.ReadOnly = true;
//
// dataGridViewTextBoxColumn18
//
this.dataGridViewTextBoxColumn18.DataPropertyName = "OperationBeginTime";
this.dataGridViewTextBoxColumn18.HeaderText = "手术开始时间";
this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
this.dataGridViewTextBoxColumn18.ReadOnly = true;
//
// dataGridViewTextBoxColumn19
//
this.dataGridViewTextBoxColumn19.DataPropertyName = "OperationEndTime";
this.dataGridViewTextBoxColumn19.HeaderText = "手术结束时间";
this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
this.dataGridViewTextBoxColumn19.ReadOnly = true;
//
// dataGridViewTextBoxColumn20
//
this.dataGridViewTextBoxColumn20.DataPropertyName = "DiagnoseInfoName";
this.dataGridViewTextBoxColumn20.HeaderText = "实施诊断";
this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
//
// dataGridViewTextBoxColumn21
//
this.dataGridViewTextBoxColumn21.DataPropertyName = "OperationInfoName";
this.dataGridViewTextBoxColumn21.HeaderText = "实施手术";
this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21";
this.dataGridViewTextBoxColumn21.ReadOnly = true;
//
// dataGridViewTextBoxColumn22
//
this.dataGridViewTextBoxColumn22.DataPropertyName = "AnaesthesiaMethodName";
this.dataGridViewTextBoxColumn22.HeaderText = "实施麻醉";
this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22";
this.dataGridViewTextBoxColumn22.ReadOnly = true;
//
// dataGridViewTextBoxColumn23
//
this.dataGridViewTextBoxColumn23.DataPropertyName = "OperationCutTypeName";
this.dataGridViewTextBoxColumn23.HeaderText = "切口类型";
this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23";
this.dataGridViewTextBoxColumn23.ReadOnly = true;
//
// dataGridViewTextBoxColumn24
//
this.dataGridViewTextBoxColumn24.DataPropertyName = "OperationBodyPositionName";
this.dataGridViewTextBoxColumn24.HeaderText = "手术体位";
this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
//
// dataGridViewTextBoxColumn25
//
this.dataGridViewTextBoxColumn25.DataPropertyName = "OperationPositionName";
this.dataGridViewTextBoxColumn25.HeaderText = "手术部位";
this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
this.dataGridViewTextBoxColumn25.ReadOnly = true;
//
// dataGridViewTextBoxColumn26
//
this.dataGridViewTextBoxColumn26.DataPropertyName = "OperationDoctor";
this.dataGridViewTextBoxColumn26.HeaderText = "术者";
this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26";
this.dataGridViewTextBoxColumn26.ReadOnly = true;
//
// dataGridViewTextBoxColumn27
//
this.dataGridViewTextBoxColumn27.DataPropertyName = "AnesthesiaDoctor";
this.dataGridViewTextBoxColumn27.HeaderText = "麻醉医生";
this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27";
this.dataGridViewTextBoxColumn27.ReadOnly = true;
//
// dataGridViewTextBoxColumn28
//
this.dataGridViewTextBoxColumn28.DataPropertyName = "Assistant";
this.dataGridViewTextBoxColumn28.HeaderText = "助手";
this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
this.dataGridViewTextBoxColumn28.ReadOnly = true;
//
// dataGridViewTextBoxColumn29
//
this.dataGridViewTextBoxColumn29.DataPropertyName = "Nurse";
this.dataGridViewTextBoxColumn29.HeaderText = "护士";
this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
this.dataGridViewTextBoxColumn29.ReadOnly = true;
//
// dataGridViewTextBoxColumn30
//
this.dataGridViewTextBoxColumn30.DataPropertyName = "Remarks";
this.dataGridViewTextBoxColumn30.HeaderText = "备注";
this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
this.dataGridViewTextBoxColumn30.ReadOnly = true;
//
// dataGridViewTextBoxColumn31
//
this.dataGridViewTextBoxColumn31.DataPropertyName = "MedicalRecord";
this.dataGridViewTextBoxColumn31.HeaderText = "归档状态";
this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
//
// dataGridViewTextBoxColumn32
//
this.dataGridViewTextBoxColumn32.DataPropertyName = "MedicalRecordTime";
this.dataGridViewTextBoxColumn32.HeaderText = "归档时间";
this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32";
//
// CheckBoxColumn
//
this.CheckBoxColumn.HeaderText = "选择";
@ -899,6 +665,238 @@
this.MedicalRecordtIME.Name = "MedicalRecordtIME";
this.MedicalRecordtIME.ReadOnly = true;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "PatientId";
this.dataGridViewTextBoxColumn1.HeaderText = "PatientId";
this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.ReadOnly = true;
this.dataGridViewTextBoxColumn1.Visible = false;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "ApplyId";
this.dataGridViewTextBoxColumn2.HeaderText = "ApplyId";
this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.ReadOnly = true;
this.dataGridViewTextBoxColumn2.Visible = false;
//
// dataGridViewTextBoxColumn3
//
this.dataGridViewTextBoxColumn3.DataPropertyName = "MdrecNo";
this.dataGridViewTextBoxColumn3.HeaderText = "住院号";
this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
this.dataGridViewTextBoxColumn3.ReadOnly = true;
this.dataGridViewTextBoxColumn3.Width = 80;
//
// dataGridViewTextBoxColumn4
//
this.dataGridViewTextBoxColumn4.DataPropertyName = "ArchivesNo";
this.dataGridViewTextBoxColumn4.HeaderText = "病历号";
this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
this.dataGridViewTextBoxColumn4.ReadOnly = true;
this.dataGridViewTextBoxColumn4.Width = 80;
//
// dataGridViewTextBoxColumn5
//
this.dataGridViewTextBoxColumn5.DataPropertyName = "ApplyDepName";
this.dataGridViewTextBoxColumn5.HeaderText = "申请科室";
this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
this.dataGridViewTextBoxColumn5.ReadOnly = true;
this.dataGridViewTextBoxColumn5.Width = 80;
//
// dataGridViewTextBoxColumn6
//
this.dataGridViewTextBoxColumn6.DataPropertyName = "PatientKind";
this.dataGridViewTextBoxColumn6.HeaderText = "医保类别";
this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6";
this.dataGridViewTextBoxColumn6.ReadOnly = true;
this.dataGridViewTextBoxColumn6.Width = 80;
//
// dataGridViewTextBoxColumn7
//
this.dataGridViewTextBoxColumn7.DataPropertyName = "PatientName";
this.dataGridViewTextBoxColumn7.HeaderText = "患者姓名";
this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7";
this.dataGridViewTextBoxColumn7.ReadOnly = true;
this.dataGridViewTextBoxColumn7.Width = 80;
//
// dataGridViewTextBoxColumn8
//
this.dataGridViewTextBoxColumn8.DataPropertyName = "Sex";
this.dataGridViewTextBoxColumn8.HeaderText = "性别";
this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
this.dataGridViewTextBoxColumn8.ReadOnly = true;
this.dataGridViewTextBoxColumn8.Width = 60;
//
// dataGridViewTextBoxColumn9
//
this.dataGridViewTextBoxColumn9.DataPropertyName = "BirthDay";
this.dataGridViewTextBoxColumn9.HeaderText = "出生日期";
this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9";
this.dataGridViewTextBoxColumn9.Width = 80;
//
// dataGridViewTextBoxColumn10
//
this.dataGridViewTextBoxColumn10.DataPropertyName = "Height";
this.dataGridViewTextBoxColumn10.HeaderText = "身高";
this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10";
this.dataGridViewTextBoxColumn10.Width = 70;
//
// dataGridViewTextBoxColumn11
//
this.dataGridViewTextBoxColumn11.DataPropertyName = "Weight";
this.dataGridViewTextBoxColumn11.HeaderText = "体重";
this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11";
this.dataGridViewTextBoxColumn11.ReadOnly = true;
this.dataGridViewTextBoxColumn11.Width = 70;
//
// dataGridViewTextBoxColumn12
//
this.dataGridViewTextBoxColumn12.DataPropertyName = "BloodType";
this.dataGridViewTextBoxColumn12.HeaderText = "血型";
this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12";
this.dataGridViewTextBoxColumn12.ReadOnly = true;
this.dataGridViewTextBoxColumn12.Width = 70;
//
// dataGridViewTextBoxColumn13
//
this.dataGridViewTextBoxColumn13.DataPropertyName = "RHBloodType";
this.dataGridViewTextBoxColumn13.HeaderText = "RH血型";
this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13";
this.dataGridViewTextBoxColumn13.Width = 70;
//
// dataGridViewTextBoxColumn14
//
this.dataGridViewTextBoxColumn14.DataPropertyName = "Illdistrict";
this.dataGridViewTextBoxColumn14.HeaderText = "病区";
this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14";
this.dataGridViewTextBoxColumn14.Width = 70;
//
// dataGridViewTextBoxColumn15
//
this.dataGridViewTextBoxColumn15.DataPropertyName = "SickBed";
this.dataGridViewTextBoxColumn15.HeaderText = "床位";
this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15";
this.dataGridViewTextBoxColumn15.ReadOnly = true;
this.dataGridViewTextBoxColumn15.Width = 70;
//
// dataGridViewTextBoxColumn16
//
this.dataGridViewTextBoxColumn16.DataPropertyName = "OperationType";
this.dataGridViewTextBoxColumn16.HeaderText = "手术类型";
this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16";
this.dataGridViewTextBoxColumn16.ReadOnly = true;
this.dataGridViewTextBoxColumn16.Width = 80;
//
// dataGridViewTextBoxColumn17
//
this.dataGridViewTextBoxColumn17.DataPropertyName = "State";
this.dataGridViewTextBoxColumn17.HeaderText = "状态";
this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17";
this.dataGridViewTextBoxColumn17.ReadOnly = true;
//
// dataGridViewTextBoxColumn18
//
this.dataGridViewTextBoxColumn18.DataPropertyName = "OperationBeginTime";
this.dataGridViewTextBoxColumn18.HeaderText = "手术开始时间";
this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18";
this.dataGridViewTextBoxColumn18.ReadOnly = true;
//
// dataGridViewTextBoxColumn19
//
this.dataGridViewTextBoxColumn19.DataPropertyName = "OperationEndTime";
this.dataGridViewTextBoxColumn19.HeaderText = "手术结束时间";
this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19";
this.dataGridViewTextBoxColumn19.ReadOnly = true;
//
// dataGridViewTextBoxColumn20
//
this.dataGridViewTextBoxColumn20.DataPropertyName = "DiagnoseInfoName";
this.dataGridViewTextBoxColumn20.HeaderText = "实施诊断";
this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20";
//
// dataGridViewTextBoxColumn21
//
this.dataGridViewTextBoxColumn21.DataPropertyName = "OperationInfoName";
this.dataGridViewTextBoxColumn21.HeaderText = "实施手术";
this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21";
this.dataGridViewTextBoxColumn21.ReadOnly = true;
//
// dataGridViewTextBoxColumn22
//
this.dataGridViewTextBoxColumn22.DataPropertyName = "AnaesthesiaMethodName";
this.dataGridViewTextBoxColumn22.HeaderText = "实施麻醉";
this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22";
this.dataGridViewTextBoxColumn22.ReadOnly = true;
//
// dataGridViewTextBoxColumn23
//
this.dataGridViewTextBoxColumn23.DataPropertyName = "OperationCutTypeName";
this.dataGridViewTextBoxColumn23.HeaderText = "切口类型";
this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23";
this.dataGridViewTextBoxColumn23.ReadOnly = true;
//
// dataGridViewTextBoxColumn24
//
this.dataGridViewTextBoxColumn24.DataPropertyName = "OperationBodyPositionName";
this.dataGridViewTextBoxColumn24.HeaderText = "手术体位";
this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24";
//
// dataGridViewTextBoxColumn25
//
this.dataGridViewTextBoxColumn25.DataPropertyName = "OperationPositionName";
this.dataGridViewTextBoxColumn25.HeaderText = "手术部位";
this.dataGridViewTextBoxColumn25.Name = "dataGridViewTextBoxColumn25";
this.dataGridViewTextBoxColumn25.ReadOnly = true;
//
// dataGridViewTextBoxColumn26
//
this.dataGridViewTextBoxColumn26.DataPropertyName = "OperationDoctor";
this.dataGridViewTextBoxColumn26.HeaderText = "术者";
this.dataGridViewTextBoxColumn26.Name = "dataGridViewTextBoxColumn26";
this.dataGridViewTextBoxColumn26.ReadOnly = true;
//
// dataGridViewTextBoxColumn27
//
this.dataGridViewTextBoxColumn27.DataPropertyName = "AnesthesiaDoctor";
this.dataGridViewTextBoxColumn27.HeaderText = "麻醉医生";
this.dataGridViewTextBoxColumn27.Name = "dataGridViewTextBoxColumn27";
this.dataGridViewTextBoxColumn27.ReadOnly = true;
//
// dataGridViewTextBoxColumn28
//
this.dataGridViewTextBoxColumn28.DataPropertyName = "Assistant";
this.dataGridViewTextBoxColumn28.HeaderText = "助手";
this.dataGridViewTextBoxColumn28.Name = "dataGridViewTextBoxColumn28";
this.dataGridViewTextBoxColumn28.ReadOnly = true;
//
// dataGridViewTextBoxColumn29
//
this.dataGridViewTextBoxColumn29.DataPropertyName = "Nurse";
this.dataGridViewTextBoxColumn29.HeaderText = "护士";
this.dataGridViewTextBoxColumn29.Name = "dataGridViewTextBoxColumn29";
this.dataGridViewTextBoxColumn29.ReadOnly = true;
//
// dataGridViewTextBoxColumn30
//
this.dataGridViewTextBoxColumn30.DataPropertyName = "Remarks";
this.dataGridViewTextBoxColumn30.HeaderText = "备注";
this.dataGridViewTextBoxColumn30.Name = "dataGridViewTextBoxColumn30";
this.dataGridViewTextBoxColumn30.ReadOnly = true;
//
// dataGridViewTextBoxColumn31
//
this.dataGridViewTextBoxColumn31.DataPropertyName = "MedicalRecord";
this.dataGridViewTextBoxColumn31.HeaderText = "归档状态";
this.dataGridViewTextBoxColumn31.Name = "dataGridViewTextBoxColumn31";
//
// dataGridViewTextBoxColumn32
//
this.dataGridViewTextBoxColumn32.DataPropertyName = "MedicalRecordTime";
this.dataGridViewTextBoxColumn32.HeaderText = "归档时间";
this.dataGridViewTextBoxColumn32.Name = "dataGridViewTextBoxColumn32";
//
// frmOperationReview
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);

View File

@ -75,26 +75,22 @@ namespace AIMS.OperationAfter.UI
private void tsbOperationRecover_Click(object sender, EventArgs e)
{
if (dgv.CurrentRow != null)
if (dgv.Rows.Count > 0)
{
int PatientId = int.Parse(dgv.CurrentRow.Cells["PatientId"].Value.ToString());
int ApplyId = int.Parse(dgv.CurrentRow.Cells["ApplyId"].Value.ToString());
DataTable OperationDoingdt = BOperationRecord.GetOperationDoingDataTableByPatientId(PatientId, 2);
if (OperationDoingdt.Rows.Count > 0)
{
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = ApplyId;
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
frmAnasRecord.ShowDialog();
}
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = ApplyId;
frmAnasRecord.State = AIMSExtension.EditState.BROWSE;
frmAnasRecord.ShowDialog();
}
else
{
MessageBox.Show("请选择患者");
}
}
}
private void tsbExit_Click(object sender, EventArgs e)

View File

@ -1,4 +1,5 @@
using DrawGraph;
using AIMSBLL;
using DrawGraph;
using HelperDB;
using Newtonsoft.Json;
using System;
@ -18,8 +19,9 @@ namespace AIMS.OperationDoing.AnasRecordBill
if (jsonStr != null && jsonStr != "")
{
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
templateManage.OpeRecord = FillAnasReordBill.getRecord(_record, -1, 1);
templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 1);
templateManage.ZedControl = Zgc;
templateManage.Id = 1;
bool reVal = templateManage.Load();
if (reVal)
{
@ -64,18 +66,19 @@ namespace AIMS.OperationDoing.AnasRecordBill
{
try
{
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=1").ToString();
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=10").ToString();
if (jsonStr != null && jsonStr != "")
{
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
templateManage.ZedControl = Zgc;
templateManage.OpeRecord = FillAnasReordBill.getRecord(_record, -1, 2);
templateManage.Id = 10;
templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 2);
bool reVal = templateManage.Load();
if (reVal)
{
templateManage.DrawArea();
DrawGraph.Util.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.018, Zgc, DrawGraph.Util.Font16);
DrawGraph.Util.DrawText(" 麻醉记录单", 0.4, 0.04, Zgc, DrawGraph.Util.Font16);
DrawGraph.Util.DrawText(" 恢复记录单", 0.4, 0.04, Zgc, DrawGraph.Util.Font16);
#region
//在此处可随时设置板子的属性

View File

@ -1,314 +0,0 @@
using AIMSBLL;
using AIMSModel;
using DrawGraph;
using HelperDB;
using System;
using System.Data;
namespace AIMS.OperationDoing.AnasRecordBill
{
public class FillAnasReordBill
{
public static OperationRecord getRecord(OperationRecord _record, int PatientId, int RecoverId)
{
if (_record == null) _record = new OperationRecord();
if (PatientId == -1)
{
return _record;
}
TitleTime titleTime = BOperationRecord.GetTitleTime(PatientId, RecoverId);
_record.PatientId = PatientId;
_record.OperationApplyId = titleTime.OperationApplyId;
_record.InRoomTime = titleTime.InRoomTime;
_record.OperationBeginTime = titleTime.OperationBeginTime;
_record.OperationEndTime = titleTime.OperationEndTime;
_record.OutRoomTime = titleTime.OutRoomTime;
DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
if (OperationFrontdt.Rows.Count > 0)
{
_record.DepartmentId = int.Parse(OperationFrontdt.Rows[0]["DepartmentId"].ToString());
_record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() + " " + OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();
_record.EndemicArea = OperationFrontdt.Rows[0]["Illdistrict"].ToString();
_record.Bed = OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.InHospitalNo = OperationFrontdt.Rows[0]["MdrecNo"].ToString();
_record.MedicalHistoryNo = OperationFrontdt.Rows[0]["ArchivesNo"].ToString();
_record.Name = OperationFrontdt.Rows[0]["PatientName"].ToString();
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
_record.Age = AIMSExtension.PublicMethod.GetAge(DateTime.Parse(OperationFrontdt.Rows[0]["BirthDay"].ToString()));
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
_record.Height = double.Parse(OperationFrontdt.Rows[0]["Height"].ToString()).ToString();
if (OperationFrontdt.Rows[0]["Weight"].ToString() != "")
_record.Weight = double.Parse(OperationFrontdt.Rows[0]["Weight"].ToString()).ToString();
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
_record.OperationPriority = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.OperationRoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim());
_record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString();
}
DataTable OperationDoingdt = BOperationRecord.GetOperationDoingDataTableByPatientId(PatientId, RecoverId);
if (OperationDoingdt.Rows.Count > 0)
{
_record.Id = int.Parse(OperationDoingdt.Rows[0]["Id"].ToString().Trim());
_record.State = OperationDoingdt.Rows[0]["State"].ToString().Trim();
_record.Operation = OperationDoingdt.Rows[0]["OperationInfoId"].ToString().Trim();
_record.Diagnose = OperationDoingdt.Rows[0]["DiagnoseInfoId"].ToString().Trim();
_record.AnaesthesiaMethodId = OperationDoingdt.Rows[0]["AnaesthesiaMethodId"].ToString().Trim();
_record.OperationSiteId = OperationDoingdt.Rows[0]["OperationBodyPositionId"].ToString().Trim();
_record.OperationPositionId = OperationDoingdt.Rows[0]["OperationPositionId"].ToString().Trim();
_record.OperationDoctor = OperationDoingdt.Rows[0]["OperationDoctorId"].ToString().Trim();
_record.Assistant1 = OperationDoingdt.Rows[0]["AssistantId"].ToString().Trim();
_record.AnesthesiaDoctor = OperationDoingdt.Rows[0]["AnesthesiaDoctorId"].ToString().Trim();
_record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim();
_record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim();
_record.AnesthesiaDoctorAssistant = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim();
_record.ASALevel = OperationDoingdt.Rows[0]["ASALevel"].ToString().Trim();
_record.SpecialCase = OperationDoingdt.Rows[0]["SpecialCase"].ToString().Trim();
if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
if (OperationDoingdt.Rows[0]["Fasting"].ToString() != "")
_record.Fasting = int.Parse(OperationDoingdt.Rows[0]["Fasting"].ToString());
_record.BloodType = OperationDoingdt.Rows[0]["BloodType"].ToString().Trim();
}
FillEventsDataAll(PatientId, RecoverId, _record);
FillDrugDataAll(PatientId, RecoverId, _record);
DrawOutFluid(PatientId, RecoverId, _record);
GetAnaseDataQualityRecord(_record);
_record.opeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null);
if (_record.opeRecordInfo == null) _record.opeRecordInfo = new OperationRecordInfo();
_record.FactBloodGasAnalysisList = BFactBloodGasAnalysis.Select("OperationRecordId=" + _record.Id, null);
foreach (var item in _record.FactBloodGasAnalysisList)
{
item.FactBloodGasAnalysisDataList = BFactBloodGasAnalysisData.Select("RecordId=" + item.Id, null);
}
return _record;
}
public static void FillDrugDataAll(int PatientId, int TypeId, OperationRecord _record)
{
//药品
_record.FactDrugList.Clear();
DataTable DrugAllData = BOperationRecord.FillDrugData(PatientId, TypeId);
for (int i = 0; i < DrugAllData.Rows.Count; i++)
{
FactDrug FactDrug = new FactDrug();
FactDrug.Id = int.Parse(DrugAllData.Rows[i]["Id"].ToString()); ;
FactDrug.DrugTypeId = TypeId;
FactDrug.PatientId = PatientId;
FactDrug.ParentId = int.Parse(DrugAllData.Rows[i]["ParentId"].ToString()); ;
FactDrug.DrugId = int.Parse(DrugAllData.Rows[i]["DrugsId"].ToString());
FactDrug.DrugName = DrugAllData.Rows[i]["DrugName"].ToString();
FactDrug.DrugBeginTime = DateTime.Parse(DateTime.Parse(DrugAllData.Rows[i]["DrugBeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactDrug.DrugEndTime = DateTime.Parse(DateTime.Parse(DrugAllData.Rows[i]["DrugEndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
if (DrugAllData.Rows[i]["Dosage"].ToString() != "") FactDrug.Dosage = decimal.Parse(DrugAllData.Rows[i]["Dosage"].ToString());
FactDrug.DosageUnit = DrugAllData.Rows[i]["DosageUnit"].ToString();
FactDrug.DrugChannel = DrugAllData.Rows[i]["DrugChannel"].ToString();
FactDrug.GiveDrugType = DrugAllData.Rows[i]["GiveDrugType"].ToString();
FactDrug.Remark = DrugAllData.Rows[i]["Remark"].ToString();
FactDrug.DrugKind = DrugAllData.Rows[i]["DrugKind"].ToString();
FactDrug.IsContinue = int.Parse(DrugAllData.Rows[i]["IsContinue"].ToString());
if (DrugAllData.Rows[i]["Density"].ToString() != "") FactDrug.Density = decimal.Parse(DrugAllData.Rows[i]["Density"].ToString());
FactDrug.DensityUnit = DrugAllData.Rows[i]["DensityUnit"].ToString();
if (DrugAllData.Rows[i]["Velocity"].ToString() != "") FactDrug.Velocity = decimal.Parse(DrugAllData.Rows[i]["Velocity"].ToString());
FactDrug.VelocityUnit = DrugAllData.Rows[i]["VelocityUnit"].ToString();
FactDrug.BloodType = DrugAllData.Rows[i]["BloodType"].ToString();
FactDrug.OperatorNo = DrugAllData.Rows[i]["OperatorNo"].ToString();
FactDrug.OperatorName = DrugAllData.Rows[i]["OperatorName"].ToString();
FactDrug.OperateDate = DateTime.Parse(DrugAllData.Rows[i]["OperateDate"].ToString());
_record.FactDrugList.Add(FactDrug);
}
}
public static void FillEventsDataAll(int PatientId, int TypeId, OperationRecord _record)
{
//事件
_record.FactEventsList.Clear();
DataTable dt = BFactEvents.GetDataTable(PatientId, TypeId);
for (int i = 0; i < dt.Rows.Count; i++)
{
FactEvents FactEventsObj = new FactEvents();
FactEventsObj.Id = int.Parse(dt.Rows[i]["Id"].ToString());
if (dt.Rows[i]["Remark"].ToString() == "")
{
FactEventsObj.EventName = dt.Rows[i]["EventName"].ToString();
}
else
{
FactEventsObj.EventName = dt.Rows[i]["EventName"].ToString() + " " + dt.Rows[i]["Remark"].ToString();
}
FactEventsObj.EventBeginTime = DateTime.Parse(DateTime.Parse(dt.Rows[i]["EventBeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactEventsObj.EventEndTime = DateTime.Parse(DateTime.Parse(dt.Rows[i]["EventEndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactEventsObj.OperatorNo = dt.Rows[i]["OperatorNo"].ToString();
FactEventsObj.OperatorName = dt.Rows[i]["OperatorName"].ToString();
FactEventsObj.OperateDate = DateTime.Parse(dt.Rows[i]["OperateDate"].ToString());
_record.FactEventsList.Add(FactEventsObj);
if (FactEventsObj.EventName == "手术开始")
{
_record.OperationBeginTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "手术结束")
{
_record.OperationEndTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "麻醉开始")
{
_record.AnesthesiaBeginTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "麻醉完成")
{
_record.AnesthesiaEndTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "插管")
{
_record.InCGType = FactEventsObj.EventName;
_record.InCGTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "喉罩")
{
_record.InCGType = FactEventsObj.EventName;
_record.InCGTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "拔管")
{
_record.OutCGTime = FactEventsObj.EventBeginTime;
}
}
}
public static void DrawOutFluid(int PatientId, int TypeId, OperationRecord _record)
{
//出量
_record.FactOutputLiquidsList.Clear();
DataTable OutputLiquidsDistinct = BOperationRecord.FillOutFluid(PatientId, TypeId);
for (int i = 0; i < OutputLiquidsDistinct.Rows.Count; i++)
{
FactOutputLiquids OutputLiquidsObj = new FactOutputLiquids();
OutputLiquidsObj.OutputLiquidsTypeId = TypeId;
OutputLiquidsObj.PatientId = PatientId;
OutputLiquidsObj.Id = int.Parse(OutputLiquidsDistinct.Rows[i]["Id"].ToString());
OutputLiquidsObj.OutputLiquidsId = int.Parse(OutputLiquidsDistinct.Rows[i]["OutputLiquidsId"].ToString());
OutputLiquidsObj.OutputLiquidsName = OutputLiquidsDistinct.Rows[i]["OutputLiquidsName"].ToString();
OutputLiquidsObj.DosageUnit = OutputLiquidsDistinct.Rows[i]["DosageUnit"].ToString();
OutputLiquidsObj.BeginTime = DateTime.Parse(DateTime.Parse(OutputLiquidsDistinct.Rows[i]["BeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
OutputLiquidsObj.EndTime = DateTime.Parse(DateTime.Parse(OutputLiquidsDistinct.Rows[i]["EndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
OutputLiquidsObj.Dosage = decimal.Parse(OutputLiquidsDistinct.Rows[i]["Dosage"].ToString());
OutputLiquidsObj.DosageUnit = OutputLiquidsDistinct.Rows[i]["DosageUnit"].ToString();
OutputLiquidsObj.Remark = OutputLiquidsDistinct.Rows[i]["Remark"].ToString();
_record.FactOutputLiquidsList.Add(OutputLiquidsObj);
}
}
public static void GetAnaseDataQualityRecord(OperationRecord _record)
{
//出量
_record.AnaseDataQualityRecordList.Clear();
_record.AnaseDataQualityRecordList = BAnaseDataQualityRecord.Select("OperationRecordId=" + _record.Id, null);
}
/// <summary>
/// 判断添加的事件 是否正确
/// </summary>
/// <param name="OpeState">true :术中 false恢复</param>
/// <param name="_record">手术对象</param>
/// <param name="EventName">事件名称</param>
/// <param name="curTimeTemp">事件时间</param>
/// <param name="messing">返回提示消息</param>
/// <returns></returns>
public static bool IfTimeisTrue(bool OpeState, OperationRecord _record, string EventName, DateTime curTimeTemp, ref string messing)
{
//if (curTimeTemp > PublicMethod.ServerTime())
//{
// messing = EventName + "时间不可以大于当前时间 ";
// return false;
//}
TimeSpan ifinroom = curTimeTemp - _record.InRoomTime.Value;
if (EventName != "入室" && _record.InRoomTime == null)
{
messing = "请填写入室时间 ";
return false;
}
else if (EventName != "入室" && (ifinroom.TotalHours > 48 || ifinroom.TotalDays < -48))
{
messing = EventName + "时间不能大于入室时间48小时 ";
return false;
}
else if (EventName != "入室" && EventName != "麻醉开始" && _record.InRoomTime > curTimeTemp)// && OpeState == true
{
//TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
//if (tsp.TotalHours > 12 || tsp.TotalDays > 1)
// messing = "";// "请在“事件记录”添加" + EventName + "时间!";
//else
messing = EventName + "时间不能小于入室时间(" + _record.InRoomTime + ") ";
return false;
}
if (_record.OutRoomTime != null && EventName != "出室" && EventName != "麻醉结束" && _record.OutRoomTime < curTimeTemp && OpeState == true)
{
messing = EventName + "时间不能大于出室时间(" + _record.OutRoomTime + ") ";
return false;
}
//if (EventName == "麻醉开始" && _record.OperationBeginTime != null && curTimeTemp > _record.OperationBeginTime && OpeState == true)
//{
// messing = "麻醉开始时间不能大于手术开始时间(" + _record.OperationBeginTime + ") ";
// return false;
//}
//if (EventName == "手术开始" && _record.AnesthesiaBeginTime == null && OpeState == true)
//{
// messing = "请先填写麻醉开始时间!";
// return false;
//}
//if (EventName == "手术开始" && curTimeTemp < _record.AnesthesiaBeginTime && OpeState == true)
//{
// messing = "手术开始时间必须晚于麻醉开始时间(" + _record.AnesthesiaBeginTime + ") ";
// return false;
//}
else if (EventName == "手术开始" && _record.OperationEndTime != null && curTimeTemp > _record.OperationEndTime && OpeState == true)
{
messing = "手术开始时间不能大于手术结束时间(" + _record.OperationBeginTime + ") ";
return false;
}
if (EventName == "手术结束" && _record.OperationBeginTime == null && OpeState == true)
{
messing = "请先填写手术开始时间!";
return false;
}
else if (EventName == "手术结束" && curTimeTemp < _record.OperationBeginTime && OpeState == true)
{
messing = "手术结束时间必须晚于手术开始时间(" + _record.OperationBeginTime + ") ";
return false;
}
if (EventName == "出室" && _record.OperationEndTime == null && OpeState == true)
{
messing = "请先填写手术结束时间!";
return false;
}
else if (EventName == "出室" && curTimeTemp < _record.OperationEndTime && OpeState == true)
{
messing = "出室时间必须晚于手术结束时间(" + _record.OperationEndTime + ") ";
return false;
}
return true;
}
public static DataTable getOperationRecorePhysioData(int operationId)
{
string sqlStr = "exec [dbo].[usp_GetOperationRecorePhysioData] " + operationId;
return DBHelper.GetDataTable(sqlStr);
}
}
}

View File

@ -560,7 +560,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
string messing = "";
bool timeistrue = true;
timeistrue = FillAnasReordBill.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing);
timeistrue = BOperationRecord.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing);
if (_record.State != null && _record.State != "5")
{
if (messing != "")
@ -866,7 +866,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
PublicUI.UI.frmFactDrugNew frmFactDrug = new PublicUI.UI.frmFactDrugNew();
frmFactDrug._record = _record;
frmFactDrug.zgcAnaesRecord = zgcAnaesRecord;
frmFactDrug.DrugTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactDrug.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
frmFactDrug.ShowDialog();
}
@ -882,7 +882,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
PublicUI.UI.frmFactEventsNew frmFactEventsNew = new PublicUI.UI.frmFactEventsNew();
frmFactEventsNew._record = _record;
frmFactEventsNew.zgcAnaesRecord = zgcAnaesRecord;
frmFactEventsNew.EventTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactEventsNew.EventTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactEventsNew.EventParam += ReferEventDrugs;
frmFactEventsNew.ShowDialog();
}
@ -897,7 +897,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew();
frmFactOutputLiquids._record = _record;
frmFactOutputLiquids.OutputLiquidTypeId = 1; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单
frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed);
frmFactOutputLiquids.ShowDialog();
}
@ -1570,7 +1570,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
if (PatientId != 0)
{
templateManage.OpeRecord = FillAnasReordBill.getRecord(_record, PatientId, RecoverId);
templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId);
templateManage.BindOperationRecordValueAll(templateManage.OpeRecord);
reDrawEvent();
templateManage.Bind();
@ -1762,12 +1762,12 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
isTrue = false;
}
if (_record.opeRecordInfo.StewardNumber == null || _record.opeRecordInfo.StewardNumber.ToString().Trim() == "")
if (_record.OpeRecordInfo.StewardNumber == null || _record.OpeRecordInfo.StewardNumber.ToString().Trim() == "")
{
message = "请与手术信息选择患者Steward评分";
isTrue = false;
}
if (_record.opeRecordInfo.Whereabouts == null || _record.opeRecordInfo.Whereabouts.ToString().Trim() == "")
if (_record.OpeRecordInfo.Whereabouts == null || _record.OpeRecordInfo.Whereabouts.ToString().Trim() == "")
{
message = "请与手术信息选择患者去向!";
isTrue = false;

View File

@ -123,9 +123,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
try
{
if (_record.opeRecordInfo != null)
if (_record.OpeRecordInfo != null)
{
OPInfo = _record.opeRecordInfo;
OPInfo = _record.OpeRecordInfo;
cboOperationLevel.Text = OPInfo.OperationLevel;
cboOperationLevel.Tag = OPInfo.OperationLevelId;
@ -341,10 +341,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
if (OPInfo.AnesthesiaMethodChangeTime != null) dtpTime.Value = OPInfo.AnesthesiaMethodChangeTime.Value;
}
cboQXCD.Text = OPInfo.StewardSober.ToString();
cboHXDTCCD.Text = OPInfo.StewardBreathing.ToString();
cboZTHDD.Text = OPInfo.StewardLimbActivity.ToString();
cboSteward.Text = OPInfo.StewardNumber.ToString();
cboQXCD.Text = OPInfo.StewardSober;
cboHXDTCCD.Text = OPInfo.StewardBreathing;
cboZTHDD.Text = OPInfo.StewardLimbActivity;
cboSteward.Text = OPInfo.StewardNumber;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,377 @@
using AIMSBLL;
using AIMSExtension;
using AxNsoOfficeLib;
using DrawGraph;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace AIMS.OperationDoing.AnasRecoverBill.UI
{
public partial class frmOpeRecoverInInfo : Form
{
/// <summary>
/// 手术记录
/// </summary>
public OperationRecord _record;
public frmOpeRecoverInInfo()
{
InitializeComponent();
}
private void frmInPACUConditionSYD_Load(object sender, EventArgs e)
{
try
{
if (_record.OpeRecoverInInfo != null)
{
cboMZPM.Text = _record.OpeRecoverInInfo.AnestheticPlane;
txtZPF.Text = _record.OpeRecoverInInfo.PACUStewardScore.ToString();
cboJSHF.Text = _record.OpeRecoverInInfo.MuscleRelaxation;//肌力评分
cboPF.Text = _record.OpeRecoverInInfo.Skin;//皮肤破损
cboTT.Text = _record.OpeRecoverInInfo.Pain;//VAS评分
cboJMTC.Text = _record.OpeRecoverInInfo.VenousPatency;//液路通畅
cboYLBS.Text = _record.OpeRecoverInInfo.DrainageIdentification;//引流管通畅
cboYLWZ.Text = _record.OpeRecoverInInfo.DrainagePosition;//尿管通畅
cboYLMC.Text = _record.OpeRecoverInInfo.DrainageName;//导管名称
if (_record.OpeRecoverInInfo.LightReflection != null) SetSpecialResult(_record.OpeRecoverInInfo.LightReflection);
txtT.Text = _record.OpeRecoverInInfo.Temp;//入室体温
//if (_record.OpeRecoverInInfo.StewardSober != null && _record.OpeRecoverInInfo.StewardSober != "")
//{
// foreach (string item in cboQXCD.Items)
// {
// if (item.Contains(_record.OpeRecoverInInfo.StewardSober))
// {
// cboQXCD.Text = item;
// }
// }
//}
//if (_record.OpeRecoverInInfo.StewardBreathing != null && _record.OpeRecoverInInfo.StewardBreathing != "")
//{
// foreach (string item in cboHXDTCCD.Items)
// {
// if (item.Contains(_record.OpeRecoverInInfo.StewardBreathing))
// {
// cboHXDTCCD.Text = item;
// }
// }
//}
//if (_record.OpeRecoverInInfo.StewardLimbActivity != null && _record.OpeRecoverInInfo.StewardLimbActivity != "")
//{
// foreach (string item in cboZTHDD.Items)
// {
// if (item.Contains(_record.OpeRecoverInInfo.StewardLimbActivity))
// {
// cboZTHDD.Text = item;
// }
// }
//}
//if (_record.OpeRecoverInInfo.BP != null && _record.OpeRecoverInInfo.BP != "")
//{
// foreach (string item in txtBP.Items)
// {
// if (item.Contains(_record.OpeRecoverInInfo.BP))
// {
// txtBP.Text = item;
// }
// }
//}
//if (_record.OpeRecoverInInfo.SPO2 != null && _record.OpeRecoverInInfo.SPO2 != "")
//{
// foreach (string item in txtSPO2.Items)
// {
// if (item.Contains(_record.OpeRecoverInInfo.SPO2))
// {
// txtSPO2.Text = item;
// }
// }
//}
cboQXCD.Text = _record.OpeRecoverInInfo.StewardSober;
cboHXDTCCD.Text = _record.OpeRecoverInInfo.StewardBreathing;
cboZTHDD.Text = _record.OpeRecoverInInfo.StewardLimbActivity;
txtBP.Text = _record.OpeRecoverInInfo.BP;//Aldrete血压
txtSPO2.Text = _record.OpeRecoverInInfo.SPO2;//AldreteSPO2
if (_record.OperationAnalgesiaMode != null && _record.OperationAnalgesiaMode != "")
{
checkBox5.Checked = true;
}
if (_record.OpeRecoverInInfo.Nausea != null && _record.OpeRecoverInInfo.Nausea != "")
{
txtPain.Text = _record.OpeRecoverInInfo.Nausea;
slider1.Value = int.Parse(_record.OpeRecoverInInfo.Nausea);
}
}
}
catch (Exception exp)
{
PublicMethod.WriteLog(exp, ""); return;
}
}
/// <summary>
/// 关闭时保存
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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;
if (txtZPF.Text.Trim() != "") _record.OpeRecoverInInfo.PACUStewardScore = int.Parse(txtZPF.Text);
_record.OpeRecoverInInfo.MuscleRelaxation = cboJSHF.Text;
_record.OpeRecoverInInfo.Temp = txtT.Text;
_record.OpeRecoverInInfo.Skin = cboPF.Text;
_record.OpeRecoverInInfo.Nausea = txtPain.Text;
_record.OpeRecoverInInfo.Pain = cboTT.Text;
_record.OpeRecoverInInfo.VenousPatency = cboJMTC.Text;
_record.OpeRecoverInInfo.DrainageIdentification = cboYLBS.Text;
_record.OpeRecoverInInfo.DrainagePosition = cboYLWZ.Text;
_record.OpeRecoverInInfo.DrainageName = cboYLMC.Text;
_record.OpeRecoverInInfo.LightReflection = GetSpecialResult();
_record.OpeRecoverInInfo.AnestheticPlane = cboMZPM.Text;
_record.OpeRecoverInInfo.Remark = txtSQTSQK.Text;
_record.OpeRecoverInInfo.StewardSober = cboQXCD.Text;
_record.OpeRecoverInInfo.StewardBreathing = cboHXDTCCD.Text;
_record.OpeRecoverInInfo.StewardLimbActivity = cboZTHDD.Text;
_record.OpeRecoverInInfo.BP = txtBP.Text;
_record.OpeRecoverInInfo.SPO2 = txtSPO2.Text;
//if (cboQXCD.Text != "")
// _record.OpeRecoverInInfo.StewardSober = cboQXCD.Text.Substring(0, cboQXCD.Text.LastIndexOf('') - 1);
//else
// _record.OpeRecoverInInfo.StewardSober = "";
//if (cboHXDTCCD.Text != "")
// _record.OpeRecoverInInfo.StewardBreathing = cboHXDTCCD.Text.Substring(0, cboHXDTCCD.Text.LastIndexOf('') - 1);
//else
// _record.OpeRecoverInInfo.StewardBreathing = "";
//if (cboZTHDD.Text != "")
// _record.OpeRecoverInInfo.StewardLimbActivity = cboZTHDD.Text.Substring(0, cboZTHDD.Text.LastIndexOf('') - 1);
//else
// _record.OpeRecoverInInfo.StewardLimbActivity = "";
//if (txtBP.Text != "")
// _record.OpeRecoverInInfo.BP = txtBP.Text.Substring(0, txtBP.Text.LastIndexOf('') - 1);
//else
// _record.OpeRecoverInInfo.BP = "";
//if (txtSPO2.Text != "")
// _record.OpeRecoverInInfo.SPO2 = txtSPO2.Text.Substring(0, txtSPO2.Text.LastIndexOf('') - 1);
//else
// _record.OpeRecoverInInfo.SPO2 = "";
_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);
}
}
}
catch (Exception exp)
{
PublicMethod.WriteLog(exp, ""); return;
}
}
private void frmInPACUConditionSYD_FormClosing(object sender, FormClosingEventArgs e)
{
btExit_Click(null, null);
}
/// <summary>
/// 意识
/// </summary>
int StewardSober = 0;
/// <summary>
/// 呼吸
/// </summary>
int StewardBreathing = 0;
/// <summary>
/// 活动
/// </summary>
int StewardLimbActivity = 0;
/// <summary>
/// 血压
/// </summary>
int StewardBP = 0;
/// <summary>
/// Spo2
/// </summary>
int StewardSpo2 = 0;
/// <summary>
/// 总评分
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cboQXCD_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboQXCD.Text != null && cboQXCD.Text.Trim() != "") StewardSober = GetSourcesDate(cboQXCD).Value;
if (cboHXDTCCD.Text != null && cboHXDTCCD.Text.Trim() != "") StewardBreathing = GetSourcesDate(cboHXDTCCD).Value;
if (cboZTHDD.Text != null && cboZTHDD.Text.Trim() != "") StewardLimbActivity = GetSourcesDate(cboZTHDD).Value;
if (txtBP.Text != null && txtBP.Text.Trim() != "") StewardBP = GetSourcesDate(txtBP).Value;
if (txtSPO2.Text != null && txtSPO2.Text.Trim() != "") StewardSpo2 = GetSourcesDate(txtSPO2).Value;
txtZPF.Text = (StewardSober + StewardBreathing + StewardLimbActivity + StewardBP + StewardSpo2).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 button1_Click(object sender, EventArgs e)
{
if (cboJSHF.Text == "") cboJSHF.Text = " /";
if (cboPF.Text == "") cboPF.Text = "无";
if (cboTT.Text == "") cboTT.Text = " /";
if (cboJMTC.Text == "") cboJMTC.Text = " /";
if (txtSQTSQK.Text == "") txtSQTSQK.Text = " /";
if (cboYLBS.Text == "") cboYLBS.Text = " /";
if (cboYLWZ.Text == "") cboYLWZ.Text = " /";
if (cboYLMC.Text == "") cboYLMC.Text = " /";
if (txtT.Text == "") txtT.Text = " /";
}
private void cboMZPM_SelectedIndexChanged(object sender, EventArgs e)
{
}
public string GetSpecialResult()
{
string specila = "";
List<string> strs = new List<string>();
if (checkBox1.Checked == true)
{
strs.Add(checkBox1.Text);
}
if (checkBox2.Checked == true)
{
strs.Add(checkBox2.Text);
}
if (checkBox3.Checked == true)
{
strs.Add(checkBox3.Text);
}
if (checkBox4.Checked == true)
{
strs.Add(checkBox4.Text);
}
if (checkBox5.Checked == true)
{
strs.Add(checkBox5.Text);
}
if (checkBox6.Checked == true)
{
//strs.Add(checkBox6.Text);
strs.Add(uText1.Text);
}
if (strs.Count > 0)
{
specila = String.Join(" ", strs);
}
return specila;
}
public void SetSpecialResult(string specila)
{
List<string> strs = new List<string>();
strs = specila.Split(' ').ToList();
foreach (string item in strs)
{
if (item == checkBox1.Text)
{
checkBox1.Checked = true;
continue;
}
else if (item == checkBox2.Text)
{
checkBox2.Checked = true;
continue;
}
else if (item == checkBox3.Text)
{
checkBox3.Checked = true;
continue;
}
else if (item == checkBox4.Text)
{
checkBox4.Checked = true;
continue;
}
else if (item == checkBox5.Text)
{
checkBox5.Checked = true;
continue;
}
//else if (item == checkBox6.Text)
//{
// checkBox6.Checked = true;
// continue;
//}
else if (item != "")
{
checkBox6.Checked = true;
uText1.Text = item;
continue;
}
}
}
private void checkBox6_CheckedChanged(object sender, EventArgs e)
{
if (checkBox6.Checked == true)
{
uText1.ReadOnly = false;
uText1.Focus();
}
else
{
uText1.ReadOnly = true;
uText1.Text = "";
}
}
private void slider1_ValueChanged(object sender, EventArgs e)
{
txtPain.Text = slider1.Value.ToString();
}
private void groupBox1_Enter(object sender, EventArgs e)
{
}
}
}

View File

@ -0,0 +1,778 @@
namespace AIMS.OperationDoing.AnasRecoverBill.UI
{
partial class frmOpeRecoverInInfo
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmOpeRecoverInInfo));
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label7 = new System.Windows.Forms.Label();
this.txtPain = new AIMS.OremrUserControl.NumTextBox();
this.label5 = new System.Windows.Forms.Label();
this.slider1 = new DevComponents.DotNetBar.Controls.Slider();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.cboHXDTCCD = new System.Windows.Forms.ComboBox();
this.label28 = new System.Windows.Forms.Label();
this.label20 = new System.Windows.Forms.Label();
this.label51 = new System.Windows.Forms.Label();
this.label52 = new System.Windows.Forms.Label();
this.txtSPO2 = new System.Windows.Forms.ComboBox();
this.cboZTHDD = new System.Windows.Forms.ComboBox();
this.txtBP = new System.Windows.Forms.ComboBox();
this.label53 = new System.Windows.Forms.Label();
this.cboQXCD = new System.Windows.Forms.ComboBox();
this.button1 = new System.Windows.Forms.Button();
this.btExit = new System.Windows.Forms.Button();
this.txtSQTSQK = new AIMS.OremrUserControl.UText();
this.label54 = new System.Windows.Forms.Label();
this.uText1 = new AIMS.OremrUserControl.UText();
this.cboYLMC = new AIMS.OremrUserControl.UText();
this.txtZPF = new AIMS.OremrUserControl.NumTextBox();
this.checkBox6 = new System.Windows.Forms.CheckBox();
this.checkBox5 = new System.Windows.Forms.CheckBox();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.label1 = new System.Windows.Forms.Label();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.cboJSHF = new System.Windows.Forms.ComboBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.cboTT = new System.Windows.Forms.ComboBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.label9 = new System.Windows.Forms.Label();
this.label18 = new System.Windows.Forms.Label();
this.cboYLWZ = new System.Windows.Forms.ComboBox();
this.label17 = new System.Windows.Forms.Label();
this.cboYLBS = new System.Windows.Forms.ComboBox();
this.label30 = new System.Windows.Forms.Label();
this.txtT = new System.Windows.Forms.TextBox();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.cboPF = new System.Windows.Forms.ComboBox();
this.label27 = new System.Windows.Forms.Label();
this.cboMZPM = new System.Windows.Forms.ComboBox();
this.label16 = new System.Windows.Forms.Label();
this.cboJMTC = new System.Windows.Forms.ComboBox();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label7);
this.groupBox1.Controls.Add(this.txtPain);
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.slider1);
this.groupBox1.Controls.Add(this.groupBox2);
this.groupBox1.Controls.Add(this.button1);
this.groupBox1.Controls.Add(this.btExit);
this.groupBox1.Controls.Add(this.txtSQTSQK);
this.groupBox1.Controls.Add(this.label54);
this.groupBox1.Controls.Add(this.uText1);
this.groupBox1.Controls.Add(this.cboYLMC);
this.groupBox1.Controls.Add(this.txtZPF);
this.groupBox1.Controls.Add(this.checkBox6);
this.groupBox1.Controls.Add(this.checkBox5);
this.groupBox1.Controls.Add(this.checkBox4);
this.groupBox1.Controls.Add(this.label1);
this.groupBox1.Controls.Add(this.checkBox3);
this.groupBox1.Controls.Add(this.cboJSHF);
this.groupBox1.Controls.Add(this.checkBox2);
this.groupBox1.Controls.Add(this.cboTT);
this.groupBox1.Controls.Add(this.checkBox1);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label18);
this.groupBox1.Controls.Add(this.cboYLWZ);
this.groupBox1.Controls.Add(this.label17);
this.groupBox1.Controls.Add(this.cboYLBS);
this.groupBox1.Controls.Add(this.label30);
this.groupBox1.Controls.Add(this.txtT);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.label6);
this.groupBox1.Controls.Add(this.cboPF);
this.groupBox1.Controls.Add(this.label27);
this.groupBox1.Controls.Add(this.cboMZPM);
this.groupBox1.Controls.Add(this.label16);
this.groupBox1.Controls.Add(this.cboJMTC);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.groupBox1.Size = new System.Drawing.Size(920, 354);
this.groupBox1.TabIndex = 555;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "入室情况";
this.groupBox1.Enter += new System.EventHandler(this.groupBox1_Enter);
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(436, 306);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(23, 20);
this.label7.TabIndex = 567;
this.label7.Text = "分";
//
// txtPain
//
this.txtPain.Location = new System.Drawing.Point(374, 304);
this.txtPain.Name = "txtPain";
this.txtPain.ReadOnly = true;
this.txtPain.Size = new System.Drawing.Size(56, 26);
this.txtPain.TabIndex = 569;
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(22, 306);
this.label5.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(65, 20);
this.label5.TabIndex = 563;
this.label5.Text = "NRS评分";
//
// slider1
//
//
//
//
this.slider1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
this.slider1.Font = new System.Drawing.Font("微软雅黑", 11.5F);
this.slider1.LabelVisible = false;
this.slider1.Location = new System.Drawing.Point(97, 306);
this.slider1.Maximum = 10;
this.slider1.Name = "slider1";
this.slider1.Size = new System.Drawing.Size(267, 23);
this.slider1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.slider1.TabIndex = 1533;
this.slider1.TrackMarker = false;
this.slider1.Value = 0;
this.slider1.ValueChanged += new System.EventHandler(this.slider1_ValueChanged);
//
// groupBox2
//
this.groupBox2.Controls.Add(this.cboHXDTCCD);
this.groupBox2.Controls.Add(this.label28);
this.groupBox2.Controls.Add(this.label20);
this.groupBox2.Controls.Add(this.label51);
this.groupBox2.Controls.Add(this.label52);
this.groupBox2.Controls.Add(this.txtSPO2);
this.groupBox2.Controls.Add(this.cboZTHDD);
this.groupBox2.Controls.Add(this.txtBP);
this.groupBox2.Controls.Add(this.label53);
this.groupBox2.Controls.Add(this.cboQXCD);
this.groupBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox2.Location = new System.Drawing.Point(7, 143);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(906, 115);
this.groupBox2.TabIndex = 1532;
this.groupBox2.TabStop = false;
this.groupBox2.Text = "入室Aldrete评分";
//
// cboHXDTCCD
//
this.cboHXDTCCD.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboHXDTCCD.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboHXDTCCD.FormattingEnabled = true;
this.cboHXDTCCD.Items.AddRange(new object[] {
"",
"2分-能深呼吸和有效咳嗽,呼吸频率和幅度正常",
"1分-呼吸困难或受限,但有浅而慢的自主呼吸,可能用口咽通气道",
"0分-呼吸暂停或微弱呼吸,需呼吸器治疗或辅助呼吸"});
this.cboHXDTCCD.Location = new System.Drawing.Point(432, 27);
this.cboHXDTCCD.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboHXDTCCD.Name = "cboHXDTCCD";
this.cboHXDTCCD.Size = new System.Drawing.Size(467, 28);
this.cboHXDTCCD.TabIndex = 518;
this.cboHXDTCCD.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// label28
//
this.label28.AutoSize = true;
this.label28.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label28.Location = new System.Drawing.Point(615, 74);
this.label28.Name = "label28";
this.label28.Size = new System.Drawing.Size(45, 20);
this.label28.TabIndex = 555;
this.label28.Text = "SPO2";
//
// label20
//
this.label20.AutoSize = true;
this.label20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label20.Location = new System.Drawing.Point(15, 74);
this.label20.Name = "label20";
this.label20.Size = new System.Drawing.Size(37, 20);
this.label20.TabIndex = 555;
this.label20.Text = "血压";
//
// label51
//
this.label51.AutoSize = true;
this.label51.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label51.Location = new System.Drawing.Point(326, 74);
this.label51.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label51.Name = "label51";
this.label51.Size = new System.Drawing.Size(37, 20);
this.label51.TabIndex = 515;
this.label51.Text = "意识";
//
// label52
//
this.label52.AutoSize = true;
this.label52.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label52.Location = new System.Drawing.Point(386, 30);
this.label52.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label52.Name = "label52";
this.label52.Size = new System.Drawing.Size(37, 20);
this.label52.TabIndex = 515;
this.label52.Text = "呼吸";
//
// txtSPO2
//
this.txtSPO2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.txtSPO2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtSPO2.FormattingEnabled = true;
this.txtSPO2.Items.AddRange(new object[] {
"",
"2分-呼吸空气SpO2≥92%",
"1分-呼吸氧气SpO2 ≥92%",
"0分-呼吸氧气SpO2 92%"});
this.txtSPO2.Location = new System.Drawing.Point(672, 71);
this.txtSPO2.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.txtSPO2.Name = "txtSPO2";
this.txtSPO2.Size = new System.Drawing.Size(226, 28);
this.txtSPO2.TabIndex = 518;
this.txtSPO2.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// cboZTHDD
//
this.cboZTHDD.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboZTHDD.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboZTHDD.FormattingEnabled = true;
this.cboZTHDD.Items.AddRange(new object[] {
"",
"2分-自主或遵嘱活动四肢和抬头",
"1分-自主或遵嘱活动二肢和有限制的抬头",
"0分-不能活动肢体或抬头"});
this.cboZTHDD.Location = new System.Drawing.Point(68, 27);
this.cboZTHDD.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboZTHDD.Name = "cboZTHDD";
this.cboZTHDD.Size = new System.Drawing.Size(311, 28);
this.cboZTHDD.TabIndex = 518;
this.cboZTHDD.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// txtBP
//
this.txtBP.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.txtBP.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.txtBP.FormattingEnabled = true;
this.txtBP.Items.AddRange(new object[] {
"",
"2分-麻醉前±20%以内",
"1分-麻醉前±20%-49%",
"0分-麻醉前±50%以上"});
this.txtBP.Location = new System.Drawing.Point(64, 71);
this.txtBP.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.txtBP.Name = "txtBP";
this.txtBP.Size = new System.Drawing.Size(250, 28);
this.txtBP.TabIndex = 518;
this.txtBP.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// label53
//
this.label53.AutoSize = true;
this.label53.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label53.Location = new System.Drawing.Point(12, 30);
this.label53.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label53.Name = "label53";
this.label53.Size = new System.Drawing.Size(37, 20);
this.label53.TabIndex = 515;
this.label53.Text = "活动";
//
// cboQXCD
//
this.cboQXCD.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboQXCD.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.cboQXCD.FormattingEnabled = true;
this.cboQXCD.Items.AddRange(new object[] {
"",
"2分-完全清醒(准确回答)",
"1分-可唤醒,嗜睡",
"0分-无反应"});
this.cboQXCD.Location = new System.Drawing.Point(375, 71);
this.cboQXCD.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboQXCD.Name = "cboQXCD";
this.cboQXCD.Size = new System.Drawing.Size(228, 28);
this.cboQXCD.TabIndex = 518;
this.cboQXCD.SelectedIndexChanged += new System.EventHandler(this.cboQXCD_SelectedIndexChanged);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Transparent;
this.button1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
this.button1.FlatAppearance.BorderSize = 0;
this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.button1.Location = new System.Drawing.Point(849, 298);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(45, 45);
this.button1.TabIndex = 561;
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// btExit
//
this.btExit.BackColor = System.Drawing.Color.Aquamarine;
this.btExit.FlatAppearance.BorderSize = 0;
this.btExit.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btExit.Location = new System.Drawing.Point(740, 305);
this.btExit.Name = "btExit";
this.btExit.Size = new System.Drawing.Size(90, 30);
this.btExit.TabIndex = 561;
this.btExit.Text = "保存";
this.btExit.UseVisualStyleBackColor = false;
this.btExit.Visible = false;
this.btExit.Click += new System.EventHandler(this.btExit_Click);
//
// txtSQTSQK
//
this.txtSQTSQK.BackColor = System.Drawing.Color.White;
this.txtSQTSQK.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.txtSQTSQK.DictionaryKey = "术中合并症";
this.txtSQTSQK.Font = new System.Drawing.Font("宋体", 11F);
this.txtSQTSQK.IsFindDictionray = true;
this.txtSQTSQK.IsUpdateDictionary = false;
this.txtSQTSQK.Location = new System.Drawing.Point(460, 74);
this.txtSQTSQK.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.txtSQTSQK.Name = "txtSQTSQK";
this.txtSQTSQK.Size = new System.Drawing.Size(434, 17);
this.txtSQTSQK.TabIndex = 1531;
this.txtSQTSQK.Tag = "";
//
// label54
//
this.label54.AutoSize = true;
this.label54.Location = new System.Drawing.Point(732, 268);
this.label54.Name = "label54";
this.label54.Size = new System.Drawing.Size(100, 20);
this.label54.TabIndex = 559;
this.label54.Text = "Aldrete总评分";
//
// uText1
//
this.uText1.BackColor = System.Drawing.Color.White;
this.uText1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.uText1.DictionaryKey = "皮肤破损";
this.uText1.Font = new System.Drawing.Font("宋体", 11F);
this.uText1.IsFindDictionray = true;
this.uText1.IsUpdateDictionary = false;
this.uText1.Location = new System.Drawing.Point(759, 114);
this.uText1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.uText1.Name = "uText1";
this.uText1.Size = new System.Drawing.Size(130, 17);
this.uText1.TabIndex = 1531;
this.uText1.Tag = "";
//
// cboYLMC
//
this.cboYLMC.BackColor = System.Drawing.Color.White;
this.cboYLMC.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.cboYLMC.DictionaryKey = "皮肤破损";
this.cboYLMC.Font = new System.Drawing.Font("宋体", 11F);
this.cboYLMC.IsFindDictionray = true;
this.cboYLMC.IsUpdateDictionary = false;
this.cboYLMC.Location = new System.Drawing.Point(700, 37);
this.cboYLMC.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.cboYLMC.Name = "cboYLMC";
this.cboYLMC.Size = new System.Drawing.Size(193, 17);
this.cboYLMC.TabIndex = 1531;
this.cboYLMC.Tag = "";
//
// txtZPF
//
this.txtZPF.Location = new System.Drawing.Point(834, 266);
this.txtZPF.Name = "txtZPF";
this.txtZPF.Size = new System.Drawing.Size(77, 26);
this.txtZPF.TabIndex = 560;
//
// checkBox6
//
this.checkBox6.AutoSize = true;
this.checkBox6.Location = new System.Drawing.Point(697, 110);
this.checkBox6.Name = "checkBox6";
this.checkBox6.Size = new System.Drawing.Size(56, 24);
this.checkBox6.TabIndex = 571;
this.checkBox6.Text = "其他";
this.checkBox6.UseVisualStyleBackColor = true;
this.checkBox6.CheckedChanged += new System.EventHandler(this.checkBox6_CheckedChanged);
//
// checkBox5
//
this.checkBox5.AutoSize = true;
this.checkBox5.Location = new System.Drawing.Point(569, 110);
this.checkBox5.Name = "checkBox5";
this.checkBox5.Size = new System.Drawing.Size(70, 24);
this.checkBox5.TabIndex = 571;
this.checkBox5.Text = "镇痛泵";
this.checkBox5.UseVisualStyleBackColor = true;
//
// checkBox4
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(455, 110);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(56, 24);
this.checkBox4.TabIndex = 571;
this.checkBox4.Text = "胃管";
this.checkBox4.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(22, 268);
this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(65, 20);
this.label1.TabIndex = 515;
this.label1.Text = "肌力评分";
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(313, 110);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(84, 24);
this.checkBox3.TabIndex = 571;
this.checkBox3.Text = "咽通气道";
this.checkBox3.UseVisualStyleBackColor = true;
//
// cboJSHF
//
this.cboJSHF.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboJSHF.FormattingEnabled = true;
this.cboJSHF.Items.AddRange(new object[] {
"Ⅴ级 肌力正常,运动自如",
"Ⅳ级 肢体能做对抗外界阻力的运动",
"Ⅲ级 肢体可以克服地心引力,能抬离床面",
"Ⅱ级 肢体能在床上平行移动",
"Ⅰ级 可见肌肉轻微收缩",
"0级 完全瘫痪,不能作任何自由活动"});
this.cboJSHF.Location = new System.Drawing.Point(97, 265);
this.cboJSHF.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboJSHF.Name = "cboJSHF";
this.cboJSHF.Size = new System.Drawing.Size(294, 28);
this.cboJSHF.TabIndex = 518;
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(185, 110);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(70, 24);
this.checkBox2.TabIndex = 571;
this.checkBox2.Text = "血制品";
this.checkBox2.UseVisualStyleBackColor = true;
//
// cboTT
//
this.cboTT.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboTT.FormattingEnabled = true;
this.cboTT.Items.AddRange(new object[] {
"0分-无疼痛",
"1分-安静平卧不痛,翻身咳嗽时疼痛",
"2分-咳嗽疼痛,深呼吸不痛",
"3分-安静平卧不痛,咳嗽深呼吸疼痛",
"4分 安静平卧时间歇疼痛",
"5分-安静平卧时持续疼痛",
"6分-安静平卧时疼痛较重",
"7分-疼痛较重,翻转不安,疲乏,无法入睡",
"8分-持续疼痛难忍,全身大汗",
"9分-剧烈疼痛无法忍受",
"10分-最疼痛,生不如死"});
this.cboTT.Location = new System.Drawing.Point(465, 264);
this.cboTT.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboTT.Name = "cboTT";
this.cboTT.Size = new System.Drawing.Size(267, 28);
this.cboTT.TabIndex = 518;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(43, 110);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(84, 24);
this.checkBox1.TabIndex = 571;
this.checkBox1.Text = "气管导管";
this.checkBox1.UseVisualStyleBackColor = true;
//
// label9
//
this.label9.AutoSize = true;
this.label9.Location = new System.Drawing.Point(401, 268);
this.label9.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(64, 20);
this.label9.TabIndex = 515;
this.label9.Text = "VAS评分";
//
// label18
//
this.label18.AutoSize = true;
this.label18.Location = new System.Drawing.Point(380, 30);
this.label18.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label18.Name = "label18";
this.label18.Size = new System.Drawing.Size(65, 20);
this.label18.TabIndex = 565;
this.label18.Text = "尿管通畅";
//
// cboYLWZ
//
this.cboYLWZ.FormattingEnabled = true;
this.cboYLWZ.Items.AddRange(new object[] {
"是",
"否"});
this.cboYLWZ.Location = new System.Drawing.Point(453, 26);
this.cboYLWZ.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboYLWZ.Name = "cboYLWZ";
this.cboYLWZ.Size = new System.Drawing.Size(77, 28);
this.cboYLWZ.TabIndex = 570;
//
// label17
//
this.label17.AutoSize = true;
this.label17.Location = new System.Drawing.Point(191, 30);
this.label17.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label17.Name = "label17";
this.label17.Size = new System.Drawing.Size(79, 20);
this.label17.TabIndex = 566;
this.label17.Text = "引流管通畅";
//
// cboYLBS
//
this.cboYLBS.FormattingEnabled = true;
this.cboYLBS.Items.AddRange(new object[] {
"是",
"否"});
this.cboYLBS.Location = new System.Drawing.Point(287, 26);
this.cboYLBS.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboYLBS.Name = "cboYLBS";
this.cboYLBS.Size = new System.Drawing.Size(77, 28);
this.cboYLBS.TabIndex = 568;
//
// label30
//
this.label30.AutoSize = true;
this.label30.Location = new System.Drawing.Point(400, 70);
this.label30.Name = "label30";
this.label30.Size = new System.Drawing.Size(51, 20);
this.label30.TabIndex = 561;
this.label30.Text = "合并症";
//
// txtT
//
this.txtT.Location = new System.Drawing.Point(264, 68);
this.txtT.Name = "txtT";
this.txtT.Size = new System.Drawing.Size(100, 26);
this.txtT.TabIndex = 557;
//
// label10
//
this.label10.AutoSize = true;
this.label10.Location = new System.Drawing.Point(367, 70);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(23, 20);
this.label10.TabIndex = 556;
this.label10.Text = "℃";
//
// label11
//
this.label11.AutoSize = true;
this.label11.Location = new System.Drawing.Point(190, 71);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(65, 20);
this.label11.TabIndex = 555;
this.label11.Text = "入室体温";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(565, 30);
this.label6.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(37, 20);
this.label6.TabIndex = 515;
this.label6.Text = "皮肤";
//
// cboPF
//
this.cboPF.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.cboPF.FormattingEnabled = true;
this.cboPF.Items.AddRange(new object[] {
"未见异常",
"压红",
"淤青",
"破损",
"其他"});
this.cboPF.Location = new System.Drawing.Point(613, 26);
this.cboPF.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboPF.Name = "cboPF";
this.cboPF.Size = new System.Drawing.Size(77, 28);
this.cboPF.TabIndex = 518;
//
// label27
//
this.label27.AutoSize = true;
this.label27.Location = new System.Drawing.Point(19, 71);
this.label27.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label27.Name = "label27";
this.label27.Size = new System.Drawing.Size(65, 20);
this.label27.TabIndex = 515;
this.label27.Text = "麻醉平面";
//
// cboMZPM
//
this.cboMZPM.FormattingEnabled = true;
this.cboMZPM.Items.AddRange(new object[] {
"T2",
"T4",
"T6",
"T8",
"T10",
"T12",
"C5",
"C6",
"C7",
"L1",
"L2",
"L3",
"L4",
"L5",
"L6"});
this.cboMZPM.Location = new System.Drawing.Point(92, 67);
this.cboMZPM.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboMZPM.Name = "cboMZPM";
this.cboMZPM.Size = new System.Drawing.Size(77, 28);
this.cboMZPM.TabIndex = 518;
this.cboMZPM.SelectedIndexChanged += new System.EventHandler(this.cboMZPM_SelectedIndexChanged);
//
// label16
//
this.label16.AutoSize = true;
this.label16.Location = new System.Drawing.Point(19, 30);
this.label16.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
this.label16.Name = "label16";
this.label16.Size = new System.Drawing.Size(65, 20);
this.label16.TabIndex = 515;
this.label16.Text = "液路通畅";
//
// cboJMTC
//
this.cboJMTC.FormattingEnabled = true;
this.cboJMTC.Items.AddRange(new object[] {
"是",
"否"});
this.cboJMTC.Location = new System.Drawing.Point(92, 26);
this.cboJMTC.Margin = new System.Windows.Forms.Padding(5, 10, 5, 10);
this.cboJMTC.Name = "cboJMTC";
this.cboJMTC.Size = new System.Drawing.Size(77, 28);
this.cboJMTC.TabIndex = 518;
//
// frmOpeRecoverInInfo
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.AliceBlue;
this.ClientSize = new System.Drawing.Size(920, 365);
this.Controls.Add(this.groupBox1);
this.Font = new System.Drawing.Font("微软雅黑", 10.5F);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
this.Name = "frmOpeRecoverInInfo";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "入恢复室情况";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmInPACUConditionSYD_FormClosing);
this.Load += new System.EventHandler(this.frmInPACUConditionSYD_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.ComboBox cboTT;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.ComboBox cboPF;
private System.Windows.Forms.TextBox txtT;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label20;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label16;
private System.Windows.Forms.ComboBox cboJMTC;
private System.Windows.Forms.Label label28;
private System.Windows.Forms.Label label27;
private System.Windows.Forms.ComboBox cboMZPM;
private System.Windows.Forms.Label label53;
private System.Windows.Forms.ComboBox cboZTHDD;
private System.Windows.Forms.Label label52;
private System.Windows.Forms.ComboBox cboHXDTCCD;
private System.Windows.Forms.Label label51;
private System.Windows.Forms.ComboBox cboQXCD;
private System.Windows.Forms.Label label54;
private OremrUserControl.NumTextBox txtZPF;
private System.Windows.Forms.Button btExit;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Label label18;
private System.Windows.Forms.ComboBox cboYLWZ;
private System.Windows.Forms.Label label17;
private System.Windows.Forms.ComboBox cboYLBS;
private System.Windows.Forms.Label label30;
private System.Windows.Forms.ComboBox txtSPO2;
private System.Windows.Forms.ComboBox txtBP;
private System.Windows.Forms.ComboBox cboJSHF;
private System.Windows.Forms.CheckBox checkBox6;
private System.Windows.Forms.CheckBox checkBox5;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox1;
public OremrUserControl.UText cboYLMC;
public OremrUserControl.UText txtSQTSQK;
private System.Windows.Forms.GroupBox groupBox2;
public OremrUserControl.UText uText1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label7;
private OremrUserControl.NumTextBox txtPain;
private DevComponents.DotNetBar.Controls.Slider slider1;
}
}

View File

@ -0,0 +1,287 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAMDAAAAEAIACoJQAAFgAAACgAAAAwAAAAYAAAAAEAIAAAAAAAACQAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAPSkQgL1pUIO9aVCMPWlQj71pUJA9aVCPvSkQj70pEI+9aRCPvSkQj71pUI+9KVCPvSk
Qj71pUI+9KVCPvWkQj71pEI+9KRCPvWkQj71pUI+9KRBPvKgPT7umDI+7ZUvPu2WMD7tlTA+7ZUwPu2W
MD7tlS8+7ZUwPu2WLz7tli8+7ZUwPu2VLz7tli8+7ZYwPu2VLz7tlS8+7ZUwPuyWMEDslS8+7JYwMO2W
Lw7tljACAAAAAAAAAAAAAAAA9aVCBPWlQij1pUJy9aVCr/WlQr31pUK/9aVCv/WlQr/1pUK/9KVBv/Sl
Qr/1pUK/9KRBv/SkQr/1pUK/9KRBv/WlQr/1pUK/9KVCv/SlQr/1pUK/9KRBv/KgPb/umDK/7ZYvv+yV
L7/sljC/7JUvv+yWML/slTC/7JYvv+yWL7/sljC/7ZYwv+yVL7/tljC/7JUvv+yVL7/sljC/7ZYwv+2W
ML/tljC97ZYvr+2WL3LtlTAo7JYwBAAAAAD1pUIC9aVCKPWlQo30pUHN9KVB2/WlQtv0pEHb9aVB2/Sk
Qdv0pEHb9aVC2/WlQtv1pUHb9KRC2/WlQtv1pELb9aRC2/WlQtv1pULb9aRC2/WlQtv1pULb9aVC2/Oi
PtvumDLb7ZUv2+2VMNvtlTDb7ZYw2+2WMNvtlTDb7ZYw2+2VMNvtljDb7JYv2+2VMNvtljDb7ZYw2+2V
MNvtljDb7ZYw2+2WMNvtljDb7JYv2+2WL83slTCN7ZUvKO2WMAL0pEEQ9KRCdPSkQc30pEHb9aVC2/Sl
Qtv1pULb9aVC2/WlQtv1pULb9KRB2/WlQtv1pUHb9aVC2/WlQtv1pUHb9aVC2/SlQtv1pUHb9aVC2/Sl
Qdv1pUHb9aVC2/SiP9vumDPb7ZUv2+2WMNvtljDb7ZYw2+2WMNvtljDb7JYw2+2WMNvtljDb7ZYw2+2W
MNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDN7ZYwcuyVLw71pUIw9aVCr/Wk
Qtv1pULb9aVC2/WlQtv1pULb9KRB2/WlQtv1pULb9aVC2/SlQtv1pULb9KRB2/SkQtv1pULb9aVB2/Sl
Qdv1pULb9aVB2/SlQdv0pULb9aVC2/SiQNvumDPb7ZUv2+yVL9vtljDb7ZYw2+yVL9vslS/b7ZYw2+yV
L9vsljDb7ZYw2+2WMNvtli/b7ZYw2+2VMNvtljDb7ZUw2+2WMNvslS/b7ZYw2+yVMNvsli/b7JUwreyW
LzD1pUI+9aVCvfWlQtv0pEHb9aVC2/WlQtv1pULb9aVC2/WlQtv1pULb9aVC2/WlQtv1pEHb9aVC2/Wl
Qtv1pULb9aVC2/WkQdv1pULb9aVB2/WlQtv1pULb9aVC2/SjP9vumDLb7JUv2+2WMNvtljDb7ZYw2+2V
MNvtljDb7JYv2+2WMNvslS/b7ZYw2+2WMNvslS/b7JUv2+2WMNvtljDb7JYv2+2WMNvtljDb7JUv2+2W
MNvtljDb7ZUvve2WMD71pUI+9KRBv/WlQtv1pELb9aVC2/SlQtv1pULb9aVB2/WlQtv1pULb9aVC2/Wk
Qdv1pULb9KRC2/WlQtv1pULb9KRC2/WlQtv1pULb9aVC2/WlQtv1pULb9aVC2/SjP9vtlzLb7JUv2+2W
MNvtljDb7JUv2+2WMNvtljDb7JUv2+2WMNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7ZYv2+2W
MNvtljDb7JUv2+2WMNvtljDb7ZYwv+2WMED0pUE+9KRCv/WlQtv0pULb9aVB2/WlQtv1pUHb9aVC2/Wl
Qtv1pULb9KVC2/WlQtv0pULb9aVC2/WlQtv1pULb9aVC2/WlQtv1pULb9aZF2/atU9/616rt/vXr+/zu
3Pnzunnn7Zs73eyWMNvsljDb7ZYw2+2WMNvtljDb7JUw2+yVL9vsljDb7JYw2+2WMNvtljDb7ZYw2+yW
MNvsljDb7ZYw2+yWL9vslTDb7ZUw2+2WMNvsljDb7JUvv+yVLz71pUI+9KVBv/WlQtv1pUHb9aVC2/Sk
Qtv1pULb9aRC2/SlQdv0pUHb9aVC2/WlQdv1pEHb9KVC2/WlQtv1pULb9aVB2/WlQtv2r1ff+cWH5/vi
w/P++vb9///////////88eP799Op7++nUeHtljDb7ZYw2+2VMNvtljDb7ZUw2+2WMNvtljDb7ZYw2+2W
MNvslS/b7JYv2+2WMNvtljDb7JYv2+2WMNvtljDb7ZYw2+2WMNvtljDb7JUvv+2VLz71pUI+9KRCv/Sl
Qdv1pELb9aRB2/SlQtv1pULb9aVC2/WlQtv1pULb9aRC2/SlQdv1pULb9aVB2/WlQtv1pULb9KRB2/ax
XN/73rvx/vbs+/7+/v///////v7+//7+/v///////v79//nev/Pwq1nh7Zgz2+2WMNvtljDb7JYw2+2W
MNvtljDb7JYw2+2WMNvtljDb7ZYw2+2VMNvtljDb7JYv2+2WMNvtljDb7JUw2+2WMNvtljDb7ZYvv+2W
MD71pUI+9KRBv/WlQtv1pULb9aVC2/WlQtv1pULb9KVC2/WlQtv1pULb9aVC2/SlQtv1pULb9aVC2/Sk
Qdv1pULb9rFb3/vfu/H+/Pj9/////////////////////////////////v7+//78+v376NP39MKH6e2Z
N93tljDb7ZYw2+2WMNvtlTDb7ZUw2+2WMNvtlTDb7ZUw2+2WMNvtljDb7ZYw2+2WMNvsljDb7ZYw2+2W
MNvtljDb7JUvv+2VMD71pUI+9aVCv/WlQtv0pEHb9aVC2/SlQtv1pULb9KVC2/WlQtv1pULb9aRB2/Wl
Qtv1pEHb9KVC2/WlQtv2tmbh/OTI8/79+//+/v7////////+/v/++vb9+9y28fznzfX9+PH9/v79//7+
/v/+/v7//vr2/fXJlevumzvd8rRr5fXHkuvun0Hd7ZYw2+yVL9vsljDb7ZYw2+2WMNvsli/b7ZYw2+yW
MNvsljDb7JYw2+yWL9vtljDb7ZYwv+2WLz71pUI+9aRBv/WlQtv1pELb9aVC2/SlQtv1pULb9aVC2/Wl
Qtv1pULb9aVC2/WlQtv1pULb9KRB2/ayX9/85cnz/v37//7+/v///////vz5/f3v3vn606Pt9apM3fWx
Xd/1xo3p/PDi+f////////////////337/33zp/t++nU9/779/331Knv8a9j4+6cPd3tljDb7ZYw2+2W
MNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7JYwv+2WLz71pUI+9KRBv/SkQtv1pULb9aVC2/Sk
Qdv1pULb9KVC2/WlQtv0pEHb9KVB2/WlQtv1pUPb9rJe4frhwPP+/fv////////////+/fz//OnR9fe+
eOX1qUvd9aVC2/SjP9vunDrd875/6f327v3+/v7///////7+/f/++vb9/v38///////++/f9++3b+ffS
p+/vp1Hh7ZUw2+yWMNvtlTDb7ZYw2+2WMNvslS/b7ZYw2+2WMNvsli/b7ZYwv+2VMD71pEI+9aVCv/Wl
Qdv1pELb9aVC2/WlQtv1pULb9KRB2/SkQdv0pEHb9aVC2/SkQdv1qkzd+tmv7/77+P3//////v7+//76
9P374cDx97pu4/SmRdvxokTb76FG2+6fRNvqlTXb7Jg23fO+f+n76NP3/vr2/f/////+/v7//v7+////
/////////v7+//77+P354cPz7qFF3+2XMtvtljDb7JYw2+2WMNvtljDb7ZYw2+yVL9vtljDb7JYvv+2W
Lz71pUI+9KVCv/WlQtv0pULb9aVC2/SlQtv1pULb9aVC2/WlQtv1pULb9aRC2/SkQdv1q07d+9+88/79
/P/+/v7//vr2/fnOmev1p0bb9aVB2++gRt2baYXnYEC18V9As/GRY33p4pE33e2WMNvxrmHj++vZ9/7+
/v///////v7+///+/v///v7////////////+/v7/++fR9/TBhuntnD3d7JYw2+2WMNvtljDb7JUv2+2W
MNvtljDb7JYvv+2WLz71pUI+9KRBv/SkQtv0pELb9aVC2/SkQtv1pULb9KRC2/WlQtv1pULb9aVB2/Wl
Qtv1rFHd++C+8/79/P/+/v7//OrV9/a0Y+H1pULb9aVB2+ueSd1dQLXxAQH9/wAB/v9VQrDz244+3eyV
L9vunDzd9s+g7f77+P3//////v38//rix/X76NL3/v7+/////////////v7+//316/v1xpDr7Zo53e2V
MNvsli/b7ZYw2+2VMNvtljDb7JYvv+2VMD71pEI+9aVCv/WkQtv0pULb9KVC2/WlQtv0pEHb9KVC2/Sk
Qdv0pEHb9aVC2/WnR9v4xYbn/fHk+f7+/v/+/fz/+tiu7/WnR93yo0Pb76FG3eicS91fQbPxAQH9/wAA
/v9XQq7x3I8+3e6oV+Hwq1nh9L5/5/zz6fv//////vv4/fK3cuXxrV7j+uLG9f758/3+/v7//v7+///+
/v/99ez79MOJ6e2XMtvtljDb7ZYw2+2WMNvtljDb7JYwv+2WLz71pUI+9KRCv/WlQtv0pULb9aVB2/Sl
Qtv0pEHb9KVC2/SkQdv1pUPb9apN3fjGiOf98+b7/v79//7+/v/+/fz/+dmy7/SoSt2iboDnVzu68Vg8
uvElGuL5AAH+/wEA/f9hR6bx35VE3/zw4vn99/D9/vfx/f78+v/+/v7//vv4/fK3cOXtlzLb7p0/3fTA
g+n98uf7///+//7+/v/+/v7//fXr+++mUOHtljDb7JUv2+2VMNvtljDb7JYvv+2WMD71pUI+9KRBv/Wk
Qtv1pULb9aVC2/SkQtv1pULb9aVC2/WlQ9v2tGLh+tu07/737/v+/v7//v7+//7+/v/+/v7/+Ovh+fO1
bONuSqntAAD+/wAA//8AAP//AAD+/wIB/f9xUKbv5JhE3/338Pv//////v7+///////+/v7//vv4/fK3
ceXtljDb7JUv2+2XMtvzvX7n/fXr+/7+/f/+/v7//v37//fSp+/tljDb7ZYw2+2WMNvsli/b7JUvv+2V
MD71pUE+9KVBv/WkQdv1pELb9aVC2/WlQtv1pULb9KVC2/azX+H74L/z/vz4/f/////+/v7/////////
///+/v7/9/Hx/fK6eOVwTabtAgX7/wEE/P8AAf3/AAD+/wIB/f98WKnv6JtH3/359f3+/v7///////7+
/v/+/v7//v38//K4dOXtljDb7ZYw2+2WMNvtmDXb9ceS6/337/3//////v7+//nhxPPtljDb7JUv2+2W
MNvtljDb7ZYwv+2VMD71pUI+9KRBv/SkQdv0pUHb9aVC2/WlQtv1pULb9rFb3/vhwfP++/j9////////
///+/v7////////////+/v7/9/Du+/K5duWodXjlX0qx8V5GsvEnHt75AAD+/wIB/f98Warv6JlC3fjY
svH53Lrz+dy68fncuvH53Lrx+Nq38/CsW+PtljDb7JYv2+2VMNvtljDb8a5g4/zw4vn//////v7+//ng
wvPtljDb7JYv2+2WMNvtlTDb7JUvv+2WLz70pUI+9KRCv/WkQdv1pULb9aVC2/SlQdv1pUHb+MaH5/7+
/f///////v7+//78+v/85831/OnS9f79+////////Pbv/fa9duXzo0Pb8KJF2+ufSN1gQbTvAQH9/wIB
/f9kQavx34483e2XM9vtmDTb7Zg02+2YNdvtmDXb7Zg12+2XMtvtljDb7ZUw2+2VMNvtljDb8a9i4/zx
4/n//////v7+//ngwvPtljDb7ZUw2+2WMNvtlS/b7JYwv+2VMD71pUI+9aVCv/WlQdv0pEHb9aVC2/Wk
Qdv1pULb/fHh+f/////+/v7///79//zmzPX3unDj+9668f79+//+/v7//vfv/fe+d+X1pUHb9aVC2+yf
SN1tTKjvFhTs/RER7/1lQqTv3o083e2WMNvtljDb7p5A3fO7eef1xIrr9cOK6/O9funtlzPb7ZYw2+2W
MNvtljDb8a9j4/zx4/n+/v7//v7+//ngwvPtli/b7ZUw2+yVMNvtlS/b7ZYvv+2WMD71pUI+9aVCv/Wl
Qdv1pULb9aVC2/SkQtv1pULb/vbs+////////////fPm+/e4auP1q07d+9+78f79/P/+/v7//vfv/fe+
duX1pULb9aVB2/KjQ9vIiWPhoHOC6ZBqiumxd2Pl5pI02+2WL9vtmDTb9MCE6f316/v+/fz//v38//zx
4/ntmjnd7ZYw2+2VMNvtljDb8a9j4/zx4/n+/v7//v7+//ngwvPtli/b7ZUw2+2WMNvtlS/b7ZYvv+2W
MD70pEE+9aVCv/WlQtv0pULb9aVC2/WlQtv1pEHb/vXr+/7+/v///////e3b9/WrT931q07d+9+78f79
/P///////vjw/ffBfef1pkXb9aVC2/WlQtv1pULb86RD2++hQ9vqljTb7JUv2+2WMNvtmTfd9s6f7f77
+f3//////v7+//zx5fvtmjnd7ZYw2+2WMNvtljDb8a9j4/zx4/n+/v7//v7+//ngwvPtljDb7ZYw2+2V
MNvtlTDb7JUvv+yVMD71pUI+9aVCv/WlQdv1pULb9aVC2/WkQdv1pULb/vXr+////////////e7c9/Wr
UN31q07d+9+78f79/P///////v37//3v3/n62K3v97535fayXt/1q0/d9aVC2/SjP9vumjbb7p5B3fK1
beX1xpDr/O3d+f7+/f////////////zx5fvtmjnd7ZUw2+2WL9vtljDb8a9j4/zx4/n//////v7+//ng
wvPtljDb7ZYw2+yVMNvtli/b7JYvv+2WMD71pUI+9aVCv/SlQdv1pUHb9aVC2/SkQdv1pULb/vXr+/7+
/v///////e7c9/WrUN31q07d+9+78f79/P/+/v7////////////+/Pn9/fTo+/zlyvX62a/v97x04/a1
ZuH0unfn99Wt7/zz5/v9+fP9/v79///////+/v7///////zy5vvtmjnd7ZYw2+2WMNvtljDb8a9j4/zx
4/n+/v7//v7+//ngwvPtli/b7ZUw2+2WL9vtljDb7JUvv+2WMD70pEE+9aVCv/WlQtv1pUHb9aVB2/Sl
Qtv1pULb/vXr+/7+/v///////e7c9/WrUN31q0/d++C/8/79+////////v7+///////+/v7///////79
/P/+/Pn9/fHi+f3t2ff98eT7/vv4/f///////////////////////v7//v37//ndvfPtmTbb7JUv2+2W
MNvtljDb8a9j4/zx4/n+/v7//v7+//ngwvPtljDb7ZYw2+yWL9vtljDb7ZYvv+2WLz70pEI+9KRBv/Wl
Qtv1pULb9aVC2/SkQdv1pULb/vXr+////////////e7c9/WrUN31p0bb97lt4/jDguf86M/1/vjx/f79
+//+/fz//v7+//7+/v/+/v7//v7+//7+/v/+/v7//v7+//7+/v/+/v3//vz5/fzy5fv30KPt87p45++j
St/tljDb7ZYv2+2WMNvtljDb8a5g4/zw4vn//////v7+//ngwvPtljDb7ZYw2+2WMNvtljDb7JUwv+yV
Lz71pUI+9aVCv/WkQtv1pULb9aVC2/WlQdv1pULb/vXr+/7+/v/+/v7//e7c9/WrUN31pULb9aVC2/Wl
Qtv1rFHf+MSE5/rZse/737zx/fPm+/758v3+/v3////////////+/v7///////7+/v/99ez7+Nm08fGw
Y+PsljDb7ZUw2+2WMNvslS/b7Zk22+6hRt/vo0nf9caP6/327vv+/v7//v7+//ngwvPtli/b7ZUw2+2W
MNvtlS/b7ZYwv+yWMD71pUI+9KVCv/WlQtv1pELb9KRB2/SlQtv0pUHb/vXr+////////////e7c9/Wr
UN31pELb9KRB2/WlQtv1pUHb9aVC2/WlQtv1qkzd97545fnOmOv75cnz/vv3/f///////////v7+///+
/v/99+/7+uTJ9ffSpu/ytW/l8rRs5fK1bOXytGvl9MKH6fndvPP64cTz/fXr+/7+/v/+/v7//v7+//ng
wvPtljDb7ZYw2+2VL9vtljDb7JUwv+2VMD71pUI+9KRBv/WlQtv1pULb9aVC2/WkQdv1pULb/vXr+///
/////////e7c9/WrUN31pELb9aVC2/WlQtv1pELb9aVC2/WlQtv0pEHb9aVC2/WnSN32sFrf/fDg+f7+
/v/+/v7///////7+/v/+/v7///////77+P388+j7/PLn+/3z5/v88ub7/fbu+/7+/f////////////7+
/v///////v7+//rhxfXtljDb7ZYw2+2WMNvtljDb7ZYwv+2WMD71pUI+9aVCv/SlQtv0pEHb9aVB2/Sk
Qtv1pULb/vXr+////////////O3b9/asUt31pULb9KRB2/WlQtv1pULb9KRB2/WlQtv1pULb9KRB2/Wl
Qtv1qEnd/e/e9////////////v7+/////////////v7+/////////////v7+/////////////v7+////
/////////v7+//79+//++/j9/O/g+fbOn+3tli/b7JUw2+2VL9vtli/b7JUvv+2WLz71pUI+9KVBv/Wk
Qtv1pELb9aRC2/SlQtv1pULb/vXr+/7+/v/+/v7//vfv/fnJjuf2tGPh9atP3fWmRNv1pULb9KVC2/Wl
Qtv1pkTb9atP3fa0YeH5yIzn/vfv+////////////v7+//748/398+n7/vv4///+/v//////////////
/////////v7+//7+/P/++vX9/O/f+fnevvP2zZ3t8K1d4+2ZON3tljDb7JUv2+2VMNvtljDb7JUvv+yV
Lz71pUI+9aVCv/WlQdv1pULb9aVC2/WkQdv1pULb/vXr+////////////v7+//327Pv869X3+tes7/nJ
j+n2sl3f9apM3fawWd/4x4vp+tit7/zq0/f+9uz7/v7+/////////////v79//ngwvPzu3rn99Ws8fvo
0ff++fT9/vr1/f769f399/H9+uXM9fjbufP2zZ7t8bFl4++jSt/tlzLb7JYw2+2WMNvslS/b7ZYw2+2V
MNvsli/b7ZYwv+2VMD71pUI+9KVCv/SkQdv1pULb9KRB2/SlQtv1pULb/vfv+////////////v7+////
/////v7//vv3/f748f385871+9+98fznzfX+9+/7/vv3/f/+/v///////v7+/////////////v7+//nc
u/PtmTbd7p0/3fCnUuHzv4Hp9MGF6fTBhenzvoDp8KdR4e6fQt3tmzvd7ZYw2+2WMNvtljDb7ZYw2+2W
MNvtljDb7ZYw2+2WMNvtljDb7JYwv+2WMD71pUI+9aVCv/WkQdv1pULb9aVC2/WkQdv1pULb+9y37/32
7Pv++vX9/v7+//7+/v/+/v7///////////////////////7+/v///////////////////////v7+//76
9f399Or7/fPn+/TBhensljHb7ZUv2+2WMNvtljDb7ZUv2+2WL9vtlTDb7ZYw2+2WMNvtli/b7ZUv2+2W
L9vtljDb7ZUw2+2VMNvtli/b7ZUw2+2WL9vtli/b7ZYvv+2WLz71pUI+9aVCv/WlQtv1pEHb9aVC2/Wl
Qtv1pULb9a5V3/jBf+X606Lt/OXJ8/zq0/X++vT9/v7+//////////////////7+/v/+/v7//v7+//75
9P3869X3/ObL9fnTpe3zuHLl8rVu5e2aON3tljDb7ZYw2+yVL9vtljDb7ZYw2+2WMNvslS/b7JUv2+2W
MNvtljDb7ZYw2+2WMNvslS/b7JUv2+2WMNvtljDb7JUv2+2WMNvtlS/b7ZYwv+2WMD71pUI+9KVCv/Sk
Qtv1pULb9aVB2/WlQtv0pEHb9aVC2/WlQtv1qUvd9rBZ3/a0Y+H5yY7p+tiu7/737/v//fv//v36/f/9
+//+9+/9+tqx7/nIjOn2tWXh9rBa3/SoS93tlzLb7JUv2+2WMNvslS/b7ZYw2+2WMNvtlS/b7ZYw2+2W
MNvslS/b7ZYw2+2WMNvtljDb7ZYw2+2WMNvslS/b7ZUw2+2WMNvtljDb7ZYw2+yVL9vslS/b7ZYwv+2V
MD71pUI+9aVCv/WlQdv0pULb9aVC2/WlQtv1pULb9KVC2/WlQtv1pULb9KVC2/WlQtv1pkXb9ahK3faw
Wt/2sl3f9rFd3/ayXd/2sFrf9alL3fWmRdv1pULb9aVC2/SjP9vtlzLb7JUv2+2WL9vtli/b7ZYw2+2W
L9vtli/b7ZUw2+2WL9vtljDb7ZYw2+2WL9vtlS/b7ZUw2+2WL9vtli/b7ZYw2+2WL9vtlS/b7ZUw2+2W
MNvslS/b7ZYvv+2VMD70pUJA9aVCv/WlQtv1pULb9aVC2/WlQtv1pULb9KRB2/SkQdv1pULb9aVC2/Wl
Qtv1pULb9aVC2/WlQtv1pULb9KVB2/WlQtv1pULb9aVB2/WlQtv1pULb9aVC2/SjP9vtlzLb7JUv2+2W
MNvtljDb7ZYw2+yVL9vslS/b7JUv2+2WMNvtljDb7ZYw2+yVL9vslS/b7ZYw2+2WMNvtljDb7ZYw2+2W
MNvtljDb7ZYw2+2WMNvslS/b7ZYwv+2WMD71pUI+9KVCu/WlQdv1pULb9aVC2/WlQtv1pULb9KRB2/Wl
Qtv1pULb9aRB2/WlQtv1pEHb9KVC2/WkQtv1pUHb9KVC2/WkQdv0pUHb9KVC2/WkQdv1pEHb9aVC2/Sj
P9vtlzLb7JUv2+yVL9vtlS/b7ZYw2+2VL9vtljDb7JUw2+yVL9vtljDb7JUw2+2VL9vtljDb7ZUw2+2V
L9vtlS/b7ZYw2+2VL9vtlS/b7ZYw2+yVL9vtljDb7ZYwve2WMD70pEEs9aVCq/WlQtv1pUHb9aVB2/Wl
Qtv1pULb9aVB2/WlQtv1pULb9aVC2/WlQdv1pULb9aVC2/WlQtv1pULb9aVB2/WlQtv0pEHb9aVB2/Wl
Qtv1pULb9aVC2/OiPtvumDLb7JUv2+yVMNvslS/b7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2W
MNvsljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7ZYw2+2WMNvtljDb7JYwr+2VLzD1pUIO9aVCbvSk
Qcv0pEHb9aVB2/WlQtv1pULb9aVC2/WkQdv1pUHb9aVC2/WlQtv1pULb9KVC2/WlQtv1pULb9aRC2/Wl
Qtv1pUHb9aVC2/SlQdv1pULb9KRB2/KgPdvumDLb7ZUv2+yVL9vslS/b7JUw2+2VL9vtli/b7ZYw2+yV
L9vtli/b7ZUw2+2VL9vsli/b7ZYw2+2WMNvtlS/b7ZYw2+yVL9vslS/b7ZUw2+yVL9vslS/N7ZUwdO2W
MBD1pEIC9aVCJvSlQYv0pULN9KRB2/WlQtv1pULb9aVB2/WlQtv1pULb9aRB2/WlQtv1pULb9aRC2/Wl
Qdv1pUHb9aRC2/SlQdv1pUHb9aVC2/SkQdv1pULb9KRB2/KgPdvumDLb7JUv2+2VMNvtlTDb7ZYw2+yV
L9vtlTDb7ZYw2+2VMNvtljDb7ZYw2+2WMNvtljDb7JYw2+2WMNvtljDb7JYw2+2WMNvtljDb7ZYw2+yW
L83sli+N7ZYwKOyWLwIAAAAA9aVCBPWlQij0pEFy9aVCr/SlQb31pUK/9aVCv/SlQr/0pUK/9aVCv/Sl
Qr/1pEK/9KRBv/WlQr/1pUK/9KVCv/WlQr/0pEK/9KRBv/SlQb/1pUK/9KRBv/KgPb/umDK/7JUvv+2W
ML/tljC/7JUvv+yWL7/sljC/7JUvv+yWL7/sli+/7JUvv+yVML/sli+/7JUvv+yVML/slTC/7ZYwv+yW
L7/tljC97ZYvr+2WMHTtljAo7ZYwBAAAAAAAAAAAAAAAAPSkQgL1pUEO9aVCMPWlQj70pUJA9aVCPvWl
Qj71pUI+9aVCPvWlQj71pUI+9aVCPvWlQj71pUI+9aVCPvWlQj70pUI+9aRCPvWlQj71pUI+9KRBPvKg
PT7umDI+7ZYvPu2WMD7slTA+7ZYwPu2WLz7tli8+7ZYwPu2WMD7tli8+7ZYwPu2WLz7tljA+7ZYwPu2W
MD7tli8+7ZYwPu2WMD7slS8+7ZYwMu2WLxDsljACAAAAAAAAAAD///////8AAPAAAAAADwAAwAAAAAAD
AADAAAAAAAMAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAA
AAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAAB
AACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAA
AAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAAB
AACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAgAAAAAABAACAAAAAAAEAAIAA
AAAAAQAAgAAAAAABAACAAAAAAAEAAIAAAAAAAQAAwAAAAAADAADAAAAAAAMAAPAAAAAADwAA////////
AAA=
</value>
</data>
</root>

View File

@ -0,0 +1,294 @@
using AIMSBLL;
using AIMSExtension;
using DrawGraph;
using System;
using System.Windows.Forms;
namespace AIMS.OperationDoing.AnasRecoverBill.UI
{
public partial class frmOpeRecoverOutInfo : Form
{
/// <summary>
/// 手术记录
/// </summary>
public OperationRecord _record;
public frmOpeRecoverOutInfo()
{
InitializeComponent();
}
private void frmOutPACUConditionSYD_Load(object sender, EventArgs e)
{
button1.Visible = true;
if (_record.OpeRecoverOutInfo != null)
{
cboHXY.Text = _record.OpeRecoverOutInfo.BreathSounds;//麻醉平面
if (_record.OpeRecoverOutInfo.PACUStewardScore != null)
txtZPF.Text = _record.OpeRecoverOutInfo.PACUStewardScore.ToString();
cboJSHF.Text = _record.OpeRecoverOutInfo.MuscleRelaxation;//肌力评分
txtBFZ.Text = _record.OpeRecoverOutInfo.ProtectiveReflex;//并发症
cboDXNL.Text = _record.OpeRecoverOutInfo.OrientationAbility;//非计划二次插管
cboHXXT.Text = _record.OpeRecoverOutInfo.RespiratorySystem;
cboPF.Text = _record.OpeRecoverOutInfo.Skin;//皮肤情况
cboTT.Text = _record.OpeRecoverOutInfo.Pain;
cboSS.Text = _record.OpeRecoverOutInfo.Hoarseness;//非计划二次转入ICU
txtTSQK.Text = _record.OpeRecoverOutInfo.Remark;
cboQXCD.Text = _record.OpeRecoverOutInfo.StewardSober;
cboHXDTCCD.Text = _record.OpeRecoverOutInfo.StewardBreathing;
cboZTHDD.Text = _record.OpeRecoverOutInfo.StewardLimbActivity;
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;
cboYS1.Text = _record.OpeRecoverOutInfo.AldteteConsciousness;
cboHX.Text = _record.OpeRecoverOutInfo.AldteteBreathing;
cboHD.Text = _record.OpeRecoverOutInfo.AldteteActivity;
cboXY.Text = _record.OpeRecoverOutInfo.AldteteBloodPressure;
cboSPO2.Text = _record.OpeRecoverOutInfo.AldteteSPO2;
if (_record.OpeRecoverOutInfo.PACUAldteteScore != null)
txtAndree.Text = _record.OpeRecoverOutInfo.PACUAldteteScore.ToString();
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;
}
if (_record.OpeRecoverOutInfo.PainScore != null && _record.OpeRecoverOutInfo.PainScore != "")
{
txtPain.Text = _record.OpeRecoverOutInfo.PainScore;
slider1.Value = int.Parse(_record.OpeRecoverOutInfo.PainScore);
}
txtT.Text = _record.OpeRecoverOutInfo.T;
txtR.Text = _record.OpeRecoverOutInfo.R;
txtHR.Text = _record.OpeRecoverOutInfo.HR;
txtBP.Text = _record.OpeRecoverOutInfo.BP;
txtSPO2.Text = _record.OpeRecoverOutInfo.SPO2;
}
}
/// <summary>
/// 关闭时保存
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btExit_Click(object sender, EventArgs e)
{
try
{
if (_record.OpeRecoverOutInfo != null)
{
_record.OpeRecoverOutInfo.PatientId = _record.PatientId;
_record.OpeRecoverOutInfo.ApplyId = _record.OperationApplyId;
_record.OpeRecoverOutInfo.OperationRecordId = _record.Id;
if (txtZPF.Text.Trim() != "") _record.OpeRecoverOutInfo.PACUStewardScore = int.Parse(txtZPF.Text);
_record.OpeRecoverOutInfo.MuscleRelaxation = cboJSHF.Text;
_record.OpeRecoverOutInfo.ProtectiveReflex = txtBFZ.Text;
_record.OpeRecoverOutInfo.OrientationAbility = cboDXNL.Text;
_record.OpeRecoverOutInfo.RespiratorySystem = cboHXXT.Text;
_record.OpeRecoverOutInfo.T = txtT.Text;
_record.OpeRecoverOutInfo.R = txtR.Text;
_record.OpeRecoverOutInfo.HR = txtHR.Text;
_record.OpeRecoverOutInfo.BP = txtBP.Text;
_record.OpeRecoverOutInfo.SPO2 = txtSPO2.Text;
_record.OpeRecoverOutInfo.Skin = cboPF.Text;
_record.OpeRecoverOutInfo.Pain = cboTT.Text;
_record.OpeRecoverOutInfo.BreathSounds = cboHXY.Text;
_record.OpeRecoverOutInfo.Hoarseness = cboSS.Text;
_record.OpeRecoverOutInfo.Remark = txtTSQK.Text;
if (cboQXCD.Text.Trim() != "") _record.OpeRecoverOutInfo.StewardSober = cboQXCD.Text;
if (cboHXDTCCD.Text.Trim() != "") _record.OpeRecoverOutInfo.StewardBreathing = cboHXDTCCD.Text;
if (cboZTHDD.Text.Trim() != "") _record.OpeRecoverOutInfo.StewardLimbActivity = cboZTHDD.Text;
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);
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.PainScore = txtPain.Text;
_record.OpeRecoverOutInfo.OperatorId = _record.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;
}
}
/// <summary>
/// 保存
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void frmOutPACUConditionSYD_FormClosing(object sender, FormClosingEventArgs e)
{
btExit_Click(null, null);
}
/// <summary>
/// 清醒程度
/// </summary>
int StewardSober = 0;
/// <summary>
/// 呼吸道通畅程度
/// </summary>
int StewardBreathing = 0;
/// <summary>
/// 肢体活动度
/// </summary>
int StewardLimbActivity = 0;
/// <summary>
/// Steward总评分
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cboQXCD_SelectedIndexChanged(object sender, EventArgs e)
{
if (cboQXCD.Text != null && cboQXCD.Text.Trim() != "") StewardSober = GetSourcesDate(cboQXCD).Value;
if (cboHXDTCCD.Text != null && cboHXDTCCD.Text.Trim() != "") StewardBreathing = GetSourcesDate(cboHXDTCCD).Value;
if (cboZTHDD.Text != null && cboZTHDD.Text.Trim() != "") StewardLimbActivity = GetSourcesDate(cboZTHDD).Value;
txtZPF.Text = (StewardSober + StewardBreathing + StewardLimbActivity).ToString();
}
/// <summary>
/// 活动
/// </summary>
int AldteteActivity = 0;
/// <summary>
/// 呼吸
/// </summary>
int AldteteBreathing = 0;
/// <summary>
/// 血压
/// </summary>
int AldteteBloodPressure = 0;
/// <summary>
/// 意识
/// </summary>
int AldteteConsciousness = 0;
/// <summary>
/// SPO2
/// </summary>
int AldteteSPO2 = 0;
/// <summary>
/// Aldtete评分
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void cboHD_SelectedIndexChanged(object sender, EventArgs e)
{
//if (cboHD.Text != null && cboHD.Text.Trim() != "") AldteteActivity = Convert.ToInt32(cboHD.Text.Substring(cboHD.Text.LastIndexOf('') + 1, 1));
//if (cboHX.Text != null && cboHX.Text.Trim() != "") AldteteBreathing = Convert.ToInt32(cboHX.Text.Substring(cboHX.Text.LastIndexOf('') + 1, 1));
//if (cboXY.Text != null && cboXY.Text.Trim() != "") AldteteBloodPressure = Convert.ToInt32(cboXY.Text.Substring(cboXY.Text.LastIndexOf('') + 1, 1));
//if (cboYS1.Text != null && cboYS1.Text.Trim() != "") AldteteConsciousness = Convert.ToInt32(cboYS1.Text.Substring(cboYS1.Text.LastIndexOf('') + 1, 1));
//if (cboSPO2.Text != null && cboSPO2.Text.Trim() != "") AldteteSPO2 = Convert.ToInt32(cboSPO2.Text.Substring(cboSPO2.Text.LastIndexOf('') + 1, 1));
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 button1_Click(object sender, EventArgs e)
{
if (txtT.Text == "") txtT.Text = " /";
if (cboJSHF.Text == "") cboJSHF.Text = " /";//好";
if (txtBFZ.Text == "") txtBFZ.Text = " /";//无";
if (cboDXNL.Text == "") cboDXNL.Text = " /";//好";
if (cboHXXT.Text == "") cboHXXT.Text = " /";//自主呼吸";
if (cboPF.Text == "") cboPF.Text = " /";//完整";
if (cboTT.Text == "") cboTT.Text = " /";//无";
if (cboHXY.Text == "") cboHXY.Text = " /";//正常";
if (cboSS.Text == "") cboSS.Text = " /";//无";
if (txtTSQK.Text == "") txtTSQK.Text = " /";
}
private void slider1_ValueChanged(object sender, EventArgs e)
{
txtPain.Text = slider1.Value.ToString();
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -127,6 +127,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
{
if (uc.buttonX1.Text == "转入恢复")
{
if (dgv.CurrentRow != null)
{
SelApplyId = int.Parse(dgv.CurrentRow.Cells["ApplyIdColumn"].Value.ToString());
SelPatientId = int.Parse(dgv.CurrentRow.Cells["PatientIdColumn"].Value.ToString());
}
AIMS.OperationDoing.AnasRecoverBill.UI.frmAnasRecoverBillNew frmAnasRecord = new AnasRecoverBill.UI.frmAnasRecoverBillNew();
frmAnasRecord.PatientId = SelPatientId;
frmAnasRecord.ApplyId = SelApplyId;
@ -169,7 +174,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
frmAnasRecord.PatientId = PatientId;
frmAnasRecord.ApplyId = applyId;
frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString()));
frmAnasRecord.State = AIMSExtension.EditState.EDIT;
frmAnasRecord.State = AIMSExtension.EditState.EDIT;
frmAnasRecord.ShowDialog();
}
FillDgv();

View File

@ -1,4 +1,5 @@
using DrawGraph;
using AIMSBLL;
using DrawGraph;
using System;
using System.Collections.Generic;
using System.Data;
@ -40,7 +41,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
{
try
{
DataTable dtPhysioData = FillAnasReordBill.getOperationRecorePhysioData(_operationRecord.Id.Value);
DataTable dtPhysioData = BOperationRecord.getOperationRecorePhysioData(_operationRecord.Id.Value);
//for (int i = 0; i < dtPhysioData.Rows.Count; i++)
//{
// for (int j = 0; j < dtPhysioData.Columns.Count; j++)

View File

@ -124,7 +124,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
try
{
OperationRecord _record = new OperationRecord();
_record = FillAnasReordBill.getRecord(_record, PatientId, 1);
_record = BOperationRecord.getRecord(_record, PatientId, 1);
if (_record == null || _record.Id == 0) return;
frmGoodsBillRecord frm = new frmGoodsBillRecord();
frm._record = _record;

File diff suppressed because it is too large Load Diff

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings />
</DataSetUISetting>

View File

@ -1,36 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="OperationRecoverInfoDataSet" targetNamespace="http://tempuri.org/OperationRecoverInfoDataSet.xsd" xmlns:mstns="http://tempuri.org/OperationRecoverInfoDataSet.xsd" xmlns="http://tempuri.org/OperationRecoverInfoDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
<xs:annotation>
<xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
<DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<Connections />
<Tables />
<Sources />
</DataSource>
</xs:appinfo>
</xs:annotation>
<xs:element name="OperationRecoverInfoDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="OperationRecoverInfoDataSet" msprop:Generator_UserDSName="OperationRecoverInfoDataSet">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="OperationRecoverInfo" msprop:Generator_TableClassName="OperationRecoverInfoDataTable" msprop:Generator_TableVarName="tableOperationRecoverInfo" msprop:Generator_TablePropName="OperationRecoverInfo" msprop:Generator_RowDeletingName="OperationRecoverInfoRowDeleting" msprop:Generator_RowChangingName="OperationRecoverInfoRowChanging" msprop:Generator_RowEvHandlerName="OperationRecoverInfoRowChangeEventHandler" msprop:Generator_RowDeletedName="OperationRecoverInfoRowDeleted" msprop:Generator_UserTableName="OperationRecoverInfo" msprop:Generator_RowChangedName="OperationRecoverInfoRowChanged" msprop:Generator_RowEvArgName="OperationRecoverInfoRowChangeEvent" msprop:Generator_RowClassName="OperationRecoverInfoRow">
<xs:complexType>
<xs:sequence>
<xs:element name="ApplyDepName" msprop:Generator_ColumnVarNameInTable="columnApplyDepName" msprop:Generator_ColumnPropNameInRow="ApplyDepName" msprop:Generator_ColumnPropNameInTable="ApplyDepNameColumn" msprop:Generator_UserColumnName="ApplyDepName" type="xs:string" minOccurs="0" />
<xs:element name="InRoomTime" msprop:Generator_ColumnVarNameInTable="columnInRoomTime" msprop:Generator_ColumnPropNameInRow="InRoomTime" msprop:Generator_ColumnPropNameInTable="InRoomTimeColumn" msprop:Generator_UserColumnName="InRoomTime" type="xs:string" minOccurs="0" />
<xs:element name="MdrecNo" msprop:Generator_ColumnVarNameInTable="columnMdrecNo" msprop:Generator_ColumnPropNameInRow="MdrecNo" msprop:Generator_ColumnPropNameInTable="MdrecNoColumn" msprop:Generator_UserColumnName="MdrecNo" type="xs:string" minOccurs="0" />
<xs:element name="OperationType" msprop:Generator_ColumnVarNameInTable="columnOperationType" msprop:Generator_ColumnPropNameInRow="OperationType" msprop:Generator_ColumnPropNameInTable="OperationTypeColumn" msprop:Generator_UserColumnName="OperationType" type="xs:string" minOccurs="0" />
<xs:element name="PatientName" msprop:Generator_ColumnVarNameInTable="columnPatientName" msprop:Generator_ColumnPropNameInRow="PatientName" msprop:Generator_ColumnPropNameInTable="PatientNameColumn" msprop:Generator_UserColumnName="PatientName" type="xs:string" minOccurs="0" />
<xs:element name="Sex" msprop:Generator_ColumnVarNameInTable="columnSex" msprop:Generator_ColumnPropNameInRow="Sex" msprop:Generator_ColumnPropNameInTable="SexColumn" msprop:Generator_UserColumnName="Sex" type="xs:string" minOccurs="0" />
<xs:element name="BirthDay" msprop:Generator_ColumnVarNameInTable="columnBirthDay" msprop:Generator_ColumnPropNameInRow="BirthDay" msprop:Generator_ColumnPropNameInTable="BirthDayColumn" msprop:Generator_UserColumnName="BirthDay" type="xs:string" minOccurs="0" />
<xs:element name="DiagnoseInfoName" msprop:Generator_ColumnVarNameInTable="columnDiagnoseInfoName" msprop:Generator_ColumnPropNameInRow="DiagnoseInfoName" msprop:Generator_ColumnPropNameInTable="DiagnoseInfoNameColumn" msprop:Generator_UserColumnName="DiagnoseInfoName" type="xs:string" minOccurs="0" />
<xs:element name="OperationInfoName" msprop:Generator_ColumnVarNameInTable="columnOperationInfoName" msprop:Generator_ColumnPropNameInRow="OperationInfoName" msprop:Generator_ColumnPropNameInTable="OperationInfoNameColumn" msprop:Generator_UserColumnName="OperationInfoName" type="xs:string" minOccurs="0" />
<xs:element name="AnaesthesiaMethodName" msprop:Generator_ColumnVarNameInTable="columnAnaesthesiaMethodName" msprop:Generator_ColumnPropNameInRow="AnaesthesiaMethodName" msprop:Generator_ColumnPropNameInTable="AnaesthesiaMethodNameColumn" msprop:Generator_UserColumnName="AnaesthesiaMethodName" type="xs:string" minOccurs="0" />
<xs:element name="AnesthesiaDoctor" msprop:Generator_ColumnVarNameInTable="columnAnesthesiaDoctor" msprop:Generator_ColumnPropNameInRow="AnesthesiaDoctor" msprop:Generator_ColumnPropNameInTable="AnesthesiaDoctorColumn" msprop:Generator_UserColumnName="AnesthesiaDoctor" type="xs:string" minOccurs="0" />
<xs:element name="OutStewardScore" msprop:Generator_ColumnVarNameInTable="columnOutStewardScore" msprop:Generator_ColumnPropNameInRow="OutStewardScore" msprop:Generator_ColumnPropNameInTable="OutStewardScoreColumn" msprop:Generator_UserColumnName="OutStewardScore" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool to store the dataset designer's layout information.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
<Shapes>
<Shape ID="DesignTable:OperationRecoverInfo" ZOrder="1" X="331" Y="100" Height="391" Width="204" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="387" />
</Shapes>
<Connectors />
</DiagramLayout>

View File

@ -1,192 +0,0 @@
namespace AIMS.ReportManager
{
partial class frmOperationRecoverInfoReport
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnMonthFind = new System.Windows.Forms.Button();
this.btnFind = new System.Windows.Forms.Button();
this.dtpBegin = new System.Windows.Forms.DateTimePicker();
this.panel1 = new System.Windows.Forms.Panel();
this.panel3 = new System.Windows.Forms.Panel();
this.reportViewer1 = new Microsoft.Reporting.WinForms.ReportViewer();
this.panel2 = new System.Windows.Forms.Panel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.dtpEnd = new System.Windows.Forms.DateTimePicker();
this.label24 = new System.Windows.Forms.Label();
this.labDate = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel3.SuspendLayout();
this.panel2.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// btnMonthFind
//
this.btnMonthFind.Font = new System.Drawing.Font("宋体", 10F);
this.btnMonthFind.Location = new System.Drawing.Point(492, 25);
this.btnMonthFind.Name = "btnMonthFind";
this.btnMonthFind.Size = new System.Drawing.Size(102, 29);
this.btnMonthFind.TabIndex = 321;
this.btnMonthFind.Text = "本月统计";
this.btnMonthFind.UseVisualStyleBackColor = true;
this.btnMonthFind.Click += new System.EventHandler(this.btnMonthFind_Click);
//
// btnFind
//
this.btnFind.Font = new System.Drawing.Font("宋体", 10F);
this.btnFind.Location = new System.Drawing.Point(384, 25);
this.btnFind.Name = "btnFind";
this.btnFind.Size = new System.Drawing.Size(102, 29);
this.btnFind.TabIndex = 320;
this.btnFind.Text = "查询";
this.btnFind.UseVisualStyleBackColor = true;
this.btnFind.Click += new System.EventHandler(this.btnFind_Click);
//
// dtpBegin
//
this.dtpBegin.Font = new System.Drawing.Font("宋体", 10F);
this.dtpBegin.Location = new System.Drawing.Point(82, 28);
this.dtpBegin.Name = "dtpBegin";
this.dtpBegin.Size = new System.Drawing.Size(120, 23);
this.dtpBegin.TabIndex = 1;
//
// panel1
//
this.panel1.Controls.Add(this.panel3);
this.panel1.Controls.Add(this.panel2);
this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(731, 434);
this.panel1.TabIndex = 1;
//
// panel3
//
this.panel3.Controls.Add(this.reportViewer1);
this.panel3.Dock = System.Windows.Forms.DockStyle.Fill;
this.panel3.Location = new System.Drawing.Point(0, 65);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(731, 369);
this.panel3.TabIndex = 1;
//
// reportViewer1
//
this.reportViewer1.Dock = System.Windows.Forms.DockStyle.Fill;
this.reportViewer1.Location = new System.Drawing.Point(0, 0);
this.reportViewer1.Name = "reportViewer1";
this.reportViewer1.Size = new System.Drawing.Size(731, 369);
this.reportViewer1.TabIndex = 2;
//
// panel2
//
this.panel2.Controls.Add(this.groupBox1);
this.panel2.Dock = System.Windows.Forms.DockStyle.Top;
this.panel2.Location = new System.Drawing.Point(0, 0);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(731, 65);
this.panel2.TabIndex = 0;
//
// groupBox1
//
this.groupBox1.BackColor = System.Drawing.Color.AliceBlue;
this.groupBox1.Controls.Add(this.btnMonthFind);
this.groupBox1.Controls.Add(this.btnFind);
this.groupBox1.Controls.Add(this.dtpEnd);
this.groupBox1.Controls.Add(this.dtpBegin);
this.groupBox1.Controls.Add(this.label24);
this.groupBox1.Controls.Add(this.labDate);
this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(731, 63);
this.groupBox1.TabIndex = 310;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "统计条件";
//
// dtpEnd
//
this.dtpEnd.Font = new System.Drawing.Font("宋体", 10F);
this.dtpEnd.Location = new System.Drawing.Point(238, 28);
this.dtpEnd.Name = "dtpEnd";
this.dtpEnd.Size = new System.Drawing.Size(120, 23);
this.dtpEnd.TabIndex = 2;
//
// label24
//
this.label24.AutoSize = true;
this.label24.Location = new System.Drawing.Point(208, 29);
this.label24.Name = "label24";
this.label24.Size = new System.Drawing.Size(24, 21);
this.label24.TabIndex = 316;
this.label24.Text = "--";
//
// labDate
//
this.labDate.AutoSize = true;
this.labDate.Font = new System.Drawing.Font("宋体", 10F);
this.labDate.Location = new System.Drawing.Point(13, 33);
this.labDate.Name = "labDate";
this.labDate.Size = new System.Drawing.Size(63, 14);
this.labDate.TabIndex = 317;
this.labDate.Text = "手术时间";
//
// frmOperationRecoverInfoReport
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(731, 434);
this.Controls.Add(this.panel1);
this.Name = "frmOperationRecoverInfoReport";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
this.Load += new System.EventHandler(this.frmOperationRecoverInfoReport_Load);
this.panel1.ResumeLayout(false);
this.panel3.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
public System.Windows.Forms.Button btnMonthFind;
public System.Windows.Forms.Button btnFind;
public System.Windows.Forms.DateTimePicker dtpBegin;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel3;
private Microsoft.Reporting.WinForms.ReportViewer reportViewer1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.GroupBox groupBox1;
public System.Windows.Forms.DateTimePicker dtpEnd;
public System.Windows.Forms.Label label24;
public System.Windows.Forms.Label labDate;
}
}

View File

@ -1,59 +0,0 @@
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;
using Microsoft.Reporting.WinForms;
namespace AIMS.ReportManager
{
public partial class frmOperationRecoverInfoReport : Form
{
public frmOperationRecoverInfoReport()
{
InitializeComponent();
}
private void frmOperationRecoverInfoReport_Load(object sender, EventArgs e)
{
btnFind_Click(null, null);
}
private void btnFind_Click(object sender, EventArgs e)
{
dtpBegin.Value = DateTime.Parse(dtpBegin.Value.ToString("yyyy-MM-dd"));
dtpEnd.Value = DateTime.Parse(dtpEnd.Value.ToString("yyyy-MM-dd"));
GetOperationRecoverInfoReport();
reportViewer1.RefreshReport();
}
private void btnMonthFind_Click(object sender, EventArgs e)
{
DateTime dTime = AIMSExtension.PublicMethod.SystemDate();
dtpBegin.Value = new DateTime(dTime.Year, dTime.Month, 1);
dtpEnd.Value = dTime;
btnFind_Click(null, null);
}
private void GetOperationRecoverInfoReport()
{
ReportParameter printTime = new ReportParameter("PrintParameter",
dtpBegin.Value.ToString("yyyy-MM-dd") + "--" +
dtpEnd.Value.ToString("yyyy-MM-dd"));
DataTable OperationRecoverInfoDataTable = ReportDataHelper.GetOperationRecoverInfo(dtpBegin.Value, dtpEnd.Value);
reportViewer1.Reset();
reportViewer1.LocalReport.DataSources.Clear();
reportViewer1.LocalReport.ReportEmbeddedResource =
"AIMS.ReportManager.ReportTemplate.OperationRecoverInfoReport.rdlc";
reportViewer1.LocalReport.SetParameters(new ReportParameter[] { printTime });
Microsoft.Reporting.WinForms.ReportDataSource rds =
new Microsoft.Reporting.WinForms.ReportDataSource("OperationRecoverInfoDataSet",
OperationRecoverInfoDataTable);
reportViewer1.LocalReport.DataSources.Add(rds);
}
}
}

View File

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@ -106,7 +106,8 @@
<Compile Include="BLL\AutoGenerate\BOperationPosition.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRecordInfo.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRecordInstrumentList.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRecover.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRecoverInInfo.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRecoverOutInfo.cs" />
<Compile Include="BLL\AutoGenerate\BOperationRoom.cs" />
<Compile Include="BLL\AutoGenerate\BOperationTemplate.cs" />
<Compile Include="BLL\AutoGenerate\BOrisPatient.cs" />
@ -176,7 +177,8 @@
<Compile Include="BLL\Extension\BOperationPosition.cs" />
<Compile Include="BLL\Extension\BOperationRecord.cs" />
<Compile Include="BLL\Extension\BOperationRecordInfo.cs" />
<Compile Include="BLL\Extension\BOperationRecover.cs" />
<Compile Include="BLL\Extension\BOperationRecoverInInfo.cs" />
<Compile Include="BLL\Extension\BOperationRecoverOutInfo.cs" />
<Compile Include="BLL\Extension\BOperationRoom.cs" />
<Compile Include="BLL\Extension\BOperationTemplate.cs" />
<Compile Include="BLL\Extension\BOrisPatient.cs" />
@ -193,6 +195,10 @@
<Compile Include="BLL\Extension\BStockPile.cs" />
<Compile Include="BLL\Extension\BSysConfig.cs" />
<Compile Include="BLL\Extension\BUserPurview.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecoverInInfo.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecoverOutInfo.cs" />
<Compile Include="DAL\Extension\DOperationRecoverInInfo.cs" />
<Compile Include="DAL\Extension\DOperationRecoverOutInfo.cs" />
<Compile Include="Extensions\BOperationReview.cs" />
<Compile Include="Extensions\SelectPatient.cs" />
<Compile Include="DAL\AutoGenerate\DAdverseEvent.cs" />
@ -250,7 +256,6 @@
<Compile Include="DAL\AutoGenerate\DOperationPosition.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecordInfo.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecordInstrumentList.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRecover.cs" />
<Compile Include="DAL\AutoGenerate\DOperationRoom.cs" />
<Compile Include="DAL\AutoGenerate\DOperationTemplate.cs" />
<Compile Include="DAL\AutoGenerate\DOrisPatient.cs" />
@ -320,7 +325,6 @@
<Compile Include="DAL\Extension\DOperationPosition.cs" />
<Compile Include="DAL\Extension\DOperationRecord.cs" />
<Compile Include="DAL\Extension\DOperationRecordInfo.cs" />
<Compile Include="DAL\Extension\DOperationRecover.cs" />
<Compile Include="DAL\Extension\DOperationRoom.cs" />
<Compile Include="DAL\Extension\DOperationTemplate.cs" />
<Compile Include="DAL\Extension\DOrisPatient.cs" />
@ -384,7 +388,6 @@
<Compile Include="Model\AutoGenerate\OperationLevel.cs" />
<Compile Include="Model\AutoGenerate\OperationPosition.cs" />
<Compile Include="Model\AutoGenerate\OperationRecordInstrumentList.cs" />
<Compile Include="Model\AutoGenerate\OperationRecover.cs" />
<Compile Include="Model\AutoGenerate\OperationRoom.cs" />
<Compile Include="Model\AutoGenerate\OperationTemplate.cs" />
<Compile Include="Model\AutoGenerate\OrisPatient.cs" />
@ -448,7 +451,6 @@
<Compile Include="Model\Extension\OperationCutType.cs" />
<Compile Include="Model\Extension\OperationLevel.cs" />
<Compile Include="Model\Extension\OperationPosition.cs" />
<Compile Include="Model\Extension\OperationRecover.cs" />
<Compile Include="Model\Extension\OperationRoom.cs" />
<Compile Include="Model\Extension\OperationTemplate.cs" />
<Compile Include="Model\Extension\OrisPatient.cs" />
@ -528,7 +530,8 @@
<Compile Include="ObjectQuery\OperationRecordInfoMap.cs" />
<Compile Include="ObjectQuery\OperationRecordInstrumentListMap.cs" />
<Compile Include="ObjectQuery\OperationRecordMap.cs" />
<Compile Include="ObjectQuery\OperationRecoverMap.cs" />
<Compile Include="ObjectQuery\OperationRecoverInInfoMap.cs" />
<Compile Include="ObjectQuery\OperationRecoverOutInfoMap.cs" />
<Compile Include="ObjectQuery\OperationRoomMap.cs" />
<Compile Include="ObjectQuery\OperationTemplateMap.cs" />
<Compile Include="ObjectQuery\OrisPatientMap.cs" />

View File

@ -3,20 +3,21 @@ using AIMSDAL;
using AIMSModel;
using System.Collections;
using System.Collections.Generic;
using DrawGraph;
namespace AIMSBLL
{
public partial class BOperationRecover
public partial class BOperationRecoverInInfo
{
#region
/// <summary>
/// 插入实体
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
public static int Insert(OperationRecover operationRecover)
public static int Insert(OperationRecoverInInfo operationRecoverInInfo)
{
return DOperationRecover.Insert(operationRecover);
return DOperationRecoverInInfo.Insert(operationRecoverInInfo);
}
#endregion
@ -24,11 +25,11 @@ namespace AIMSBLL
/// <summary>
/// 删除实体
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Delete(OperationRecover operationRecover)
public static int Delete(OperationRecoverInInfo operationRecoverInInfo)
{
return DOperationRecover.Delete(operationRecover);
return DOperationRecoverInInfo.Delete(operationRecoverInInfo);
}
/// <summary>
/// 根据对象查询语句删除
@ -38,7 +39,7 @@ namespace AIMSBLL
/// <returns>影响的记录行数</returns>
public static int Delete(string oql, ParameterList parameters)
{
return DOperationRecover.Delete(oql,parameters);
return DOperationRecoverInInfo.Delete(oql,parameters);
}
#endregion
@ -47,11 +48,11 @@ namespace AIMSBLL
/// <summary>
/// 更新实体
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Update(OperationRecover operationRecover)
public static int Update(OperationRecoverInInfo operationRecoverInInfo)
{
return DOperationRecover.Update(operationRecover);
return DOperationRecoverInInfo.Update(operationRecoverInInfo);
}
/// <summary>
@ -62,7 +63,7 @@ namespace AIMSBLL
/// <returns>影响的记录行数</returns>
public static int Update(string oql, ParameterList parameters)
{
return DOperationRecover.Update(oql,parameters);
return DOperationRecoverInInfo.Update(oql,parameters);
}
#endregion
@ -71,9 +72,9 @@ namespace AIMSBLL
/// \查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
public static List<OperationRecover> Select()
public static List<OperationRecoverInInfo> Select()
{
return DOperationRecover.Select();
return DOperationRecoverInInfo.Select();
}
/// <summary>
/// 递归查询实体集合
@ -81,9 +82,9 @@ namespace AIMSBLL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecover> Select(RecursiveType recursiveType, int recursiveDepth)
public static List<OperationRecoverInInfo> Select(RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecover.Select(recursiveType, recursiveDepth);
return DOperationRecoverInInfo.Select(recursiveType, recursiveDepth);
}
/// <summary>
@ -92,9 +93,9 @@ namespace AIMSBLL
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecover> Select(string oql, ParameterList parameters)
public static List<OperationRecoverInInfo> Select(string oql, ParameterList parameters)
{
return DOperationRecover.Select(oql, parameters);
return DOperationRecoverInInfo.Select(oql, parameters);
}
/// <summary>
@ -105,9 +106,9 @@ namespace AIMSBLL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecover> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
public static List<OperationRecoverInInfo> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecover.Select(oql, parameters, recursiveType, recursiveDepth);
return DOperationRecoverInInfo.Select(oql, parameters, recursiveType, recursiveDepth);
}
#endregion
@ -118,9 +119,9 @@ namespace AIMSBLL
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
public static OperationRecover SelectSingle(string oql, ParameterList parameters)
public static OperationRecoverInInfo SelectSingle(string oql, ParameterList parameters)
{
return DOperationRecover.SelectSingle(oql, parameters);
return DOperationRecoverInInfo.SelectSingle(oql, parameters);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
@ -130,9 +131,9 @@ namespace AIMSBLL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static OperationRecover SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
public static OperationRecoverInInfo SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecover.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
return DOperationRecoverInInfo.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
@ -140,9 +141,9 @@ namespace AIMSBLL
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
public static OperationRecover SelectSingle(int? id)
public static OperationRecoverInInfo SelectSingle(int? id)
{
return DOperationRecover.SelectSingle(id);
return DOperationRecoverInInfo.SelectSingle(id);
}
/// <summary>
@ -151,9 +152,9 @@ namespace AIMSBLL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static OperationRecover SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
public static OperationRecoverInInfo SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecover.SelectSingle(id, recursiveType, recursiveDepth);
return DOperationRecoverInInfo.SelectSingle(id, recursiveType, recursiveDepth);
}
#endregion
}

View File

@ -0,0 +1,161 @@
using System;
using AIMSDAL;
using AIMSModel;
using System.Collections;
using System.Collections.Generic;
using DrawGraph;
namespace AIMSBLL
{
public partial class BOperationRecoverOutInfo
{
#region
/// <summary>
/// 插入实体
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
public static int Insert(OperationRecoverOutInfo operationRecoverOutInfo)
{
return DOperationRecoverOutInfo.Insert(operationRecoverOutInfo);
}
#endregion
#region
/// <summary>
/// 删除实体
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Delete(OperationRecoverOutInfo operationRecoverOutInfo)
{
return DOperationRecoverOutInfo.Delete(operationRecoverOutInfo);
}
/// <summary>
/// 根据对象查询语句删除
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
public static int Delete(string oql, ParameterList parameters)
{
return DOperationRecoverOutInfo.Delete(oql,parameters);
}
#endregion
#region
/// <summary>
/// 更新实体
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
public static int Update(OperationRecoverOutInfo operationRecoverOutInfo)
{
return DOperationRecoverOutInfo.Update(operationRecoverOutInfo);
}
/// <summary>
/// 根据对象查询语句更新实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
public static int Update(string oql, ParameterList parameters)
{
return DOperationRecoverOutInfo.Update(oql,parameters);
}
#endregion
#region
/// <summary>
/// \查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
public static List<OperationRecoverOutInfo> Select()
{
return DOperationRecoverOutInfo.Select();
}
/// <summary>
/// 递归查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecoverOutInfo> Select(RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecoverOutInfo.Select(recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecoverOutInfo> Select(string oql, ParameterList parameters)
{
return DOperationRecoverOutInfo.Select(oql, parameters);
}
/// <summary>
/// 根据对象查询语句递归查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
public static List<OperationRecoverOutInfo> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecoverOutInfo.Select(oql, parameters, recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
public static OperationRecoverOutInfo SelectSingle(string oql, ParameterList parameters)
{
return DOperationRecoverOutInfo.SelectSingle(oql, parameters);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static OperationRecoverOutInfo SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecoverOutInfo.SelectSingle(oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
public static OperationRecoverOutInfo SelectSingle(int? id)
{
return DOperationRecoverOutInfo.SelectSingle(id);
}
/// <summary>
/// 更据主键递归查询单个实体
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
public static OperationRecoverOutInfo SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
return DOperationRecoverOutInfo.SelectSingle(id, recursiveType, recursiveDepth);
}
#endregion
}
}

View File

@ -10,11 +10,318 @@ using AIMSExtension;
using System.Data.SqlClient;
using System.Reflection;
using System.Windows.Forms;
using DrawGraph;
namespace AIMSBLL
{
public partial class BOperationRecord
{
{
public static OperationRecord getRecord(OperationRecord _record, int PatientId, int RecoverId)
{
if (_record == null) _record = new OperationRecord();
if (PatientId == -1)
{
return _record;
}
TitleTime titleTime = BOperationRecord.GetTitleTime(PatientId, RecoverId);
_record.PatientId = PatientId;
_record.OperationApplyId = titleTime.OperationApplyId;
_record.InRoomTime = titleTime.InRoomTime;
_record.OperationBeginTime = titleTime.OperationBeginTime;
_record.OperationEndTime = titleTime.OperationEndTime;
_record.OutRoomTime = titleTime.OutRoomTime;
DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId);
if (OperationFrontdt.Rows.Count > 0)
{
_record.DepartmentId = int.Parse(OperationFrontdt.Rows[0]["DepartmentId"].ToString());
_record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() + " " + OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();
_record.EndemicArea = OperationFrontdt.Rows[0]["Illdistrict"].ToString();
_record.Bed = OperationFrontdt.Rows[0]["SickBed"].ToString();
_record.InHospitalNo = OperationFrontdt.Rows[0]["MdrecNo"].ToString();
_record.MedicalHistoryNo = OperationFrontdt.Rows[0]["ArchivesNo"].ToString();
_record.Name = OperationFrontdt.Rows[0]["PatientName"].ToString();
_record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString();
_record.Age = AIMSExtension.PublicMethod.GetAge(DateTime.Parse(OperationFrontdt.Rows[0]["BirthDay"].ToString()));
if (OperationFrontdt.Rows[0]["Height"].ToString() != "")
_record.Height = double.Parse(OperationFrontdt.Rows[0]["Height"].ToString()).ToString();
if (OperationFrontdt.Rows[0]["Weight"].ToString() != "")
_record.Weight = double.Parse(OperationFrontdt.Rows[0]["Weight"].ToString()).ToString();
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
_record.OperationPriority = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.OperationRoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim());
_record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString();
}
DataTable OperationDoingdt = BOperationRecord.GetOperationDoingDataTableByPatientId(PatientId, RecoverId);
if (OperationDoingdt.Rows.Count > 0)
{
_record.Id = int.Parse(OperationDoingdt.Rows[0]["Id"].ToString().Trim());
_record.State = OperationDoingdt.Rows[0]["State"].ToString().Trim();
_record.Operation = OperationDoingdt.Rows[0]["OperationInfoId"].ToString().Trim();
_record.Diagnose = OperationDoingdt.Rows[0]["DiagnoseInfoId"].ToString().Trim();
_record.AnaesthesiaMethodId = OperationDoingdt.Rows[0]["AnaesthesiaMethodId"].ToString().Trim();
_record.OperationSiteId = OperationDoingdt.Rows[0]["OperationBodyPositionId"].ToString().Trim();
_record.OperationPositionId = OperationDoingdt.Rows[0]["OperationPositionId"].ToString().Trim();
_record.OperationDoctor = OperationDoingdt.Rows[0]["OperationDoctorId"].ToString().Trim();
_record.Assistant1 = OperationDoingdt.Rows[0]["AssistantId"].ToString().Trim();
_record.AnesthesiaDoctor = OperationDoingdt.Rows[0]["AnesthesiaDoctorId"].ToString().Trim();
_record.InstrumentNurse = OperationDoingdt.Rows[0]["InstrumentNurseId"].ToString().Trim();
_record.TourNurse = OperationDoingdt.Rows[0]["TourNurseId"].ToString().Trim();
_record.AnesthesiaDoctorAssistant = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim();
_record.ASALevel = OperationDoingdt.Rows[0]["ASALevel"].ToString().Trim();
_record.SpecialCase = OperationDoingdt.Rows[0]["SpecialCase"].ToString().Trim();
if (_record.SpecialCase == null || _record.SpecialCase == "") _record.SpecialCase = "无";
if (OperationDoingdt.Rows[0]["Fasting"].ToString() != "")
_record.Fasting = int.Parse(OperationDoingdt.Rows[0]["Fasting"].ToString());
_record.BloodType = OperationDoingdt.Rows[0]["BloodType"].ToString().Trim();
}
FillEventsDataAll(PatientId, RecoverId, _record);
FillDrugDataAll(PatientId, RecoverId, _record);
DrawOutFluid(PatientId, RecoverId, _record);
GetAnaseDataQualityRecord(_record);
_record.OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null);
if (_record.OpeRecordInfo == null) _record.OpeRecordInfo = new OperationRecordInfo();
_record.OpeRecoverInInfo = BOperationRecoverInInfo.SelectSingle("PatientId=" + _record.PatientId, null);
if (_record.OpeRecoverInInfo == null) _record.OpeRecoverInInfo = new OperationRecoverInInfo();
_record.OpeRecoverOutInfo = BOperationRecoverOutInfo.SelectSingle("PatientId=" + _record.PatientId, null);
if (_record.OpeRecoverOutInfo == null) _record.OpeRecoverOutInfo = new OperationRecoverOutInfo();
_record.FactBloodGasAnalysisList = BFactBloodGasAnalysis.Select("OperationRecordId=" + _record.Id, null);
foreach (var item in _record.FactBloodGasAnalysisList)
{
item.FactBloodGasAnalysisDataList = BFactBloodGasAnalysisData.Select("RecordId=" + item.Id, null);
}
return _record;
}
public static void FillDrugDataAll(int PatientId, int TypeId, OperationRecord _record)
{
//药品
_record.FactDrugList.Clear();
DataTable DrugAllData = BOperationRecord.FillDrugData(PatientId, TypeId);
for (int i = 0; i < DrugAllData.Rows.Count; i++)
{
FactDrug FactDrug = new FactDrug();
FactDrug.Id = int.Parse(DrugAllData.Rows[i]["Id"].ToString()); ;
FactDrug.DrugTypeId = TypeId;
FactDrug.PatientId = PatientId;
FactDrug.ParentId = int.Parse(DrugAllData.Rows[i]["ParentId"].ToString()); ;
FactDrug.DrugId = int.Parse(DrugAllData.Rows[i]["DrugsId"].ToString());
FactDrug.DrugName = DrugAllData.Rows[i]["DrugName"].ToString();
FactDrug.DrugBeginTime = DateTime.Parse(DateTime.Parse(DrugAllData.Rows[i]["DrugBeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactDrug.DrugEndTime = DateTime.Parse(DateTime.Parse(DrugAllData.Rows[i]["DrugEndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
if (DrugAllData.Rows[i]["Dosage"].ToString() != "") FactDrug.Dosage = decimal.Parse(DrugAllData.Rows[i]["Dosage"].ToString());
FactDrug.DosageUnit = DrugAllData.Rows[i]["DosageUnit"].ToString();
FactDrug.DrugChannel = DrugAllData.Rows[i]["DrugChannel"].ToString();
FactDrug.GiveDrugType = DrugAllData.Rows[i]["GiveDrugType"].ToString();
FactDrug.Remark = DrugAllData.Rows[i]["Remark"].ToString();
FactDrug.DrugKind = DrugAllData.Rows[i]["DrugKind"].ToString();
FactDrug.IsContinue = int.Parse(DrugAllData.Rows[i]["IsContinue"].ToString());
if (DrugAllData.Rows[i]["Density"].ToString() != "") FactDrug.Density = decimal.Parse(DrugAllData.Rows[i]["Density"].ToString());
FactDrug.DensityUnit = DrugAllData.Rows[i]["DensityUnit"].ToString();
if (DrugAllData.Rows[i]["Velocity"].ToString() != "") FactDrug.Velocity = decimal.Parse(DrugAllData.Rows[i]["Velocity"].ToString());
FactDrug.VelocityUnit = DrugAllData.Rows[i]["VelocityUnit"].ToString();
FactDrug.BloodType = DrugAllData.Rows[i]["BloodType"].ToString();
FactDrug.OperatorNo = DrugAllData.Rows[i]["OperatorNo"].ToString();
FactDrug.OperatorName = DrugAllData.Rows[i]["OperatorName"].ToString();
FactDrug.OperateDate = DateTime.Parse(DrugAllData.Rows[i]["OperateDate"].ToString());
_record.FactDrugList.Add(FactDrug);
}
}
public static void FillEventsDataAll(int PatientId, int TypeId, OperationRecord _record)
{
//事件
_record.FactEventsList.Clear();
DataTable dt = BFactEvents.GetDataTable(PatientId, TypeId);
for (int i = 0; i < dt.Rows.Count; i++)
{
FactEvents FactEventsObj = new FactEvents();
FactEventsObj.Id = int.Parse(dt.Rows[i]["Id"].ToString());
if (dt.Rows[i]["Remark"].ToString() == "")
{
FactEventsObj.EventName = dt.Rows[i]["EventName"].ToString();
}
else
{
FactEventsObj.EventName = dt.Rows[i]["EventName"].ToString() + " " + dt.Rows[i]["Remark"].ToString();
}
FactEventsObj.EventBeginTime = DateTime.Parse(DateTime.Parse(dt.Rows[i]["EventBeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactEventsObj.EventEndTime = DateTime.Parse(DateTime.Parse(dt.Rows[i]["EventEndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
FactEventsObj.OperatorNo = dt.Rows[i]["OperatorNo"].ToString();
FactEventsObj.OperatorName = dt.Rows[i]["OperatorName"].ToString();
FactEventsObj.OperateDate = DateTime.Parse(dt.Rows[i]["OperateDate"].ToString());
_record.FactEventsList.Add(FactEventsObj);
if (FactEventsObj.EventName == "手术开始")
{
_record.OperationBeginTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "手术结束")
{
_record.OperationEndTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "麻醉开始")
{
_record.AnesthesiaBeginTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "麻醉完成")
{
_record.AnesthesiaEndTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "插管")
{
_record.InCGType = FactEventsObj.EventName;
_record.InCGTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "喉罩")
{
_record.InCGType = FactEventsObj.EventName;
_record.InCGTime = FactEventsObj.EventBeginTime;
}
if (FactEventsObj.EventName == "拔管")
{
_record.OutCGTime = FactEventsObj.EventBeginTime;
}
}
}
public static void DrawOutFluid(int PatientId, int TypeId, OperationRecord _record)
{
//出量
_record.FactOutputLiquidsList.Clear();
DataTable OutputLiquidsDistinct = BOperationRecord.FillOutFluid(PatientId, TypeId);
for (int i = 0; i < OutputLiquidsDistinct.Rows.Count; i++)
{
FactOutputLiquids OutputLiquidsObj = new FactOutputLiquids();
OutputLiquidsObj.OutputLiquidsTypeId = TypeId;
OutputLiquidsObj.PatientId = PatientId;
OutputLiquidsObj.Id = int.Parse(OutputLiquidsDistinct.Rows[i]["Id"].ToString());
OutputLiquidsObj.OutputLiquidsId = int.Parse(OutputLiquidsDistinct.Rows[i]["OutputLiquidsId"].ToString());
OutputLiquidsObj.OutputLiquidsName = OutputLiquidsDistinct.Rows[i]["OutputLiquidsName"].ToString();
OutputLiquidsObj.DosageUnit = OutputLiquidsDistinct.Rows[i]["DosageUnit"].ToString();
OutputLiquidsObj.BeginTime = DateTime.Parse(DateTime.Parse(OutputLiquidsDistinct.Rows[i]["BeginTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
OutputLiquidsObj.EndTime = DateTime.Parse(DateTime.Parse(OutputLiquidsDistinct.Rows[i]["EndTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss"));
OutputLiquidsObj.Dosage = decimal.Parse(OutputLiquidsDistinct.Rows[i]["Dosage"].ToString());
OutputLiquidsObj.DosageUnit = OutputLiquidsDistinct.Rows[i]["DosageUnit"].ToString();
OutputLiquidsObj.Remark = OutputLiquidsDistinct.Rows[i]["Remark"].ToString();
_record.FactOutputLiquidsList.Add(OutputLiquidsObj);
}
}
public static void GetAnaseDataQualityRecord(OperationRecord _record)
{
//出量
_record.AnaseDataQualityRecordList.Clear();
_record.AnaseDataQualityRecordList = BAnaseDataQualityRecord.Select("OperationRecordId=" + _record.Id, null);
}
/// <summary>
/// 判断添加的事件 是否正确
/// </summary>
/// <param name="OpeState">true :术中 false恢复</param>
/// <param name="_record">手术对象</param>
/// <param name="EventName">事件名称</param>
/// <param name="curTimeTemp">事件时间</param>
/// <param name="messing">返回提示消息</param>
/// <returns></returns>
public static bool IfTimeisTrue(bool OpeState, OperationRecord _record, string EventName, DateTime curTimeTemp, ref string messing)
{
//if (curTimeTemp > PublicMethod.ServerTime())
//{
// messing = EventName + "时间不可以大于当前时间 ";
// return false;
//}
TimeSpan ifinroom = curTimeTemp - _record.InRoomTime.Value;
if (EventName != "入室" && _record.InRoomTime == null)
{
messing = "请填写入室时间 ";
return false;
}
else if (EventName != "入室" && (ifinroom.TotalHours > 48 || ifinroom.TotalDays < -48))
{
messing = EventName + "时间不能大于入室时间48小时 ";
return false;
}
else if (EventName != "入室" && EventName != "麻醉开始" && _record.InRoomTime > curTimeTemp)// && OpeState == true
{
//TimeSpan tsp = DateTime.Now - _record.InRoomTime.Value;
//if (tsp.TotalHours > 12 || tsp.TotalDays > 1)
// messing = "";// "请在“事件记录”添加" + EventName + "时间!";
//else
messing = EventName + "时间不能小于入室时间(" + _record.InRoomTime + ") ";
return false;
}
if (_record.OutRoomTime != null && EventName != "出室" && EventName != "麻醉结束" && _record.OutRoomTime < curTimeTemp && OpeState == true)
{
messing = EventName + "时间不能大于出室时间(" + _record.OutRoomTime + ") ";
return false;
}
//if (EventName == "麻醉开始" && _record.OperationBeginTime != null && curTimeTemp > _record.OperationBeginTime && OpeState == true)
//{
// messing = "麻醉开始时间不能大于手术开始时间(" + _record.OperationBeginTime + ") ";
// return false;
//}
//if (EventName == "手术开始" && _record.AnesthesiaBeginTime == null && OpeState == true)
//{
// messing = "请先填写麻醉开始时间!";
// return false;
//}
//if (EventName == "手术开始" && curTimeTemp < _record.AnesthesiaBeginTime && OpeState == true)
//{
// messing = "手术开始时间必须晚于麻醉开始时间(" + _record.AnesthesiaBeginTime + ") ";
// return false;
//}
else if (EventName == "手术开始" && _record.OperationEndTime != null && curTimeTemp > _record.OperationEndTime && OpeState == true)
{
messing = "手术开始时间不能大于手术结束时间(" + _record.OperationBeginTime + ") ";
return false;
}
if (EventName == "手术结束" && _record.OperationBeginTime == null && OpeState == true)
{
messing = "请先填写手术开始时间!";
return false;
}
else if (EventName == "手术结束" && curTimeTemp < _record.OperationBeginTime && OpeState == true)
{
messing = "手术结束时间必须晚于手术开始时间(" + _record.OperationBeginTime + ") ";
return false;
}
if (EventName == "出室" && _record.OperationEndTime == null && OpeState == true)
{
messing = "请先填写手术结束时间!";
return false;
}
else if (EventName == "出室" && curTimeTemp < _record.OperationEndTime && OpeState == true)
{
messing = "出室时间必须晚于手术结束时间(" + _record.OperationEndTime + ") ";
return false;
}
return true;
}
public static DataTable getOperationRecorePhysioData(int operationId)
{
string sqlStr = "exec [dbo].[usp_GetOperationRecorePhysioData] " + operationId;
return DBHelper.GetDataTable(sqlStr);
}
public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, string TableColumnName, DateTime Time, int RoomId)
{
return DOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, TableColumnName, Time, RoomId);

View File

@ -6,7 +6,7 @@ using System.Collections;
using System.Collections.Generic;
namespace AIMSBLL
{
public partial class BOperationRecover
public partial class BOperationRecoverInInfo
{
}
}

View File

@ -1,10 +1,12 @@
using System;
using AIMSDAL;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections;
using System.Collections.Generic;
using AIMSDAL;
namespace AIMSModel
namespace AIMSBLL
{
public partial class OperationRecover
public partial class BOperationRecoverOutInfo
{
}
}

View File

@ -1,699 +0,0 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections.Generic;
namespace AIMSDAL
{
internal partial class DOperationRecover
{
#region
/// <summary>
/// 插入
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(SqlCommand cmd, OperationRecover operationRecover)
{
cmd.Parameters.Clear();
cmd.CommandText = "insert into OperationRecover (PatientId,OperationApplyId,InRoomTime,OutRoomTime,InStewardScore,RespirePattern,BloodPressure,Pulse,Respire,Spo2,OutStewardScore,SkinMucosa,RespireSound,Hoarseness,DoctorSign,NurseSign,Remarks,OperatorNo,OperatorName,OperateDate) values (@PatientId,@OperationApplyId,@InRoomTime,@OutRoomTime,@InStewardScore,@RespirePattern,@BloodPressure,@Pulse,@Respire,@Spo2,@OutStewardScore,@SkinMucosa,@RespireSound,@Hoarseness,@DoctorSign,@NurseSign,@Remarks,@OperatorNo,@OperatorName,@OperateDate);select @@identity";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecover.PatientId.HasValue?(object)operationRecover.PatientId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationApplyId",operationRecover.OperationApplyId.HasValue?(object)operationRecover.OperationApplyId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@InRoomTime",operationRecover.InRoomTime.HasValue?(object)operationRecover.InRoomTime.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OutRoomTime",operationRecover.OutRoomTime.HasValue?(object)operationRecover.OutRoomTime.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@InStewardScore",operationRecover.InStewardScore==null?(object)DBNull.Value:(object)operationRecover.InStewardScore));
cmd.Parameters.Add(new SqlParameter("@RespirePattern",operationRecover.RespirePattern==null?(object)DBNull.Value:(object)operationRecover.RespirePattern));
cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecover.BloodPressure==null?(object)DBNull.Value:(object)operationRecover.BloodPressure));
cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecover.Pulse==null?(object)DBNull.Value:(object)operationRecover.Pulse));
cmd.Parameters.Add(new SqlParameter("@Respire",operationRecover.Respire==null?(object)DBNull.Value:(object)operationRecover.Respire));
cmd.Parameters.Add(new SqlParameter("@Spo2",operationRecover.Spo2==null?(object)DBNull.Value:(object)operationRecover.Spo2));
cmd.Parameters.Add(new SqlParameter("@OutStewardScore",operationRecover.OutStewardScore==null?(object)DBNull.Value:(object)operationRecover.OutStewardScore));
cmd.Parameters.Add(new SqlParameter("@SkinMucosa",operationRecover.SkinMucosa==null?(object)DBNull.Value:(object)operationRecover.SkinMucosa));
cmd.Parameters.Add(new SqlParameter("@RespireSound",operationRecover.RespireSound.HasValue?(object)operationRecover.RespireSound.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Hoarseness",operationRecover.Hoarseness==null?(object)DBNull.Value:(object)operationRecover.Hoarseness));
cmd.Parameters.Add(new SqlParameter("@DoctorSign",operationRecover.DoctorSign==null?(object)DBNull.Value:(object)operationRecover.DoctorSign));
cmd.Parameters.Add(new SqlParameter("@NurseSign",operationRecover.NurseSign==null?(object)DBNull.Value:(object)operationRecover.NurseSign));
cmd.Parameters.Add(new SqlParameter("@Remarks",operationRecover.Remarks==null?(object)DBNull.Value:(object)operationRecover.Remarks));
cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecover.OperatorNo==null?(object)DBNull.Value:(object)operationRecover.OperatorNo));
cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecover.OperatorName==null?(object)DBNull.Value:(object)operationRecover.OperatorName));
cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecover.OperateDate.HasValue?(object)operationRecover.OperateDate.Value:(object)DBNull.Value));
return Convert.ToInt32(cmd.ExecuteScalar());
}
/// <summary>
/// 不使用事务的插入方法
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(OperationRecover operationRecover)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return Insert(cmd, operationRecover);
}
}
}
/// <summary>
/// 使用事务的插入方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Connection connection,OperationRecover operationRecover)
{
return Insert(connection.Command, operationRecover);
}
#endregion
#region
/// <summary>
/// 删除
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, OperationRecover operationRecover)
{
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecover where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Id", operationRecover.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(OperationRecover operationRecover)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, operationRecover);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection,OperationRecover operationRecover)
{
return ExcuteDeleteCommand(connection.Command, operationRecover);
}
/// <summary>
/// 执行删除命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecover " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection, string oql, ParameterList parameters)
{
return ExcuteDeleteCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 更新
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecover operationRecover)
{
cmd.CommandText = "update OperationRecover set PatientId=@PatientId,OperationApplyId=@OperationApplyId,InRoomTime=@InRoomTime,OutRoomTime=@OutRoomTime,InStewardScore=@InStewardScore,RespirePattern=@RespirePattern,BloodPressure=@BloodPressure,Pulse=@Pulse,Respire=@Respire,Spo2=@Spo2,OutStewardScore=@OutStewardScore,SkinMucosa=@SkinMucosa,RespireSound=@RespireSound,Hoarseness=@Hoarseness,DoctorSign=@DoctorSign,NurseSign=@NurseSign,Remarks=@Remarks,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecover.PatientId.HasValue?(object)operationRecover.PatientId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationApplyId",operationRecover.OperationApplyId.HasValue?(object)operationRecover.OperationApplyId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@InRoomTime",operationRecover.InRoomTime.HasValue?(object)operationRecover.InRoomTime.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OutRoomTime",operationRecover.OutRoomTime.HasValue?(object)operationRecover.OutRoomTime.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@InStewardScore",operationRecover.InStewardScore==null?(object)DBNull.Value:(object)operationRecover.InStewardScore));
cmd.Parameters.Add(new SqlParameter("@RespirePattern",operationRecover.RespirePattern==null?(object)DBNull.Value:(object)operationRecover.RespirePattern));
cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecover.BloodPressure==null?(object)DBNull.Value:(object)operationRecover.BloodPressure));
cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecover.Pulse==null?(object)DBNull.Value:(object)operationRecover.Pulse));
cmd.Parameters.Add(new SqlParameter("@Respire",operationRecover.Respire==null?(object)DBNull.Value:(object)operationRecover.Respire));
cmd.Parameters.Add(new SqlParameter("@Spo2",operationRecover.Spo2==null?(object)DBNull.Value:(object)operationRecover.Spo2));
cmd.Parameters.Add(new SqlParameter("@OutStewardScore",operationRecover.OutStewardScore==null?(object)DBNull.Value:(object)operationRecover.OutStewardScore));
cmd.Parameters.Add(new SqlParameter("@SkinMucosa",operationRecover.SkinMucosa==null?(object)DBNull.Value:(object)operationRecover.SkinMucosa));
cmd.Parameters.Add(new SqlParameter("@RespireSound",operationRecover.RespireSound.HasValue?(object)operationRecover.RespireSound.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Hoarseness",operationRecover.Hoarseness==null?(object)DBNull.Value:(object)operationRecover.Hoarseness));
cmd.Parameters.Add(new SqlParameter("@DoctorSign",operationRecover.DoctorSign==null?(object)DBNull.Value:(object)operationRecover.DoctorSign));
cmd.Parameters.Add(new SqlParameter("@NurseSign",operationRecover.NurseSign==null?(object)DBNull.Value:(object)operationRecover.NurseSign));
cmd.Parameters.Add(new SqlParameter("@Remarks",operationRecover.Remarks==null?(object)DBNull.Value:(object)operationRecover.Remarks));
cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecover.OperatorNo==null?(object)DBNull.Value:(object)operationRecover.OperatorNo));
cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecover.OperatorName==null?(object)DBNull.Value:(object)operationRecover.OperatorName));
cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecover.OperateDate.HasValue?(object)operationRecover.OperateDate.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Id", operationRecover.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(OperationRecover operationRecover)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, operationRecover);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecover">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection,OperationRecover operationRecover)
{
return ExcuteUpdateCommand(connection.Command, operationRecover);
}
/// <summary>
/// 执行更新命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string updateString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverMap());
cmd.CommandText = "update OperationRecover set " + updateString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection, string oql, ParameterList parameters)
{
return ExcuteUpdateCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 执行Command获取对象列表
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象列表</returns>
internal static List<OperationRecover> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
List<OperationRecover> operationRecoverList = new List<OperationRecover>();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
OperationRecover operationRecover = DataReaderToEntity(dr);
operationRecoverList.Add(operationRecover);
}
}
return operationRecoverList;
}
/// <summary>
/// 执行查询命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverMap());
if (filterString != string.Empty)
{
if(filterString.Trim().ToLower().IndexOf("order ")!=0)
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "select * from OperationRecover " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> Select()
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecover";
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> Select(RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecover";
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> Select(string oql, ParameterList parameters)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合(启用事务)
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecover> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecover ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
OperationRecover operationRecover=null;
using (SqlDataReader dr = cmd.ExecuteReader())
{
if(dr.Read())
operationRecover = DataReaderToEntity(dr);
}
if(operationRecover==null)
return operationRecover;
return operationRecover;
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecover ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverMap());
if(filterString!=string.Empty)
{
filterString=" where "+filterString;
}
cmd.CommandText = "select * from OperationRecover " + filterString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecover SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecover SelectSingle(string oql, ParameterList parameters)
{
return SelectSingle(oql,parameters,RecursiveType.Parent,1);
}
/// <summary>
/// 更据对象查询语句并启用事务查询单个实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecover SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据主键值递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecover SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
{
cmd.Parameters.Clear();
if(id.HasValue)
{
cmd.CommandText = "select * from OperationRecover where Id=@pk";
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
}
else
{
cmd.CommandText = "select * from OperationRecover where Id is null";
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecover SelectSingle(int? id)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id,RecursiveType.Parent,1);
}
}
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象</returns>
internal static OperationRecover SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 使用事务并按主键字段查询特定实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecover SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
{
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
#endregion
/// <summary>
/// 从DataReader中取出值生成实体对象
/// </summary>
/// <param name="searcher">查询对象</param>
/// <returns>过滤条件字符串</returns>
private static OperationRecover DataReaderToEntity(SqlDataReader dr)
{
OperationRecover entity = new OperationRecover ();
if(dr["Id"]!=System.DBNull.Value)
{
entity.Id=Convert.ToInt32(dr["Id"]);
}
if(dr["PatientId"]!=System.DBNull.Value)
{
entity.PatientId=Convert.ToInt32(dr["PatientId"]);
}
if(dr["OperationApplyId"]!=System.DBNull.Value)
{
entity.OperationApplyId=Convert.ToInt32(dr["OperationApplyId"]);
}
if(dr["InRoomTime"]!=System.DBNull.Value)
{
entity.InRoomTime=Convert.ToDateTime(dr["InRoomTime"]);
}
if(dr["OutRoomTime"]!=System.DBNull.Value)
{
entity.OutRoomTime=Convert.ToDateTime(dr["OutRoomTime"]);
}
if(dr["InStewardScore"]!=System.DBNull.Value)
{
entity.InStewardScore=dr["InStewardScore"].ToString();
}
if(dr["RespirePattern"]!=System.DBNull.Value)
{
entity.RespirePattern=dr["RespirePattern"].ToString();
}
if(dr["BloodPressure"]!=System.DBNull.Value)
{
entity.BloodPressure=dr["BloodPressure"].ToString();
}
if(dr["Pulse"]!=System.DBNull.Value)
{
entity.Pulse=dr["Pulse"].ToString();
}
if(dr["Respire"]!=System.DBNull.Value)
{
entity.Respire=dr["Respire"].ToString();
}
if(dr["Spo2"]!=System.DBNull.Value)
{
entity.Spo2=dr["Spo2"].ToString();
}
if(dr["OutStewardScore"]!=System.DBNull.Value)
{
entity.OutStewardScore=dr["OutStewardScore"].ToString();
}
if(dr["SkinMucosa"]!=System.DBNull.Value)
{
entity.SkinMucosa=dr["SkinMucosa"].ToString();
}
if(dr["RespireSound"]!=System.DBNull.Value)
{
entity.RespireSound=Convert.ToInt32(dr["RespireSound"]);
}
if(dr["Hoarseness"]!=System.DBNull.Value)
{
entity.Hoarseness=dr["Hoarseness"].ToString();
}
if(dr["DoctorSign"]!=System.DBNull.Value)
{
entity.DoctorSign=dr["DoctorSign"].ToString();
}
if(dr["NurseSign"]!=System.DBNull.Value)
{
entity.NurseSign=dr["NurseSign"].ToString();
}
if(dr["Remarks"]!=System.DBNull.Value)
{
entity.Remarks=dr["Remarks"].ToString();
}
if(dr["OperatorNo"]!=System.DBNull.Value)
{
entity.OperatorNo=dr["OperatorNo"].ToString();
}
if(dr["OperatorName"]!=System.DBNull.Value)
{
entity.OperatorName=dr["OperatorName"].ToString();
}
if(dr["OperateDate"]!=System.DBNull.Value)
{
entity.OperateDate=Convert.ToDateTime(dr["OperateDate"]);
}
return entity;
}
}
}

View File

@ -0,0 +1,928 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections.Generic;
using DrawGraph;
namespace AIMSDAL
{
internal partial class DOperationRecoverInInfo
{
#region
/// <summary>
/// 插入
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(SqlCommand cmd, OperationRecoverInInfo operationRecoverInInfo)
{
cmd.Parameters.Clear();
cmd.CommandText = "insert into OperationRecoverInInfo (PatientId,ApplyId,OperationRecordId,PACUStewardScore,PACUStewardScoreText,PACUAldteteScore,PACUAldteteScoreText,MuscleRelaxation,ProtectiveReflex,OrientationAbility,RespiratorySystem,Temp,Resp,HR,BP,SPO2,Skin,Consciousness,Nausea,Pain,VenousPatency,DrainageIdentification,DrainagePosition,DrainageName,LeftPupil,RightPupil,LightReflection,AnestheticPlane,Remark,Iiquid,Blood,AutologousBlood,InOther,UrineVolume,InducedFlow,LoseBlood,OutOther,HandOverPatient,MeetPatient,StewardSober,StewardBreathing,StewardLimbActivity,Indexing,PressureSite,PressureArea,InfusionSite,VentilationPipeline,WoundPosition,artificialAirway,oralIntubation,restraintBand,Extend1,Extend2,Extend3,Extend4,Extend5,OperatorId,OperatorTime) values (@PatientId,@ApplyId,@OperationRecordId,@PACUStewardScore,@PACUStewardScoreText,@PACUAldteteScore,@PACUAldteteScoreText,@MuscleRelaxation,@ProtectiveReflex,@OrientationAbility,@RespiratorySystem,@Temp,@Resp,@HR,@BP,@SPO2,@Skin,@Consciousness,@Nausea,@Pain,@VenousPatency,@DrainageIdentification,@DrainagePosition,@DrainageName,@LeftPupil,@RightPupil,@LightReflection,@AnestheticPlane,@Remark,@Iiquid,@Blood,@AutologousBlood,@InOther,@UrineVolume,@InducedFlow,@LoseBlood,@OutOther,@HandOverPatient,@MeetPatient,@StewardSober,@StewardBreathing,@StewardLimbActivity,@Indexing,@PressureSite,@PressureArea,@InfusionSite,@VentilationPipeline,@WoundPosition,@artificialAirway,@oralIntubation,@restraintBand,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5,@OperatorId,@OperatorTime);select @@identity";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecoverInInfo.PatientId.HasValue?(object)operationRecoverInInfo.PatientId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@ApplyId",operationRecoverInInfo.ApplyId.HasValue?(object)operationRecoverInInfo.ApplyId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecoverInInfo.OperationRecordId.HasValue?(object)operationRecoverInInfo.OperationRecordId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScore",operationRecoverInInfo.PACUStewardScore.HasValue?(object)operationRecoverInInfo.PACUStewardScore.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScoreText",operationRecoverInInfo.PACUStewardScoreText==null?(object)DBNull.Value:(object)operationRecoverInInfo.PACUStewardScoreText));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScore",operationRecoverInInfo.PACUAldteteScore.HasValue?(object)operationRecoverInInfo.PACUAldteteScore.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScoreText",operationRecoverInInfo.PACUAldteteScoreText==null?(object)DBNull.Value:(object)operationRecoverInInfo.PACUAldteteScoreText));
cmd.Parameters.Add(new SqlParameter("@MuscleRelaxation",operationRecoverInInfo.MuscleRelaxation==null?(object)DBNull.Value:(object)operationRecoverInInfo.MuscleRelaxation));
cmd.Parameters.Add(new SqlParameter("@ProtectiveReflex",operationRecoverInInfo.ProtectiveReflex==null?(object)DBNull.Value:(object)operationRecoverInInfo.ProtectiveReflex));
cmd.Parameters.Add(new SqlParameter("@OrientationAbility",operationRecoverInInfo.OrientationAbility==null?(object)DBNull.Value:(object)operationRecoverInInfo.OrientationAbility));
cmd.Parameters.Add(new SqlParameter("@RespiratorySystem",operationRecoverInInfo.RespiratorySystem==null?(object)DBNull.Value:(object)operationRecoverInInfo.RespiratorySystem));
cmd.Parameters.Add(new SqlParameter("@Temp",operationRecoverInInfo.Temp==null?(object)DBNull.Value:(object)operationRecoverInInfo.Temp));
cmd.Parameters.Add(new SqlParameter("@Resp",operationRecoverInInfo.Resp==null?(object)DBNull.Value:(object)operationRecoverInInfo.Resp));
cmd.Parameters.Add(new SqlParameter("@HR",operationRecoverInInfo.HR==null?(object)DBNull.Value:(object)operationRecoverInInfo.HR));
cmd.Parameters.Add(new SqlParameter("@BP",operationRecoverInInfo.BP==null?(object)DBNull.Value:(object)operationRecoverInInfo.BP));
cmd.Parameters.Add(new SqlParameter("@SPO2",operationRecoverInInfo.SPO2==null?(object)DBNull.Value:(object)operationRecoverInInfo.SPO2));
cmd.Parameters.Add(new SqlParameter("@Skin",operationRecoverInInfo.Skin==null?(object)DBNull.Value:(object)operationRecoverInInfo.Skin));
cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecoverInInfo.Consciousness==null?(object)DBNull.Value:(object)operationRecoverInInfo.Consciousness));
cmd.Parameters.Add(new SqlParameter("@Nausea",operationRecoverInInfo.Nausea==null?(object)DBNull.Value:(object)operationRecoverInInfo.Nausea));
cmd.Parameters.Add(new SqlParameter("@Pain",operationRecoverInInfo.Pain==null?(object)DBNull.Value:(object)operationRecoverInInfo.Pain));
cmd.Parameters.Add(new SqlParameter("@VenousPatency",operationRecoverInInfo.VenousPatency==null?(object)DBNull.Value:(object)operationRecoverInInfo.VenousPatency));
cmd.Parameters.Add(new SqlParameter("@DrainageIdentification",operationRecoverInInfo.DrainageIdentification==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainageIdentification));
cmd.Parameters.Add(new SqlParameter("@DrainagePosition",operationRecoverInInfo.DrainagePosition==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainagePosition));
cmd.Parameters.Add(new SqlParameter("@DrainageName",operationRecoverInInfo.DrainageName==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainageName));
cmd.Parameters.Add(new SqlParameter("@LeftPupil",operationRecoverInInfo.LeftPupil==null?(object)DBNull.Value:(object)operationRecoverInInfo.LeftPupil));
cmd.Parameters.Add(new SqlParameter("@RightPupil",operationRecoverInInfo.RightPupil==null?(object)DBNull.Value:(object)operationRecoverInInfo.RightPupil));
cmd.Parameters.Add(new SqlParameter("@LightReflection",operationRecoverInInfo.LightReflection==null?(object)DBNull.Value:(object)operationRecoverInInfo.LightReflection));
cmd.Parameters.Add(new SqlParameter("@AnestheticPlane",operationRecoverInInfo.AnestheticPlane==null?(object)DBNull.Value:(object)operationRecoverInInfo.AnestheticPlane));
cmd.Parameters.Add(new SqlParameter("@Remark",operationRecoverInInfo.Remark==null?(object)DBNull.Value:(object)operationRecoverInInfo.Remark));
cmd.Parameters.Add(new SqlParameter("@Iiquid",operationRecoverInInfo.Iiquid==null?(object)DBNull.Value:(object)operationRecoverInInfo.Iiquid));
cmd.Parameters.Add(new SqlParameter("@Blood",operationRecoverInInfo.Blood==null?(object)DBNull.Value:(object)operationRecoverInInfo.Blood));
cmd.Parameters.Add(new SqlParameter("@AutologousBlood",operationRecoverInInfo.AutologousBlood==null?(object)DBNull.Value:(object)operationRecoverInInfo.AutologousBlood));
cmd.Parameters.Add(new SqlParameter("@InOther",operationRecoverInInfo.InOther==null?(object)DBNull.Value:(object)operationRecoverInInfo.InOther));
cmd.Parameters.Add(new SqlParameter("@UrineVolume",operationRecoverInInfo.UrineVolume==null?(object)DBNull.Value:(object)operationRecoverInInfo.UrineVolume));
cmd.Parameters.Add(new SqlParameter("@InducedFlow",operationRecoverInInfo.InducedFlow==null?(object)DBNull.Value:(object)operationRecoverInInfo.InducedFlow));
cmd.Parameters.Add(new SqlParameter("@LoseBlood",operationRecoverInInfo.LoseBlood==null?(object)DBNull.Value:(object)operationRecoverInInfo.LoseBlood));
cmd.Parameters.Add(new SqlParameter("@OutOther",operationRecoverInInfo.OutOther==null?(object)DBNull.Value:(object)operationRecoverInInfo.OutOther));
cmd.Parameters.Add(new SqlParameter("@HandOverPatient",operationRecoverInInfo.HandOverPatient==null?(object)DBNull.Value:(object)operationRecoverInInfo.HandOverPatient));
cmd.Parameters.Add(new SqlParameter("@MeetPatient",operationRecoverInInfo.MeetPatient==null?(object)DBNull.Value:(object)operationRecoverInInfo.MeetPatient));
cmd.Parameters.Add(new SqlParameter("@StewardSober",operationRecoverInInfo.StewardSober==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardSober));
cmd.Parameters.Add(new SqlParameter("@StewardBreathing",operationRecoverInInfo.StewardBreathing==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardBreathing));
cmd.Parameters.Add(new SqlParameter("@StewardLimbActivity",operationRecoverInInfo.StewardLimbActivity==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardLimbActivity));
cmd.Parameters.Add(new SqlParameter("@Indexing",operationRecoverInInfo.Indexing==null?(object)DBNull.Value:(object)operationRecoverInInfo.Indexing));
cmd.Parameters.Add(new SqlParameter("@PressureSite",operationRecoverInInfo.PressureSite==null?(object)DBNull.Value:(object)operationRecoverInInfo.PressureSite));
cmd.Parameters.Add(new SqlParameter("@PressureArea",operationRecoverInInfo.PressureArea==null?(object)DBNull.Value:(object)operationRecoverInInfo.PressureArea));
cmd.Parameters.Add(new SqlParameter("@InfusionSite",operationRecoverInInfo.InfusionSite==null?(object)DBNull.Value:(object)operationRecoverInInfo.InfusionSite));
cmd.Parameters.Add(new SqlParameter("@VentilationPipeline",operationRecoverInInfo.VentilationPipeline==null?(object)DBNull.Value:(object)operationRecoverInInfo.VentilationPipeline));
cmd.Parameters.Add(new SqlParameter("@WoundPosition",operationRecoverInInfo.WoundPosition==null?(object)DBNull.Value:(object)operationRecoverInInfo.WoundPosition));
cmd.Parameters.Add(new SqlParameter("@artificialAirway",operationRecoverInInfo.ArtificialAirway==null?(object)DBNull.Value:(object)operationRecoverInInfo.ArtificialAirway));
cmd.Parameters.Add(new SqlParameter("@oralIntubation",operationRecoverInInfo.OralIntubation==null?(object)DBNull.Value:(object)operationRecoverInInfo.OralIntubation));
cmd.Parameters.Add(new SqlParameter("@restraintBand",operationRecoverInInfo.RestraintBand==null?(object)DBNull.Value:(object)operationRecoverInInfo.RestraintBand));
cmd.Parameters.Add(new SqlParameter("@Extend1",operationRecoverInInfo.Extend1==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend1));
cmd.Parameters.Add(new SqlParameter("@Extend2",operationRecoverInInfo.Extend2==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend2));
cmd.Parameters.Add(new SqlParameter("@Extend3",operationRecoverInInfo.Extend3==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend3));
cmd.Parameters.Add(new SqlParameter("@Extend4",operationRecoverInInfo.Extend4==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend4));
cmd.Parameters.Add(new SqlParameter("@Extend5",operationRecoverInInfo.Extend5==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend5));
cmd.Parameters.Add(new SqlParameter("@OperatorId",operationRecoverInInfo.OperatorId.HasValue?(object)operationRecoverInInfo.OperatorId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperatorTime",operationRecoverInInfo.OperatorTime.HasValue?(object)operationRecoverInInfo.OperatorTime.Value:(object)DBNull.Value));
return Convert.ToInt32(cmd.ExecuteScalar());
}
/// <summary>
/// 不使用事务的插入方法
/// </summary>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(OperationRecoverInInfo operationRecoverInInfo)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return Insert(cmd, operationRecoverInInfo);
}
}
}
/// <summary>
/// 使用事务的插入方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Connection connection,OperationRecoverInInfo operationRecoverInInfo)
{
return Insert(connection.Command, operationRecoverInInfo);
}
#endregion
#region
/// <summary>
/// 删除
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, OperationRecoverInInfo operationRecoverInInfo)
{
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecoverInInfo where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Id", operationRecoverInInfo.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(OperationRecoverInInfo operationRecoverInInfo)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, operationRecoverInInfo);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection,OperationRecoverInInfo operationRecoverInInfo)
{
return ExcuteDeleteCommand(connection.Command, operationRecoverInInfo);
}
/// <summary>
/// 执行删除命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverInInfoMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecoverInInfo " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection, string oql, ParameterList parameters)
{
return ExcuteDeleteCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 更新
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecoverInInfo operationRecoverInInfo)
{
cmd.CommandText = "update OperationRecoverInInfo set PatientId=@PatientId,ApplyId=@ApplyId,OperationRecordId=@OperationRecordId,PACUStewardScore=@PACUStewardScore,PACUStewardScoreText=@PACUStewardScoreText,PACUAldteteScore=@PACUAldteteScore,PACUAldteteScoreText=@PACUAldteteScoreText,MuscleRelaxation=@MuscleRelaxation,ProtectiveReflex=@ProtectiveReflex,OrientationAbility=@OrientationAbility,RespiratorySystem=@RespiratorySystem,Temp=@Temp,Resp=@Resp,HR=@HR,BP=@BP,SPO2=@SPO2,Skin=@Skin,Consciousness=@Consciousness,Nausea=@Nausea,Pain=@Pain,VenousPatency=@VenousPatency,DrainageIdentification=@DrainageIdentification,DrainagePosition=@DrainagePosition,DrainageName=@DrainageName,LeftPupil=@LeftPupil,RightPupil=@RightPupil,LightReflection=@LightReflection,AnestheticPlane=@AnestheticPlane,Remark=@Remark,Iiquid=@Iiquid,Blood=@Blood,AutologousBlood=@AutologousBlood,InOther=@InOther,UrineVolume=@UrineVolume,InducedFlow=@InducedFlow,LoseBlood=@LoseBlood,OutOther=@OutOther,HandOverPatient=@HandOverPatient,MeetPatient=@MeetPatient,StewardSober=@StewardSober,StewardBreathing=@StewardBreathing,StewardLimbActivity=@StewardLimbActivity,Indexing=@Indexing,PressureSite=@PressureSite,PressureArea=@PressureArea,InfusionSite=@InfusionSite,VentilationPipeline=@VentilationPipeline,WoundPosition=@WoundPosition,artificialAirway=@artificialAirway,oralIntubation=@oralIntubation,restraintBand=@restraintBand,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5,OperatorId=@OperatorId,OperatorTime=@OperatorTime where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecoverInInfo.PatientId.HasValue?(object)operationRecoverInInfo.PatientId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@ApplyId",operationRecoverInInfo.ApplyId.HasValue?(object)operationRecoverInInfo.ApplyId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecoverInInfo.OperationRecordId.HasValue?(object)operationRecoverInInfo.OperationRecordId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScore",operationRecoverInInfo.PACUStewardScore.HasValue?(object)operationRecoverInInfo.PACUStewardScore.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScoreText",operationRecoverInInfo.PACUStewardScoreText==null?(object)DBNull.Value:(object)operationRecoverInInfo.PACUStewardScoreText));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScore",operationRecoverInInfo.PACUAldteteScore.HasValue?(object)operationRecoverInInfo.PACUAldteteScore.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScoreText",operationRecoverInInfo.PACUAldteteScoreText==null?(object)DBNull.Value:(object)operationRecoverInInfo.PACUAldteteScoreText));
cmd.Parameters.Add(new SqlParameter("@MuscleRelaxation",operationRecoverInInfo.MuscleRelaxation==null?(object)DBNull.Value:(object)operationRecoverInInfo.MuscleRelaxation));
cmd.Parameters.Add(new SqlParameter("@ProtectiveReflex",operationRecoverInInfo.ProtectiveReflex==null?(object)DBNull.Value:(object)operationRecoverInInfo.ProtectiveReflex));
cmd.Parameters.Add(new SqlParameter("@OrientationAbility",operationRecoverInInfo.OrientationAbility==null?(object)DBNull.Value:(object)operationRecoverInInfo.OrientationAbility));
cmd.Parameters.Add(new SqlParameter("@RespiratorySystem",operationRecoverInInfo.RespiratorySystem==null?(object)DBNull.Value:(object)operationRecoverInInfo.RespiratorySystem));
cmd.Parameters.Add(new SqlParameter("@Temp",operationRecoverInInfo.Temp==null?(object)DBNull.Value:(object)operationRecoverInInfo.Temp));
cmd.Parameters.Add(new SqlParameter("@Resp",operationRecoverInInfo.Resp==null?(object)DBNull.Value:(object)operationRecoverInInfo.Resp));
cmd.Parameters.Add(new SqlParameter("@HR",operationRecoverInInfo.HR==null?(object)DBNull.Value:(object)operationRecoverInInfo.HR));
cmd.Parameters.Add(new SqlParameter("@BP",operationRecoverInInfo.BP==null?(object)DBNull.Value:(object)operationRecoverInInfo.BP));
cmd.Parameters.Add(new SqlParameter("@SPO2",operationRecoverInInfo.SPO2==null?(object)DBNull.Value:(object)operationRecoverInInfo.SPO2));
cmd.Parameters.Add(new SqlParameter("@Skin",operationRecoverInInfo.Skin==null?(object)DBNull.Value:(object)operationRecoverInInfo.Skin));
cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecoverInInfo.Consciousness==null?(object)DBNull.Value:(object)operationRecoverInInfo.Consciousness));
cmd.Parameters.Add(new SqlParameter("@Nausea",operationRecoverInInfo.Nausea==null?(object)DBNull.Value:(object)operationRecoverInInfo.Nausea));
cmd.Parameters.Add(new SqlParameter("@Pain",operationRecoverInInfo.Pain==null?(object)DBNull.Value:(object)operationRecoverInInfo.Pain));
cmd.Parameters.Add(new SqlParameter("@VenousPatency",operationRecoverInInfo.VenousPatency==null?(object)DBNull.Value:(object)operationRecoverInInfo.VenousPatency));
cmd.Parameters.Add(new SqlParameter("@DrainageIdentification",operationRecoverInInfo.DrainageIdentification==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainageIdentification));
cmd.Parameters.Add(new SqlParameter("@DrainagePosition",operationRecoverInInfo.DrainagePosition==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainagePosition));
cmd.Parameters.Add(new SqlParameter("@DrainageName",operationRecoverInInfo.DrainageName==null?(object)DBNull.Value:(object)operationRecoverInInfo.DrainageName));
cmd.Parameters.Add(new SqlParameter("@LeftPupil",operationRecoverInInfo.LeftPupil==null?(object)DBNull.Value:(object)operationRecoverInInfo.LeftPupil));
cmd.Parameters.Add(new SqlParameter("@RightPupil",operationRecoverInInfo.RightPupil==null?(object)DBNull.Value:(object)operationRecoverInInfo.RightPupil));
cmd.Parameters.Add(new SqlParameter("@LightReflection",operationRecoverInInfo.LightReflection==null?(object)DBNull.Value:(object)operationRecoverInInfo.LightReflection));
cmd.Parameters.Add(new SqlParameter("@AnestheticPlane",operationRecoverInInfo.AnestheticPlane==null?(object)DBNull.Value:(object)operationRecoverInInfo.AnestheticPlane));
cmd.Parameters.Add(new SqlParameter("@Remark",operationRecoverInInfo.Remark==null?(object)DBNull.Value:(object)operationRecoverInInfo.Remark));
cmd.Parameters.Add(new SqlParameter("@Iiquid",operationRecoverInInfo.Iiquid==null?(object)DBNull.Value:(object)operationRecoverInInfo.Iiquid));
cmd.Parameters.Add(new SqlParameter("@Blood",operationRecoverInInfo.Blood==null?(object)DBNull.Value:(object)operationRecoverInInfo.Blood));
cmd.Parameters.Add(new SqlParameter("@AutologousBlood",operationRecoverInInfo.AutologousBlood==null?(object)DBNull.Value:(object)operationRecoverInInfo.AutologousBlood));
cmd.Parameters.Add(new SqlParameter("@InOther",operationRecoverInInfo.InOther==null?(object)DBNull.Value:(object)operationRecoverInInfo.InOther));
cmd.Parameters.Add(new SqlParameter("@UrineVolume",operationRecoverInInfo.UrineVolume==null?(object)DBNull.Value:(object)operationRecoverInInfo.UrineVolume));
cmd.Parameters.Add(new SqlParameter("@InducedFlow",operationRecoverInInfo.InducedFlow==null?(object)DBNull.Value:(object)operationRecoverInInfo.InducedFlow));
cmd.Parameters.Add(new SqlParameter("@LoseBlood",operationRecoverInInfo.LoseBlood==null?(object)DBNull.Value:(object)operationRecoverInInfo.LoseBlood));
cmd.Parameters.Add(new SqlParameter("@OutOther",operationRecoverInInfo.OutOther==null?(object)DBNull.Value:(object)operationRecoverInInfo.OutOther));
cmd.Parameters.Add(new SqlParameter("@HandOverPatient",operationRecoverInInfo.HandOverPatient==null?(object)DBNull.Value:(object)operationRecoverInInfo.HandOverPatient));
cmd.Parameters.Add(new SqlParameter("@MeetPatient",operationRecoverInInfo.MeetPatient==null?(object)DBNull.Value:(object)operationRecoverInInfo.MeetPatient));
cmd.Parameters.Add(new SqlParameter("@StewardSober",operationRecoverInInfo.StewardSober==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardSober));
cmd.Parameters.Add(new SqlParameter("@StewardBreathing",operationRecoverInInfo.StewardBreathing==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardBreathing));
cmd.Parameters.Add(new SqlParameter("@StewardLimbActivity",operationRecoverInInfo.StewardLimbActivity==null?(object)DBNull.Value:(object)operationRecoverInInfo.StewardLimbActivity));
cmd.Parameters.Add(new SqlParameter("@Indexing",operationRecoverInInfo.Indexing==null?(object)DBNull.Value:(object)operationRecoverInInfo.Indexing));
cmd.Parameters.Add(new SqlParameter("@PressureSite",operationRecoverInInfo.PressureSite==null?(object)DBNull.Value:(object)operationRecoverInInfo.PressureSite));
cmd.Parameters.Add(new SqlParameter("@PressureArea",operationRecoverInInfo.PressureArea==null?(object)DBNull.Value:(object)operationRecoverInInfo.PressureArea));
cmd.Parameters.Add(new SqlParameter("@InfusionSite",operationRecoverInInfo.InfusionSite==null?(object)DBNull.Value:(object)operationRecoverInInfo.InfusionSite));
cmd.Parameters.Add(new SqlParameter("@VentilationPipeline",operationRecoverInInfo.VentilationPipeline==null?(object)DBNull.Value:(object)operationRecoverInInfo.VentilationPipeline));
cmd.Parameters.Add(new SqlParameter("@WoundPosition",operationRecoverInInfo.WoundPosition==null?(object)DBNull.Value:(object)operationRecoverInInfo.WoundPosition));
cmd.Parameters.Add(new SqlParameter("@artificialAirway",operationRecoverInInfo.ArtificialAirway==null?(object)DBNull.Value:(object)operationRecoverInInfo.ArtificialAirway));
cmd.Parameters.Add(new SqlParameter("@oralIntubation",operationRecoverInInfo.OralIntubation==null?(object)DBNull.Value:(object)operationRecoverInInfo.OralIntubation));
cmd.Parameters.Add(new SqlParameter("@restraintBand",operationRecoverInInfo.RestraintBand==null?(object)DBNull.Value:(object)operationRecoverInInfo.RestraintBand));
cmd.Parameters.Add(new SqlParameter("@Extend1",operationRecoverInInfo.Extend1==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend1));
cmd.Parameters.Add(new SqlParameter("@Extend2",operationRecoverInInfo.Extend2==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend2));
cmd.Parameters.Add(new SqlParameter("@Extend3",operationRecoverInInfo.Extend3==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend3));
cmd.Parameters.Add(new SqlParameter("@Extend4",operationRecoverInInfo.Extend4==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend4));
cmd.Parameters.Add(new SqlParameter("@Extend5",operationRecoverInInfo.Extend5==null?(object)DBNull.Value:(object)operationRecoverInInfo.Extend5));
cmd.Parameters.Add(new SqlParameter("@OperatorId",operationRecoverInInfo.OperatorId.HasValue?(object)operationRecoverInInfo.OperatorId.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperatorTime",operationRecoverInInfo.OperatorTime.HasValue?(object)operationRecoverInInfo.OperatorTime.Value:(object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Id", operationRecoverInInfo.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(OperationRecoverInInfo operationRecoverInInfo)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, operationRecoverInInfo);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverInInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection,OperationRecoverInInfo operationRecoverInInfo)
{
return ExcuteUpdateCommand(connection.Command, operationRecoverInInfo);
}
/// <summary>
/// 执行更新命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string updateString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverInInfoMap());
cmd.CommandText = "update OperationRecoverInInfo set " + updateString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection, string oql, ParameterList parameters)
{
return ExcuteUpdateCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 执行Command获取对象列表
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象列表</returns>
internal static List<OperationRecoverInInfo> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
List<OperationRecoverInInfo> operationRecoverInInfoList = new List<OperationRecoverInInfo>();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
OperationRecoverInInfo operationRecoverInInfo = DataReaderToEntity(dr);
operationRecoverInInfoList.Add(operationRecoverInInfo);
}
}
return operationRecoverInInfoList;
}
/// <summary>
/// 执行查询命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverInInfoMap());
if (filterString != string.Empty)
{
if(filterString.Trim().ToLower().IndexOf("order ")!=0)
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "select * from OperationRecoverInInfo " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> Select()
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecoverInInfo";
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> Select(RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecoverInInfo";
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> Select(string oql, ParameterList parameters)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合(启用事务)
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverInInfo> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
{
OperationRecoverInInfo operationRecoverInInfo=null;
using (SqlDataReader dr = cmd.ExecuteReader())
{
if(dr.Read())
operationRecoverInInfo = DataReaderToEntity(dr);
}
if(operationRecoverInInfo==null)
return operationRecoverInInfo;
return operationRecoverInInfo;
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverInInfoMap());
if(filterString!=string.Empty)
{
filterString=" where "+filterString;
}
cmd.CommandText = "select * from OperationRecoverInInfo " + filterString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo SelectSingle(string oql, ParameterList parameters)
{
return SelectSingle(oql,parameters,RecursiveType.Parent,1);
}
/// <summary>
/// 更据对象查询语句并启用事务查询单个实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据主键值递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverInInfo SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
{
cmd.Parameters.Clear();
if(id.HasValue)
{
cmd.CommandText = "select * from OperationRecoverInInfo where Id=@pk";
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
}
else
{
cmd.CommandText = "select * from OperationRecoverInInfo where Id is null";
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverInInfo SelectSingle(int? id)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id,RecursiveType.Parent,1);
}
}
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverInInfo SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 使用事务并按主键字段查询特定实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverInInfo SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
{
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
#endregion
/// <summary>
/// 从DataReader中取出值生成实体对象
/// </summary>
/// <param name="searcher">查询对象</param>
/// <returns>过滤条件字符串</returns>
private static OperationRecoverInInfo DataReaderToEntity(SqlDataReader dr)
{
OperationRecoverInInfo entity = new OperationRecoverInInfo ();
if(dr["Id"]!=System.DBNull.Value)
{
entity.Id=Convert.ToInt32(dr["Id"]);
}
if(dr["PatientId"]!=System.DBNull.Value)
{
entity.PatientId=Convert.ToInt32(dr["PatientId"]);
}
if(dr["ApplyId"]!=System.DBNull.Value)
{
entity.ApplyId=Convert.ToInt32(dr["ApplyId"]);
}
if(dr["OperationRecordId"]!=System.DBNull.Value)
{
entity.OperationRecordId=Convert.ToInt32(dr["OperationRecordId"]);
}
if(dr["PACUStewardScore"]!=System.DBNull.Value)
{
entity.PACUStewardScore=Convert.ToInt32(dr["PACUStewardScore"]);
}
if(dr["PACUStewardScoreText"]!=System.DBNull.Value)
{
entity.PACUStewardScoreText=dr["PACUStewardScoreText"].ToString();
}
if(dr["PACUAldteteScore"]!=System.DBNull.Value)
{
entity.PACUAldteteScore=Convert.ToInt32(dr["PACUAldteteScore"]);
}
if(dr["PACUAldteteScoreText"]!=System.DBNull.Value)
{
entity.PACUAldteteScoreText=dr["PACUAldteteScoreText"].ToString();
}
if(dr["MuscleRelaxation"]!=System.DBNull.Value)
{
entity.MuscleRelaxation=dr["MuscleRelaxation"].ToString();
}
if(dr["ProtectiveReflex"]!=System.DBNull.Value)
{
entity.ProtectiveReflex=dr["ProtectiveReflex"].ToString();
}
if(dr["OrientationAbility"]!=System.DBNull.Value)
{
entity.OrientationAbility=dr["OrientationAbility"].ToString();
}
if(dr["RespiratorySystem"]!=System.DBNull.Value)
{
entity.RespiratorySystem=dr["RespiratorySystem"].ToString();
}
if(dr["Temp"]!=System.DBNull.Value)
{
entity.Temp=dr["Temp"].ToString();
}
if(dr["Resp"]!=System.DBNull.Value)
{
entity.Resp=dr["Resp"].ToString();
}
if(dr["HR"]!=System.DBNull.Value)
{
entity.HR=dr["HR"].ToString();
}
if(dr["BP"]!=System.DBNull.Value)
{
entity.BP=dr["BP"].ToString();
}
if(dr["SPO2"]!=System.DBNull.Value)
{
entity.SPO2=dr["SPO2"].ToString();
}
if(dr["Skin"]!=System.DBNull.Value)
{
entity.Skin=dr["Skin"].ToString();
}
if(dr["Consciousness"]!=System.DBNull.Value)
{
entity.Consciousness=dr["Consciousness"].ToString();
}
if(dr["Nausea"]!=System.DBNull.Value)
{
entity.Nausea=dr["Nausea"].ToString();
}
if(dr["Pain"]!=System.DBNull.Value)
{
entity.Pain=dr["Pain"].ToString();
}
if(dr["VenousPatency"]!=System.DBNull.Value)
{
entity.VenousPatency=dr["VenousPatency"].ToString();
}
if(dr["DrainageIdentification"]!=System.DBNull.Value)
{
entity.DrainageIdentification=dr["DrainageIdentification"].ToString();
}
if(dr["DrainagePosition"]!=System.DBNull.Value)
{
entity.DrainagePosition=dr["DrainagePosition"].ToString();
}
if(dr["DrainageName"]!=System.DBNull.Value)
{
entity.DrainageName=dr["DrainageName"].ToString();
}
if(dr["LeftPupil"]!=System.DBNull.Value)
{
entity.LeftPupil=dr["LeftPupil"].ToString();
}
if(dr["RightPupil"]!=System.DBNull.Value)
{
entity.RightPupil=dr["RightPupil"].ToString();
}
if(dr["LightReflection"]!=System.DBNull.Value)
{
entity.LightReflection=dr["LightReflection"].ToString();
}
if(dr["AnestheticPlane"]!=System.DBNull.Value)
{
entity.AnestheticPlane=dr["AnestheticPlane"].ToString();
}
if(dr["Remark"]!=System.DBNull.Value)
{
entity.Remark=dr["Remark"].ToString();
}
if(dr["Iiquid"]!=System.DBNull.Value)
{
entity.Iiquid=dr["Iiquid"].ToString();
}
if(dr["Blood"]!=System.DBNull.Value)
{
entity.Blood=dr["Blood"].ToString();
}
if(dr["AutologousBlood"]!=System.DBNull.Value)
{
entity.AutologousBlood=dr["AutologousBlood"].ToString();
}
if(dr["InOther"]!=System.DBNull.Value)
{
entity.InOther=dr["InOther"].ToString();
}
if(dr["UrineVolume"]!=System.DBNull.Value)
{
entity.UrineVolume=dr["UrineVolume"].ToString();
}
if(dr["InducedFlow"]!=System.DBNull.Value)
{
entity.InducedFlow=dr["InducedFlow"].ToString();
}
if(dr["LoseBlood"]!=System.DBNull.Value)
{
entity.LoseBlood=dr["LoseBlood"].ToString();
}
if(dr["OutOther"]!=System.DBNull.Value)
{
entity.OutOther=dr["OutOther"].ToString();
}
if(dr["HandOverPatient"]!=System.DBNull.Value)
{
entity.HandOverPatient=dr["HandOverPatient"].ToString();
}
if(dr["MeetPatient"]!=System.DBNull.Value)
{
entity.MeetPatient=dr["MeetPatient"].ToString();
}
if(dr["StewardSober"]!=System.DBNull.Value)
{
entity.StewardSober=dr["StewardSober"].ToString();
}
if(dr["StewardBreathing"]!=System.DBNull.Value)
{
entity.StewardBreathing=dr["StewardBreathing"].ToString();
}
if(dr["StewardLimbActivity"]!=System.DBNull.Value)
{
entity.StewardLimbActivity=dr["StewardLimbActivity"].ToString();
}
if(dr["Indexing"]!=System.DBNull.Value)
{
entity.Indexing=dr["Indexing"].ToString();
}
if(dr["PressureSite"]!=System.DBNull.Value)
{
entity.PressureSite=dr["PressureSite"].ToString();
}
if(dr["PressureArea"]!=System.DBNull.Value)
{
entity.PressureArea=dr["PressureArea"].ToString();
}
if(dr["InfusionSite"]!=System.DBNull.Value)
{
entity.InfusionSite=dr["InfusionSite"].ToString();
}
if(dr["VentilationPipeline"]!=System.DBNull.Value)
{
entity.VentilationPipeline=dr["VentilationPipeline"].ToString();
}
if(dr["WoundPosition"]!=System.DBNull.Value)
{
entity.WoundPosition=dr["WoundPosition"].ToString();
}
if(dr["artificialAirway"]!=System.DBNull.Value)
{
entity.ArtificialAirway=dr["artificialAirway"].ToString();
}
if(dr["oralIntubation"]!=System.DBNull.Value)
{
entity.OralIntubation=dr["oralIntubation"].ToString();
}
if(dr["restraintBand"]!=System.DBNull.Value)
{
entity.RestraintBand=dr["restraintBand"].ToString();
}
if(dr["Extend1"]!=System.DBNull.Value)
{
entity.Extend1=dr["Extend1"].ToString();
}
if(dr["Extend2"]!=System.DBNull.Value)
{
entity.Extend2=dr["Extend2"].ToString();
}
if(dr["Extend3"]!=System.DBNull.Value)
{
entity.Extend3=dr["Extend3"].ToString();
}
if(dr["Extend4"]!=System.DBNull.Value)
{
entity.Extend4=dr["Extend4"].ToString();
}
if(dr["Extend5"]!=System.DBNull.Value)
{
entity.Extend5=dr["Extend5"].ToString();
}
if(dr["OperatorId"]!=System.DBNull.Value)
{
entity.OperatorId=Convert.ToInt32(dr["OperatorId"]);
}
if(dr["OperatorTime"]!=System.DBNull.Value)
{
entity.OperatorTime=Convert.ToDateTime(dr["OperatorTime"]);
}
return entity;
}
}
}

View File

@ -0,0 +1,928 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using AIMSModel;
using AIMSObjectQuery;
using System.Collections.Generic;
using DrawGraph;
namespace AIMSDAL
{
internal partial class DOperationRecoverOutInfo
{
#region
/// <summary>
/// 插入
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(SqlCommand cmd, OperationRecoverOutInfo operationRecoverOutInfo)
{
cmd.Parameters.Clear();
cmd.CommandText = "insert into OperationRecoverOutInfo (PatientId,ApplyId,OperationRecordId,PACUStewardScore,PACUStewardScoreText,PACUAldteteScore,PACUAldteteScoreText,MuscleRelaxation,ProtectiveReflex,OrientationAbility,RespiratorySystem,T,R,HR,BP,SPO2,Skin,Consciousness,Nausea,Pain,BreathSounds,Hoarseness,Reflex,VenousPatency,DrainageIdentification,DrainagePosition,DrainageName,LeftPupil,RightPupil,LightReflection,Remark,StewardSober,StewardBreathing,StewardLimbActivity,AldteteActivity,AldteteBreathing,AldteteBloodPressure,AldteteConsciousness,AldteteSPO2,State,PainScore,Indexing,PressureSite,PressureArea,InfusionSite,VentilationPipeline,WoundPosition,analgesicPump,analgesicEffect,carryItems,patientSuit,Extend1,Extend2,Extend3,Extend4,Extend5,OperatorId,OperatorTime) values (@PatientId,@ApplyId,@OperationRecordId,@PACUStewardScore,@PACUStewardScoreText,@PACUAldteteScore,@PACUAldteteScoreText,@MuscleRelaxation,@ProtectiveReflex,@OrientationAbility,@RespiratorySystem,@T,@R,@HR,@BP,@SPO2,@Skin,@Consciousness,@Nausea,@Pain,@BreathSounds,@Hoarseness,@Reflex,@VenousPatency,@DrainageIdentification,@DrainagePosition,@DrainageName,@LeftPupil,@RightPupil,@LightReflection,@Remark,@StewardSober,@StewardBreathing,@StewardLimbActivity,@AldteteActivity,@AldteteBreathing,@AldteteBloodPressure,@AldteteConsciousness,@AldteteSPO2,@State,@PainScore,@Indexing,@PressureSite,@PressureArea,@InfusionSite,@VentilationPipeline,@WoundPosition,@analgesicPump,@analgesicEffect,@carryItems,@patientSuit,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5,@OperatorId,@OperatorTime);select @@identity";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId", operationRecoverOutInfo.PatientId.HasValue ? (object)operationRecoverOutInfo.PatientId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@ApplyId", operationRecoverOutInfo.ApplyId.HasValue ? (object)operationRecoverOutInfo.ApplyId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationRecordId", operationRecoverOutInfo.OperationRecordId.HasValue ? (object)operationRecoverOutInfo.OperationRecordId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScore", operationRecoverOutInfo.PACUStewardScore.HasValue ? (object)operationRecoverOutInfo.PACUStewardScore.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScoreText", operationRecoverOutInfo.PACUStewardScoreText == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PACUStewardScoreText));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScore", operationRecoverOutInfo.PACUAldteteScore.HasValue ? (object)operationRecoverOutInfo.PACUAldteteScore.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScoreText", operationRecoverOutInfo.PACUAldteteScoreText == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PACUAldteteScoreText));
cmd.Parameters.Add(new SqlParameter("@MuscleRelaxation", operationRecoverOutInfo.MuscleRelaxation == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.MuscleRelaxation));
cmd.Parameters.Add(new SqlParameter("@ProtectiveReflex", operationRecoverOutInfo.ProtectiveReflex == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.ProtectiveReflex));
cmd.Parameters.Add(new SqlParameter("@OrientationAbility", operationRecoverOutInfo.OrientationAbility == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.OrientationAbility));
cmd.Parameters.Add(new SqlParameter("@RespiratorySystem", operationRecoverOutInfo.RespiratorySystem == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.RespiratorySystem));
cmd.Parameters.Add(new SqlParameter("@T", operationRecoverOutInfo.T == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.T));
cmd.Parameters.Add(new SqlParameter("@R", operationRecoverOutInfo.R == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.R));
cmd.Parameters.Add(new SqlParameter("@HR", operationRecoverOutInfo.HR == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.HR));
cmd.Parameters.Add(new SqlParameter("@BP", operationRecoverOutInfo.BP == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.BP));
cmd.Parameters.Add(new SqlParameter("@SPO2", operationRecoverOutInfo.SPO2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.SPO2));
cmd.Parameters.Add(new SqlParameter("@Skin", operationRecoverOutInfo.Skin == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Skin));
cmd.Parameters.Add(new SqlParameter("@Consciousness", operationRecoverOutInfo.Consciousness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Consciousness));
cmd.Parameters.Add(new SqlParameter("@Nausea", operationRecoverOutInfo.Nausea == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Nausea));
cmd.Parameters.Add(new SqlParameter("@Pain", operationRecoverOutInfo.Pain == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Pain));
cmd.Parameters.Add(new SqlParameter("@BreathSounds", operationRecoverOutInfo.BreathSounds == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.BreathSounds));
cmd.Parameters.Add(new SqlParameter("@Hoarseness", operationRecoverOutInfo.Hoarseness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Hoarseness));
cmd.Parameters.Add(new SqlParameter("@Reflex", operationRecoverOutInfo.Reflex == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Reflex));
cmd.Parameters.Add(new SqlParameter("@VenousPatency", operationRecoverOutInfo.VenousPatency == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.VenousPatency));
cmd.Parameters.Add(new SqlParameter("@DrainageIdentification", operationRecoverOutInfo.DrainageIdentification == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainageIdentification));
cmd.Parameters.Add(new SqlParameter("@DrainagePosition", operationRecoverOutInfo.DrainagePosition == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainagePosition));
cmd.Parameters.Add(new SqlParameter("@DrainageName", operationRecoverOutInfo.DrainageName == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainageName));
cmd.Parameters.Add(new SqlParameter("@LeftPupil", operationRecoverOutInfo.LeftPupil == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.LeftPupil));
cmd.Parameters.Add(new SqlParameter("@RightPupil", operationRecoverOutInfo.RightPupil == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.RightPupil));
cmd.Parameters.Add(new SqlParameter("@LightReflection", operationRecoverOutInfo.LightReflection == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.LightReflection));
cmd.Parameters.Add(new SqlParameter("@Remark", operationRecoverOutInfo.Remark == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Remark));
cmd.Parameters.Add(new SqlParameter("@StewardSober", operationRecoverOutInfo.StewardSober == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardSober));
cmd.Parameters.Add(new SqlParameter("@StewardBreathing", operationRecoverOutInfo.StewardBreathing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardBreathing));
cmd.Parameters.Add(new SqlParameter("@StewardLimbActivity", operationRecoverOutInfo.StewardLimbActivity == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardLimbActivity));
cmd.Parameters.Add(new SqlParameter("@AldteteActivity", operationRecoverOutInfo.AldteteActivity == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteActivity));
cmd.Parameters.Add(new SqlParameter("@AldteteBreathing", operationRecoverOutInfo.AldteteBreathing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteBreathing));
cmd.Parameters.Add(new SqlParameter("@AldteteBloodPressure", operationRecoverOutInfo.AldteteBloodPressure == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteBloodPressure));
cmd.Parameters.Add(new SqlParameter("@AldteteConsciousness", operationRecoverOutInfo.AldteteConsciousness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteConsciousness));
cmd.Parameters.Add(new SqlParameter("@AldteteSPO2", operationRecoverOutInfo.AldteteSPO2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteSPO2));
cmd.Parameters.Add(new SqlParameter("@State", operationRecoverOutInfo.State == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.State));
cmd.Parameters.Add(new SqlParameter("@PainScore", operationRecoverOutInfo.PainScore == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PainScore));
cmd.Parameters.Add(new SqlParameter("@Indexing", operationRecoverOutInfo.Indexing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Indexing));
cmd.Parameters.Add(new SqlParameter("@PressureSite", operationRecoverOutInfo.PressureSite == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PressureSite));
cmd.Parameters.Add(new SqlParameter("@PressureArea", operationRecoverOutInfo.PressureArea == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PressureArea));
cmd.Parameters.Add(new SqlParameter("@InfusionSite", operationRecoverOutInfo.InfusionSite == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.InfusionSite));
cmd.Parameters.Add(new SqlParameter("@VentilationPipeline", operationRecoverOutInfo.VentilationPipeline == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.VentilationPipeline));
cmd.Parameters.Add(new SqlParameter("@WoundPosition", operationRecoverOutInfo.WoundPosition == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.WoundPosition));
cmd.Parameters.Add(new SqlParameter("@analgesicPump", operationRecoverOutInfo.AnalgesicPump == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AnalgesicPump));
cmd.Parameters.Add(new SqlParameter("@analgesicEffect", operationRecoverOutInfo.AnalgesicEffect == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AnalgesicEffect));
cmd.Parameters.Add(new SqlParameter("@carryItems", operationRecoverOutInfo.CarryItems == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.CarryItems));
cmd.Parameters.Add(new SqlParameter("@patientSuit", operationRecoverOutInfo.PatientSuit == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PatientSuit));
cmd.Parameters.Add(new SqlParameter("@Extend1", operationRecoverOutInfo.Extend1 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend1));
cmd.Parameters.Add(new SqlParameter("@Extend2", operationRecoverOutInfo.Extend2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend2));
cmd.Parameters.Add(new SqlParameter("@Extend3", operationRecoverOutInfo.Extend3 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend3));
cmd.Parameters.Add(new SqlParameter("@Extend4", operationRecoverOutInfo.Extend4 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend4));
cmd.Parameters.Add(new SqlParameter("@Extend5", operationRecoverOutInfo.Extend5 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend5));
cmd.Parameters.Add(new SqlParameter("@OperatorId", operationRecoverOutInfo.OperatorId.HasValue ? (object)operationRecoverOutInfo.OperatorId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperatorTime", operationRecoverOutInfo.OperatorTime.HasValue ? (object)operationRecoverOutInfo.OperatorTime.Value : (object)DBNull.Value));
return Convert.ToInt32(cmd.ExecuteScalar());
}
/// <summary>
/// 不使用事务的插入方法
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(OperationRecoverOutInfo operationRecoverOutInfo)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return Insert(cmd, operationRecoverOutInfo);
}
}
}
/// <summary>
/// 使用事务的插入方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Connection connection, OperationRecoverOutInfo operationRecoverOutInfo)
{
return Insert(connection.Command, operationRecoverOutInfo);
}
#endregion
#region
/// <summary>
/// 删除
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, OperationRecoverOutInfo operationRecoverOutInfo)
{
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecoverOutInfo where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@Id", operationRecoverOutInfo.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(OperationRecoverOutInfo operationRecoverOutInfo)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, operationRecoverOutInfo);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection, OperationRecoverOutInfo operationRecoverOutInfo)
{
return ExcuteDeleteCommand(connection.Command, operationRecoverOutInfo);
}
/// <summary>
/// 执行删除命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverOutInfoMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "delete from OperationRecoverOutInfo " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的删除方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteDeleteCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的删除方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection, string oql, ParameterList parameters)
{
return ExcuteDeleteCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 更新
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecoverOutInfo operationRecoverOutInfo)
{
cmd.CommandText = "update OperationRecoverOutInfo set PatientId=@PatientId,ApplyId=@ApplyId,OperationRecordId=@OperationRecordId,PACUStewardScore=@PACUStewardScore,PACUStewardScoreText=@PACUStewardScoreText,PACUAldteteScore=@PACUAldteteScore,PACUAldteteScoreText=@PACUAldteteScoreText,MuscleRelaxation=@MuscleRelaxation,ProtectiveReflex=@ProtectiveReflex,OrientationAbility=@OrientationAbility,RespiratorySystem=@RespiratorySystem,T=@T,R=@R,HR=@HR,BP=@BP,SPO2=@SPO2,Skin=@Skin,Consciousness=@Consciousness,Nausea=@Nausea,Pain=@Pain,BreathSounds=@BreathSounds,Hoarseness=@Hoarseness,Reflex=@Reflex,VenousPatency=@VenousPatency,DrainageIdentification=@DrainageIdentification,DrainagePosition=@DrainagePosition,DrainageName=@DrainageName,LeftPupil=@LeftPupil,RightPupil=@RightPupil,LightReflection=@LightReflection,Remark=@Remark,StewardSober=@StewardSober,StewardBreathing=@StewardBreathing,StewardLimbActivity=@StewardLimbActivity,AldteteActivity=@AldteteActivity,AldteteBreathing=@AldteteBreathing,AldteteBloodPressure=@AldteteBloodPressure,AldteteConsciousness=@AldteteConsciousness,AldteteSPO2=@AldteteSPO2,State=@State,PainScore=@PainScore,Indexing=@Indexing,PressureSite=@PressureSite,PressureArea=@PressureArea,InfusionSite=@InfusionSite,VentilationPipeline=@VentilationPipeline,WoundPosition=@WoundPosition,analgesicPump=@analgesicPump,analgesicEffect=@analgesicEffect,carryItems=@carryItems,patientSuit=@patientSuit,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5,OperatorId=@OperatorId,OperatorTime=@OperatorTime where Id=@Id";
//从实体中取出值放入Command的参数列表
cmd.Parameters.Add(new SqlParameter("@PatientId", operationRecoverOutInfo.PatientId.HasValue ? (object)operationRecoverOutInfo.PatientId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@ApplyId", operationRecoverOutInfo.ApplyId.HasValue ? (object)operationRecoverOutInfo.ApplyId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperationRecordId", operationRecoverOutInfo.OperationRecordId.HasValue ? (object)operationRecoverOutInfo.OperationRecordId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScore", operationRecoverOutInfo.PACUStewardScore.HasValue ? (object)operationRecoverOutInfo.PACUStewardScore.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUStewardScoreText", operationRecoverOutInfo.PACUStewardScoreText == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PACUStewardScoreText));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScore", operationRecoverOutInfo.PACUAldteteScore.HasValue ? (object)operationRecoverOutInfo.PACUAldteteScore.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@PACUAldteteScoreText", operationRecoverOutInfo.PACUAldteteScoreText == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PACUAldteteScoreText));
cmd.Parameters.Add(new SqlParameter("@MuscleRelaxation", operationRecoverOutInfo.MuscleRelaxation == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.MuscleRelaxation));
cmd.Parameters.Add(new SqlParameter("@ProtectiveReflex", operationRecoverOutInfo.ProtectiveReflex == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.ProtectiveReflex));
cmd.Parameters.Add(new SqlParameter("@OrientationAbility", operationRecoverOutInfo.OrientationAbility == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.OrientationAbility));
cmd.Parameters.Add(new SqlParameter("@RespiratorySystem", operationRecoverOutInfo.RespiratorySystem == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.RespiratorySystem));
cmd.Parameters.Add(new SqlParameter("@T", operationRecoverOutInfo.T == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.T));
cmd.Parameters.Add(new SqlParameter("@R", operationRecoverOutInfo.R == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.R));
cmd.Parameters.Add(new SqlParameter("@HR", operationRecoverOutInfo.HR == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.HR));
cmd.Parameters.Add(new SqlParameter("@BP", operationRecoverOutInfo.BP == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.BP));
cmd.Parameters.Add(new SqlParameter("@SPO2", operationRecoverOutInfo.SPO2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.SPO2));
cmd.Parameters.Add(new SqlParameter("@Skin", operationRecoverOutInfo.Skin == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Skin));
cmd.Parameters.Add(new SqlParameter("@Consciousness", operationRecoverOutInfo.Consciousness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Consciousness));
cmd.Parameters.Add(new SqlParameter("@Nausea", operationRecoverOutInfo.Nausea == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Nausea));
cmd.Parameters.Add(new SqlParameter("@Pain", operationRecoverOutInfo.Pain == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Pain));
cmd.Parameters.Add(new SqlParameter("@BreathSounds", operationRecoverOutInfo.BreathSounds == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.BreathSounds));
cmd.Parameters.Add(new SqlParameter("@Hoarseness", operationRecoverOutInfo.Hoarseness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Hoarseness));
cmd.Parameters.Add(new SqlParameter("@Reflex", operationRecoverOutInfo.Reflex == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Reflex));
cmd.Parameters.Add(new SqlParameter("@VenousPatency", operationRecoverOutInfo.VenousPatency == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.VenousPatency));
cmd.Parameters.Add(new SqlParameter("@DrainageIdentification", operationRecoverOutInfo.DrainageIdentification == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainageIdentification));
cmd.Parameters.Add(new SqlParameter("@DrainagePosition", operationRecoverOutInfo.DrainagePosition == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainagePosition));
cmd.Parameters.Add(new SqlParameter("@DrainageName", operationRecoverOutInfo.DrainageName == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.DrainageName));
cmd.Parameters.Add(new SqlParameter("@LeftPupil", operationRecoverOutInfo.LeftPupil == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.LeftPupil));
cmd.Parameters.Add(new SqlParameter("@RightPupil", operationRecoverOutInfo.RightPupil == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.RightPupil));
cmd.Parameters.Add(new SqlParameter("@LightReflection", operationRecoverOutInfo.LightReflection == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.LightReflection));
cmd.Parameters.Add(new SqlParameter("@Remark", operationRecoverOutInfo.Remark == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Remark));
cmd.Parameters.Add(new SqlParameter("@StewardSober", operationRecoverOutInfo.StewardSober == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardSober));
cmd.Parameters.Add(new SqlParameter("@StewardBreathing", operationRecoverOutInfo.StewardBreathing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardBreathing));
cmd.Parameters.Add(new SqlParameter("@StewardLimbActivity", operationRecoverOutInfo.StewardLimbActivity == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.StewardLimbActivity));
cmd.Parameters.Add(new SqlParameter("@AldteteActivity", operationRecoverOutInfo.AldteteActivity == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteActivity));
cmd.Parameters.Add(new SqlParameter("@AldteteBreathing", operationRecoverOutInfo.AldteteBreathing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteBreathing));
cmd.Parameters.Add(new SqlParameter("@AldteteBloodPressure", operationRecoverOutInfo.AldteteBloodPressure == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteBloodPressure));
cmd.Parameters.Add(new SqlParameter("@AldteteConsciousness", operationRecoverOutInfo.AldteteConsciousness == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteConsciousness));
cmd.Parameters.Add(new SqlParameter("@AldteteSPO2", operationRecoverOutInfo.AldteteSPO2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AldteteSPO2));
cmd.Parameters.Add(new SqlParameter("@State", operationRecoverOutInfo.State == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.State));
cmd.Parameters.Add(new SqlParameter("@PainScore", operationRecoverOutInfo.PainScore == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PainScore));
cmd.Parameters.Add(new SqlParameter("@Indexing", operationRecoverOutInfo.Indexing == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Indexing));
cmd.Parameters.Add(new SqlParameter("@PressureSite", operationRecoverOutInfo.PressureSite == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PressureSite));
cmd.Parameters.Add(new SqlParameter("@PressureArea", operationRecoverOutInfo.PressureArea == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PressureArea));
cmd.Parameters.Add(new SqlParameter("@InfusionSite", operationRecoverOutInfo.InfusionSite == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.InfusionSite));
cmd.Parameters.Add(new SqlParameter("@VentilationPipeline", operationRecoverOutInfo.VentilationPipeline == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.VentilationPipeline));
cmd.Parameters.Add(new SqlParameter("@WoundPosition", operationRecoverOutInfo.WoundPosition == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.WoundPosition));
cmd.Parameters.Add(new SqlParameter("@analgesicPump", operationRecoverOutInfo.AnalgesicPump == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AnalgesicPump));
cmd.Parameters.Add(new SqlParameter("@analgesicEffect", operationRecoverOutInfo.AnalgesicEffect == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.AnalgesicEffect));
cmd.Parameters.Add(new SqlParameter("@carryItems", operationRecoverOutInfo.CarryItems == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.CarryItems));
cmd.Parameters.Add(new SqlParameter("@patientSuit", operationRecoverOutInfo.PatientSuit == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.PatientSuit));
cmd.Parameters.Add(new SqlParameter("@Extend1", operationRecoverOutInfo.Extend1 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend1));
cmd.Parameters.Add(new SqlParameter("@Extend2", operationRecoverOutInfo.Extend2 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend2));
cmd.Parameters.Add(new SqlParameter("@Extend3", operationRecoverOutInfo.Extend3 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend3));
cmd.Parameters.Add(new SqlParameter("@Extend4", operationRecoverOutInfo.Extend4 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend4));
cmd.Parameters.Add(new SqlParameter("@Extend5", operationRecoverOutInfo.Extend5 == null ? (object)DBNull.Value : (object)operationRecoverOutInfo.Extend5));
cmd.Parameters.Add(new SqlParameter("@OperatorId", operationRecoverOutInfo.OperatorId.HasValue ? (object)operationRecoverOutInfo.OperatorId.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@OperatorTime", operationRecoverOutInfo.OperatorTime.HasValue ? (object)operationRecoverOutInfo.OperatorTime.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@Id", operationRecoverOutInfo.Id));
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(OperationRecoverOutInfo operationRecoverOutInfo)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, operationRecoverOutInfo);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecoverOutInfo">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection, OperationRecoverOutInfo operationRecoverOutInfo)
{
return ExcuteUpdateCommand(connection.Command, operationRecoverOutInfo);
}
/// <summary>
/// 执行更新命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters)
{
//解析过滤部份Sql语句
string updateString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverOutInfoMap());
cmd.CommandText = "update OperationRecoverOutInfo set " + updateString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return cmd.ExecuteNonQuery();
}
/// <summary>
/// 不使用事务的更新方法
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteUpdateCommand(cmd, oql, parameters);
}
}
}
/// <summary>
/// 使用事务的更新方法
/// </summary>
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection, string oql, ParameterList parameters)
{
return ExcuteUpdateCommand(connection.Command, oql, parameters);
}
#endregion
#region
/// <summary>
/// 执行Command获取对象列表
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象列表</returns>
internal static List<OperationRecoverOutInfo> ExcuteSelectCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
{
List<OperationRecoverOutInfo> operationRecoverOutInfoList = new List<OperationRecoverOutInfo>();
using (SqlDataReader dr = cmd.ExecuteReader())
{
while (dr.Read())
{
OperationRecoverOutInfo operationRecoverOutInfo = DataReaderToEntity(dr);
operationRecoverOutInfoList.Add(operationRecoverOutInfo);
}
}
return operationRecoverOutInfoList;
}
/// <summary>
/// 执行查询命令
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverOutInfoMap());
if (filterString != string.Empty)
{
if (filterString.Trim().ToLower().IndexOf("order ") != 0)
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
cmd.CommandText = "select * from OperationRecoverOutInfo " + filterString;
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> Select()
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecoverOutInfo";
return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> Select(RecursiveType recursiveType, int recursiveDepth)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
cmd.CommandText = "select * from OperationRecoverOutInfo";
return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> Select(string oql, ParameterList parameters)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合
/// </summary>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> Select(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 根据对象查询语句查询实体集合(启用事务)
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecoverOutInfo> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
#endregion
#region
/// <summary>
/// 递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo ExcuteSelectSingleCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
{
OperationRecoverOutInfo operationRecoverOutInfo = null;
using (SqlDataReader dr = cmd.ExecuteReader())
{
if (dr.Read())
operationRecoverOutInfo = DataReaderToEntity(dr);
}
if (operationRecoverOutInfo == null)
return operationRecoverOutInfo;
return operationRecoverOutInfo;
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
//解析过滤部份Sql语句
string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecoverOutInfoMap());
if (filterString != string.Empty)
{
filterString = " where " + filterString;
}
cmd.CommandText = "select * from OperationRecoverOutInfo " + filterString;
cmd.Parameters.Clear();
//添加参数
if (parameters != null)
{
foreach (string key in parameters.Keys)
{
cmd.Parameters.Add(new SqlParameter(key, parameters[key]));
}
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据对象查询语句递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 更据对象查询语句查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo SelectSingle(string oql, ParameterList parameters)
{
return SelectSingle(oql, parameters, RecursiveType.Parent, 1);
}
/// <summary>
/// 更据对象查询语句并启用事务查询单个实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="oql">对象查询语句</param>
/// <param name="parameters">参数列表</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
/// <summary>
/// 更据主键值递归查询单个实体
/// </summary>
/// <param name="cmd">Command对象</param>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecoverOutInfo SelectSingle(SqlCommand cmd, int? id, RecursiveType recursiveType, int recursiveDepth)
{
cmd.Parameters.Clear();
if (id.HasValue)
{
cmd.CommandText = "select * from OperationRecoverOutInfo where Id=@pk";
cmd.Parameters.Add(new SqlParameter("@pk", id.Value));
}
else
{
cmd.CommandText = "select * from OperationRecoverOutInfo where Id is null";
}
return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth);
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverOutInfo SelectSingle(int? id)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd, id, RecursiveType.Parent, 1);
}
}
}
/// <summary>
/// 按主键字段查询特定实体
/// </summary>
/// <param name="id">主键值</param>
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverOutInfo SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd, id, recursiveType, recursiveDepth);
}
}
}
/// <summary>
/// 使用事务并按主键字段查询特定实体
/// </summary>
/// <param name="connection">连接对象</param>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecoverOutInfo SelectSingle(Connection connection, int? id, RecursiveType recursiveType, int recursiveDepth)
{
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
#endregion
/// <summary>
/// 从DataReader中取出值生成实体对象
/// </summary>
/// <param name="searcher">查询对象</param>
/// <returns>过滤条件字符串</returns>
private static OperationRecoverOutInfo DataReaderToEntity(SqlDataReader dr)
{
OperationRecoverOutInfo entity = new OperationRecoverOutInfo();
if (dr["Id"] != System.DBNull.Value)
{
entity.Id = Convert.ToInt32(dr["Id"]);
}
if (dr["PatientId"] != System.DBNull.Value)
{
entity.PatientId = Convert.ToInt32(dr["PatientId"]);
}
if (dr["ApplyId"] != System.DBNull.Value)
{
entity.ApplyId = Convert.ToInt32(dr["ApplyId"]);
}
if (dr["OperationRecordId"] != System.DBNull.Value)
{
entity.OperationRecordId = Convert.ToInt32(dr["OperationRecordId"]);
}
if (dr["PACUStewardScore"] != System.DBNull.Value)
{
entity.PACUStewardScore = Convert.ToInt32(dr["PACUStewardScore"]);
}
if (dr["PACUStewardScoreText"] != System.DBNull.Value)
{
entity.PACUStewardScoreText = dr["PACUStewardScoreText"].ToString();
}
if (dr["PACUAldteteScore"] != System.DBNull.Value)
{
entity.PACUAldteteScore = Convert.ToInt32(dr["PACUAldteteScore"]);
}
if (dr["PACUAldteteScoreText"] != System.DBNull.Value)
{
entity.PACUAldteteScoreText = dr["PACUAldteteScoreText"].ToString();
}
if (dr["MuscleRelaxation"] != System.DBNull.Value)
{
entity.MuscleRelaxation = dr["MuscleRelaxation"].ToString();
}
if (dr["ProtectiveReflex"] != System.DBNull.Value)
{
entity.ProtectiveReflex = dr["ProtectiveReflex"].ToString();
}
if (dr["OrientationAbility"] != System.DBNull.Value)
{
entity.OrientationAbility = dr["OrientationAbility"].ToString();
}
if (dr["RespiratorySystem"] != System.DBNull.Value)
{
entity.RespiratorySystem = dr["RespiratorySystem"].ToString();
}
if (dr["T"] != System.DBNull.Value)
{
entity.T = dr["T"].ToString();
}
if (dr["R"] != System.DBNull.Value)
{
entity.R = dr["R"].ToString();
}
if (dr["HR"] != System.DBNull.Value)
{
entity.HR = dr["HR"].ToString();
}
if (dr["BP"] != System.DBNull.Value)
{
entity.BP = dr["BP"].ToString();
}
if (dr["SPO2"] != System.DBNull.Value)
{
entity.SPO2 = dr["SPO2"].ToString();
}
if (dr["Skin"] != System.DBNull.Value)
{
entity.Skin = dr["Skin"].ToString();
}
if (dr["Consciousness"] != System.DBNull.Value)
{
entity.Consciousness = dr["Consciousness"].ToString();
}
if (dr["Nausea"] != System.DBNull.Value)
{
entity.Nausea = dr["Nausea"].ToString();
}
if (dr["Pain"] != System.DBNull.Value)
{
entity.Pain = dr["Pain"].ToString();
}
if (dr["BreathSounds"] != System.DBNull.Value)
{
entity.BreathSounds = dr["BreathSounds"].ToString();
}
if (dr["Hoarseness"] != System.DBNull.Value)
{
entity.Hoarseness = dr["Hoarseness"].ToString();
}
if (dr["Reflex"] != System.DBNull.Value)
{
entity.Reflex = dr["Reflex"].ToString();
}
if (dr["VenousPatency"] != System.DBNull.Value)
{
entity.VenousPatency = dr["VenousPatency"].ToString();
}
if (dr["DrainageIdentification"] != System.DBNull.Value)
{
entity.DrainageIdentification = dr["DrainageIdentification"].ToString();
}
if (dr["DrainagePosition"] != System.DBNull.Value)
{
entity.DrainagePosition = dr["DrainagePosition"].ToString();
}
if (dr["DrainageName"] != System.DBNull.Value)
{
entity.DrainageName = dr["DrainageName"].ToString();
}
if (dr["LeftPupil"] != System.DBNull.Value)
{
entity.LeftPupil = dr["LeftPupil"].ToString();
}
if (dr["RightPupil"] != System.DBNull.Value)
{
entity.RightPupil = dr["RightPupil"].ToString();
}
if (dr["LightReflection"] != System.DBNull.Value)
{
entity.LightReflection = dr["LightReflection"].ToString();
}
if (dr["Remark"] != System.DBNull.Value)
{
entity.Remark = dr["Remark"].ToString();
}
if (dr["StewardSober"] != System.DBNull.Value)
{
entity.StewardSober = dr["StewardSober"].ToString();
}
if (dr["StewardBreathing"] != System.DBNull.Value)
{
entity.StewardBreathing = dr["StewardBreathing"].ToString();
}
if (dr["StewardLimbActivity"] != System.DBNull.Value)
{
entity.StewardLimbActivity = dr["StewardLimbActivity"].ToString();
}
if (dr["AldteteActivity"] != System.DBNull.Value)
{
entity.AldteteActivity = dr["AldteteActivity"].ToString();
}
if (dr["AldteteBreathing"] != System.DBNull.Value)
{
entity.AldteteBreathing = dr["AldteteBreathing"].ToString();
}
if (dr["AldteteBloodPressure"] != System.DBNull.Value)
{
entity.AldteteBloodPressure = dr["AldteteBloodPressure"].ToString();
}
if (dr["AldteteConsciousness"] != System.DBNull.Value)
{
entity.AldteteConsciousness = dr["AldteteConsciousness"].ToString();
}
if (dr["AldteteSPO2"] != System.DBNull.Value)
{
entity.AldteteSPO2 = dr["AldteteSPO2"].ToString();
}
if (dr["State"] != System.DBNull.Value)
{
entity.State = dr["State"].ToString();
}
if (dr["PainScore"] != System.DBNull.Value)
{
entity.PainScore = dr["PainScore"].ToString();
}
if (dr["Indexing"] != System.DBNull.Value)
{
entity.Indexing = dr["Indexing"].ToString();
}
if (dr["PressureSite"] != System.DBNull.Value)
{
entity.PressureSite = dr["PressureSite"].ToString();
}
if (dr["PressureArea"] != System.DBNull.Value)
{
entity.PressureArea = dr["PressureArea"].ToString();
}
if (dr["InfusionSite"] != System.DBNull.Value)
{
entity.InfusionSite = dr["InfusionSite"].ToString();
}
if (dr["VentilationPipeline"] != System.DBNull.Value)
{
entity.VentilationPipeline = dr["VentilationPipeline"].ToString();
}
if (dr["WoundPosition"] != System.DBNull.Value)
{
entity.WoundPosition = dr["WoundPosition"].ToString();
}
if (dr["analgesicPump"] != System.DBNull.Value)
{
entity.AnalgesicPump = dr["analgesicPump"].ToString();
}
if (dr["analgesicEffect"] != System.DBNull.Value)
{
entity.AnalgesicEffect = dr["analgesicEffect"].ToString();
}
if (dr["carryItems"] != System.DBNull.Value)
{
entity.CarryItems = dr["carryItems"].ToString();
}
if (dr["patientSuit"] != System.DBNull.Value)
{
entity.PatientSuit = dr["patientSuit"].ToString();
}
if (dr["Extend1"] != System.DBNull.Value)
{
entity.Extend1 = dr["Extend1"].ToString();
}
if (dr["Extend2"] != System.DBNull.Value)
{
entity.Extend2 = dr["Extend2"].ToString();
}
if (dr["Extend3"] != System.DBNull.Value)
{
entity.Extend3 = dr["Extend3"].ToString();
}
if (dr["Extend4"] != System.DBNull.Value)
{
entity.Extend4 = dr["Extend4"].ToString();
}
if (dr["Extend5"] != System.DBNull.Value)
{
entity.Extend5 = dr["Extend5"].ToString();
}
if (dr["OperatorId"] != System.DBNull.Value)
{
entity.OperatorId = Convert.ToInt32(dr["OperatorId"]);
}
if (dr["OperatorTime"] != System.DBNull.Value)
{
entity.OperatorTime = Convert.ToDateTime(dr["OperatorTime"]);
}
return entity;
}
}
}

View File

@ -28,7 +28,7 @@ namespace AIMSDAL
public static TitleTime GetTitleTime(int PatientId, int RecoverId)
{
TitleTime TitleTimeObj = new TitleTime();
string strSql = "SELECT OperationApplyId,ISNULL((SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE fe.EventTypeId=1 and e.Name='入室' and PatientId=" + PatientId + " ),getdate()) as InRoomTime, OutRoomTime, OperationBeginTime,OperationEndTime " +
string strSql = "SELECT OperationApplyId, InRoomTime, OutRoomTime, OperationBeginTime,OperationEndTime " +
"FROM OperationRecord WHERE PatientId='" + PatientId + "' and RecoverId='" + RecoverId + "'";
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql);
@ -110,7 +110,7 @@ namespace AIMSDAL
HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactEvents WHERE EventTypeId=" + TypeId + " and PatientId=" + PatientId + "");
HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOutputLiquids WHERE OutputLiquidsTypeId=" + TypeId + " and PatientId=" + PatientId + "");
HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactPersonDuty WHERE PatientId=" + PatientId + " and PersonDutyId=" + TypeId + "");
HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE id=" + PatientId + " and RecoverId=" + TypeId + "");
HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE PatientId=" + PatientId + " and RecoverId=" + TypeId + "");
}
public static void DeleteEvent(int PatientId, int EventId)
{

View File

@ -7,7 +7,7 @@ using AIMSModel;
using AIMSObjectQuery;
namespace AIMSDAL
{
internal partial class DOperationRecover
internal partial class DOperationRecoverInInfo
{
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Collections.Generic;
using AIMSModel;
using AIMSObjectQuery;
namespace AIMSDAL
{
internal partial class DOperationRecoverOutInfo
{
}
}

View File

@ -1,203 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
using AIMSDAL;
namespace AIMSModel
{
[Serializable]
public partial class OperationRecover
{
private int? id;
private int? patientId;
private int? operationApplyId;
private DateTime? inRoomTime;
private DateTime? outRoomTime;
private string inStewardScore;
private string respirePattern;
private string bloodPressure;
private string pulse;
private string respire;
private string spo2;
private string outStewardScore;
private string skinMucosa;
private int? respireSound;
private string hoarseness;
private string doctorSign;
private string nurseSign;
private string remarks;
private string operatorNo;
private string operatorName;
private DateTime? operateDate;
/// <summary>
///
/// </summary>
public int? Id
{
get{ return id; }
set{ id=value; }
}
/// <summary>
///
/// </summary>
public int? PatientId
{
get{ return patientId; }
set{ patientId=value; }
}
/// <summary>
///
/// </summary>
public int? OperationApplyId
{
get{ return operationApplyId; }
set{ operationApplyId=value; }
}
/// <summary>
///
/// </summary>
public DateTime? InRoomTime
{
get{ return inRoomTime; }
set{ inRoomTime=value; }
}
/// <summary>
///
/// </summary>
public DateTime? OutRoomTime
{
get{ return outRoomTime; }
set{ outRoomTime=value; }
}
/// <summary>
///
/// </summary>
public string InStewardScore
{
get{ return inStewardScore; }
set{ inStewardScore=value; }
}
/// <summary>
///
/// </summary>
public string RespirePattern
{
get{ return respirePattern; }
set{ respirePattern=value; }
}
/// <summary>
///
/// </summary>
public string BloodPressure
{
get{ return bloodPressure; }
set{ bloodPressure=value; }
}
/// <summary>
///
/// </summary>
public string Pulse
{
get{ return pulse; }
set{ pulse=value; }
}
/// <summary>
///
/// </summary>
public string Respire
{
get{ return respire; }
set{ respire=value; }
}
/// <summary>
///
/// </summary>
public string Spo2
{
get{ return spo2; }
set{ spo2=value; }
}
/// <summary>
///
/// </summary>
public string OutStewardScore
{
get{ return outStewardScore; }
set{ outStewardScore=value; }
}
/// <summary>
///
/// </summary>
public string SkinMucosa
{
get{ return skinMucosa; }
set{ skinMucosa=value; }
}
/// <summary>
///
/// </summary>
public int? RespireSound
{
get{ return respireSound; }
set{ respireSound=value; }
}
/// <summary>
///
/// </summary>
public string Hoarseness
{
get{ return hoarseness; }
set{ hoarseness=value; }
}
/// <summary>
///
/// </summary>
public string DoctorSign
{
get{ return doctorSign; }
set{ doctorSign=value; }
}
/// <summary>
///
/// </summary>
public string NurseSign
{
get{ return nurseSign; }
set{ nurseSign=value; }
}
/// <summary>
///
/// </summary>
public string Remarks
{
get{ return remarks; }
set{ remarks=value; }
}
/// <summary>
///
/// </summary>
public string OperatorNo
{
get{ return operatorNo; }
set{ operatorNo=value; }
}
/// <summary>
///
/// </summary>
public string OperatorName
{
get{ return operatorName; }
set{ operatorName=value; }
}
/// <summary>
///
/// </summary>
public DateTime? OperateDate
{
get{ return operateDate; }
set{ operateDate=value; }
}
}
}

View File

@ -55,7 +55,6 @@ namespace AIMSObjectQuery
entitiesMap.Add("operationlevel",new EntityInfo("OperationLevel",new OperationLevelMap()));
entitiesMap.Add("operationposition",new EntityInfo("OperationPosition",new OperationPositionMap()));
entitiesMap.Add("operationrecord",new EntityInfo("OperationRecord",new OperationRecordMap()));
entitiesMap.Add("operationrecover",new EntityInfo("OperationRecover",new OperationRecoverMap()));
entitiesMap.Add("operationroom",new EntityInfo("OperationRoom",new OperationRoomMap()));
entitiesMap.Add("operationtemplate",new EntityInfo("OperationTemplate",new OperationTemplateMap()));
entitiesMap.Add("orispatient",new EntityInfo("Oris_Patient",new OrisPatientMap()));

View File

@ -0,0 +1,92 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class OperationRecoverInInfoMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public OperationRecoverInInfoMap()
{
dictionary.Add("id", "Id");
dictionary.Add("patientid", "PatientId");
dictionary.Add("applyid", "ApplyId");
dictionary.Add("operationrecordid", "OperationRecordId");
dictionary.Add("pacustewardscore", "PACUStewardScore");
dictionary.Add("pacustewardscoretext", "PACUStewardScoreText");
dictionary.Add("pacualdtetescore", "PACUAldteteScore");
dictionary.Add("pacualdtetescoretext", "PACUAldteteScoreText");
dictionary.Add("musclerelaxation", "MuscleRelaxation");
dictionary.Add("protectivereflex", "ProtectiveReflex");
dictionary.Add("orientationability", "OrientationAbility");
dictionary.Add("respiratorysystem", "RespiratorySystem");
dictionary.Add("temp", "Temp");
dictionary.Add("resp", "Resp");
dictionary.Add("hr", "HR");
dictionary.Add("bp", "BP");
dictionary.Add("spo2", "SPO2");
dictionary.Add("skin", "Skin");
dictionary.Add("consciousness", "Consciousness");
dictionary.Add("nausea", "Nausea");
dictionary.Add("pain", "Pain");
dictionary.Add("venouspatency", "VenousPatency");
dictionary.Add("drainageidentification", "DrainageIdentification");
dictionary.Add("drainageposition", "DrainagePosition");
dictionary.Add("drainagename", "DrainageName");
dictionary.Add("leftpupil", "LeftPupil");
dictionary.Add("rightpupil", "RightPupil");
dictionary.Add("lightreflection", "LightReflection");
dictionary.Add("anestheticplane", "AnestheticPlane");
dictionary.Add("remark", "Remark");
dictionary.Add("iiquid", "Iiquid");
dictionary.Add("blood", "Blood");
dictionary.Add("autologousblood", "AutologousBlood");
dictionary.Add("inother", "InOther");
dictionary.Add("urinevolume", "UrineVolume");
dictionary.Add("inducedflow", "InducedFlow");
dictionary.Add("loseblood", "LoseBlood");
dictionary.Add("outother", "OutOther");
dictionary.Add("handoverpatient", "HandOverPatient");
dictionary.Add("meetpatient", "MeetPatient");
dictionary.Add("stewardsober", "StewardSober");
dictionary.Add("stewardbreathing", "StewardBreathing");
dictionary.Add("stewardlimbactivity", "StewardLimbActivity");
dictionary.Add("indexing", "Indexing");
dictionary.Add("pressuresite", "PressureSite");
dictionary.Add("pressurearea", "PressureArea");
dictionary.Add("infusionsite", "InfusionSite");
dictionary.Add("ventilationpipeline", "VentilationPipeline");
dictionary.Add("woundposition", "WoundPosition");
dictionary.Add("artificialairway", "artificialAirway");
dictionary.Add("oralintubation", "oralIntubation");
dictionary.Add("restraintband", "restraintBand");
dictionary.Add("extend1", "Extend1");
dictionary.Add("extend2", "Extend2");
dictionary.Add("extend3", "Extend3");
dictionary.Add("extend4", "Extend4");
dictionary.Add("extend5", "Extend5");
dictionary.Add("operatorid", "OperatorId");
dictionary.Add("operatortime", "OperatorTime");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}

View File

@ -1,54 +0,0 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class OperationRecoverMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public OperationRecoverMap()
{
dictionary.Add("id", "Id");
dictionary.Add("patientid", "PatientId");
dictionary.Add("operationapplyid", "OperationApplyId");
dictionary.Add("inroomtime", "InRoomTime");
dictionary.Add("outroomtime", "OutRoomTime");
dictionary.Add("instewardscore", "InStewardScore");
dictionary.Add("respirepattern", "RespirePattern");
dictionary.Add("bloodpressure", "BloodPressure");
dictionary.Add("pulse", "Pulse");
dictionary.Add("respire", "Respire");
dictionary.Add("spo2", "Spo2");
dictionary.Add("outstewardscore", "OutStewardScore");
dictionary.Add("skinmucosa", "SkinMucosa");
dictionary.Add("respiresound", "RespireSound");
dictionary.Add("hoarseness", "Hoarseness");
dictionary.Add("doctorsign", "DoctorSign");
dictionary.Add("nursesign", "NurseSign");
dictionary.Add("remarks", "Remarks");
dictionary.Add("operatorno", "OperatorNo");
dictionary.Add("operatorname", "OperatorName");
dictionary.Add("operatedate", "OperateDate");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}

View File

@ -0,0 +1,92 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace AIMSObjectQuery
{
internal partial class OperationRecoverOutInfoMap:IMap
{
private Dictionary<string, string> dictionary = new Dictionary<string, string>();
public OperationRecoverOutInfoMap()
{
dictionary.Add("id", "Id");
dictionary.Add("patientid", "PatientId");
dictionary.Add("applyid", "ApplyId");
dictionary.Add("operationrecordid", "OperationRecordId");
dictionary.Add("pacustewardscore", "PACUStewardScore");
dictionary.Add("pacustewardscoretext", "PACUStewardScoreText");
dictionary.Add("pacualdtetescore", "PACUAldteteScore");
dictionary.Add("pacualdtetescoretext", "PACUAldteteScoreText");
dictionary.Add("musclerelaxation", "MuscleRelaxation");
dictionary.Add("protectivereflex", "ProtectiveReflex");
dictionary.Add("orientationability", "OrientationAbility");
dictionary.Add("respiratorysystem", "RespiratorySystem");
dictionary.Add("t", "T");
dictionary.Add("r", "R");
dictionary.Add("hr", "HR");
dictionary.Add("bp", "BP");
dictionary.Add("spo2", "SPO2");
dictionary.Add("skin", "Skin");
dictionary.Add("consciousness", "Consciousness");
dictionary.Add("nausea", "Nausea");
dictionary.Add("pain", "Pain");
dictionary.Add("breathsounds", "BreathSounds");
dictionary.Add("hoarseness", "Hoarseness");
dictionary.Add("reflex", "Reflex");
dictionary.Add("venouspatency", "VenousPatency");
dictionary.Add("drainageidentification", "DrainageIdentification");
dictionary.Add("drainageposition", "DrainagePosition");
dictionary.Add("drainagename", "DrainageName");
dictionary.Add("leftpupil", "LeftPupil");
dictionary.Add("rightpupil", "RightPupil");
dictionary.Add("lightreflection", "LightReflection");
dictionary.Add("remark", "Remark");
dictionary.Add("stewardsober", "StewardSober");
dictionary.Add("stewardbreathing", "StewardBreathing");
dictionary.Add("stewardlimbactivity", "StewardLimbActivity");
dictionary.Add("aldteteactivity", "AldteteActivity");
dictionary.Add("aldtetebreathing", "AldteteBreathing");
dictionary.Add("aldtetebloodpressure", "AldteteBloodPressure");
dictionary.Add("aldteteconsciousness", "AldteteConsciousness");
dictionary.Add("aldtetespo2", "AldteteSPO2");
dictionary.Add("state", "State");
dictionary.Add("painscore", "PainScore");
dictionary.Add("indexing", "Indexing");
dictionary.Add("pressuresite", "PressureSite");
dictionary.Add("pressurearea", "PressureArea");
dictionary.Add("infusionsite", "InfusionSite");
dictionary.Add("ventilationpipeline", "VentilationPipeline");
dictionary.Add("woundposition", "WoundPosition");
dictionary.Add("analgesicpump", "analgesicPump");
dictionary.Add("analgesiceffect", "analgesicEffect");
dictionary.Add("carryitems", "carryItems");
dictionary.Add("patientsuit", "patientSuit");
dictionary.Add("extend1", "Extend1");
dictionary.Add("extend2", "Extend2");
dictionary.Add("extend3", "Extend3");
dictionary.Add("extend4", "Extend4");
dictionary.Add("extend5", "Extend5");
dictionary.Add("operatorid", "OperatorId");
dictionary.Add("operatortime", "OperatorTime");
}
#region IMap
public string this[string propertyName]
{
get
{
try
{
return dictionary[propertyName.ToLower()];
}
catch (KeyNotFoundException)
{
throw new Exception(propertyName + "属性不存在");
}
}
}
#endregion
}
}

View File

@ -67,7 +67,6 @@
</ItemGroup>
<ItemGroup>
<Content Include="application.aspx" />
<Content Include="BeginScreen.Publish.xml" />
<Content Include="ConfigBigScreen.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<SubType>Designer</SubType>

View File

@ -33,10 +33,10 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="DCSoft.ORM">
<HintPath>..\AIMS\DLL\DCSoft.ORM.dll</HintPath>
<HintPath>..\AIMS\Extensions\DCSoft.ORM.dll</HintPath>
</Reference>
<Reference Include="DCSoft.Writer">
<HintPath>..\AIMS\DLL\DCSoft.Writer.dll</HintPath>
<HintPath>..\AIMS\Extensions\DCSoft.Writer.dll</HintPath>
</Reference>
<Reference Include="DevComponents.DotNetBar2, Version=12.5.0.2, Culture=neutral, PublicKeyToken=c39c3242a43eee2b, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>

View File

@ -382,20 +382,20 @@ namespace DrawGraph
{
packManagerFileName = this.className + BoardUtil.tagFlag + this.name;
}
public int ParentId { get; set; }
/// <summary>
/// 加载实例
/// </summary>
public bool Load()
public bool Load(int parentId)
{
bool reVal = true;
try
{
GetFileName();
ParentId = parentId;
packManage = new PackObjManager(zedControl);
packManage.AllClear();
reVal = packManage.LoadContent(packManagerFileName);
reVal = packManage.LoadContent(packManagerFileName,ParentId );
packManage.ClassName = className;
msgStr = packManage.MsgStr;

View File

@ -10,7 +10,7 @@ using System.Windows.Forms;
namespace DrawGraph
{
public partial class frmDeletePhysios : Form
public partial class DeletePhysios : Form
{
public List<PhysioDataConfig> selparameters;
public List<PhysioDataConfig> delparameters;
@ -22,12 +22,12 @@ namespace DrawGraph
public double startValue;
public double endValue;
public frmDeletePhysios()
public DeletePhysios()
{
InitializeComponent();
}
public frmDeletePhysios(int _operationId, DateTime _startTime, DateTime _endTime, double _startValue, double _endValue)
public DeletePhysios(int _operationId, DateTime _startTime, DateTime _endTime, double _startValue, double _endValue)
{
InitializeComponent();
operationId = _operationId;

View File

@ -1,7 +1,7 @@

namespace DrawGraph
{
partial class frmDeletePhysios
partial class DeletePhysios
{
/// <summary>
/// Required designer variable.
@ -29,7 +29,7 @@ namespace DrawGraph
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmDeletePhysios));
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DeletePhysios));
this.panel1 = new System.Windows.Forms.Panel();
this.btnDelete = new DevComponents.DotNetBar.ButtonX();
this.btnSave = new DevComponents.DotNetBar.ButtonX();

View File

@ -1,10 +1,8 @@
using DrawGraph;
using HelperDB;
using HelperDB;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Windows.Forms;
using System.Xml.Serialization;
namespace DrawGraph
@ -130,7 +128,9 @@ namespace DrawGraph
private List<FactOutputLiquids> factOutputLiquidsList;
private List<FactBloodGasAnalysis> factBloodGasAnalysisList;
private List<AnaseDataQualityRecord> anaseDataQualityRecordList;
public OperationRecordInfo opeRecordInfo;
private OperationRecordInfo opeRecordInfo;
private OperationRecoverInInfo opeRecoverInInfo;
private OperationRecoverOutInfo opeRecoverOutInfo;
public List<string> EventListstr = new List<string>();
public List<string> DrugsListstr = new List<string>();
@ -193,7 +193,8 @@ namespace DrawGraph
{
get { return patientId; }
set { patientId = value; }
}
}
[NoCreatControlAttributs]
/// <summary>
/// 是否是恢复室 1不是 2是
/// </summary>
@ -987,7 +988,7 @@ namespace DrawGraph
get { return patientType; }
set { patientType = value; }
}
[ClassAttributs(Description = " ")]
[NoCreatControlAttributs]
public int? ApplyDepartmentId
{
get { return applyDepartmentId; }
@ -1103,6 +1104,42 @@ namespace DrawGraph
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;
}
}
/// <summary>
/// 选择的药品名称和显示行索引表示的Hashtable
/// </summary>
@ -1145,7 +1182,9 @@ namespace DrawGraph
FactOutputLiquidsList = new List<FactOutputLiquids>();
AnaseDataQualityRecordList = new List<AnaseDataQualityRecord>();
addPhysioList = new List<PhysioDataConfig>();
opeRecordInfo = new OperationRecordInfo();
OpeRecordInfo = new OperationRecordInfo();
opeRecoverInInfo = new OperationRecoverInInfo();
opeRecoverOutInfo = new OperationRecoverOutInfo();
FactBloodGasAnalysisList = new List<FactBloodGasAnalysis>();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,597 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace DrawGraph
{
[Serializable]
public partial class OperationRecoverInInfo
{
private int? id;
private int? patientId;
private int? applyId;
private int? operationRecordId;
private int? pACUStewardScore;
private string pACUStewardScoreText;
private int? pACUAldteteScore;
private string pACUAldteteScoreText;
private string muscleRelaxation;
private string protectiveReflex;
private string orientationAbility;
private string respiratorySystem;
private string temp;
private string resp;
private string hR;
private string bP;
private string sPO2;
private string skin;
private string consciousness;
private string nausea;
private string pain;
private string venousPatency;
private string drainageIdentification;
private string drainagePosition;
private string drainageName;
private string leftPupil;
private string rightPupil;
private string lightReflection;
private string anestheticPlane;
private string remark;
private string iiquid;
private string blood;
private string autologousBlood;
private string inOther;
private string urineVolume;
private string inducedFlow;
private string loseBlood;
private string outOther;
private string handOverPatient;
private string meetPatient;
private string stewardSober;
private string stewardBreathing;
private string stewardLimbActivity;
private string indexing;
private string pressureSite;
private string pressureArea;
private string infusionSite;
private string ventilationPipeline;
private string woundPosition;
private string artificialAirway;
private string oralIntubation;
private string restraintBand;
private string extend1;
private string extend2;
private string extend3;
private string extend4;
private string extend5;
private int? operatorId;
private DateTime? operatorTime;
/// <summary>
/// 编号,自增
/// </summary>
[NoCreatControlAttributs]
public int? Id
{
get{ return id; }
set{ id=value; }
}
[NoCreatControlAttributs]
public int? PatientId
{
get{ return patientId; }
set{ patientId=value; }
}
[NoCreatControlAttributs]
public int? ApplyId
{
get{ return applyId; }
set{ applyId=value; }
}
/// <summary>
/// 手术记录编号
/// </summary>
[NoCreatControlAttributs]
public int? OperationRecordId
{
get{ return operationRecordId; }
set{ operationRecordId=value; }
}
/// <summary>
/// Steward评分
/// </summary>
[ClassAttributs(Description = "Steward评分")]
public int? PACUStewardScore
{
get{ return pACUStewardScore; }
set{ pACUStewardScore=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "Steward评分名称")]
public string PACUStewardScoreText
{
get{ return pACUStewardScoreText; }
set{ pACUStewardScoreText=value; }
}
/// <summary>
/// Aldtete评分
/// </summary>
[ClassAttributs(Description = "Aldtete评分")]
public int? PACUAldteteScore
{
get{ return pACUAldteteScore; }
set{ pACUAldteteScore=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "Aldtete评分名称")]
public string PACUAldteteScoreText
{
get{ return pACUAldteteScoreText; }
set{ pACUAldteteScoreText=value; }
}
/// <summary>
/// 肌松恢复
/// </summary>
[ClassAttributs(Description = "肌松恢复")]
public string MuscleRelaxation
{
get{ return muscleRelaxation; }
set{ muscleRelaxation=value; }
}
/// <summary>
/// 保护反射
/// </summary>
[ClassAttributs(Description = "保护反射")]
public string ProtectiveReflex
{
get{ return protectiveReflex; }
set{ protectiveReflex=value; }
}
/// <summary>
/// 定向能力
/// </summary>
[ClassAttributs(Description = "定向能力")]
public string OrientationAbility
{
get{ return orientationAbility; }
set{ orientationAbility=value; }
}
/// <summary>
/// 呼吸系统
/// </summary>
[ClassAttributs(Description = "呼吸系统")]
public string RespiratorySystem
{
get{ return respiratorySystem; }
set{ respiratorySystem=value; }
}
/// <summary>
/// 生命体征 T
/// </summary>
[ClassAttributs(Description = "生命体征T")]
public string Temp
{
get{ return temp; }
set{ temp=value; }
}
/// <summary>
/// 生命体征 R
/// </summary>
[ClassAttributs(Description = "生命体征R")]
public string Resp
{
get{ return resp; }
set{ resp=value; }
}
/// <summary>
/// 生命体征 HR
/// </summary>
[ClassAttributs(Description = "生命体征HR")]
public string HR
{
get{ return hR; }
set{ hR=value; }
}
/// <summary>
/// 生命体征 BP
/// </summary>
[ClassAttributs(Description = "生命体征BP")]
public string BP
{
get{ return bP; }
set{ bP=value; }
}
/// <summary>
/// 生命体征 SPO2
/// </summary>
[ClassAttributs(Description = "生命体征SPO2")]
public string SPO2
{
get{ return sPO2; }
set{ sPO2=value; }
}
/// <summary>
/// 皮肤
/// </summary>
[ClassAttributs(Description = "皮肤")]
public string Skin
{
get{ return skin; }
set{ skin=value; }
}
/// <summary>
/// 意识
/// </summary>
[ClassAttributs(Description = "意识")]
public string Consciousness
{
get{ return consciousness; }
set{ consciousness=value; }
}
/// <summary>
/// 恶心
/// </summary>
[ClassAttributs(Description = "恶心")]
public string Nausea
{
get{ return nausea; }
set{ nausea=value; }
}
/// <summary>
/// 疼痛
/// </summary>
[ClassAttributs(Description = "疼痛")]
public string Pain
{
get{ return pain; }
set{ pain=value; }
}
/// <summary>
/// 静脉通畅
/// </summary>
[ClassAttributs(Description = "静脉通畅")]
public string VenousPatency
{
get{ return venousPatency; }
set{ venousPatency=value; }
}
/// <summary>
/// 引流标识
/// </summary>
[ClassAttributs(Description = "引流标识")]
public string DrainageIdentification
{
get{ return drainageIdentification; }
set{ drainageIdentification=value; }
}
/// <summary>
/// 引流位置
/// </summary>
[ClassAttributs(Description = "引流位置")]
public string DrainagePosition
{
get{ return drainagePosition; }
set{ drainagePosition=value; }
}
/// <summary>
/// 引流名称
/// </summary>
[ClassAttributs(Description = "引流名称")]
public string DrainageName
{
get{ return drainageName; }
set{ drainageName=value; }
}
/// <summary>
/// 左眼瞳孔
/// </summary>
[ClassAttributs(Description = "左眼瞳孔")]
public string LeftPupil
{
get{ return leftPupil; }
set{ leftPupil=value; }
}
/// <summary>
/// 右眼瞳孔
/// </summary>
[ClassAttributs(Description = "右眼瞳孔")]
public string RightPupil
{
get{ return rightPupil; }
set{ rightPupil=value; }
}
/// <summary>
/// 对光反射
/// </summary>
[ClassAttributs(Description = "对光反射")]
public string LightReflection
{
get{ return lightReflection; }
set{ lightReflection=value; }
}
/// <summary>
/// 麻醉平面
/// </summary>
[ClassAttributs(Description = "麻醉平面")]
public string AnestheticPlane
{
get{ return anestheticPlane; }
set{ anestheticPlane=value; }
}
/// <summary>
/// 术前备注情况
/// </summary>
[ClassAttributs(Description = "术前备注情况")]
public string Remark
{
get{ return remark; }
set{ remark=value; }
}
/// <summary>
/// 液体
/// </summary>
[ClassAttributs(Description = "液体")]
public string Iiquid
{
get{ return iiquid; }
set{ iiquid=value; }
}
/// <summary>
/// 血液
/// </summary>
[ClassAttributs(Description = "血液")]
public string Blood
{
get{ return blood; }
set{ blood=value; }
}
/// <summary>
/// 自体血
/// </summary>
[ClassAttributs(Description = "自体血")]
public string AutologousBlood
{
get{ return autologousBlood; }
set{ autologousBlood=value; }
}
/// <summary>
/// 入量其他
/// </summary>
[ClassAttributs(Description = "入量其他")]
public string InOther
{
get{ return inOther; }
set{ inOther=value; }
}
/// <summary>
/// 尿量
/// </summary>
[ClassAttributs(Description = "尿量")]
public string UrineVolume
{
get{ return urineVolume; }
set{ urineVolume=value; }
}
/// <summary>
/// 引流量
/// </summary>
[ClassAttributs(Description = "引流量")]
public string InducedFlow
{
get{ return inducedFlow; }
set{ inducedFlow=value; }
}
/// <summary>
/// 失血
/// </summary>
[ClassAttributs(Description = "失血")]
public string LoseBlood
{
get{ return loseBlood; }
set{ loseBlood=value; }
}
/// <summary>
/// 出量其他
/// </summary>
[ClassAttributs(Description = "出量其他")]
public string OutOther
{
get{ return outOther; }
set{ outOther=value; }
}
/// <summary>
/// 交病人
/// </summary>
[ClassAttributs(Description = "交病人")]
public string HandOverPatient
{
get{ return handOverPatient; }
set{ handOverPatient=value; }
}
/// <summary>
/// 接病人
/// </summary>
[ClassAttributs(Description = "")]
public string MeetPatient
{
get{ return meetPatient; }
set{ meetPatient=value; }
}
/// <summary>
/// 清醒程度
/// </summary>
[ClassAttributs(Description = "")]
public string StewardSober
{
get{ return stewardSober; }
set{ stewardSober=value; }
}
/// <summary>
/// 呼吸道通畅程度
/// </summary>
[ClassAttributs(Description = "")]
public string StewardBreathing
{
get{ return stewardBreathing; }
set{ stewardBreathing=value; }
}
/// <summary>
/// 肢体活动度
/// </summary>
[ClassAttributs(Description = "")]
public string StewardLimbActivity
{
get{ return stewardLimbActivity; }
set{ stewardLimbActivity=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "Indexing")]
public string Indexing
{
get{ return indexing; }
set{ indexing=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "PressureSite")]
public string PressureSite
{
get{ return pressureSite; }
set{ pressureSite=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "PressureArea")]
public string PressureArea
{
get{ return pressureArea; }
set{ pressureArea=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "InfusionSite")]
public string InfusionSite
{
get{ return infusionSite; }
set{ infusionSite=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "VentilationPipeline")]
public string VentilationPipeline
{
get{ return ventilationPipeline; }
set{ ventilationPipeline=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "WoundPosition")]
public string WoundPosition
{
get{ return woundPosition; }
set{ woundPosition=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "ArtificialAirway")]
public string ArtificialAirway
{
get{ return artificialAirway; }
set{ artificialAirway=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "OralIntubation")]
public string OralIntubation
{
get{ return oralIntubation; }
set{ oralIntubation=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "RestraintBand")]
public string RestraintBand
{
get{ return restraintBand; }
set{ restraintBand=value; }
}
/// <summary>
/// 扩展1
/// </summary>
[ClassAttributs(Description = "扩展1")]
public string Extend1
{
get { return extend1; }
set { extend1 = value; }
}
/// <summary>
/// 扩展2
/// </summary>
[ClassAttributs(Description = "扩展2")]
public string Extend2
{
get { return extend2; }
set { extend2 = value; }
}
/// <summary>
/// 扩展3
/// </summary>
[ClassAttributs(Description = "扩展3")]
public string Extend3
{
get { return extend3; }
set { extend3 = value; }
}
/// <summary>
/// 扩展4
/// </summary>
[ClassAttributs(Description = "扩展4")]
public string Extend4
{
get { return extend4; }
set { extend4 = value; }
}
/// <summary>
/// 扩展5
/// </summary>
[ClassAttributs(Description = "扩展5")]
public string Extend5
{
get { return extend5; }
set { extend5 = value; }
}
/// <summary>
/// 操作员编号
/// </summary>
[NoCreatControlAttributs]
public int? OperatorId
{
get{ return operatorId; }
set{ operatorId=value; }
}
/// <summary>
/// 操作时间
/// </summary>
[NoCreatControlAttributs]
public DateTime? OperatorTime
{
get{ return operatorTime; }
set{ operatorTime=value; }
}
}
}

View File

@ -0,0 +1,591 @@
using System;
using System.Collections;
using System.Collections.Generic;
namespace DrawGraph
{
[Serializable]
public partial class OperationRecoverOutInfo
{
private int? id;
private int? patientId;
private int? applyId;
private int? operationRecordId;
private int? pACUStewardScore;
private string pACUStewardScoreText;
private int? pACUAldteteScore;
private string pACUAldteteScoreText;
private string muscleRelaxation;
private string protectiveReflex;
private string orientationAbility;
private string respiratorySystem;
private string t;
private string r;
private string hR;
private string bP;
private string sPO2;
private string skin;
private string consciousness;
private string nausea;
private string pain;
private string breathSounds;
private string hoarseness;
private string reflex;
private string venousPatency;
private string drainageIdentification;
private string drainagePosition;
private string drainageName;
private string leftPupil;
private string rightPupil;
private string lightReflection;
private string remark;
private string stewardSober;
private string stewardBreathing;
private string stewardLimbActivity;
private string aldteteActivity;
private string aldteteBreathing;
private string aldteteBloodPressure;
private string aldteteConsciousness;
private string aldteteSPO2;
private string state;
private string painScore;
private string indexing;
private string pressureSite;
private string pressureArea;
private string infusionSite;
private string ventilationPipeline;
private string woundPosition;
private string analgesicPump;
private string analgesicEffect;
private string carryItems;
private string patientSuit;
private string extend1;
private string extend2;
private string extend3;
private string extend4;
private string extend5;
private int? operatorId;
private DateTime? operatorTime;
[NoCreatControlAttributs]
public int? Id
{
get{ return id; }
set{ id=value; }
}
[NoCreatControlAttributs]
public int? PatientId
{
get{ return patientId; }
set{ patientId=value; }
}
[NoCreatControlAttributs]
public int? ApplyId
{
get{ return applyId; }
set{ applyId=value; }
}
[NoCreatControlAttributs]
public int? OperationRecordId
{
get{ return operationRecordId; }
set{ operationRecordId=value; }
}
/// <summary>
/// Steward评分
/// </summary>
[ClassAttributs(Description = "Steward评分")]
public int? PACUStewardScore
{
get{ return pACUStewardScore; }
set{ pACUStewardScore=value; }
}
/// <summary>
/// Steward评分
/// </summary>
[ClassAttributs(Description = "Steward评分名称")]
public string PACUStewardScoreText
{
get{ return pACUStewardScoreText; }
set{ pACUStewardScoreText=value; }
}
/// <summary>
/// Aldtete评分
/// </summary>
[ClassAttributs(Description = "Aldtete评分")]
public int? PACUAldteteScore
{
get{ return pACUAldteteScore; }
set{ pACUAldteteScore=value; }
}
/// <summary>
/// Aldtete评分
/// </summary>
[ClassAttributs(Description = "Aldtete评分名称")]
public string PACUAldteteScoreText
{
get{ return pACUAldteteScoreText; }
set{ pACUAldteteScoreText=value; }
}
/// <summary>
/// 肌松恢复
/// </summary>
[ClassAttributs(Description = "肌松恢复")]
public string MuscleRelaxation
{
get{ return muscleRelaxation; }
set{ muscleRelaxation=value; }
}
/// <summary>
/// 保护反射
/// </summary>
[ClassAttributs(Description = "保护反射")]
public string ProtectiveReflex
{
get{ return protectiveReflex; }
set{ protectiveReflex=value; }
}
/// <summary>
/// 定向能力
/// </summary>
[ClassAttributs(Description = "定向能力")]
public string OrientationAbility
{
get{ return orientationAbility; }
set{ orientationAbility=value; }
}
/// <summary>
/// 呼吸系统
/// </summary>
[ClassAttributs(Description = "呼吸系统")]
public string RespiratorySystem
{
get{ return respiratorySystem; }
set{ respiratorySystem=value; }
}
/// <summary>
/// 生命体征 T
/// </summary>
[ClassAttributs(Description = "生命体征T")]
public string T
{
get{ return t; }
set{ t=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "生命体征R")]
public string R
{
get{ return r; }
set{ r=value; }
}
/// <summary>
/// 生命体征 HR
/// </summary>
[ClassAttributs(Description = "生命体征HR")]
public string HR
{
get{ return hR; }
set{ hR=value; }
}
/// <summary>
/// 生命体征 BP
/// </summary>
[ClassAttributs(Description = "生命体征BP")]
public string BP
{
get{ return bP; }
set{ bP=value; }
}
/// <summary>
/// 生命体征 SPO2
/// </summary>
[ClassAttributs(Description = "生命体征SPO2")]
public string SPO2
{
get{ return sPO2; }
set{ sPO2=value; }
}
/// <summary>
/// 皮肤
/// </summary>
[ClassAttributs(Description = "皮肤")]
public string Skin
{
get{ return skin; }
set{ skin=value; }
}
/// <summary>
/// 意识
/// </summary>
[ClassAttributs(Description = "意识")]
public string Consciousness
{
get{ return consciousness; }
set{ consciousness=value; }
}
/// <summary>
/// 恶心
/// </summary>
[ClassAttributs(Description = "恶心")]
public string Nausea
{
get{ return nausea; }
set{ nausea=value; }
}
/// <summary>
/// 疼痛
/// </summary>
[ClassAttributs(Description = "疼痛")]
public string Pain
{
get{ return pain; }
set{ pain=value; }
}
/// <summary>
/// 呼吸音
/// </summary>
[ClassAttributs(Description = "呼吸音")]
public string BreathSounds
{
get{ return breathSounds; }
set{ breathSounds=value; }
}
/// <summary>
/// 声嘶
/// </summary>
[ClassAttributs(Description = "声嘶")]
public string Hoarseness
{
get{ return hoarseness; }
set{ hoarseness=value; }
}
/// <summary>
/// 反射(吞咽/咳嗽)
/// </summary>
[ClassAttributs(Description = "反射(吞咽/咳嗽)")]
public string Reflex
{
get{ return reflex; }
set{ reflex=value; }
}
/// <summary>
/// 静脉通畅
/// </summary>
[ClassAttributs(Description = "静脉通畅")]
public string VenousPatency
{
get{ return venousPatency; }
set{ venousPatency=value; }
}
/// <summary>
/// 引流标识
/// </summary>
[ClassAttributs(Description = "引流标识")]
public string DrainageIdentification
{
get{ return drainageIdentification; }
set{ drainageIdentification=value; }
}
/// <summary>
/// 引流位置
/// </summary>
[ClassAttributs(Description = "引流位置")]
public string DrainagePosition
{
get{ return drainagePosition; }
set{ drainagePosition=value; }
}
/// <summary>
/// 引流名称
/// </summary>
[ClassAttributs(Description = "引流名称")]
public string DrainageName
{
get{ return drainageName; }
set{ drainageName=value; }
}
/// <summary>
/// 左眼瞳孔
/// </summary>
[ClassAttributs(Description = "左眼瞳孔")]
public string LeftPupil
{
get{ return leftPupil; }
set{ leftPupil=value; }
}
/// <summary>
/// 右眼瞳孔
/// </summary>
[ClassAttributs(Description = "右眼瞳孔")]
public string RightPupil
{
get{ return rightPupil; }
set{ rightPupil=value; }
}
/// <summary>
/// 对光反射
/// </summary>
[ClassAttributs(Description = "对光反射")]
public string LightReflection
{
get{ return lightReflection; }
set{ lightReflection=value; }
}
/// <summary>
/// 特殊情况
/// </summary>
[ClassAttributs(Description = "特殊情况")]
public string Remark
{
get{ return remark; }
set{ remark=value; }
}
/// <summary>
/// 清醒程度
/// </summary>
[ClassAttributs(Description = "清醒程度")]
public string StewardSober
{
get{ return stewardSober; }
set{ stewardSober=value; }
}
/// <summary>
/// 呼吸道通畅程度
/// </summary>
[ClassAttributs(Description = "呼吸道通畅程度")]
public string StewardBreathing
{
get{ return stewardBreathing; }
set{ stewardBreathing=value; }
}
/// <summary>
/// 肢体活动度
/// </summary>
[ClassAttributs(Description = "肢体活动度")]
public string StewardLimbActivity
{
get{ return stewardLimbActivity; }
set{ stewardLimbActivity=value; }
}
/// <summary>
/// 活动
/// </summary>
[ClassAttributs(Description = "活动")]
public string AldteteActivity
{
get{ return aldteteActivity; }
set{ aldteteActivity=value; }
}
/// <summary>
/// 呼吸
/// </summary>
[ClassAttributs(Description = "呼吸")]
public string AldteteBreathing
{
get{ return aldteteBreathing; }
set{ aldteteBreathing=value; }
}
/// <summary>
/// 血压
/// </summary>
[ClassAttributs(Description = "血压")]
public string AldteteBloodPressure
{
get{ return aldteteBloodPressure; }
set{ aldteteBloodPressure=value; }
}
/// <summary>
/// 意识
/// </summary>
[ClassAttributs(Description = "意识")]
public string AldteteConsciousness
{
get{ return aldteteConsciousness; }
set{ aldteteConsciousness=value; }
}
/// <summary>
/// SPO@
/// </summary>
[ClassAttributs(Description = "AldteteSPO2")]
public string AldteteSPO2
{
get{ return aldteteSPO2; }
set{ aldteteSPO2=value; }
}
/// <summary>
/// 去向
/// </summary>
[ClassAttributs(Description = "去向")]
public string State
{
get{ return state; }
set{ state=value; }
}
/// <summary>
/// 疼痛评分
/// </summary>
[ClassAttributs(Description = "疼痛评分")]
public string PainScore
{
get{ return painScore; }
set{ painScore=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "Indexing")]
public string Indexing
{
get{ return indexing; }
set{ indexing=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "PressureSite")]
public string PressureSite
{
get{ return pressureSite; }
set{ pressureSite=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "PressureArea")]
public string PressureArea
{
get{ return pressureArea; }
set{ pressureArea=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "InfusionSite")]
public string InfusionSite
{
get{ return infusionSite; }
set{ infusionSite=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "VentilationPipeline")]
public string VentilationPipeline
{
get{ return ventilationPipeline; }
set{ ventilationPipeline=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "WoundPosition")]
public string WoundPosition
{
get{ return woundPosition; }
set{ woundPosition=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "AnalgesicPump")]
public string AnalgesicPump
{
get{ return analgesicPump; }
set{ analgesicPump=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "AnalgesicEffect")]
public string AnalgesicEffect
{
get{ return analgesicEffect; }
set{ analgesicEffect=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "CarryItems")]
public string CarryItems
{
get{ return carryItems; }
set{ carryItems=value; }
}
/// <summary>
///
/// </summary>
[ClassAttributs(Description = "PatientSuit")]
public string PatientSuit
{
get{ return patientSuit; }
set{ patientSuit=value; }
}
/// <summary>
/// 扩展1
/// </summary>
[ClassAttributs(Description = "扩展1")]
public string Extend1
{
get { return extend1; }
set { extend1 = value; }
}
/// <summary>
/// 扩展2
/// </summary>
[ClassAttributs(Description = "扩展2")]
public string Extend2
{
get { return extend2; }
set { extend2 = value; }
}
/// <summary>
/// 扩展3
/// </summary>
[ClassAttributs(Description = "扩展3")]
public string Extend3
{
get { return extend3; }
set { extend3 = value; }
}
/// <summary>
/// 扩展4
/// </summary>
[ClassAttributs(Description = "扩展4")]
public string Extend4
{
get { return extend4; }
set { extend4 = value; }
}
/// <summary>
/// 扩展5
/// </summary>
[ClassAttributs(Description = "扩展5")]
public string Extend5
{
get { return extend5; }
set { extend5 = value; }
}
/// <summary>
/// 操作员编号
/// </summary>
[NoCreatControlAttributs]
public int? OperatorId
{
get{ return operatorId; }
set{ operatorId=value; }
}
/// <summary>
/// 操作时间
/// </summary>
[NoCreatControlAttributs]
public DateTime? OperatorTime
{
get{ return operatorTime; }
set{ operatorTime=value; }
}
}
}

View File

@ -494,7 +494,7 @@ namespace DrawGraph
}
if (selparameters.Count <= 0) return;
frmDeletePhysios frm = new frmDeletePhysios(myOpeRecord.Id.Value,
DeletePhysios frm = new DeletePhysios(myOpeRecord.Id.Value,
myOpeRecord.SAreaObj.StartPD.RecordTime,
myOpeRecord.SAreaObj.EndPd.RecordTime,
startValue, endValue);

View File

@ -106,16 +106,16 @@ namespace DrawGraph
if (myOpeRecord.EventListstr != null && myOpeRecord.EventListstr.Count > 0)
count = count + myOpeRecord.EventListstr.Count + 1;
if (myOpeRecord.opeRecordInfo != null)//&& pageCount == 1
if (myOpeRecord.OpeRecordInfo != null)//&& pageCount == 1
{
if (myOpeRecord.opeRecordInfo.PunctureSite != null || myOpeRecord.opeRecordInfo.NeedleNumber != null || myOpeRecord.opeRecordInfo.NeedleDirection != null || myOpeRecord.opeRecordInfo.PuncturePosition != null || myOpeRecord.opeRecordInfo.ConduitDepth != null)
if (myOpeRecord.OpeRecordInfo.PunctureSite != null || myOpeRecord.OpeRecordInfo.NeedleNumber != null || myOpeRecord.OpeRecordInfo.NeedleDirection != null || myOpeRecord.OpeRecordInfo.PuncturePosition != null || myOpeRecord.OpeRecordInfo.ConduitDepth != null)
count = count + 3;
//神经阻滞
if (myOpeRecord.opeRecordInfo.NeuroPlexusAround != null || myOpeRecord.opeRecordInfo.BrachialPlexus != null)
if (myOpeRecord.OpeRecordInfo.NeuroPlexusAround != null || myOpeRecord.OpeRecordInfo.BrachialPlexus != null)
count = count + 3;
if (myOpeRecord.opeRecordInfo.VenipunctureDeep != null || myOpeRecord.opeRecordInfo.VenipunctureCenter != null)
if (myOpeRecord.OpeRecordInfo.VenipunctureDeep != null || myOpeRecord.OpeRecordInfo.VenipunctureCenter != null)
count = count + 3;
if (myOpeRecord.opeRecordInfo.AnesthesiaPlane != null || myOpeRecord.opeRecordInfo.AnesthesiaEffect != null || myOpeRecord.opeRecordInfo.SpecialSituation != null)
if (myOpeRecord.OpeRecordInfo.AnesthesiaPlane != null || myOpeRecord.OpeRecordInfo.AnesthesiaEffect != null || myOpeRecord.OpeRecordInfo.SpecialSituation != null)
count = count + 1;
}
@ -181,66 +181,66 @@ namespace DrawGraph
SetRemarkInfo(myOpeRecord.AfterDrugsListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
//手术信息备注
if (myOpeRecord.opeRecordInfo != null)
if (myOpeRecord.OpeRecordInfo != null)
{
//穿刺点1
if (myOpeRecord.opeRecordInfo.PunctureSite != null || myOpeRecord.opeRecordInfo.NeedleNumber != null || myOpeRecord.opeRecordInfo.NeedleDirection != null || myOpeRecord.opeRecordInfo.PuncturePosition != null || myOpeRecord.opeRecordInfo.ConduitDepth != null)
if (myOpeRecord.OpeRecordInfo.PunctureSite != null || myOpeRecord.OpeRecordInfo.NeedleNumber != null || myOpeRecord.OpeRecordInfo.NeedleDirection != null || myOpeRecord.OpeRecordInfo.PuncturePosition != null || myOpeRecord.OpeRecordInfo.ConduitDepth != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【穿刺点1】");
punStr = "";
if (myOpeRecord.opeRecordInfo.PunctureSite != "") punStr += " 穿刺部位:" + myOpeRecord.opeRecordInfo.PunctureSite;
if (myOpeRecord.opeRecordInfo.NeedleNumber != "") punStr += " 针号:" + myOpeRecord.opeRecordInfo.NeedleNumber;
if (myOpeRecord.opeRecordInfo.NeedleDirection != "") punStr += " 针向:" + myOpeRecord.opeRecordInfo.NeedleDirection;
if (myOpeRecord.OpeRecordInfo.PunctureSite != "") punStr += " 穿刺部位:" + myOpeRecord.OpeRecordInfo.PunctureSite;
if (myOpeRecord.OpeRecordInfo.NeedleNumber != "") punStr += " 针号:" + myOpeRecord.OpeRecordInfo.NeedleNumber;
if (myOpeRecord.OpeRecordInfo.NeedleDirection != "") punStr += " 针向:" + myOpeRecord.OpeRecordInfo.NeedleDirection;
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
if (myOpeRecord.opeRecordInfo.PuncturePosition != "") punStr = " 穿刺体位:" + myOpeRecord.opeRecordInfo.PuncturePosition;
if (myOpeRecord.opeRecordInfo.ConduitDepth != "") punStr += " 导管进入:" + myOpeRecord.opeRecordInfo.ConduitDepth + "cm";
if (myOpeRecord.OpeRecordInfo.PuncturePosition != "") punStr = " 穿刺体位:" + myOpeRecord.OpeRecordInfo.PuncturePosition;
if (myOpeRecord.OpeRecordInfo.ConduitDepth != "") punStr += " 导管进入:" + myOpeRecord.OpeRecordInfo.ConduitDepth + "cm";
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
SetRemarkInfo(PunctureAndIntubatio, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
//穿刺点2
if (myOpeRecord.opeRecordInfo.PunctureSite2 != null || myOpeRecord.opeRecordInfo.NeedleNumber2 != null || myOpeRecord.opeRecordInfo.NeedleDirection2 != null || myOpeRecord.opeRecordInfo.PuncturePosition2 != null || myOpeRecord.opeRecordInfo.ConduitDepth2 != null)
if (myOpeRecord.OpeRecordInfo.PunctureSite2 != null || myOpeRecord.OpeRecordInfo.NeedleNumber2 != null || myOpeRecord.OpeRecordInfo.NeedleDirection2 != null || myOpeRecord.OpeRecordInfo.PuncturePosition2 != null || myOpeRecord.OpeRecordInfo.ConduitDepth2 != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【穿刺点2】");
punStr = "";
if (myOpeRecord.opeRecordInfo.PunctureSite2 != "") punStr += " 穿刺部位:" + myOpeRecord.opeRecordInfo.PunctureSite2;
if (myOpeRecord.opeRecordInfo.NeedleNumber2 != "") punStr += " 针号:" + myOpeRecord.opeRecordInfo.NeedleNumber2;
if (myOpeRecord.opeRecordInfo.NeedleDirection2 != "") punStr += " 针向:" + myOpeRecord.opeRecordInfo.NeedleDirection2;
if (myOpeRecord.OpeRecordInfo.PunctureSite2 != "") punStr += " 穿刺部位:" + myOpeRecord.OpeRecordInfo.PunctureSite2;
if (myOpeRecord.OpeRecordInfo.NeedleNumber2 != "") punStr += " 针号:" + myOpeRecord.OpeRecordInfo.NeedleNumber2;
if (myOpeRecord.OpeRecordInfo.NeedleDirection2 != "") punStr += " 针向:" + myOpeRecord.OpeRecordInfo.NeedleDirection2;
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
if (myOpeRecord.opeRecordInfo.PuncturePosition2 != "") punStr = " 穿刺体位:" + myOpeRecord.opeRecordInfo.PuncturePosition2;
if (myOpeRecord.opeRecordInfo.ConduitDepth2 != "") punStr += " 导管进入:" + myOpeRecord.opeRecordInfo.ConduitDepth2 + "cm";
if (myOpeRecord.OpeRecordInfo.PuncturePosition2 != "") punStr = " 穿刺体位:" + myOpeRecord.OpeRecordInfo.PuncturePosition2;
if (myOpeRecord.OpeRecordInfo.ConduitDepth2 != "") punStr += " 导管进入:" + myOpeRecord.OpeRecordInfo.ConduitDepth2 + "cm";
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
SetRemarkInfo(PunctureAndIntubatio, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
//插管
if (myOpeRecord.opeRecordInfo.IntubateMode != null || myOpeRecord.opeRecordInfo.IntubateType != null || myOpeRecord.opeRecordInfo.IntubatePosition != null || myOpeRecord.opeRecordInfo.IntubatePath != null || myOpeRecord.opeRecordInfo.IntubateOther != null)
if (myOpeRecord.OpeRecordInfo.IntubateMode != null || myOpeRecord.OpeRecordInfo.IntubateType != null || myOpeRecord.OpeRecordInfo.IntubatePosition != null || myOpeRecord.OpeRecordInfo.IntubatePath != null || myOpeRecord.OpeRecordInfo.IntubateOther != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【插管/喉罩】");
punStr = myOpeRecord.opeRecordInfo.IntubateMode + " " + myOpeRecord.opeRecordInfo.IntubateType;
if (myOpeRecord.opeRecordInfo.IntubateNumber != "") punStr += " 管号:" + myOpeRecord.opeRecordInfo.IntubateNumber + "#";
if (myOpeRecord.opeRecordInfo.IntubateDepth != "") punStr += " 深度:" + myOpeRecord.opeRecordInfo.IntubateDepth + "cm";
punStr = myOpeRecord.OpeRecordInfo.IntubateMode + " " + myOpeRecord.OpeRecordInfo.IntubateType;
if (myOpeRecord.OpeRecordInfo.IntubateNumber != "") punStr += " 管号:" + myOpeRecord.OpeRecordInfo.IntubateNumber + "#";
if (myOpeRecord.OpeRecordInfo.IntubateDepth != "") punStr += " 深度:" + myOpeRecord.OpeRecordInfo.IntubateDepth + "cm";
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
punStr = " " + myOpeRecord.opeRecordInfo.IntubatePosition.Trim();
punStr += " " + myOpeRecord.opeRecordInfo.AnaesthesiaMode;
punStr += " " + myOpeRecord.opeRecordInfo.IntubatePath;
punStr += " " + myOpeRecord.opeRecordInfo.IntubateOther;
punStr = " " + myOpeRecord.OpeRecordInfo.IntubatePosition.Trim();
punStr += " " + myOpeRecord.OpeRecordInfo.AnaesthesiaMode;
punStr += " " + myOpeRecord.OpeRecordInfo.IntubatePath;
punStr += " " + myOpeRecord.OpeRecordInfo.IntubateOther;
string jing = "";
if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow != null)
if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow != null)
{
//纤维支气管镜 0 可视喉镜 1 光棒 2 视可尼 3 可视硬镜 4
if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow == 0)
if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow == 0)
jing = "纤维支气管镜";
else if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow == 1)
else if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow == 1)
jing = "可视喉镜";
else if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow == 2)
else if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow == 2)
jing = "光棒";
else if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow == 3)
else if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow == 3)
jing = "视可尼";
else if (myOpeRecord.opeRecordInfo.NeuroPlexusShallow == 4)
else if (myOpeRecord.OpeRecordInfo.NeuroPlexusShallow == 4)
jing = "可视硬镜";
}
punStr += " " + jing;
@ -250,30 +250,30 @@ namespace DrawGraph
}
//神经阻滞
if (myOpeRecord.opeRecordInfo.NeuroPlexusAround != null || myOpeRecord.opeRecordInfo.BrachialPlexus != null)
if (myOpeRecord.OpeRecordInfo.NeuroPlexusAround != null || myOpeRecord.OpeRecordInfo.BrachialPlexus != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【神经阻滞】");
string NeuroPlexusAround = myOpeRecord.opeRecordInfo.NeuroPlexusAround == 1 ? "左侧" : myOpeRecord.opeRecordInfo.NeuroPlexusAround == 2 ? "右侧" : myOpeRecord.opeRecordInfo.NeuroPlexusAround == 1 ? "左侧" : myOpeRecord.opeRecordInfo.NeuroPlexusAround == 3 ? "双侧" : "";
if (myOpeRecord.opeRecordInfo.BrachialPlexus != null && myOpeRecord.opeRecordInfo.BrachialPlexus != "")
PunctureAndIntubatio.Add(myOpeRecord.opeRecordInfo.BrachialPlexus + " " + NeuroPlexusAround);//"【神经阻滞部位】 " +
string NeuroPlexusAround = myOpeRecord.OpeRecordInfo.NeuroPlexusAround == 1 ? "左侧" : myOpeRecord.OpeRecordInfo.NeuroPlexusAround == 2 ? "右侧" : myOpeRecord.OpeRecordInfo.NeuroPlexusAround == 1 ? "左侧" : myOpeRecord.OpeRecordInfo.NeuroPlexusAround == 3 ? "双侧" : "";
if (myOpeRecord.OpeRecordInfo.BrachialPlexus != null && myOpeRecord.OpeRecordInfo.BrachialPlexus != "")
PunctureAndIntubatio.Add(myOpeRecord.OpeRecordInfo.BrachialPlexus + " " + NeuroPlexusAround);//"【神经阻滞部位】 " +
SetRemarkInfo(PunctureAndIntubatio, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
//穿刺信息
if (myOpeRecord.opeRecordInfo.VenipunctureType != null)
if (myOpeRecord.OpeRecordInfo.VenipunctureType != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【穿刺信息】");
string PuncturePosition = "";
if (myOpeRecord.opeRecordInfo.VenipunctureDeep != null && myOpeRecord.opeRecordInfo.VenipunctureDeep != "")
if (myOpeRecord.OpeRecordInfo.VenipunctureDeep != null && myOpeRecord.OpeRecordInfo.VenipunctureDeep != "")
{
PuncturePosition = "动脉穿刺 " + myOpeRecord.opeRecordInfo.VenipunctureDeep;
PuncturePosition = "动脉穿刺 " + myOpeRecord.OpeRecordInfo.VenipunctureDeep;
PunctureAndIntubatio.Add(PuncturePosition);
}
string PunctureSite = "";
if (myOpeRecord.opeRecordInfo.VenipunctureCenter != null && myOpeRecord.opeRecordInfo.VenipunctureCenter != "")
if (myOpeRecord.OpeRecordInfo.VenipunctureCenter != null && myOpeRecord.OpeRecordInfo.VenipunctureCenter != "")
{
PunctureSite = "中心静脉穿刺 " + myOpeRecord.opeRecordInfo.VenipunctureCenter;
PunctureSite = "中心静脉穿刺 " + myOpeRecord.OpeRecordInfo.VenipunctureCenter;
PunctureAndIntubatio.Add(PunctureSite);
}
if (PunctureAndIntubatio.Count > 0)
@ -281,39 +281,39 @@ namespace DrawGraph
}
//麻醉情况
if (myOpeRecord.opeRecordInfo.AnesthesiaPlane != null || myOpeRecord.opeRecordInfo.AnesthesiaEffect != null || myOpeRecord.opeRecordInfo.SpecialSituation != null)
if (myOpeRecord.OpeRecordInfo.AnesthesiaPlane != null || myOpeRecord.OpeRecordInfo.AnesthesiaEffect != null || myOpeRecord.OpeRecordInfo.SpecialSituation != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【麻醉情况】");
punStr = "";
if (myOpeRecord.opeRecordInfo.AnesthesiaPlane != null && myOpeRecord.opeRecordInfo.AnesthesiaPlane != "")
punStr += " 麻醉平面:" + myOpeRecord.opeRecordInfo.AnesthesiaPlane;
if (myOpeRecord.opeRecordInfo.AnesthesiaEffect != null)
punStr += " 麻醉效果: " + myOpeRecord.opeRecordInfo.AnesthesiaEffect;
if (myOpeRecord.OpeRecordInfo.AnesthesiaPlane != null && myOpeRecord.OpeRecordInfo.AnesthesiaPlane != "")
punStr += " 麻醉平面:" + myOpeRecord.OpeRecordInfo.AnesthesiaPlane;
if (myOpeRecord.OpeRecordInfo.AnesthesiaEffect != null)
punStr += " 麻醉效果: " + myOpeRecord.OpeRecordInfo.AnesthesiaEffect;
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
if (myOpeRecord.opeRecordInfo.SpecialSituation != null && myOpeRecord.opeRecordInfo.SpecialSituation != "")
PunctureAndIntubatio.Add(" 手术结束患者情况: " + myOpeRecord.opeRecordInfo.SpecialSituation);
if (myOpeRecord.OpeRecordInfo.SpecialSituation != null && myOpeRecord.OpeRecordInfo.SpecialSituation != "")
PunctureAndIntubatio.Add(" 手术结束患者情况: " + myOpeRecord.OpeRecordInfo.SpecialSituation);
SetRemarkInfo(PunctureAndIntubatio, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
//cboSteward评分
if (myOpeRecord.opeRecordInfo.StewardNumber != null || myOpeRecord.opeRecordInfo.StewardSober != null || myOpeRecord.opeRecordInfo.StewardLimbActivity != null)
if (myOpeRecord.OpeRecordInfo.StewardNumber != null || myOpeRecord.OpeRecordInfo.StewardSober != null || myOpeRecord.OpeRecordInfo.StewardLimbActivity != null)
{
PunctureAndIntubatio = new List<string>();
PunctureAndIntubatio.Add("【Steward评分】");
punStr = "";
if (myOpeRecord.opeRecordInfo.StewardSober != null && myOpeRecord.opeRecordInfo.StewardSober != "")
punStr += " 清醒程度:" + myOpeRecord.opeRecordInfo.StewardSober + "分";
if (myOpeRecord.OpeRecordInfo.StewardSober != null && myOpeRecord.OpeRecordInfo.StewardSober != "")
punStr += " 清醒程度:" + myOpeRecord.OpeRecordInfo.StewardSober + "分";
//if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
//punStr = "";
if (myOpeRecord.opeRecordInfo.StewardBreathing != null && myOpeRecord.opeRecordInfo.StewardBreathing != "")
punStr += " 呼吸通道顺畅程度: " + myOpeRecord.opeRecordInfo.StewardBreathing + "分";
if (myOpeRecord.OpeRecordInfo.StewardBreathing != null && myOpeRecord.OpeRecordInfo.StewardBreathing != "")
punStr += " 呼吸通道顺畅程度: " + myOpeRecord.OpeRecordInfo.StewardBreathing + "分";
//if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
//punStr = "";
if (myOpeRecord.opeRecordInfo.StewardLimbActivity != null && myOpeRecord.opeRecordInfo.StewardLimbActivity != "")
punStr += " 肢体活动度: " + myOpeRecord.opeRecordInfo.StewardLimbActivity + "分";
if (myOpeRecord.OpeRecordInfo.StewardLimbActivity != null && myOpeRecord.OpeRecordInfo.StewardLimbActivity != "")
punStr += " 肢体活动度: " + myOpeRecord.OpeRecordInfo.StewardLimbActivity + "分";
if (punStr.Trim() != "") PunctureAndIntubatio.Add(punStr);
if (myOpeRecord.opeRecordInfo.StewardNumber != null && myOpeRecord.opeRecordInfo.StewardNumber != "")
PunctureAndIntubatio.Add(" Steward总评分: " + myOpeRecord.opeRecordInfo.StewardNumber + "分");
if (myOpeRecord.OpeRecordInfo.StewardNumber != null && myOpeRecord.OpeRecordInfo.StewardNumber != "")
PunctureAndIntubatio.Add(" Steward总评分: " + myOpeRecord.OpeRecordInfo.StewardNumber + "分");
SetRemarkInfo(PunctureAndIntubatio, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength);
}
}

View File

@ -688,7 +688,7 @@ namespace DrawGraph
manageList[i] = areaSub;
area = manageList[i];
//区域保存值返回
bool areaLoadOk = area.Load();
bool areaLoadOk = area.Load(Id);
if (!areaLoadOk)
{
MsgStr = area.Name + ":" + area.MsgStr;

View File

@ -179,7 +179,7 @@ namespace DrawGraph
return result;
}
public bool LoadContent(string fileName)
public bool LoadContent(string fileName, int parentId)
{
bool flag = true;
bool result;
@ -192,7 +192,7 @@ namespace DrawGraph
result = false;
return result;
}
string text = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where Name='" + fileName + "'").ToString(); //File.ReadAllText(fileName);
string text = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where Name='" + fileName + "' and ParentId="+ parentId+" " ).ToString(); //File.ReadAllText(fileName);
bool flag3 = text != null && text != "";
if (flag3)
{

View File

@ -63,13 +63,15 @@
<Compile Include="AreaManage\FactBloodGasAnalysis.cs" />
<Compile Include="AreaManage\FactBloodGasAnalysisData.cs" />
<Compile Include="AreaManage\FactOutputLiquids.cs" />
<Compile Include="AreaManage\frmDeletePhysios.cs">
<Compile Include="AreaManage\DeletePhysios.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AreaManage\frmDeletePhysios.designer.cs">
<DependentUpon>frmDeletePhysios.cs</DependentUpon>
<Compile Include="AreaManage\DeletePhysios.designer.cs">
<DependentUpon>DeletePhysios.cs</DependentUpon>
</Compile>
<Compile Include="AreaManage\OperationRecordInfo.cs" />
<Compile Include="AreaManage\OperationRecoverInInfo.cs" />
<Compile Include="AreaManage\OperationRecoverOutInfo.cs" />
<Compile Include="AreaManage\PhysioDataService.cs" />
<Compile Include="AreaManage\PhysioDataConfig.cs" />
<Compile Include="AreaManage\AreaManageBase.cs" />
@ -234,8 +236,8 @@
<Compile Include="Graph\ZException.cs" />
<Compile Include="Graph\ZoomState.cs" />
<Compile Include="Graph\ZoomStateStack.cs" />
<EmbeddedResource Include="AreaManage\frmDeletePhysios.resx">
<DependentUpon>frmDeletePhysios.cs</DependentUpon>
<EmbeddedResource Include="AreaManage\DeletePhysios.resx">
<DependentUpon>DeletePhysios.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>

View File

@ -75,6 +75,7 @@ namespace DrawGraph
/// <summary>
/// 是否被选中
/// </summary>
[NoCreatControlAttributs]
public bool IsSelected
{
get { return isSelected; }
@ -84,6 +85,7 @@ namespace DrawGraph
/// <summary>
/// 加对象的开始时间
/// </summary>
[NoCreatControlAttributs]
public DateTime Begin
{
get { return begin; }
@ -93,6 +95,7 @@ namespace DrawGraph
/// <summary>
/// 加对象的结束时间
/// </summary>
[NoCreatControlAttributs]
public DateTime End
{
get { return end; }

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<AtuoUpdate>
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_SXTLYY;User ID=sa;Password=123456;</ConnectionString>
<ConnectionString>Data Source=.;Initial Catalog=AIMSDB_SXTLYY;User ID=sa;Password=Test2020;</ConnectionString>
<DataConnectionString>Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=123456;</DataConnectionString>
<HisConnectionStringOracel>Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39;</HisConnectionStringOracel>
</AtuoUpdate>

View File

@ -565,31 +565,31 @@ namespace DrawGraphManagement
/// <param name="e"></param>
private void button3_Click(object sender, EventArgs e)
{
poManager = new PackObjManager(zedGraphControl1);
poManager.AllClear();
selectPoB = null;
if (uc is DrawGraphManagement.MyUserControl.UCAttrib)
(uc as DrawGraphManagement.MyUserControl.UCAttrib).Clear();
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "(*.pom)|*.pom|(*.khd)|*.KHD|(*.*)|*.*";
ofd.RestoreDirectory = true;
if (ofd.ShowDialog() == DialogResult.OK)
{
try
{
asFileName = ofd.FileName;
//管理器加载
poManager.LoadContent(ofd.FileName);
//poManager = new PackObjManager(zedGraphControl1);
//poManager.AllClear();
//selectPoB = null;
//if (uc is DrawGraphManagement.MyUserControl.UCAttrib)
// (uc as DrawGraphManagement.MyUserControl.UCAttrib).Clear();
//OpenFileDialog ofd = new OpenFileDialog();
//ofd.Filter = "(*.pom)|*.pom|(*.khd)|*.KHD|(*.*)|*.*";
//ofd.RestoreDirectory = true;
//if (ofd.ShowDialog() == DialogResult.OK)
//{
// try
// {
// asFileName = ofd.FileName;
// //管理器加载
// poManager.LoadContent(ofd.FileName);
treeView1.Nodes.Clear();
InsertPackObjToTree(poManager.ListPob);
}
catch (Exception exp)
{
MessageBox.Show(exp.Message);
}
ControlDatabind();
}
// treeView1.Nodes.Clear();
// InsertPackObjToTree(poManager.ListPob);
// }
// catch (Exception exp)
// {
// MessageBox.Show(exp.Message);
// }
// ControlDatabind();
//}
}
private void ControlDatabind(bool isDataSource = true)

View File

@ -26,11 +26,9 @@ namespace DrawGraphManagement
private void Main_Load(object sender, EventArgs e)
{
//Hospitals hospital = BHospitals.GetHospitalsById(BWorkers.SelectSingle(1).DepartmentRef.HospitalId.Value);
//PublicMethod.hospitals = hospital;
//PublicMethod.Operator = BWorkers.SelectSingle(1);
//templateManage.HospitalName = PublicMethod.hospitals.Name;
myPanel1.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel1_MouseWheel);
HospitalInfo hospital = BHospitalInfo.SelectSingle(1);
txtHospitalName.Text = hospital.HospitalName;
myPanel1.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel1_MouseWheel);
LoadManageList();
}
/// <summary>
@ -54,17 +52,8 @@ namespace DrawGraphManagement
{
cmbManageList.Items.Add(t.Name);
}
bindTitle();
}
private void bindTitle()
{
//txtProjectName.DataBindings.Clear();
//txtProjectName.DataBindings.Add("text", templateManage, "ProjectName");
//txtHospitalName.DataBindings.Clear();
//txtHospitalName.DataBindings.Add("text", "", "Name");
}
/// <summary>
/// 设置界面自适应
/// </summary>
@ -304,7 +293,7 @@ namespace DrawGraphManagement
#region
int id = 14;
if (textBox1.Text != "") id = int.Parse(textBox1.Text);
//operationRecor = BOperationRecord.SelectSingle(id, RecursiveType.Parent, 3);
operationRecor = BOperationRecord.getRecord(new OperationRecord(), id, 1);
templateManage.OpeRecord = operationRecor;
//指定对象的所有值属性的绑定
@ -332,7 +321,7 @@ namespace DrawGraphManagement
this.Close();
this.Close();
}
catch (Exception )
catch (Exception)
{
}
}
@ -350,7 +339,7 @@ namespace DrawGraphManagement
if (templateManage != null && templateManage.ManageList.Count > 0)
{
int OperationApplyId = 10;
if (textBox1.Text.Trim() != "") OperationApplyId = int.Parse(textBox1.Text.Trim());
if (textBox1.Text.Trim() != "") OperationApplyId = int.Parse(textBox1.Text.Trim());
DocumentParent documentParent = new DocumentParent();
documentParent.OperationApplyId = OperationApplyId;
//documentParent.OpeRecord = BOperationRecord.SelectSingle("OperationApplyId=@OperationApplyId", new ParameterList("@OperationApplyId", OperationApplyId), RecursiveType.Parent, 3);
@ -362,12 +351,13 @@ namespace DrawGraphManagement
//非值对象的数据绑定
templateManage.Bind();
}
}
}
private void button3_Click(object sender, EventArgs e)
{
string txtFont = txtFontSize.Text.Trim();
foreach (AreaManageBase manage in templateManage.ManageList) {
foreach (AreaManageBase manage in templateManage.ManageList)
{
List<PackObjBase> ables = manage.PackManage.ListPob.Where<PackObjBase>(s => s is AbleEditPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in ables)
{
@ -389,7 +379,8 @@ namespace DrawGraphManagement
private void cmbTypesetting_SelectedValueChanged(object sender, EventArgs e)
{
if (templateManage != null) {
if (templateManage != null)
{
string typeset = cmbTypesetting.Text;
if (typeset == "横向")
{
@ -427,17 +418,17 @@ namespace DrawGraphManagement
{
templateManage.ControlClear();
}
try
{
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=1").ToString();
string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=10").ToString();
if (jsonStr != null && jsonStr != "")
{
templateManage = JsonConvert.DeserializeObject<TemplateManage>(jsonStr);
templateManage.ZedControl = zedGraphMain;
templateManage.OpeRecord = operationRecor;
templateManage.Id = 1;
templateManage.Id = 10;
bool reVal = templateManage.Load();
if (reVal)
{
@ -447,12 +438,9 @@ namespace DrawGraphManagement
{
MessageBox.Show(templateManage.MsgStr);
}
#region
AutoSizeF();
#endregion
}
bindTitle();
//设置排版值
if (templateManage.Typesetting == TypesettingEnum.Vertical)