diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index 5556af6..1b5d116 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -722,12 +722,6 @@ frmFactEventsNew.cs - - Form - - - frmFactOutputLiquids.cs - Form @@ -1230,9 +1224,6 @@ frmFactEventsNew.cs - - frmFactOutputLiquids.cs - frmMenu.cs diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs index 82160ff..2551817 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs @@ -201,7 +201,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { zgcAnaesRecord.Focus(); } - if (_record.State == "手术中") + if (_record.StateName == "手术中") { if (txtOperationEnd.CustomFormat == " " && txtOutRoom.CustomFormat == " ") { @@ -457,7 +457,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { DrawGraph.FactEvents Inevent = null; DateTimeInput tb = obj as DateTimeInput; - if (_record.State == "手术中") + if (_record.StateName == "手术中") { DeleteEventTime("txtAnaesthesiaBegin", "麻醉开始", tb, ref Inevent); DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent); @@ -561,7 +561,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI string messing = ""; bool timeistrue = true; timeistrue = BOperationRecord.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing); - if (_record.State != null && _record.State != "5") + if (_record.StateName != null && _record.StateName != "5") { if (messing != "") { @@ -570,7 +570,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } else { timeistrue = true; } - if (EventName == "出室" && _record.State == "手术中" && state == 0) + if (EventName == "出室" && _record.StateName == "手术中" && state == 0) { if (GetOpeState(ref messing) == false) { @@ -773,8 +773,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI _record.OperationApplyId = ApplyId; _record.PatientId = PatientId; _record.RecoverId = RecoverId; - _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); - BOperationRecord.UpdateState(PatientId, RecoverId, 1); + _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, 1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); HelperDB.DbHelperSQL.CommitTrans(); //_record.currentPage = 1; ClearTimeText(); @@ -1067,7 +1066,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI public DateTime? LastMonitorDataTime = null; private void timerGetCollectorData_Tick(bool isOpen) { - if (State == AIMSExtension.EditState.BROWSE || _record.State != "手术中" || NowRoom == null || isReadOnly == true) return; + if (State == AIMSExtension.EditState.BROWSE || _record.StateName != "手术中" || NowRoom == null || isReadOnly == true) return; //if (!PublicMethod.RoleId.Operator.RoleRef.Name.Contains("麻醉") && PublicMethod.Operator.Id != _record.OperatorId // && _record.OperatorId != 1 && PublicMethod.Operator.Name != "系统管理员") return; if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return; @@ -1490,15 +1489,15 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI string RoomStr = seleteRoom.RoomId; if (RoomStr != null && RoomStr != "") { - _record.OperationRoomId = int.Parse(RoomStr); - BOperationRecord.Update("RoomId=@RoomId where Id=@id ", new AIMSModel.ParameterList("@RoomId", _record.OperationRoomId, "@id", _record.Id)); - NowRoom = AIMSBLL.BOperationRoom.SelectSingle(_record.OperationRoomId); + _record.RoomId = int.Parse(RoomStr); + BOperationRecord.Update("RoomId=@RoomId where Id=@id ", new AIMSModel.ParameterList("@RoomId", _record.RoomId, "@id", _record.Id)); + NowRoom = AIMSBLL.BOperationRoom.SelectSingle(_record.RoomId); lblRoom.Text = NowRoom.Name; } } private void getPhysioData_Click(object sender, EventArgs e) { - if (State != AIMSExtension.EditState.BROWSE && _record.State == "手术中" && NowRoom != null && isReadOnly == false) + if (State != AIMSExtension.EditState.BROWSE && _record.StateName == "手术中" && NowRoom != null && isReadOnly == false) { //没有IP判断 DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.InRoomTime.Value, getOpeMaxTime(_record), 5); @@ -1653,7 +1652,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; } - if (_record.OutRoomTime != null && _record.State == "手术中") + if (_record.OutRoomTime != null && _record.StateName == "手术中") { txtOutRoom.CustomFormat = "MM-dd HH:mm"; txtOutRoom.ButtonDropDown.Visible = false; @@ -1774,7 +1773,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") - if (_record.ASALevel == null || _record.ASALevel == "") + if (_record.ASALevel == null || _record.ASALevel == null) { message = "请添写ASA分级!"; isTrue = false; @@ -1792,7 +1791,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } private void EndOperationOutRoom() { - if (_record == null || _record.State != "手术中") return; + if (_record == null || _record.StateName != "手术中") return; try { //CloseOtherFrom(); @@ -1820,7 +1819,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI BFactEvents.Update(temp); } } - _record.State = "手术结束"; + _record.StateName = "手术结束"; BOperationApply.UpdateApplyState(ApplyId, 8); BOperationRecord.UpdateState(PatientId, 1, 2); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs index a28b680..ea6d95c 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs @@ -238,7 +238,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { DrawGraph.FactEvents Inevent = null; DateTimeInput tb = obj as DateTimeInput; - if (_record.State == "手术中") + if (_record.StateName == "手术中") { DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent); DeleteEventTime("txtOperationEnd", "手术结束", tb, ref Inevent); @@ -317,7 +317,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI string messing = ""; bool timeistrue = true; timeistrue = BOperationRecord.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing); - if (_record.State != null && _record.State != "5") + if (_record.StateName != null && _record.StateName != "手术中") { if (messing != "") { @@ -326,11 +326,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } else { timeistrue = true; } - if (EventName == "出室" && _record.State == "手术中" && state == 0) - { - if (messing != "") MessageBox.Show(messing, "系统提示"); - return; - } + //if (EventName == "出室" && _record.StateName == "手术中" && state == 0) + //{ + // if (messing != "") MessageBox.Show(messing, "系统提示"); + // return; + //} if (timeistrue == false) { if (tb.Tag != null) tb.Value = DateTime.Parse(tb.Tag.ToString()); @@ -458,8 +458,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI _record.OperationApplyId = ApplyId; _record.PatientId = PatientId; _record.RecoverId = RecoverId; - _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); - BOperationRecord.UpdateState(PatientId, RecoverId, 1); + _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId,1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); HelperDB.DbHelperSQL.CommitTrans(); ClearTimeText(); btnSelectPatient.Enabled = false; @@ -1156,7 +1155,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; } - if (_record.OutRoomTime != null && _record.State == "手术中") + if (_record.OutRoomTime != null && _record.StateName == "手术中") { txtOutRoom.CustomFormat = "MM-dd HH:mm"; txtOutRoom.ButtonDropDown.Visible = false; @@ -1200,7 +1199,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void EndOperationOutRoom() { - if (_record == null || _record.State != "手术中") return; + if (_record == null || _record.StateName != "手术中") return; try { //CloseOtherFrom(); @@ -1228,7 +1227,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI BFactEvents.Update(temp); } } - _record.State = "手术结束"; + _record.StateName = "手术结束"; BOperationApply.UpdateApplyState(ApplyId, 8); BOperationRecord.UpdateState(PatientId, 1, 2); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactEventsNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactEventsNew.cs index f5434c1..a26b5b1 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactEventsNew.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmFactEventsNew.cs @@ -380,7 +380,7 @@ namespace AIMS.PublicUI.UI { b = true; } - if (IsReview == true && _record.State != "手术结束") + if (IsReview == true && _record.StateName != "手术结束") { if (objectName == "麻醉开始") { @@ -496,7 +496,7 @@ namespace AIMS.PublicUI.UI } //foreach (DataGridViewRow dr in dgvEvents.Rows) //{ - // if (dr.Cells["EventName"].Value != null && _record.State != 2) + // if (dr.Cells["EventName"].Value != null && _record.StateName != 2) // { // string messing = ""; // bool timeistrue = BOperationRecord.IfTimeisTrue(_record.ParentId == 0 ? true : false, _record, dr.Cells["EventName"].Value.ToString(), Convert.ToDateTime(dr.Cells["BeginTime"].Value.ToString()), ref messing); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.Designer.cs deleted file mode 100644 index 6423ebf..0000000 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.Designer.cs +++ /dev/null @@ -1,428 +0,0 @@ -namespace AIMS.PublicUI.UI -{ - partial class frmFactOutputLiquids - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactOutputLiquids)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - this.toolStrip1 = new System.Windows.Forms.ToolStrip(); - this.tsbSave = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.tsbDelete = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.tsbExit = new System.Windows.Forms.ToolStripButton(); - this.dgv1 = new System.Windows.Forms.DataGridView(); - this.rbContinuity = new System.Windows.Forms.RadioButton(); - this.rbSingle = new System.Windows.Forms.RadioButton(); - this.label5 = new System.Windows.Forms.Label(); - this.lblDrugName = new System.Windows.Forms.Label(); - this.dtpEnd = new System.Windows.Forms.DateTimePicker(); - this.label1 = new System.Windows.Forms.Label(); - this.label3 = new System.Windows.Forms.Label(); - this.dtpBegin = new System.Windows.Forms.DateTimePicker(); - this.txtRemark = new System.Windows.Forms.TextBox(); - this.panel1 = new System.Windows.Forms.Panel(); - this.cboDosageUnit = new System.Windows.Forms.ComboBox(); - this.label4 = new System.Windows.Forms.Label(); - this.label2 = new System.Windows.Forms.Label(); - this.txtDosage = new System.Windows.Forms.TextBox(); - this.cboName = new System.Windows.Forms.ComboBox(); - this.IdColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OutputLiquidsIdColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.NameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EventBeginTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EventEndTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DosageColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DosageUnitColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.toolStrip1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv1)).BeginInit(); - this.panel1.SuspendLayout(); - this.SuspendLayout(); - // - // toolStrip1 - // - this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue; - this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.toolStrip1.ImageScalingSize = new System.Drawing.Size(25, 25); - this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.tsbSave, - this.toolStripSeparator4, - this.tsbDelete, - this.toolStripSeparator1, - this.tsbExit}); - this.toolStrip1.Location = new System.Drawing.Point(0, 0); - this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(882, 49); - this.toolStrip1.TabIndex = 6; - this.toolStrip1.Text = "toolStrip1"; - // - // tsbSave - // - this.tsbSave.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbSave.Image = global::AIMS.Properties.Resources.图标_保存; - this.tsbSave.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbSave.Name = "tsbSave"; - this.tsbSave.Size = new System.Drawing.Size(52, 46); - this.tsbSave.Text = " 保存 "; - this.tsbSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click); - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 49); - // - // tsbDelete - // - this.tsbDelete.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbDelete.Image = global::AIMS.Properties.Resources.图标_取消; - this.tsbDelete.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbDelete.Name = "tsbDelete"; - this.tsbDelete.Size = new System.Drawing.Size(48, 46); - this.tsbDelete.Text = " 删除 "; - this.tsbDelete.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbDelete.Click += new System.EventHandler(this.tsbDelete_Click); - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49); - // - // tsbExit - // - this.tsbExit.Font = new System.Drawing.Font("微软雅黑", 9F); - this.tsbExit.Image = global::AIMS.Properties.Resources.图标_关闭当前页; - this.tsbExit.ImageTransparentColor = System.Drawing.Color.Magenta; - this.tsbExit.Name = "tsbExit"; - this.tsbExit.Size = new System.Drawing.Size(52, 46); - this.tsbExit.Text = " 关闭 "; - this.tsbExit.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; - this.tsbExit.Click += new System.EventHandler(this.tsbExit_Click); - // - // dgv1 - // - this.dgv1.AllowUserToAddRows = false; - this.dgv1.BackgroundColor = System.Drawing.Color.White; - this.dgv1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.IdColumn, - this.OutputLiquidsIdColumn1, - this.NameColumn, - this.EventBeginTimeColumn, - this.EventEndTimeColumn, - this.DosageColumn, - this.DosageUnitColumn, - this.RemarkColumn}); - this.dgv1.Location = new System.Drawing.Point(3, 133); - this.dgv1.Name = "dgv1"; - this.dgv1.RowHeadersVisible = false; - this.dgv1.RowTemplate.Height = 23; - this.dgv1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv1.Size = new System.Drawing.Size(879, 320); - this.dgv1.TabIndex = 467; - // - // rbContinuity - // - this.rbContinuity.AutoSize = true; - this.rbContinuity.Checked = true; - this.rbContinuity.Location = new System.Drawing.Point(528, 44); - this.rbContinuity.Name = "rbContinuity"; - this.rbContinuity.Size = new System.Drawing.Size(81, 18); - this.rbContinuity.TabIndex = 477; - this.rbContinuity.TabStop = true; - this.rbContinuity.Text = "持续事件"; - this.rbContinuity.UseVisualStyleBackColor = true; - // - // rbSingle - // - this.rbSingle.AutoSize = true; - this.rbSingle.Location = new System.Drawing.Point(528, 20); - this.rbSingle.Name = "rbSingle"; - this.rbSingle.Size = new System.Drawing.Size(81, 18); - this.rbSingle.TabIndex = 476; - this.rbSingle.Text = "单次事件"; - this.rbSingle.UseVisualStyleBackColor = true; - this.rbSingle.CheckedChanged += new System.EventHandler(this.rbSingle_CheckedChanged); - // - // label5 - // - this.label5.AutoSize = true; - this.label5.Location = new System.Drawing.Point(44, 107); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(35, 14); - this.label5.TabIndex = 469; - this.label5.Text = "备注"; - // - // lblDrugName - // - this.lblDrugName.AutoSize = true; - this.lblDrugName.Location = new System.Drawing.Point(16, 21); - this.lblDrugName.Name = "lblDrugName"; - this.lblDrugName.Size = new System.Drawing.Size(63, 14); - this.lblDrugName.TabIndex = 472; - this.lblDrugName.Text = "出量名称"; - // - // dtpEnd - // - this.dtpEnd.CustomFormat = "yyyy-MM-dd HH:mm:ss"; - this.dtpEnd.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEnd.Location = new System.Drawing.Point(348, 44); - this.dtpEnd.Name = "dtpEnd"; - this.dtpEnd.Size = new System.Drawing.Size(174, 23); - this.dtpEnd.TabIndex = 474; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(279, 48); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(63, 14); - this.label1.TabIndex = 470; - this.label1.Text = "结束时间"; - // - // label3 - // - this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(16, 48); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(63, 14); - this.label3.TabIndex = 471; - this.label3.Text = "开始时间"; - // - // dtpBegin - // - this.dtpBegin.CustomFormat = "yyyy-MM-dd HH:mm:ss"; - this.dtpBegin.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpBegin.Location = new System.Drawing.Point(85, 44); - this.dtpBegin.Name = "dtpBegin"; - this.dtpBegin.Size = new System.Drawing.Size(170, 23); - this.dtpBegin.TabIndex = 475; - // - // txtRemark - // - this.txtRemark.Location = new System.Drawing.Point(85, 104); - this.txtRemark.Name = "txtRemark"; - this.txtRemark.Size = new System.Drawing.Size(437, 23); - this.txtRemark.TabIndex = 473; - // - // panel1 - // - this.panel1.BackColor = System.Drawing.Color.AliceBlue; - this.panel1.Controls.Add(this.cboDosageUnit); - this.panel1.Controls.Add(this.label4); - this.panel1.Controls.Add(this.label2); - this.panel1.Controls.Add(this.txtDosage); - this.panel1.Controls.Add(this.cboName); - this.panel1.Controls.Add(this.dgv1); - this.panel1.Controls.Add(this.txtRemark); - this.panel1.Controls.Add(this.dtpBegin); - this.panel1.Controls.Add(this.rbContinuity); - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.label1); - this.panel1.Controls.Add(this.rbSingle); - this.panel1.Controls.Add(this.dtpEnd); - this.panel1.Controls.Add(this.label5); - this.panel1.Controls.Add(this.lblDrugName); - this.panel1.Font = new System.Drawing.Font("宋体", 10.5F); - this.panel1.Location = new System.Drawing.Point(0, 52); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(882, 456); - this.panel1.TabIndex = 479; - // - // cboDosageUnit - // - this.cboDosageUnit.FormattingEnabled = true; - this.cboDosageUnit.Location = new System.Drawing.Point(228, 73); - this.cboDosageUnit.Name = "cboDosageUnit"; - this.cboDosageUnit.Size = new System.Drawing.Size(77, 22); - this.cboDosageUnit.TabIndex = 488; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(159, 81); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(63, 14); - this.label4.TabIndex = 485; - this.label4.Text = "计量单位"; - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label2.Location = new System.Drawing.Point(42, 77); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(35, 14); - this.label2.TabIndex = 486; - this.label2.Text = "剂量"; - // - // txtDosage - // - this.txtDosage.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.txtDosage.Location = new System.Drawing.Point(85, 73); - this.txtDosage.Name = "txtDosage"; - this.txtDosage.Size = new System.Drawing.Size(68, 23); - this.txtDosage.TabIndex = 487; - this.txtDosage.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtDosage_KeyPress); - // - // cboName - // - this.cboName.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboName.FormattingEnabled = true; - this.cboName.Location = new System.Drawing.Point(85, 15); - this.cboName.Name = "cboName"; - this.cboName.Size = new System.Drawing.Size(437, 22); - this.cboName.TabIndex = 479; - // - // IdColumn - // - this.IdColumn.DataPropertyName = "Id"; - this.IdColumn.HeaderText = "Id"; - this.IdColumn.Name = "IdColumn"; - this.IdColumn.ReadOnly = true; - this.IdColumn.Visible = false; - // - // OutputLiquidsIdColumn1 - // - this.OutputLiquidsIdColumn1.DataPropertyName = "OutputLiquidsId"; - this.OutputLiquidsIdColumn1.HeaderText = "OutputLiquidsId"; - this.OutputLiquidsIdColumn1.Name = "OutputLiquidsIdColumn1"; - this.OutputLiquidsIdColumn1.Visible = false; - // - // NameColumn - // - this.NameColumn.DataPropertyName = "Name"; - this.NameColumn.HeaderText = "出量名称"; - this.NameColumn.Name = "NameColumn"; - this.NameColumn.ReadOnly = true; - this.NameColumn.Width = 260; - // - // EventBeginTimeColumn - // - this.EventBeginTimeColumn.DataPropertyName = "BeginTime"; - dataGridViewCellStyle1.Format = "G"; - dataGridViewCellStyle1.NullValue = null; - this.EventBeginTimeColumn.DefaultCellStyle = dataGridViewCellStyle1; - this.EventBeginTimeColumn.HeaderText = "开始时间"; - this.EventBeginTimeColumn.Name = "EventBeginTimeColumn"; - this.EventBeginTimeColumn.ReadOnly = true; - this.EventBeginTimeColumn.Width = 150; - // - // EventEndTimeColumn - // - this.EventEndTimeColumn.DataPropertyName = "EndTime"; - dataGridViewCellStyle2.Format = "G"; - dataGridViewCellStyle2.NullValue = null; - this.EventEndTimeColumn.DefaultCellStyle = dataGridViewCellStyle2; - this.EventEndTimeColumn.HeaderText = "结束时间"; - this.EventEndTimeColumn.Name = "EventEndTimeColumn"; - this.EventEndTimeColumn.ReadOnly = true; - this.EventEndTimeColumn.Width = 150; - // - // DosageColumn - // - this.DosageColumn.DataPropertyName = "Dosage"; - this.DosageColumn.HeaderText = "剂量"; - this.DosageColumn.Name = "DosageColumn"; - this.DosageColumn.ReadOnly = true; - this.DosageColumn.Width = 60; - // - // DosageUnitColumn - // - this.DosageUnitColumn.DataPropertyName = "DosageUnit"; - this.DosageUnitColumn.HeaderText = "剂量单位"; - this.DosageUnitColumn.Name = "DosageUnitColumn"; - this.DosageUnitColumn.ReadOnly = true; - this.DosageUnitColumn.Width = 90; - // - // RemarkColumn - // - this.RemarkColumn.DataPropertyName = "Remark"; - this.RemarkColumn.HeaderText = "备注"; - this.RemarkColumn.Name = "RemarkColumn"; - this.RemarkColumn.ReadOnly = true; - this.RemarkColumn.Width = 150; - // - // frmFactOutputLiquids - // - this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(882, 500); - this.ControlBox = false; - this.Controls.Add(this.panel1); - this.Controls.Add(this.toolStrip1); - this.Name = "frmFactOutputLiquids"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Load += new System.EventHandler(this.frmFactOutputLiquids_Load); - this.toolStrip1.ResumeLayout(false); - this.toolStrip1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv1)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.ResumeLayout(false); - this.PerformLayout(); - - } - - #endregion - - private System.Windows.Forms.ToolStrip toolStrip1; - private System.Windows.Forms.ToolStripButton tsbSave; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; - private System.Windows.Forms.ToolStripButton tsbDelete; - private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; - private System.Windows.Forms.ToolStripButton tsbExit; - private System.Windows.Forms.DataGridView dgv1; - private System.Windows.Forms.RadioButton rbContinuity; - private System.Windows.Forms.RadioButton rbSingle; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.Label lblDrugName; - private System.Windows.Forms.DateTimePicker dtpEnd; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.DateTimePicker dtpBegin; - private System.Windows.Forms.TextBox txtRemark; - private System.Windows.Forms.Panel panel1; - private System.Windows.Forms.ComboBox cboName; - private System.Windows.Forms.ComboBox cboDosageUnit; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.TextBox txtDosage; - private System.Windows.Forms.DataGridViewTextBoxColumn IdColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OutputLiquidsIdColumn1; - private System.Windows.Forms.DataGridViewTextBoxColumn NameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn EventBeginTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn EventEndTimeColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn DosageColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn DosageUnitColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn; - } -} \ No newline at end of file diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs deleted file mode 100644 index 8407d41..0000000 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.cs +++ /dev/null @@ -1,137 +0,0 @@ -using AIMSBLL; -using DrawGraph; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Windows.Forms; - -namespace AIMS.PublicUI.UI -{ - public partial class frmFactOutputLiquids : Form - { - public int PatientId = 0; - public int SelectOutputLiquidsId = 0; - public int OutputLiquidTypeId = 0; - - public frmFactOutputLiquids() - { - InitializeComponent(); - } - - private void frmFactOutputLiquids_Load(object sender, EventArgs e) - { - AIMSExtension.PublicMethod.SetDgvAttribute(dgv1); - rbSingle.Checked = true; - - - cboName.DataSource = BOutputLiquids.GetDataTable(); - cboName.DisplayMember = "Name"; - cboName.ValueMember = "Id"; - cboName.SelectedIndex = -1; - - - cboDosageUnit.DataSource = BDosageUnit.GetDataTable(1); - cboDosageUnit.DisplayMember = "Name"; - cboDosageUnit.ValueMember = "Id"; - cboDosageUnit.SelectedIndex = -1; - cboDosageUnit.Text = "ml"; - dgv1.DataSource = BFactOutputLiquids.GetDataTable(PatientId, OutputLiquidTypeId); - } - - private void tsbSave_Click(object sender, EventArgs e) - { - if (PatientId > 0 && cboName.Text != "") - { - - if (txtDosage.Text == "") - { - MessageBox.Show("剂量不能为空!"); - return; - } - if (BOperationRecord.GetTitleTime(PatientId, OutputLiquidTypeId).InRoomTime > dtpBegin.Value) - { - MessageBox.Show("不能早于入室时间!"); - return; - } - FactOutputLiquids FactOutputLiquidsObj = new FactOutputLiquids(); - FactOutputLiquidsObj.OutputLiquidsTypeId = OutputLiquidTypeId; - FactOutputLiquidsObj.OutputLiquidsId = int.Parse(cboName.SelectedValue.ToString()); - FactOutputLiquidsObj.PatientId = PatientId; - FactOutputLiquidsObj.BeginTime = DateTime.Parse(dtpBegin.Value.ToString("yyyy-MM-dd HH:mm:ss")); - - if (rbSingle.Checked) - { - FactOutputLiquidsObj.EndTime = FactOutputLiquidsObj.BeginTime; - FactOutputLiquidsObj.IsContinue = 0; - } - else - { - FactOutputLiquidsObj.EndTime = DateTime.Parse(dtpEnd.Value.ToString("yyyy-MM-dd HH:mm:ss")); - FactOutputLiquidsObj.IsContinue = 1; - } - FactOutputLiquidsObj.Dosage = decimal.Parse(txtDosage.Text.Trim()); - FactOutputLiquidsObj.DosageUnit = cboDosageUnit.Text; - FactOutputLiquidsObj.Remark = txtRemark.Text.Trim(); - FactOutputLiquidsObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; - FactOutputLiquidsObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; - FactOutputLiquidsObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); - - BFactOutputLiquids.Add(FactOutputLiquidsObj); - - dgv1.DataSource = BFactOutputLiquids.GetDataTable(PatientId, OutputLiquidTypeId); - Clear(); - } - } - private void Clear() - { - AIMSExtension.PublicMethod.ClearControl(panel1); - dtpBegin.Value = AIMSExtension.PublicMethod.SystemDate(); - dtpEnd.Value = dtpBegin.Value; - rbSingle.Checked = true; - cboDosageUnit.Text = "ml"; - } - - private void tsbDelete_Click(object sender, EventArgs e) - { - if (dgv1.Rows.Count > 0) - { - if (MessageBox.Show("确认要删除事件 [" + dgv1.CurrentRow.Cells["NameColumn"].Value.ToString() + "]", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) - { - int Id = int.Parse(dgv1.CurrentRow.Cells["IdColumn"].Value.ToString()); - BFactOutputLiquids.Delete(Id); - dgv1.DataSource = BFactOutputLiquids.GetDataTable(PatientId, OutputLiquidTypeId); - } - } - } - - private void tsbExit_Click(object sender, EventArgs e) - { - Close(); - } - - private void rbSingle_CheckedChanged(object sender, EventArgs e) - { - if (rbSingle.Checked) - { - label3.Text = "执行时间"; - label1.Text = ""; - dtpEnd.Visible = false; - } - else - { - label3.Text = "开始时间"; - label1.Text = "结束时间"; - dtpEnd.Visible = true; - } - } - - private void txtDosage_KeyPress(object sender, KeyPressEventArgs e) - { - AIMSExtension.PublicMethod.KeyPressByIsMatch(e, txtDosage); - } - } -} diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.resx b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.resx deleted file mode 100644 index b48f514..0000000 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquids.resx +++ /dev/null @@ -1,690 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 17, 17 - - - - - iVBORw0KGgoAAAANSUhEUgAAAH0AAAB9CAYAAACPgGwlAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAB73SURBVHhe7Z2He1RV+sf3L1gFCTW9kAZIcV39WVBcdXdt - qwiaEFoSWqgBQocgCSRAgBBaIAlpk95J7wldV1dAuqIiEIqCooIVvr/3PffeyZ1kJh0yk8z7PO8zmTcz - 995zPuc953vOLfMXs5nNbGbrGNtSc8B7SXX1zQVbd9yfW3UAsyr3Yya5X0Vtt/YZ5NMqajC1vAbTwsLv - +5VW3FxRVOItV5vpWdiBA3v/VV19b37NIcypPgC/ylpMocJNLq3ChJJKjC+qhFdRRbf3ccUV8CgqF/5e - QZns5RhZVH5vXkFRvFydxm1B1YevBNQehj/B5myeUlaNiSVV8Cgsx5iCUry9rwRv5ZXgzdwivJFDzq/d - 2ovxOr2+nkd/5xWL91w/wvNL8B/y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fdR7oP5pt68xWKzAFWjZsvZA/BoRUMsVvsSzjpVVaEchVtgVcQBMurT4Tnr - z1lIdafPZsuWYLMrxzV1rAY73Ze6u2pJ08k/5mLeqTt9DtXlUYq9YHgC1Gph5GIwaJSf4zVjVnjHeUsY - 8iKqN8tdA3rSdKozdpImKud1t4Ddf0jZ06MfUz6fPDXItEPXApOJP4iGYHmBbcJC5b/xutHr99M0CZIx - 32tAw6p5zq5jb1/QdLBTkNSdhidtx4xztRk97nHdUePeoBgQJwzgqhK1hkE5CjVKldrO1oyNFRPn4W8s - nJwftxw8xFXqNlVUqSj529/+D1xmdLxin83tAAAAAElFTkSuQmCC - - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - - True - - \ No newline at end of file diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs index d18d295..03b8d4a 100644 --- a/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs +++ b/AIMS/OperationDoing/AnasRecoverBill/frmAnasRecoverBill.cs @@ -184,7 +184,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI { zgcAnaesRecord.Focus(); } - if (_record.State == "麻醉恢复中") + if (_record.StateName == "麻醉恢复中") { if (txtOutRoom.CustomFormat == " ") { @@ -411,7 +411,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI { DrawGraph.FactEvents Inevent = null; DateTimeInput tb = obj as DateTimeInput; - if (_record.State == "麻醉恢复中") + if (_record.StateName == "麻醉恢复中") { DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent); DeleteEventTime("txtBG", "拔管", tb, ref Inevent); @@ -498,7 +498,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI } else { timeistrue = true; } - if (EventName == "出室" && _record.State == "麻醉恢复中" && state == 0) + if (EventName == "出室" && _record.StateName == "麻醉恢复中" && state == 0) { if (GetOpeState(ref messing) == false) { @@ -680,8 +680,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI _record.OperationApplyId = ApplyId; _record.PatientId = PatientId; _record.RecoverId = RecoverId; - _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, "InRoomTime", DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); - BOperationRecord.UpdateState(PatientId, RecoverId, 3); + _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId,3, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); HelperDB.DbHelperSQL.CommitTrans(); //_record.currentPage = 1; ClearTimeText(); @@ -946,7 +945,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI public DateTime? LastMonitorDataTime = null; private void timerGetCollectorData_Tick(bool isOpen) { - if (State == AIMSExtension.EditState.BROWSE || _record.State != "麻醉恢复中" || NowRoom == null || isReadOnly == true) return; + if (State == AIMSExtension.EditState.BROWSE || _record.StateName != "麻醉恢复中" || NowRoom == null || isReadOnly == true) return; //if (!PublicMethod.RoleId.Operator.RoleRef.Name.Contains("麻醉") && PublicMethod.Operator.Id != _record.OperatorId // && _record.OperatorId != 1 && PublicMethod.Operator.Name != "系统管理员") return; if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return; @@ -1340,7 +1339,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI private void getPhysioData_Click(object sender, EventArgs e) { - if (State != AIMSExtension.EditState.BROWSE && _record.State == "麻醉恢复中" && NowRoom != null && isReadOnly == false) + if (State != AIMSExtension.EditState.BROWSE && _record.StateName == "麻醉恢复中" && NowRoom != null && isReadOnly == false) { //没有IP判断 DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.InRoomTime.Value, getOpeMaxTime(_record), 5); @@ -1434,7 +1433,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; } - if (_record.OutRoomTime != null && _record.State == "麻醉恢复中") + if (_record.OutRoomTime != null && _record.StateName == "麻醉恢复中") { txtOutRoom.CustomFormat = "MM-dd HH:mm"; txtOutRoom.ButtonDropDown.Visible = false; @@ -1520,31 +1519,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI } if (anaesName.Contains("全身麻醉")) - { - if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0) - { - message = "请填写麻醉质量质控指标"; - isTrue = false; - } - - if (_record.OpeRecordInfo.StewardNumber == null || _record.OpeRecordInfo.StewardNumber.ToString().Trim() == "") - { - message = "请与恢复信息选择患者Steward评分!"; - isTrue = false; - } - if (_record.OpeRecordInfo.Whereabouts == null || _record.OpeRecordInfo.Whereabouts.ToString().Trim() == "") - { - message = "请与恢复信息选择患者去向!"; - isTrue = false; - } - - if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") - if (_record.ASALevel == null || _record.ASALevel == "") - { - message = "请添写ASA分级!"; - isTrue = false; - } - + { if (_record.OperationDoctor == null || _record.OperationDoctor.Trim() == "") { message = "请添加术者!"; @@ -1557,7 +1532,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI } private void EndOperationOutRoom() { - if (_record == null || _record.State != "麻醉恢复中") return; + if (_record == null || _record.StateName != "麻醉恢复中") return; try { //CloseOtherFrom(); @@ -1585,7 +1560,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI BFactEvents.Update(temp); } } - _record.State = "恢复结束"; + _record.StateName = "恢复结束"; BOperationApply.UpdateApplyState(ApplyId, 9); BOperationRecord.UpdateState(PatientId, RecoverId, 4); diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverInInfo.cs b/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverInInfo.cs index a5c69db..c32e313 100644 --- a/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverInInfo.cs +++ b/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverInInfo.cs @@ -95,7 +95,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI cboZTHDD.Text = _record.OpeRecoverInInfo.StewardLimbActivity; txtBP.Text = _record.OpeRecoverInInfo.BP;//Aldrete血压 txtSPO2.Text = _record.OpeRecoverInInfo.SPO2;//AldreteSPO2 - if (_record.OperationAnalgesiaMode != null && _record.OperationAnalgesiaMode != "") + if (_record.ControlledAnalgesia != null && _record.ControlledAnalgesia != "") { checkBox5.Checked = true; } diff --git a/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverOutInfo.cs b/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverOutInfo.cs index 5016ece..0882148 100644 --- a/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverOutInfo.cs +++ b/AIMS/OperationDoing/AnasRecoverBill/frmOpeRecoverOutInfo.cs @@ -157,7 +157,7 @@ namespace AIMS.OperationDoing.AnasRecoverBill.UI _record.OpeRecoverOutInfo.State = "手术间"; } _record.OpeRecoverOutInfo.PainScore = txtPain.Text; - _record.OpeRecoverOutInfo.OperatorId = _record.OperatorId; + _record.OpeRecoverOutInfo.OperatorId = PublicMethod.OperatorId; _record.OpeRecoverOutInfo.OperatorTime = DateTime.Now; if (_record.OpeRecoverOutInfo.Id == null) diff --git a/AIMSEntity/AIMSEntity.csproj b/AIMSEntity/AIMSEntity.csproj index 77f309e..b9b3b8c 100644 --- a/AIMSEntity/AIMSEntity.csproj +++ b/AIMSEntity/AIMSEntity.csproj @@ -103,6 +103,7 @@ + @@ -194,6 +195,7 @@ + diff --git a/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs b/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs new file mode 100644 index 0000000..15ef948 --- /dev/null +++ b/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs @@ -0,0 +1,161 @@ +using System; +using AIMSDAL; +using AIMSModel; +using System.Collections; +using System.Collections.Generic; +using DrawGraph; + +namespace AIMSBLL +{ + public partial class BOperationRecord + { + #region 插入实体操作部份 + /// + /// 插入实体 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + public static int Insert(OperationRecord operationRecord) + { + return DOperationRecord.Insert(operationRecord); + } + #endregion + + #region 删除实体操作 + /// + /// 删除实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Delete(OperationRecord operationRecord) + { + return DOperationRecord.Delete(operationRecord); + } + /// + /// 根据对象查询语句删除 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Delete(string oql, ParameterList parameters) + { + return DOperationRecord.Delete(oql,parameters); + } + #endregion + + #region 更新实体操作 + + /// + /// 更新实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Update(OperationRecord operationRecord) + { + return DOperationRecord.Update(operationRecord); + } + + /// + /// 根据对象查询语句更新实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Update(string oql, ParameterList parameters) + { + return DOperationRecord.Update(oql,parameters); + } + #endregion + + #region 查询实体集合 + /// + /// \查询实体集合 + /// + /// 实体类对象集合 + public static List Select() + { + return DOperationRecord.Select(); + } + /// + /// 递归查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecord.Select(recursiveType, recursiveDepth); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters) + { + return DOperationRecord.Select(oql, parameters); + } + + /// + /// 根据对象查询语句递归查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecord.Select(oql, parameters, recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + /// + /// 更据对象查询语句查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + public static OperationRecord SelectSingle(string oql, ParameterList parameters) + { + return DOperationRecord.SelectSingle(oql, parameters); + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static OperationRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecord.SelectSingle(oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + public static OperationRecord SelectSingle(int? id) + { + return DOperationRecord.SelectSingle(id); + } + + /// + /// 更据主键递归查询单个实体 + /// + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static OperationRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecord.SelectSingle(id, recursiveType, recursiveDepth); + } + #endregion + } +} diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs index bf321a4..8c614d9 100644 --- a/AIMSEntity/BLL/Extension/BOperationRecord.cs +++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs @@ -23,16 +23,10 @@ namespace AIMSBLL { 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; + BOperationRecord.SelectSingle(PatientId, RecoverId,ref _record); _record.SpareFive = ""; - if (titleTime.OutRoomTime != null && titleTime.InRoomTime != null) - _record.SpareFive = Convert.ToInt32(((TimeSpan)(titleTime.OutRoomTime - titleTime.InRoomTime)).TotalMinutes).ToString() + "分钟"; + if (_record.OutRoomTime != null && _record.InRoomTime != null) + _record.SpareFive = Convert.ToInt32(((TimeSpan)(_record.OutRoomTime - _record.InRoomTime)).TotalMinutes).ToString() + "分钟"; DataTable OperationFrontdt = BOperationApply.GetOperationFrontDataTableByPatientId(PatientId); if (OperationFrontdt.Rows.Count > 0) @@ -54,7 +48,7 @@ namespace AIMSBLL _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.RoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim()); _record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString(); } @@ -62,8 +56,7 @@ namespace AIMSBLL 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.StateName = 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(); @@ -74,13 +67,15 @@ namespace AIMSBLL _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(); + _record.OrtherDoctorId = OperationDoingdt.Rows[0]["OrtherDoctorId"].ToString().Trim(); + //if (OperationDoingdt.Rows[0]["ASALevel"] != null && OperationDoingdt.Rows[0]["ASALevel"].ToString() != "") + // _record.ASALevel = int.Parse(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(); 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); @@ -411,15 +406,14 @@ namespace AIMSBLL return DBHelper.GetDataTable(sqlStr); } - public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, string TableColumnName, DateTime Time, int RoomId) + public static void SelectSingle(int PatientId, int RecoverId, ref OperationRecord operationRecord) { - return DOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, TableColumnName, Time, RoomId); + DOperationRecord.SelectSingleEntity("PatientId=" + PatientId + " and RecoverId=" + RecoverId,ref operationRecord); } - - public static TitleTime GetTitleTime(int PatientId, int RecoverId) + public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId) { - return DOperationRecord.GetTitleTime(PatientId, RecoverId); - } + return DOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, State, Time, RoomId); + } public static void UpdateState(int PatientId, int TypeId, int State) { DOperationRecord.UpdateState(PatientId, TypeId, State); @@ -539,30 +533,6 @@ namespace AIMSBLL return dt; } - public static int Update(string oql, ParameterList parameters) - { - using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) - { - conn.Open(); - using (SqlCommand cmd = conn.CreateCommand()) - { - //解析过滤部份Sql语句 - string updateString = oql;// SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); - cmd.CommandText = "update OperationRecord 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(); - } - } - } - public static DateTime GetMaxTime(int PatientId, int Type) { diff --git a/AIMSEntity/DAL/AutoGenerate/DOperationRecord.cs b/AIMSEntity/DAL/AutoGenerate/DOperationRecord.cs new file mode 100644 index 0000000..85aef12 --- /dev/null +++ b/AIMSEntity/DAL/AutoGenerate/DOperationRecord.cs @@ -0,0 +1,1030 @@ +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 DOperationRecord + { + #region 插入实体操作部份 + /// + /// 插入 + /// + /// Command对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(SqlCommand cmd, OperationRecord operationRecord) + { + cmd.Parameters.Clear(); + cmd.CommandText = "insert into OperationRecord (PatientId,OperationApplyId,InRoomTime,OutRoomTime,OperationBeginTime,OperationEndTime,AnesthesiaBeginTime,AnesthesiaEndTime,ASALevel,SpecialCase,Fasting,BloodType,OperationDate,OpeSpecialCondition,BMI,BeforeDrugs,AnaesthesiaMethodName,AnaesthesiaTechnology,AnaesthesiaComplication,SpecialEvent,SuddenSituation,ConditionChage,RescueMeasures,RescueTime,RescuePerson,RescueTechnology,SpileInTime,SpileOutTime,SpileSituation,SpileWard,SpileBeforCondition,SpileAffterCondition,RefluxFlag,MuscleStrengthRecovery,CoughReflex,InOperaRoomState,BloodPressure,Tempeture,Pulse,Breath,IsolationIndicator,AnesMachine,ControlledAnalgesia,AnalgesiaModel,AnalgesiaRate,AnalgesiaDrug,AldreteScore,RouteMonitoring,Entourage,Remark1,Remark2,Remark3,Crystal,Colloid,InAmount,OutAmount,OperationTimeSpan,AnaesthesiaTimeSpan,RoomTimeSpan,AnesthesiaDoctorTimeMinute,anesthesiaDoctorSucceedTimeMinute,instrumentNurseTimeMinute,instrumentNurseSucceedTimeMinute,tourNurseTimeMinute,tourNurseSucceedTimeMinute,RecordPageCount,SignName,SignTime,RoomId,State,RecoverId,OperatorNo,OperatorName,OperateDate,Remarks) values (@PatientId,@OperationApplyId,@InRoomTime,@OutRoomTime,@OperationBeginTime,@OperationEndTime,@AnesthesiaBeginTime,@AnesthesiaEndTime,@ASALevel,@SpecialCase,@Fasting,@BloodType,@OperationDate,@OpeSpecialCondition,@BMI,@BeforeDrugs,@AnaesthesiaMethodName,@AnaesthesiaTechnology,@AnaesthesiaComplication,@SpecialEvent,@SuddenSituation,@ConditionChage,@RescueMeasures,@RescueTime,@RescuePerson,@RescueTechnology,@SpileInTime,@SpileOutTime,@SpileSituation,@SpileWard,@SpileBeforCondition,@SpileAffterCondition,@RefluxFlag,@MuscleStrengthRecovery,@CoughReflex,@InOperaRoomState,@BloodPressure,@Tempeture,@Pulse,@Breath,@IsolationIndicator,@AnesMachine,@ControlledAnalgesia,@AnalgesiaModel,@AnalgesiaRate,@AnalgesiaDrug,@AldreteScore,@RouteMonitoring,@Entourage,@Remark1,@Remark2,@Remark3,@Crystal,@Colloid,@InAmount,@OutAmount,@OperationTimeSpan,@AnaesthesiaTimeSpan,@RoomTimeSpan,@AnesthesiaDoctorTimeMinute,@anesthesiaDoctorSucceedTimeMinute,@instrumentNurseTimeMinute,@instrumentNurseSucceedTimeMinute,@tourNurseTimeMinute,@tourNurseSucceedTimeMinute,@RecordPageCount,@SignName,@SignTime,@RoomId,@State,@RecoverId,@OperatorNo,@OperatorName,@OperateDate,@Remarks);select @@identity"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecord.PatientId.HasValue?(object)operationRecord.PatientId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationApplyId",operationRecord.OperationApplyId.HasValue?(object)operationRecord.OperationApplyId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@InRoomTime",operationRecord.InRoomTime.HasValue?(object)operationRecord.InRoomTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OutRoomTime",operationRecord.OutRoomTime.HasValue?(object)operationRecord.OutRoomTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationBeginTime",operationRecord.OperationBeginTime.HasValue?(object)operationRecord.OperationBeginTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationEndTime",operationRecord.OperationEndTime.HasValue?(object)operationRecord.OperationEndTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaBeginTime",operationRecord.AnesthesiaBeginTime.HasValue?(object)operationRecord.AnesthesiaBeginTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaEndTime",operationRecord.AnesthesiaEndTime.HasValue?(object)operationRecord.AnesthesiaEndTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ASALevel",operationRecord.ASALevel.HasValue?(object)operationRecord.ASALevel.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@SpecialCase",operationRecord.SpecialCase==null?(object)DBNull.Value:(object)operationRecord.SpecialCase)); + cmd.Parameters.Add(new SqlParameter("@Fasting",operationRecord.Fasting.HasValue?(object)operationRecord.Fasting.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@BloodType",operationRecord.BloodType==null?(object)DBNull.Value:(object)operationRecord.BloodType)); + cmd.Parameters.Add(new SqlParameter("@OperationDate",operationRecord.OperationDate==null?(object)DBNull.Value:(object)operationRecord.OperationDate)); + cmd.Parameters.Add(new SqlParameter("@OpeSpecialCondition",operationRecord.OpeSpecialCondition==null?(object)DBNull.Value:(object)operationRecord.OpeSpecialCondition)); + cmd.Parameters.Add(new SqlParameter("@BMI",operationRecord.BMI==null?(object)DBNull.Value:(object)operationRecord.BMI)); + cmd.Parameters.Add(new SqlParameter("@BeforeDrugs",operationRecord.BeforeDrugs==null?(object)DBNull.Value:(object)operationRecord.BeforeDrugs)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaMethodName",operationRecord.AnaesthesiaMethodName==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaMethodName)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaTechnology",operationRecord.AnaesthesiaTechnology==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaTechnology)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaComplication",operationRecord.AnaesthesiaComplication==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaComplication)); + cmd.Parameters.Add(new SqlParameter("@SpecialEvent",operationRecord.SpecialEvent==null?(object)DBNull.Value:(object)operationRecord.SpecialEvent)); + cmd.Parameters.Add(new SqlParameter("@SuddenSituation",operationRecord.SuddenSituation==null?(object)DBNull.Value:(object)operationRecord.SuddenSituation)); + cmd.Parameters.Add(new SqlParameter("@ConditionChage",operationRecord.ConditionChage==null?(object)DBNull.Value:(object)operationRecord.ConditionChage)); + cmd.Parameters.Add(new SqlParameter("@RescueMeasures",operationRecord.RescueMeasures==null?(object)DBNull.Value:(object)operationRecord.RescueMeasures)); + cmd.Parameters.Add(new SqlParameter("@RescueTime",operationRecord.RescueTime==null?(object)DBNull.Value:(object)operationRecord.RescueTime)); + cmd.Parameters.Add(new SqlParameter("@RescuePerson",operationRecord.RescuePerson==null?(object)DBNull.Value:(object)operationRecord.RescuePerson)); + cmd.Parameters.Add(new SqlParameter("@RescueTechnology",operationRecord.RescueTechnology==null?(object)DBNull.Value:(object)operationRecord.RescueTechnology)); + cmd.Parameters.Add(new SqlParameter("@SpileInTime",operationRecord.SpileInTime==null?(object)DBNull.Value:(object)operationRecord.SpileInTime)); + cmd.Parameters.Add(new SqlParameter("@SpileOutTime",operationRecord.SpileOutTime==null?(object)DBNull.Value:(object)operationRecord.SpileOutTime)); + cmd.Parameters.Add(new SqlParameter("@SpileSituation",operationRecord.SpileSituation==null?(object)DBNull.Value:(object)operationRecord.SpileSituation)); + cmd.Parameters.Add(new SqlParameter("@SpileWard",operationRecord.SpileWard==null?(object)DBNull.Value:(object)operationRecord.SpileWard)); + cmd.Parameters.Add(new SqlParameter("@SpileBeforCondition",operationRecord.SpileBeforCondition==null?(object)DBNull.Value:(object)operationRecord.SpileBeforCondition)); + cmd.Parameters.Add(new SqlParameter("@SpileAffterCondition",operationRecord.SpileAffterCondition==null?(object)DBNull.Value:(object)operationRecord.SpileAffterCondition)); + cmd.Parameters.Add(new SqlParameter("@RefluxFlag",operationRecord.RefluxFlag==null?(object)DBNull.Value:(object)operationRecord.RefluxFlag)); + cmd.Parameters.Add(new SqlParameter("@MuscleStrengthRecovery",operationRecord.MuscleStrengthRecovery==null?(object)DBNull.Value:(object)operationRecord.MuscleStrengthRecovery)); + cmd.Parameters.Add(new SqlParameter("@CoughReflex",operationRecord.CoughReflex==null?(object)DBNull.Value:(object)operationRecord.CoughReflex)); + cmd.Parameters.Add(new SqlParameter("@InOperaRoomState",operationRecord.InOperaRoomState==null?(object)DBNull.Value:(object)operationRecord.InOperaRoomState)); + cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecord.BloodPressure==null?(object)DBNull.Value:(object)operationRecord.BloodPressure)); + cmd.Parameters.Add(new SqlParameter("@Tempeture",operationRecord.Tempeture==null?(object)DBNull.Value:(object)operationRecord.Tempeture)); + cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecord.Pulse==null?(object)DBNull.Value:(object)operationRecord.Pulse)); + cmd.Parameters.Add(new SqlParameter("@Breath",operationRecord.Breath==null?(object)DBNull.Value:(object)operationRecord.Breath)); + cmd.Parameters.Add(new SqlParameter("@IsolationIndicator",operationRecord.IsolationIndicator==null?(object)DBNull.Value:(object)operationRecord.IsolationIndicator)); + cmd.Parameters.Add(new SqlParameter("@AnesMachine",operationRecord.AnesMachine==null?(object)DBNull.Value:(object)operationRecord.AnesMachine)); + cmd.Parameters.Add(new SqlParameter("@ControlledAnalgesia",operationRecord.ControlledAnalgesia==null?(object)DBNull.Value:(object)operationRecord.ControlledAnalgesia)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaModel",operationRecord.AnalgesiaModel==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaModel)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaRate",operationRecord.AnalgesiaRate==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaRate)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaDrug",operationRecord.AnalgesiaDrug==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaDrug)); + cmd.Parameters.Add(new SqlParameter("@AldreteScore",operationRecord.AldreteScore==null?(object)DBNull.Value:(object)operationRecord.AldreteScore)); + cmd.Parameters.Add(new SqlParameter("@RouteMonitoring",operationRecord.RouteMonitoring==null?(object)DBNull.Value:(object)operationRecord.RouteMonitoring)); + cmd.Parameters.Add(new SqlParameter("@Entourage",operationRecord.Entourage==null?(object)DBNull.Value:(object)operationRecord.Entourage)); + cmd.Parameters.Add(new SqlParameter("@Remark1",operationRecord.Remark1==null?(object)DBNull.Value:(object)operationRecord.Remark1)); + cmd.Parameters.Add(new SqlParameter("@Remark2",operationRecord.Remark2==null?(object)DBNull.Value:(object)operationRecord.Remark2)); + cmd.Parameters.Add(new SqlParameter("@Remark3",operationRecord.Remark3==null?(object)DBNull.Value:(object)operationRecord.Remark3)); + cmd.Parameters.Add(new SqlParameter("@Crystal",operationRecord.Crystal==null?(object)DBNull.Value:(object)operationRecord.Crystal)); + cmd.Parameters.Add(new SqlParameter("@Colloid",operationRecord.Colloid==null?(object)DBNull.Value:(object)operationRecord.Colloid)); + cmd.Parameters.Add(new SqlParameter("@InAmount",operationRecord.InAmount==null?(object)DBNull.Value:(object)operationRecord.InAmount)); + cmd.Parameters.Add(new SqlParameter("@OutAmount",operationRecord.OutAmount==null?(object)DBNull.Value:(object)operationRecord.OutAmount)); + cmd.Parameters.Add(new SqlParameter("@OperationTimeSpan",operationRecord.OperationTimeSpan==null?(object)DBNull.Value:(object)operationRecord.OperationTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaTimeSpan",operationRecord.AnaesthesiaTimeSpan==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@RoomTimeSpan",operationRecord.RoomTimeSpan==null?(object)DBNull.Value:(object)operationRecord.RoomTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaDoctorTimeMinute",operationRecord.AnesthesiaDoctorTimeMinute==null?(object)DBNull.Value:(object)operationRecord.AnesthesiaDoctorTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@anesthesiaDoctorSucceedTimeMinute",operationRecord.AnesthesiaDoctorSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.AnesthesiaDoctorSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@instrumentNurseTimeMinute",operationRecord.InstrumentNurseTimeMinute==null?(object)DBNull.Value:(object)operationRecord.InstrumentNurseTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@instrumentNurseSucceedTimeMinute",operationRecord.InstrumentNurseSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.InstrumentNurseSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@tourNurseTimeMinute",operationRecord.TourNurseTimeMinute==null?(object)DBNull.Value:(object)operationRecord.TourNurseTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@tourNurseSucceedTimeMinute",operationRecord.TourNurseSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.TourNurseSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@RecordPageCount",operationRecord.RecordPageCount==null?(object)DBNull.Value:(object)operationRecord.RecordPageCount)); + cmd.Parameters.Add(new SqlParameter("@SignName",operationRecord.SignName==null?(object)DBNull.Value:(object)operationRecord.SignName)); + cmd.Parameters.Add(new SqlParameter("@SignTime",operationRecord.SignTime==null?(object)DBNull.Value:(object)operationRecord.SignTime)); + cmd.Parameters.Add(new SqlParameter("@RoomId",operationRecord.RoomId.HasValue?(object)operationRecord.RoomId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@State",operationRecord.State.HasValue?(object)operationRecord.State.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@RecoverId",operationRecord.RecoverId.HasValue?(object)operationRecord.RecoverId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecord.OperatorNo==null?(object)DBNull.Value:(object)operationRecord.OperatorNo)); + cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecord.OperatorName==null?(object)DBNull.Value:(object)operationRecord.OperatorName)); + cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecord.OperateDate.HasValue?(object)operationRecord.OperateDate.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@Remarks",operationRecord.Remarks==null?(object)DBNull.Value:(object)operationRecord.Remarks)); + return Convert.ToInt32(cmd.ExecuteScalar()); + } + /// + /// 不使用事务的插入方法 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(OperationRecord operationRecord) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return Insert(cmd, operationRecord); + } + } + } + + /// + /// 使用事务的插入方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(Connection connection,OperationRecord operationRecord) + { + return Insert(connection.Command, operationRecord); + } + #endregion + + #region 删除实体操作 + + /// + /// 删除 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int ExcuteDeleteCommand(SqlCommand cmd, OperationRecord operationRecord) + { + cmd.Parameters.Clear(); + cmd.CommandText = "delete from OperationRecord where Id=@Id"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@Id", operationRecord.Id)); + return cmd.ExecuteNonQuery(); + } + /// + /// 不使用事务的删除方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(OperationRecord operationRecord) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteDeleteCommand(cmd, operationRecord); + } + } + } + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(Connection connection,OperationRecord operationRecord) + { + return ExcuteDeleteCommand(connection.Command, operationRecord); + } + + /// + /// 执行删除命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); + if (filterString != string.Empty) + { + filterString = " where " + filterString; + } + cmd.Parameters.Clear(); + cmd.CommandText = "delete from OperationRecord " + filterString; + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return cmd.ExecuteNonQuery(); + } + + /// + /// 不使用事务的删除方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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); + } + } + } + + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Delete(Connection connection, string oql, ParameterList parameters) + { + return ExcuteDeleteCommand(connection.Command, oql, parameters); + } + + #endregion + + #region 更新实体操作 + + /// + /// 更新 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecord operationRecord) + { + cmd.CommandText = "update OperationRecord set PatientId=@PatientId,OperationApplyId=@OperationApplyId,InRoomTime=@InRoomTime,OutRoomTime=@OutRoomTime,OperationBeginTime=@OperationBeginTime,OperationEndTime=@OperationEndTime,AnesthesiaBeginTime=@AnesthesiaBeginTime,AnesthesiaEndTime=@AnesthesiaEndTime,ASALevel=@ASALevel,SpecialCase=@SpecialCase,Fasting=@Fasting,BloodType=@BloodType,OperationDate=@OperationDate,OpeSpecialCondition=@OpeSpecialCondition,BMI=@BMI,BeforeDrugs=@BeforeDrugs,AnaesthesiaMethodName=@AnaesthesiaMethodName,AnaesthesiaTechnology=@AnaesthesiaTechnology,AnaesthesiaComplication=@AnaesthesiaComplication,SpecialEvent=@SpecialEvent,SuddenSituation=@SuddenSituation,ConditionChage=@ConditionChage,RescueMeasures=@RescueMeasures,RescueTime=@RescueTime,RescuePerson=@RescuePerson,RescueTechnology=@RescueTechnology,SpileInTime=@SpileInTime,SpileOutTime=@SpileOutTime,SpileSituation=@SpileSituation,SpileWard=@SpileWard,SpileBeforCondition=@SpileBeforCondition,SpileAffterCondition=@SpileAffterCondition,RefluxFlag=@RefluxFlag,MuscleStrengthRecovery=@MuscleStrengthRecovery,CoughReflex=@CoughReflex,InOperaRoomState=@InOperaRoomState,BloodPressure=@BloodPressure,Tempeture=@Tempeture,Pulse=@Pulse,Breath=@Breath,IsolationIndicator=@IsolationIndicator,AnesMachine=@AnesMachine,ControlledAnalgesia=@ControlledAnalgesia,AnalgesiaModel=@AnalgesiaModel,AnalgesiaRate=@AnalgesiaRate,AnalgesiaDrug=@AnalgesiaDrug,AldreteScore=@AldreteScore,RouteMonitoring=@RouteMonitoring,Entourage=@Entourage,Remark1=@Remark1,Remark2=@Remark2,Remark3=@Remark3,Crystal=@Crystal,Colloid=@Colloid,InAmount=@InAmount,OutAmount=@OutAmount,OperationTimeSpan=@OperationTimeSpan,AnaesthesiaTimeSpan=@AnaesthesiaTimeSpan,RoomTimeSpan=@RoomTimeSpan,AnesthesiaDoctorTimeMinute=@AnesthesiaDoctorTimeMinute,anesthesiaDoctorSucceedTimeMinute=@anesthesiaDoctorSucceedTimeMinute,instrumentNurseTimeMinute=@instrumentNurseTimeMinute,instrumentNurseSucceedTimeMinute=@instrumentNurseSucceedTimeMinute,tourNurseTimeMinute=@tourNurseTimeMinute,tourNurseSucceedTimeMinute=@tourNurseSucceedTimeMinute,RecordPageCount=@RecordPageCount,SignName=@SignName,SignTime=@SignTime,RoomId=@RoomId,State=@State,RecoverId=@RecoverId,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Remarks=@Remarks where Id=@Id"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecord.PatientId.HasValue?(object)operationRecord.PatientId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationApplyId",operationRecord.OperationApplyId.HasValue?(object)operationRecord.OperationApplyId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@InRoomTime",operationRecord.InRoomTime.HasValue?(object)operationRecord.InRoomTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OutRoomTime",operationRecord.OutRoomTime.HasValue?(object)operationRecord.OutRoomTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationBeginTime",operationRecord.OperationBeginTime.HasValue?(object)operationRecord.OperationBeginTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationEndTime",operationRecord.OperationEndTime.HasValue?(object)operationRecord.OperationEndTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaBeginTime",operationRecord.AnesthesiaBeginTime.HasValue?(object)operationRecord.AnesthesiaBeginTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaEndTime",operationRecord.AnesthesiaEndTime.HasValue?(object)operationRecord.AnesthesiaEndTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ASALevel",operationRecord.ASALevel.HasValue?(object)operationRecord.ASALevel.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@SpecialCase",operationRecord.SpecialCase==null?(object)DBNull.Value:(object)operationRecord.SpecialCase)); + cmd.Parameters.Add(new SqlParameter("@Fasting",operationRecord.Fasting.HasValue?(object)operationRecord.Fasting.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@BloodType",operationRecord.BloodType==null?(object)DBNull.Value:(object)operationRecord.BloodType)); + cmd.Parameters.Add(new SqlParameter("@OperationDate",operationRecord.OperationDate==null?(object)DBNull.Value:(object)operationRecord.OperationDate)); + cmd.Parameters.Add(new SqlParameter("@OpeSpecialCondition",operationRecord.OpeSpecialCondition==null?(object)DBNull.Value:(object)operationRecord.OpeSpecialCondition)); + cmd.Parameters.Add(new SqlParameter("@BMI",operationRecord.BMI==null?(object)DBNull.Value:(object)operationRecord.BMI)); + cmd.Parameters.Add(new SqlParameter("@BeforeDrugs",operationRecord.BeforeDrugs==null?(object)DBNull.Value:(object)operationRecord.BeforeDrugs)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaMethodName",operationRecord.AnaesthesiaMethodName==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaMethodName)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaTechnology",operationRecord.AnaesthesiaTechnology==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaTechnology)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaComplication",operationRecord.AnaesthesiaComplication==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaComplication)); + cmd.Parameters.Add(new SqlParameter("@SpecialEvent",operationRecord.SpecialEvent==null?(object)DBNull.Value:(object)operationRecord.SpecialEvent)); + cmd.Parameters.Add(new SqlParameter("@SuddenSituation",operationRecord.SuddenSituation==null?(object)DBNull.Value:(object)operationRecord.SuddenSituation)); + cmd.Parameters.Add(new SqlParameter("@ConditionChage",operationRecord.ConditionChage==null?(object)DBNull.Value:(object)operationRecord.ConditionChage)); + cmd.Parameters.Add(new SqlParameter("@RescueMeasures",operationRecord.RescueMeasures==null?(object)DBNull.Value:(object)operationRecord.RescueMeasures)); + cmd.Parameters.Add(new SqlParameter("@RescueTime",operationRecord.RescueTime==null?(object)DBNull.Value:(object)operationRecord.RescueTime)); + cmd.Parameters.Add(new SqlParameter("@RescuePerson",operationRecord.RescuePerson==null?(object)DBNull.Value:(object)operationRecord.RescuePerson)); + cmd.Parameters.Add(new SqlParameter("@RescueTechnology",operationRecord.RescueTechnology==null?(object)DBNull.Value:(object)operationRecord.RescueTechnology)); + cmd.Parameters.Add(new SqlParameter("@SpileInTime",operationRecord.SpileInTime==null?(object)DBNull.Value:(object)operationRecord.SpileInTime)); + cmd.Parameters.Add(new SqlParameter("@SpileOutTime",operationRecord.SpileOutTime==null?(object)DBNull.Value:(object)operationRecord.SpileOutTime)); + cmd.Parameters.Add(new SqlParameter("@SpileSituation",operationRecord.SpileSituation==null?(object)DBNull.Value:(object)operationRecord.SpileSituation)); + cmd.Parameters.Add(new SqlParameter("@SpileWard",operationRecord.SpileWard==null?(object)DBNull.Value:(object)operationRecord.SpileWard)); + cmd.Parameters.Add(new SqlParameter("@SpileBeforCondition",operationRecord.SpileBeforCondition==null?(object)DBNull.Value:(object)operationRecord.SpileBeforCondition)); + cmd.Parameters.Add(new SqlParameter("@SpileAffterCondition",operationRecord.SpileAffterCondition==null?(object)DBNull.Value:(object)operationRecord.SpileAffterCondition)); + cmd.Parameters.Add(new SqlParameter("@RefluxFlag",operationRecord.RefluxFlag==null?(object)DBNull.Value:(object)operationRecord.RefluxFlag)); + cmd.Parameters.Add(new SqlParameter("@MuscleStrengthRecovery",operationRecord.MuscleStrengthRecovery==null?(object)DBNull.Value:(object)operationRecord.MuscleStrengthRecovery)); + cmd.Parameters.Add(new SqlParameter("@CoughReflex",operationRecord.CoughReflex==null?(object)DBNull.Value:(object)operationRecord.CoughReflex)); + cmd.Parameters.Add(new SqlParameter("@InOperaRoomState",operationRecord.InOperaRoomState==null?(object)DBNull.Value:(object)operationRecord.InOperaRoomState)); + cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecord.BloodPressure==null?(object)DBNull.Value:(object)operationRecord.BloodPressure)); + cmd.Parameters.Add(new SqlParameter("@Tempeture",operationRecord.Tempeture==null?(object)DBNull.Value:(object)operationRecord.Tempeture)); + cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecord.Pulse==null?(object)DBNull.Value:(object)operationRecord.Pulse)); + cmd.Parameters.Add(new SqlParameter("@Breath",operationRecord.Breath==null?(object)DBNull.Value:(object)operationRecord.Breath)); + cmd.Parameters.Add(new SqlParameter("@IsolationIndicator",operationRecord.IsolationIndicator==null?(object)DBNull.Value:(object)operationRecord.IsolationIndicator)); + cmd.Parameters.Add(new SqlParameter("@AnesMachine",operationRecord.AnesMachine==null?(object)DBNull.Value:(object)operationRecord.AnesMachine)); + cmd.Parameters.Add(new SqlParameter("@ControlledAnalgesia",operationRecord.ControlledAnalgesia==null?(object)DBNull.Value:(object)operationRecord.ControlledAnalgesia)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaModel",operationRecord.AnalgesiaModel==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaModel)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaRate",operationRecord.AnalgesiaRate==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaRate)); + cmd.Parameters.Add(new SqlParameter("@AnalgesiaDrug",operationRecord.AnalgesiaDrug==null?(object)DBNull.Value:(object)operationRecord.AnalgesiaDrug)); + cmd.Parameters.Add(new SqlParameter("@AldreteScore",operationRecord.AldreteScore==null?(object)DBNull.Value:(object)operationRecord.AldreteScore)); + cmd.Parameters.Add(new SqlParameter("@RouteMonitoring",operationRecord.RouteMonitoring==null?(object)DBNull.Value:(object)operationRecord.RouteMonitoring)); + cmd.Parameters.Add(new SqlParameter("@Entourage",operationRecord.Entourage==null?(object)DBNull.Value:(object)operationRecord.Entourage)); + cmd.Parameters.Add(new SqlParameter("@Remark1",operationRecord.Remark1==null?(object)DBNull.Value:(object)operationRecord.Remark1)); + cmd.Parameters.Add(new SqlParameter("@Remark2",operationRecord.Remark2==null?(object)DBNull.Value:(object)operationRecord.Remark2)); + cmd.Parameters.Add(new SqlParameter("@Remark3",operationRecord.Remark3==null?(object)DBNull.Value:(object)operationRecord.Remark3)); + cmd.Parameters.Add(new SqlParameter("@Crystal",operationRecord.Crystal==null?(object)DBNull.Value:(object)operationRecord.Crystal)); + cmd.Parameters.Add(new SqlParameter("@Colloid",operationRecord.Colloid==null?(object)DBNull.Value:(object)operationRecord.Colloid)); + cmd.Parameters.Add(new SqlParameter("@InAmount",operationRecord.InAmount==null?(object)DBNull.Value:(object)operationRecord.InAmount)); + cmd.Parameters.Add(new SqlParameter("@OutAmount",operationRecord.OutAmount==null?(object)DBNull.Value:(object)operationRecord.OutAmount)); + cmd.Parameters.Add(new SqlParameter("@OperationTimeSpan",operationRecord.OperationTimeSpan==null?(object)DBNull.Value:(object)operationRecord.OperationTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@AnaesthesiaTimeSpan",operationRecord.AnaesthesiaTimeSpan==null?(object)DBNull.Value:(object)operationRecord.AnaesthesiaTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@RoomTimeSpan",operationRecord.RoomTimeSpan==null?(object)DBNull.Value:(object)operationRecord.RoomTimeSpan)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaDoctorTimeMinute",operationRecord.AnesthesiaDoctorTimeMinute==null?(object)DBNull.Value:(object)operationRecord.AnesthesiaDoctorTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@anesthesiaDoctorSucceedTimeMinute",operationRecord.AnesthesiaDoctorSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.AnesthesiaDoctorSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@instrumentNurseTimeMinute",operationRecord.InstrumentNurseTimeMinute==null?(object)DBNull.Value:(object)operationRecord.InstrumentNurseTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@instrumentNurseSucceedTimeMinute",operationRecord.InstrumentNurseSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.InstrumentNurseSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@tourNurseTimeMinute",operationRecord.TourNurseTimeMinute==null?(object)DBNull.Value:(object)operationRecord.TourNurseTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@tourNurseSucceedTimeMinute",operationRecord.TourNurseSucceedTimeMinute==null?(object)DBNull.Value:(object)operationRecord.TourNurseSucceedTimeMinute)); + cmd.Parameters.Add(new SqlParameter("@RecordPageCount",operationRecord.RecordPageCount==null?(object)DBNull.Value:(object)operationRecord.RecordPageCount)); + cmd.Parameters.Add(new SqlParameter("@SignName",operationRecord.SignName==null?(object)DBNull.Value:(object)operationRecord.SignName)); + cmd.Parameters.Add(new SqlParameter("@SignTime",operationRecord.SignTime==null?(object)DBNull.Value:(object)operationRecord.SignTime)); + cmd.Parameters.Add(new SqlParameter("@RoomId",operationRecord.RoomId.HasValue?(object)operationRecord.RoomId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@State",operationRecord.State.HasValue?(object)operationRecord.State.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@RecoverId",operationRecord.RecoverId.HasValue?(object)operationRecord.RecoverId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecord.OperatorNo==null?(object)DBNull.Value:(object)operationRecord.OperatorNo)); + cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecord.OperatorName==null?(object)DBNull.Value:(object)operationRecord.OperatorName)); + cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecord.OperateDate.HasValue?(object)operationRecord.OperateDate.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@Remarks",operationRecord.Remarks==null?(object)DBNull.Value:(object)operationRecord.Remarks)); + cmd.Parameters.Add(new SqlParameter("@Id", operationRecord.Id)); + return cmd.ExecuteNonQuery(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(OperationRecord operationRecord) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteUpdateCommand(cmd, operationRecord); + } + } + } + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(Connection connection,OperationRecord operationRecord) + { + return ExcuteUpdateCommand(connection.Command, operationRecord); + } + /// + /// 执行更新命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters) + { + //解析过滤部份Sql语句 + string updateString = oql;// SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); + cmd.CommandText = "update OperationRecord 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(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + 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); + } + } + } + + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Update(Connection connection, string oql, ParameterList parameters) + { + return ExcuteUpdateCommand(connection.Command, oql, parameters); + } + #endregion + + #region 查询实体集合 + /// + /// 执行Command获取对象列表 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体类对象列表 + internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth) + { + List operationRecordList = new List(); + using (SqlDataReader dr = cmd.ExecuteReader()) + { + while (dr.Read()) + { + OperationRecord operationRecord = DataReaderToEntity(dr); + operationRecordList.Add(operationRecord); + } + } + return operationRecordList; + } + /// + /// 执行查询命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); + if (filterString != string.Empty) + { + if(filterString.Trim().ToLower().IndexOf("order ")!=0) + filterString = " where " + filterString; + } + cmd.Parameters.Clear(); + cmd.CommandText = "select * from OperationRecord " + filterString; + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 实体类对象集合 + internal static List Select() + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + cmd.CommandText = "select * from OperationRecord"; + return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1); + } + } + } + /// + /// 根据对象查询语句查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(RecursiveType recursiveType, int recursiveDepth) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + cmd.CommandText = "select * from OperationRecord"; + return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + internal static List 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); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List 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); + } + } + } + + /// + /// 根据对象查询语句查询实体集合(启用事务) + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + + /// + /// 递归查询单个实体 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecord ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth) + { + OperationRecord operationRecord=null; + using (SqlDataReader dr = cmd.ExecuteReader()) + { + if(dr.Read()) + operationRecord = DataReaderToEntity(dr); + } + if(operationRecord==null) + return operationRecord; + return operationRecord; + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); + if(filterString!=string.Empty) + { + filterString=" where "+filterString; + } + cmd.CommandText = "select * from OperationRecord " + 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); + } + + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecord 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); + } + } + } + + /// + /// 更据对象查询语句查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static OperationRecord SelectSingle(string oql, ParameterList parameters) + { + return SelectSingle(oql,parameters,RecursiveType.Parent,1); + } + + /// + /// 更据对象查询语句并启用事务查询单个实体 + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static OperationRecord SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 更据主键值递归查询单个实体 + /// + /// Command对象 + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecord SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth) + { + cmd.Parameters.Clear(); + if(id.HasValue) + { + cmd.CommandText = "select * from OperationRecord where Id=@pk"; + cmd.Parameters.Add(new SqlParameter("@pk",id.Value)); + } + else + { + cmd.CommandText = "select * from OperationRecord where Id is null"; + } + return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + internal static OperationRecord SelectSingle(int? id) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return SelectSingle(cmd,id,RecursiveType.Parent,1); + } + } + } + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体类对象 + internal static OperationRecord 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); + } + } + } + + /// + /// 使用事务并按主键字段查询特定实体 + /// + /// 连接对象 + /// 主键值 + /// 实体类对象 + internal static OperationRecord SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth) + { + return SelectSingle(connection.Command, id, recursiveType, recursiveDepth); + } + #endregion + + + /// + /// 从DataReader中取出值生成实体对象 + /// + /// 查询对象 + /// 过滤条件字符串 + private static OperationRecord DataReaderToEntity(SqlDataReader dr) + { + OperationRecord entity = new OperationRecord (); + 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["OperationBeginTime"]!=System.DBNull.Value) + { + entity.OperationBeginTime=Convert.ToDateTime(dr["OperationBeginTime"]); + } + if(dr["OperationEndTime"]!=System.DBNull.Value) + { + entity.OperationEndTime=Convert.ToDateTime(dr["OperationEndTime"]); + } + if(dr["AnesthesiaBeginTime"]!=System.DBNull.Value) + { + entity.AnesthesiaBeginTime=Convert.ToDateTime(dr["AnesthesiaBeginTime"]); + } + if(dr["AnesthesiaEndTime"]!=System.DBNull.Value) + { + entity.AnesthesiaEndTime=Convert.ToDateTime(dr["AnesthesiaEndTime"]); + } + if(dr["ASALevel"]!=System.DBNull.Value) + { + entity.ASALevel=Convert.ToInt32(dr["ASALevel"]); + } + if(dr["SpecialCase"]!=System.DBNull.Value) + { + entity.SpecialCase=dr["SpecialCase"].ToString(); + } + if(dr["Fasting"]!=System.DBNull.Value) + { + entity.Fasting=Convert.ToInt32(dr["Fasting"]); + } + if(dr["BloodType"]!=System.DBNull.Value) + { + entity.BloodType=dr["BloodType"].ToString(); + } + if(dr["OperationDate"]!=System.DBNull.Value) + { + entity.OperationDate=dr["OperationDate"].ToString(); + } + if(dr["OpeSpecialCondition"]!=System.DBNull.Value) + { + entity.OpeSpecialCondition=dr["OpeSpecialCondition"].ToString(); + } + if(dr["BMI"]!=System.DBNull.Value) + { + entity.BMI=dr["BMI"].ToString(); + } + if(dr["BeforeDrugs"]!=System.DBNull.Value) + { + entity.BeforeDrugs=dr["BeforeDrugs"].ToString(); + } + if(dr["AnaesthesiaMethodName"]!=System.DBNull.Value) + { + entity.AnaesthesiaMethodName=dr["AnaesthesiaMethodName"].ToString(); + } + if(dr["AnaesthesiaTechnology"]!=System.DBNull.Value) + { + entity.AnaesthesiaTechnology=dr["AnaesthesiaTechnology"].ToString(); + } + if(dr["AnaesthesiaComplication"]!=System.DBNull.Value) + { + entity.AnaesthesiaComplication=dr["AnaesthesiaComplication"].ToString(); + } + if(dr["SpecialEvent"]!=System.DBNull.Value) + { + entity.SpecialEvent=dr["SpecialEvent"].ToString(); + } + if(dr["SuddenSituation"]!=System.DBNull.Value) + { + entity.SuddenSituation=dr["SuddenSituation"].ToString(); + } + if(dr["ConditionChage"]!=System.DBNull.Value) + { + entity.ConditionChage=dr["ConditionChage"].ToString(); + } + if(dr["RescueMeasures"]!=System.DBNull.Value) + { + entity.RescueMeasures=dr["RescueMeasures"].ToString(); + } + if(dr["RescueTime"]!=System.DBNull.Value) + { + entity.RescueTime=dr["RescueTime"].ToString(); + } + if(dr["RescuePerson"]!=System.DBNull.Value) + { + entity.RescuePerson=dr["RescuePerson"].ToString(); + } + if(dr["RescueTechnology"]!=System.DBNull.Value) + { + entity.RescueTechnology=dr["RescueTechnology"].ToString(); + } + if(dr["SpileInTime"]!=System.DBNull.Value) + { + entity.SpileInTime=dr["SpileInTime"].ToString(); + } + if(dr["SpileOutTime"]!=System.DBNull.Value) + { + entity.SpileOutTime=dr["SpileOutTime"].ToString(); + } + if(dr["SpileSituation"]!=System.DBNull.Value) + { + entity.SpileSituation=dr["SpileSituation"].ToString(); + } + if(dr["SpileWard"]!=System.DBNull.Value) + { + entity.SpileWard=dr["SpileWard"].ToString(); + } + if(dr["SpileBeforCondition"]!=System.DBNull.Value) + { + entity.SpileBeforCondition=dr["SpileBeforCondition"].ToString(); + } + if(dr["SpileAffterCondition"]!=System.DBNull.Value) + { + entity.SpileAffterCondition=dr["SpileAffterCondition"].ToString(); + } + if(dr["RefluxFlag"]!=System.DBNull.Value) + { + entity.RefluxFlag=dr["RefluxFlag"].ToString(); + } + if(dr["MuscleStrengthRecovery"]!=System.DBNull.Value) + { + entity.MuscleStrengthRecovery=dr["MuscleStrengthRecovery"].ToString(); + } + if(dr["CoughReflex"]!=System.DBNull.Value) + { + entity.CoughReflex=dr["CoughReflex"].ToString(); + } + if(dr["InOperaRoomState"]!=System.DBNull.Value) + { + entity.InOperaRoomState=dr["InOperaRoomState"].ToString(); + } + if(dr["BloodPressure"]!=System.DBNull.Value) + { + entity.BloodPressure=dr["BloodPressure"].ToString(); + } + if(dr["Tempeture"]!=System.DBNull.Value) + { + entity.Tempeture=dr["Tempeture"].ToString(); + } + if(dr["Pulse"]!=System.DBNull.Value) + { + entity.Pulse=dr["Pulse"].ToString(); + } + if(dr["Breath"]!=System.DBNull.Value) + { + entity.Breath=dr["Breath"].ToString(); + } + if(dr["IsolationIndicator"]!=System.DBNull.Value) + { + entity.IsolationIndicator=dr["IsolationIndicator"].ToString(); + } + if(dr["AnesMachine"]!=System.DBNull.Value) + { + entity.AnesMachine=dr["AnesMachine"].ToString(); + } + if(dr["ControlledAnalgesia"]!=System.DBNull.Value) + { + entity.ControlledAnalgesia=dr["ControlledAnalgesia"].ToString(); + } + if(dr["AnalgesiaModel"]!=System.DBNull.Value) + { + entity.AnalgesiaModel=dr["AnalgesiaModel"].ToString(); + } + if(dr["AnalgesiaRate"]!=System.DBNull.Value) + { + entity.AnalgesiaRate=dr["AnalgesiaRate"].ToString(); + } + if(dr["AnalgesiaDrug"]!=System.DBNull.Value) + { + entity.AnalgesiaDrug=dr["AnalgesiaDrug"].ToString(); + } + if(dr["AldreteScore"]!=System.DBNull.Value) + { + entity.AldreteScore=dr["AldreteScore"].ToString(); + } + if(dr["RouteMonitoring"]!=System.DBNull.Value) + { + entity.RouteMonitoring=dr["RouteMonitoring"].ToString(); + } + if(dr["Entourage"]!=System.DBNull.Value) + { + entity.Entourage=dr["Entourage"].ToString(); + } + if(dr["Remark1"]!=System.DBNull.Value) + { + entity.Remark1=dr["Remark1"].ToString(); + } + if(dr["Remark2"]!=System.DBNull.Value) + { + entity.Remark2=dr["Remark2"].ToString(); + } + if(dr["Remark3"]!=System.DBNull.Value) + { + entity.Remark3=dr["Remark3"].ToString(); + } + if(dr["Crystal"]!=System.DBNull.Value) + { + entity.Crystal=dr["Crystal"].ToString(); + } + if(dr["Colloid"]!=System.DBNull.Value) + { + entity.Colloid=dr["Colloid"].ToString(); + } + if(dr["InAmount"]!=System.DBNull.Value) + { + entity.InAmount=dr["InAmount"].ToString(); + } + if(dr["OutAmount"]!=System.DBNull.Value) + { + entity.OutAmount=dr["OutAmount"].ToString(); + } + if(dr["OperationTimeSpan"]!=System.DBNull.Value) + { + entity.OperationTimeSpan=dr["OperationTimeSpan"].ToString(); + } + if(dr["AnaesthesiaTimeSpan"]!=System.DBNull.Value) + { + entity.AnaesthesiaTimeSpan=dr["AnaesthesiaTimeSpan"].ToString(); + } + if(dr["RoomTimeSpan"]!=System.DBNull.Value) + { + entity.RoomTimeSpan=dr["RoomTimeSpan"].ToString(); + } + if(dr["AnesthesiaDoctorTimeMinute"]!=System.DBNull.Value) + { + entity.AnesthesiaDoctorTimeMinute=dr["AnesthesiaDoctorTimeMinute"].ToString(); + } + if(dr["anesthesiaDoctorSucceedTimeMinute"]!=System.DBNull.Value) + { + entity.AnesthesiaDoctorSucceedTimeMinute=dr["anesthesiaDoctorSucceedTimeMinute"].ToString(); + } + if(dr["instrumentNurseTimeMinute"]!=System.DBNull.Value) + { + entity.InstrumentNurseTimeMinute=dr["instrumentNurseTimeMinute"].ToString(); + } + if(dr["instrumentNurseSucceedTimeMinute"]!=System.DBNull.Value) + { + entity.InstrumentNurseSucceedTimeMinute=dr["instrumentNurseSucceedTimeMinute"].ToString(); + } + if(dr["tourNurseTimeMinute"]!=System.DBNull.Value) + { + entity.TourNurseTimeMinute=dr["tourNurseTimeMinute"].ToString(); + } + if(dr["tourNurseSucceedTimeMinute"]!=System.DBNull.Value) + { + entity.TourNurseSucceedTimeMinute=dr["tourNurseSucceedTimeMinute"].ToString(); + } + if(dr["RecordPageCount"]!=System.DBNull.Value) + { + entity.RecordPageCount=dr["RecordPageCount"].ToString(); + } + if(dr["SignName"]!=System.DBNull.Value) + { + entity.SignName=dr["SignName"].ToString(); + } + if(dr["SignTime"]!=System.DBNull.Value) + { + entity.SignTime=dr["SignTime"].ToString(); + } + if(dr["RoomId"]!=System.DBNull.Value) + { + entity.RoomId=Convert.ToInt32(dr["RoomId"]); + } + if(dr["State"]!=System.DBNull.Value) + { + entity.State=Convert.ToInt32(dr["State"]); + } + if(dr["RecoverId"]!=System.DBNull.Value) + { + entity.RecoverId=Convert.ToInt32(dr["RecoverId"]); + } + 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"]); + } + if(dr["Remarks"]!=System.DBNull.Value) + { + entity.Remarks=dr["Remarks"].ToString(); + } + return entity; + } + } +} + diff --git a/AIMSEntity/DAL/AutoGenerate/DOperationRecordInstrumentList.cs b/AIMSEntity/DAL/AutoGenerate/DOperationRecordInstrumentList.cs index e155821..c78adb5 100644 --- a/AIMSEntity/DAL/AutoGenerate/DOperationRecordInstrumentList.cs +++ b/AIMSEntity/DAL/AutoGenerate/DOperationRecordInstrumentList.cs @@ -21,7 +21,7 @@ namespace AIMSDAL internal static int Insert(SqlCommand cmd, OperationRecordInstrumentList operationRecordInstrumentList) { cmd.Parameters.Clear(); - cmd.CommandText = "insert into OperationRecordInstrumentList (OperationRecordId,ApplianceUseType,TagPicture,Remark,JsonTextData,OperatorNo,OperatorName,OperateDate) values (@OperationRecordId,@ApplianceUseType,@TagPicture,@Remark,@JsonTextData,@OperatorNo,@OperatorName,@OperateDate);select @@identity"; + cmd.CommandText = "insert into OperationRecordInstrumentList (OperationRecordId,ApplianceUseType,TagPicture,Remark,JsonTextData,OperatorNo,OperatorName,OperateDate,OperationName,OperationNameRermark,DiseaseName,OperationSite,SkinBackInfo,BeforSkinInfo,DeepVeniPuncture,SpecialInfected,GastricCanal,Catheterization,InBloodType,InBloodName,InBloodXXB,InBloodXFHXB,InBloodXJ,InBloodLCD,InBloodZTX,InBloodQT,InBloodDose,veinInfuse,InDose,OutDose,ImagingData,Specimen,SpecimenCount,PathologyCount,SpecimenState,SpecimanToFrozen,specimanToPathology,SubmitForInspection,SubmitPerson,OpeOutState,OpeSpecialGoods,SpecialProblems,antibioticUserTime,BeforInvasive,TourniquetBegin1,TourniquetEnd1,TourniquetBegin2,TourniquetEnd2,TourniquetBegin3,TourniquetEnd3,TourniquetPosition,NegativePlatePosition,InWardTime,EMRInfo,Consciousness,BloodPressure,Pulse,Breathing,SkinType,HbsAg,afterSkinStatus,drainage,InBloodPosition,AsepticBagMonitor,DrugAllergy,OperationDoctor,InstrumentNurse,InstrumentNurseSucceed,InstrumentNurseSucceedTime,TourNurse,TourNurseSucceed,TourNurseSucceedTime,OutInstrumentNurse,OutInstrumentNurseSucceed,OutTourNurse,OutTourNurseSucceed,OtherInfo,OperationNurse,WardNurse) values (@OperationRecordId,@ApplianceUseType,@TagPicture,@Remark,@JsonTextData,@OperatorNo,@OperatorName,@OperateDate,@OperationName,@OperationNameRermark,@DiseaseName,@OperationSite,@SkinBackInfo,@BeforSkinInfo,@DeepVeniPuncture,@SpecialInfected,@GastricCanal,@Catheterization,@InBloodType,@InBloodName,@InBloodXXB,@InBloodXFHXB,@InBloodXJ,@InBloodLCD,@InBloodZTX,@InBloodQT,@InBloodDose,@veinInfuse,@InDose,@OutDose,@ImagingData,@Specimen,@SpecimenCount,@PathologyCount,@SpecimenState,@SpecimanToFrozen,@specimanToPathology,@SubmitForInspection,@SubmitPerson,@OpeOutState,@OpeSpecialGoods,@SpecialProblems,@antibioticUserTime,@BeforInvasive,@TourniquetBegin1,@TourniquetEnd1,@TourniquetBegin2,@TourniquetEnd2,@TourniquetBegin3,@TourniquetEnd3,@TourniquetPosition,@NegativePlatePosition,@InWardTime,@EMRInfo,@Consciousness,@BloodPressure,@Pulse,@Breathing,@SkinType,@HbsAg,@afterSkinStatus,@drainage,@InBloodPosition,@AsepticBagMonitor,@DrugAllergy,@OperationDoctor,@InstrumentNurse,@InstrumentNurseSucceed,@InstrumentNurseSucceedTime,@TourNurse,@TourNurseSucceed,@TourNurseSucceedTime,@OutInstrumentNurse,@OutInstrumentNurseSucceed,@OutTourNurse,@OutTourNurseSucceed,@OtherInfo,@OperationNurse,@WardNurse);select @@identity"; //从实体中取出值放入Command的参数列表 cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecordInstrumentList.OperationRecordId.HasValue?(object)operationRecordInstrumentList.OperationRecordId.Value:(object)DBNull.Value)); cmd.Parameters.Add(new SqlParameter("@ApplianceUseType",operationRecordInstrumentList.ApplianceUseType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.ApplianceUseType)); @@ -31,6 +31,77 @@ namespace AIMSDAL cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecordInstrumentList.OperatorNo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperatorNo)); cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecordInstrumentList.OperatorName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperatorName)); cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecordInstrumentList.OperateDate.HasValue?(object)operationRecordInstrumentList.OperateDate.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationName",operationRecordInstrumentList.OperationName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationName)); + cmd.Parameters.Add(new SqlParameter("@OperationNameRermark",operationRecordInstrumentList.OperationNameRermark==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationNameRermark)); + cmd.Parameters.Add(new SqlParameter("@DiseaseName",operationRecordInstrumentList.DiseaseName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DiseaseName)); + cmd.Parameters.Add(new SqlParameter("@OperationSite",operationRecordInstrumentList.OperationSite==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationSite)); + cmd.Parameters.Add(new SqlParameter("@SkinBackInfo",operationRecordInstrumentList.SkinBackInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SkinBackInfo)); + cmd.Parameters.Add(new SqlParameter("@BeforSkinInfo",operationRecordInstrumentList.BeforSkinInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BeforSkinInfo)); + cmd.Parameters.Add(new SqlParameter("@DeepVeniPuncture",operationRecordInstrumentList.DeepVeniPuncture==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DeepVeniPuncture)); + cmd.Parameters.Add(new SqlParameter("@SpecialInfected",operationRecordInstrumentList.SpecialInfected==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecialInfected)); + cmd.Parameters.Add(new SqlParameter("@GastricCanal",operationRecordInstrumentList.GastricCanal==null?(object)DBNull.Value:(object)operationRecordInstrumentList.GastricCanal)); + cmd.Parameters.Add(new SqlParameter("@Catheterization",operationRecordInstrumentList.Catheterization==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Catheterization)); + cmd.Parameters.Add(new SqlParameter("@InBloodType",operationRecordInstrumentList.InBloodType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodType)); + cmd.Parameters.Add(new SqlParameter("@InBloodName",operationRecordInstrumentList.InBloodName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodName)); + cmd.Parameters.Add(new SqlParameter("@InBloodXXB",operationRecordInstrumentList.InBloodXXB==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXXB)); + cmd.Parameters.Add(new SqlParameter("@InBloodXFHXB",operationRecordInstrumentList.InBloodXFHXB==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXFHXB)); + cmd.Parameters.Add(new SqlParameter("@InBloodXJ",operationRecordInstrumentList.InBloodXJ==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXJ)); + cmd.Parameters.Add(new SqlParameter("@InBloodLCD",operationRecordInstrumentList.InBloodLCD==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodLCD)); + cmd.Parameters.Add(new SqlParameter("@InBloodZTX",operationRecordInstrumentList.InBloodZTX==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodZTX)); + cmd.Parameters.Add(new SqlParameter("@InBloodQT",operationRecordInstrumentList.InBloodQT==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodQT)); + cmd.Parameters.Add(new SqlParameter("@InBloodDose",operationRecordInstrumentList.InBloodDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodDose)); + cmd.Parameters.Add(new SqlParameter("@veinInfuse",operationRecordInstrumentList.VeinInfuse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.VeinInfuse)); + cmd.Parameters.Add(new SqlParameter("@InDose",operationRecordInstrumentList.InDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InDose)); + cmd.Parameters.Add(new SqlParameter("@OutDose",operationRecordInstrumentList.OutDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutDose)); + cmd.Parameters.Add(new SqlParameter("@ImagingData",operationRecordInstrumentList.ImagingData==null?(object)DBNull.Value:(object)operationRecordInstrumentList.ImagingData)); + cmd.Parameters.Add(new SqlParameter("@Specimen",operationRecordInstrumentList.Specimen==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Specimen)); + cmd.Parameters.Add(new SqlParameter("@SpecimenCount",operationRecordInstrumentList.SpecimenCount==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimenCount)); + cmd.Parameters.Add(new SqlParameter("@PathologyCount",operationRecordInstrumentList.PathologyCount==null?(object)DBNull.Value:(object)operationRecordInstrumentList.PathologyCount)); + cmd.Parameters.Add(new SqlParameter("@SpecimenState",operationRecordInstrumentList.SpecimenState==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimenState)); + cmd.Parameters.Add(new SqlParameter("@SpecimanToFrozen",operationRecordInstrumentList.SpecimanToFrozen==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimanToFrozen)); + cmd.Parameters.Add(new SqlParameter("@specimanToPathology",operationRecordInstrumentList.SpecimanToPathology==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimanToPathology)); + cmd.Parameters.Add(new SqlParameter("@SubmitForInspection",operationRecordInstrumentList.SubmitForInspection==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SubmitForInspection)); + cmd.Parameters.Add(new SqlParameter("@SubmitPerson",operationRecordInstrumentList.SubmitPerson==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SubmitPerson)); + cmd.Parameters.Add(new SqlParameter("@OpeOutState",operationRecordInstrumentList.OpeOutState==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OpeOutState)); + cmd.Parameters.Add(new SqlParameter("@OpeSpecialGoods",operationRecordInstrumentList.OpeSpecialGoods==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OpeSpecialGoods)); + cmd.Parameters.Add(new SqlParameter("@SpecialProblems",operationRecordInstrumentList.SpecialProblems==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecialProblems)); + cmd.Parameters.Add(new SqlParameter("@antibioticUserTime",operationRecordInstrumentList.AntibioticUserTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AntibioticUserTime)); + cmd.Parameters.Add(new SqlParameter("@BeforInvasive",operationRecordInstrumentList.BeforInvasive==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BeforInvasive)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin1",operationRecordInstrumentList.TourniquetBegin1==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin1)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd1",operationRecordInstrumentList.TourniquetEnd1==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd1)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin2",operationRecordInstrumentList.TourniquetBegin2==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin2)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd2",operationRecordInstrumentList.TourniquetEnd2==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd2)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin3",operationRecordInstrumentList.TourniquetBegin3==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin3)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd3",operationRecordInstrumentList.TourniquetEnd3==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd3)); + cmd.Parameters.Add(new SqlParameter("@TourniquetPosition",operationRecordInstrumentList.TourniquetPosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetPosition)); + cmd.Parameters.Add(new SqlParameter("@NegativePlatePosition",operationRecordInstrumentList.NegativePlatePosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.NegativePlatePosition)); + cmd.Parameters.Add(new SqlParameter("@InWardTime",operationRecordInstrumentList.InWardTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InWardTime)); + cmd.Parameters.Add(new SqlParameter("@EMRInfo",operationRecordInstrumentList.EMRInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.EMRInfo)); + cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecordInstrumentList.Consciousness==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Consciousness)); + cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecordInstrumentList.BloodPressure==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BloodPressure)); + cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecordInstrumentList.Pulse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Pulse)); + cmd.Parameters.Add(new SqlParameter("@Breathing",operationRecordInstrumentList.Breathing==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Breathing)); + cmd.Parameters.Add(new SqlParameter("@SkinType",operationRecordInstrumentList.SkinType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SkinType)); + cmd.Parameters.Add(new SqlParameter("@HbsAg",operationRecordInstrumentList.HbsAg==null?(object)DBNull.Value:(object)operationRecordInstrumentList.HbsAg)); + cmd.Parameters.Add(new SqlParameter("@afterSkinStatus",operationRecordInstrumentList.AfterSkinStatus==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AfterSkinStatus)); + cmd.Parameters.Add(new SqlParameter("@drainage",operationRecordInstrumentList.Drainage==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Drainage)); + cmd.Parameters.Add(new SqlParameter("@InBloodPosition",operationRecordInstrumentList.InBloodPosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodPosition)); + cmd.Parameters.Add(new SqlParameter("@AsepticBagMonitor",operationRecordInstrumentList.AsepticBagMonitor==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AsepticBagMonitor)); + cmd.Parameters.Add(new SqlParameter("@DrugAllergy",operationRecordInstrumentList.DrugAllergy==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DrugAllergy)); + cmd.Parameters.Add(new SqlParameter("@OperationDoctor",operationRecordInstrumentList.OperationDoctor==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationDoctor)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurse",operationRecordInstrumentList.InstrumentNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurse)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurseSucceed",operationRecordInstrumentList.InstrumentNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurseSucceedTime",operationRecordInstrumentList.InstrumentNurseSucceedTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurseSucceedTime)); + cmd.Parameters.Add(new SqlParameter("@TourNurse",operationRecordInstrumentList.TourNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurse)); + cmd.Parameters.Add(new SqlParameter("@TourNurseSucceed",operationRecordInstrumentList.TourNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@TourNurseSucceedTime",operationRecordInstrumentList.TourNurseSucceedTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurseSucceedTime)); + cmd.Parameters.Add(new SqlParameter("@OutInstrumentNurse",operationRecordInstrumentList.OutInstrumentNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutInstrumentNurse)); + cmd.Parameters.Add(new SqlParameter("@OutInstrumentNurseSucceed",operationRecordInstrumentList.OutInstrumentNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutInstrumentNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@OutTourNurse",operationRecordInstrumentList.OutTourNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutTourNurse)); + cmd.Parameters.Add(new SqlParameter("@OutTourNurseSucceed",operationRecordInstrumentList.OutTourNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutTourNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@OtherInfo",operationRecordInstrumentList.OtherInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OtherInfo)); + cmd.Parameters.Add(new SqlParameter("@OperationNurse",operationRecordInstrumentList.OperationNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationNurse)); + cmd.Parameters.Add(new SqlParameter("@WardNurse",operationRecordInstrumentList.WardNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.WardNurse)); return Convert.ToInt32(cmd.ExecuteScalar()); } /// @@ -175,7 +246,7 @@ namespace AIMSDAL /// 影响的记录行数 internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecordInstrumentList operationRecordInstrumentList) { - cmd.CommandText = "update OperationRecordInstrumentList set OperationRecordId=@OperationRecordId,ApplianceUseType=@ApplianceUseType,TagPicture=@TagPicture,Remark=@Remark,JsonTextData=@JsonTextData,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate where Id=@Id"; + cmd.CommandText = "update OperationRecordInstrumentList set OperationRecordId=@OperationRecordId,ApplianceUseType=@ApplianceUseType,TagPicture=@TagPicture,Remark=@Remark,JsonTextData=@JsonTextData,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,OperationName=@OperationName,OperationNameRermark=@OperationNameRermark,DiseaseName=@DiseaseName,OperationSite=@OperationSite,SkinBackInfo=@SkinBackInfo,BeforSkinInfo=@BeforSkinInfo,DeepVeniPuncture=@DeepVeniPuncture,SpecialInfected=@SpecialInfected,GastricCanal=@GastricCanal,Catheterization=@Catheterization,InBloodType=@InBloodType,InBloodName=@InBloodName,InBloodXXB=@InBloodXXB,InBloodXFHXB=@InBloodXFHXB,InBloodXJ=@InBloodXJ,InBloodLCD=@InBloodLCD,InBloodZTX=@InBloodZTX,InBloodQT=@InBloodQT,InBloodDose=@InBloodDose,veinInfuse=@veinInfuse,InDose=@InDose,OutDose=@OutDose,ImagingData=@ImagingData,Specimen=@Specimen,SpecimenCount=@SpecimenCount,PathologyCount=@PathologyCount,SpecimenState=@SpecimenState,SpecimanToFrozen=@SpecimanToFrozen,specimanToPathology=@specimanToPathology,SubmitForInspection=@SubmitForInspection,SubmitPerson=@SubmitPerson,OpeOutState=@OpeOutState,OpeSpecialGoods=@OpeSpecialGoods,SpecialProblems=@SpecialProblems,antibioticUserTime=@antibioticUserTime,BeforInvasive=@BeforInvasive,TourniquetBegin1=@TourniquetBegin1,TourniquetEnd1=@TourniquetEnd1,TourniquetBegin2=@TourniquetBegin2,TourniquetEnd2=@TourniquetEnd2,TourniquetBegin3=@TourniquetBegin3,TourniquetEnd3=@TourniquetEnd3,TourniquetPosition=@TourniquetPosition,NegativePlatePosition=@NegativePlatePosition,InWardTime=@InWardTime,EMRInfo=@EMRInfo,Consciousness=@Consciousness,BloodPressure=@BloodPressure,Pulse=@Pulse,Breathing=@Breathing,SkinType=@SkinType,HbsAg=@HbsAg,afterSkinStatus=@afterSkinStatus,drainage=@drainage,InBloodPosition=@InBloodPosition,AsepticBagMonitor=@AsepticBagMonitor,DrugAllergy=@DrugAllergy,OperationDoctor=@OperationDoctor,InstrumentNurse=@InstrumentNurse,InstrumentNurseSucceed=@InstrumentNurseSucceed,InstrumentNurseSucceedTime=@InstrumentNurseSucceedTime,TourNurse=@TourNurse,TourNurseSucceed=@TourNurseSucceed,TourNurseSucceedTime=@TourNurseSucceedTime,OutInstrumentNurse=@OutInstrumentNurse,OutInstrumentNurseSucceed=@OutInstrumentNurseSucceed,OutTourNurse=@OutTourNurse,OutTourNurseSucceed=@OutTourNurseSucceed,OtherInfo=@OtherInfo,OperationNurse=@OperationNurse,WardNurse=@WardNurse where Id=@Id"; //从实体中取出值放入Command的参数列表 cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecordInstrumentList.OperationRecordId.HasValue?(object)operationRecordInstrumentList.OperationRecordId.Value:(object)DBNull.Value)); cmd.Parameters.Add(new SqlParameter("@ApplianceUseType",operationRecordInstrumentList.ApplianceUseType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.ApplianceUseType)); @@ -185,6 +256,77 @@ namespace AIMSDAL cmd.Parameters.Add(new SqlParameter("@OperatorNo",operationRecordInstrumentList.OperatorNo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperatorNo)); cmd.Parameters.Add(new SqlParameter("@OperatorName",operationRecordInstrumentList.OperatorName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperatorName)); cmd.Parameters.Add(new SqlParameter("@OperateDate",operationRecordInstrumentList.OperateDate.HasValue?(object)operationRecordInstrumentList.OperateDate.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationName",operationRecordInstrumentList.OperationName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationName)); + cmd.Parameters.Add(new SqlParameter("@OperationNameRermark",operationRecordInstrumentList.OperationNameRermark==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationNameRermark)); + cmd.Parameters.Add(new SqlParameter("@DiseaseName",operationRecordInstrumentList.DiseaseName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DiseaseName)); + cmd.Parameters.Add(new SqlParameter("@OperationSite",operationRecordInstrumentList.OperationSite==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationSite)); + cmd.Parameters.Add(new SqlParameter("@SkinBackInfo",operationRecordInstrumentList.SkinBackInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SkinBackInfo)); + cmd.Parameters.Add(new SqlParameter("@BeforSkinInfo",operationRecordInstrumentList.BeforSkinInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BeforSkinInfo)); + cmd.Parameters.Add(new SqlParameter("@DeepVeniPuncture",operationRecordInstrumentList.DeepVeniPuncture==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DeepVeniPuncture)); + cmd.Parameters.Add(new SqlParameter("@SpecialInfected",operationRecordInstrumentList.SpecialInfected==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecialInfected)); + cmd.Parameters.Add(new SqlParameter("@GastricCanal",operationRecordInstrumentList.GastricCanal==null?(object)DBNull.Value:(object)operationRecordInstrumentList.GastricCanal)); + cmd.Parameters.Add(new SqlParameter("@Catheterization",operationRecordInstrumentList.Catheterization==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Catheterization)); + cmd.Parameters.Add(new SqlParameter("@InBloodType",operationRecordInstrumentList.InBloodType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodType)); + cmd.Parameters.Add(new SqlParameter("@InBloodName",operationRecordInstrumentList.InBloodName==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodName)); + cmd.Parameters.Add(new SqlParameter("@InBloodXXB",operationRecordInstrumentList.InBloodXXB==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXXB)); + cmd.Parameters.Add(new SqlParameter("@InBloodXFHXB",operationRecordInstrumentList.InBloodXFHXB==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXFHXB)); + cmd.Parameters.Add(new SqlParameter("@InBloodXJ",operationRecordInstrumentList.InBloodXJ==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodXJ)); + cmd.Parameters.Add(new SqlParameter("@InBloodLCD",operationRecordInstrumentList.InBloodLCD==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodLCD)); + cmd.Parameters.Add(new SqlParameter("@InBloodZTX",operationRecordInstrumentList.InBloodZTX==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodZTX)); + cmd.Parameters.Add(new SqlParameter("@InBloodQT",operationRecordInstrumentList.InBloodQT==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodQT)); + cmd.Parameters.Add(new SqlParameter("@InBloodDose",operationRecordInstrumentList.InBloodDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodDose)); + cmd.Parameters.Add(new SqlParameter("@veinInfuse",operationRecordInstrumentList.VeinInfuse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.VeinInfuse)); + cmd.Parameters.Add(new SqlParameter("@InDose",operationRecordInstrumentList.InDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InDose)); + cmd.Parameters.Add(new SqlParameter("@OutDose",operationRecordInstrumentList.OutDose==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutDose)); + cmd.Parameters.Add(new SqlParameter("@ImagingData",operationRecordInstrumentList.ImagingData==null?(object)DBNull.Value:(object)operationRecordInstrumentList.ImagingData)); + cmd.Parameters.Add(new SqlParameter("@Specimen",operationRecordInstrumentList.Specimen==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Specimen)); + cmd.Parameters.Add(new SqlParameter("@SpecimenCount",operationRecordInstrumentList.SpecimenCount==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimenCount)); + cmd.Parameters.Add(new SqlParameter("@PathologyCount",operationRecordInstrumentList.PathologyCount==null?(object)DBNull.Value:(object)operationRecordInstrumentList.PathologyCount)); + cmd.Parameters.Add(new SqlParameter("@SpecimenState",operationRecordInstrumentList.SpecimenState==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimenState)); + cmd.Parameters.Add(new SqlParameter("@SpecimanToFrozen",operationRecordInstrumentList.SpecimanToFrozen==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimanToFrozen)); + cmd.Parameters.Add(new SqlParameter("@specimanToPathology",operationRecordInstrumentList.SpecimanToPathology==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecimanToPathology)); + cmd.Parameters.Add(new SqlParameter("@SubmitForInspection",operationRecordInstrumentList.SubmitForInspection==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SubmitForInspection)); + cmd.Parameters.Add(new SqlParameter("@SubmitPerson",operationRecordInstrumentList.SubmitPerson==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SubmitPerson)); + cmd.Parameters.Add(new SqlParameter("@OpeOutState",operationRecordInstrumentList.OpeOutState==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OpeOutState)); + cmd.Parameters.Add(new SqlParameter("@OpeSpecialGoods",operationRecordInstrumentList.OpeSpecialGoods==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OpeSpecialGoods)); + cmd.Parameters.Add(new SqlParameter("@SpecialProblems",operationRecordInstrumentList.SpecialProblems==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SpecialProblems)); + cmd.Parameters.Add(new SqlParameter("@antibioticUserTime",operationRecordInstrumentList.AntibioticUserTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AntibioticUserTime)); + cmd.Parameters.Add(new SqlParameter("@BeforInvasive",operationRecordInstrumentList.BeforInvasive==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BeforInvasive)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin1",operationRecordInstrumentList.TourniquetBegin1==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin1)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd1",operationRecordInstrumentList.TourniquetEnd1==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd1)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin2",operationRecordInstrumentList.TourniquetBegin2==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin2)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd2",operationRecordInstrumentList.TourniquetEnd2==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd2)); + cmd.Parameters.Add(new SqlParameter("@TourniquetBegin3",operationRecordInstrumentList.TourniquetBegin3==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetBegin3)); + cmd.Parameters.Add(new SqlParameter("@TourniquetEnd3",operationRecordInstrumentList.TourniquetEnd3==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetEnd3)); + cmd.Parameters.Add(new SqlParameter("@TourniquetPosition",operationRecordInstrumentList.TourniquetPosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourniquetPosition)); + cmd.Parameters.Add(new SqlParameter("@NegativePlatePosition",operationRecordInstrumentList.NegativePlatePosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.NegativePlatePosition)); + cmd.Parameters.Add(new SqlParameter("@InWardTime",operationRecordInstrumentList.InWardTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InWardTime)); + cmd.Parameters.Add(new SqlParameter("@EMRInfo",operationRecordInstrumentList.EMRInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.EMRInfo)); + cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecordInstrumentList.Consciousness==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Consciousness)); + cmd.Parameters.Add(new SqlParameter("@BloodPressure",operationRecordInstrumentList.BloodPressure==null?(object)DBNull.Value:(object)operationRecordInstrumentList.BloodPressure)); + cmd.Parameters.Add(new SqlParameter("@Pulse",operationRecordInstrumentList.Pulse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Pulse)); + cmd.Parameters.Add(new SqlParameter("@Breathing",operationRecordInstrumentList.Breathing==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Breathing)); + cmd.Parameters.Add(new SqlParameter("@SkinType",operationRecordInstrumentList.SkinType==null?(object)DBNull.Value:(object)operationRecordInstrumentList.SkinType)); + cmd.Parameters.Add(new SqlParameter("@HbsAg",operationRecordInstrumentList.HbsAg==null?(object)DBNull.Value:(object)operationRecordInstrumentList.HbsAg)); + cmd.Parameters.Add(new SqlParameter("@afterSkinStatus",operationRecordInstrumentList.AfterSkinStatus==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AfterSkinStatus)); + cmd.Parameters.Add(new SqlParameter("@drainage",operationRecordInstrumentList.Drainage==null?(object)DBNull.Value:(object)operationRecordInstrumentList.Drainage)); + cmd.Parameters.Add(new SqlParameter("@InBloodPosition",operationRecordInstrumentList.InBloodPosition==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InBloodPosition)); + cmd.Parameters.Add(new SqlParameter("@AsepticBagMonitor",operationRecordInstrumentList.AsepticBagMonitor==null?(object)DBNull.Value:(object)operationRecordInstrumentList.AsepticBagMonitor)); + cmd.Parameters.Add(new SqlParameter("@DrugAllergy",operationRecordInstrumentList.DrugAllergy==null?(object)DBNull.Value:(object)operationRecordInstrumentList.DrugAllergy)); + cmd.Parameters.Add(new SqlParameter("@OperationDoctor",operationRecordInstrumentList.OperationDoctor==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationDoctor)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurse",operationRecordInstrumentList.InstrumentNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurse)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurseSucceed",operationRecordInstrumentList.InstrumentNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@InstrumentNurseSucceedTime",operationRecordInstrumentList.InstrumentNurseSucceedTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.InstrumentNurseSucceedTime)); + cmd.Parameters.Add(new SqlParameter("@TourNurse",operationRecordInstrumentList.TourNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurse)); + cmd.Parameters.Add(new SqlParameter("@TourNurseSucceed",operationRecordInstrumentList.TourNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@TourNurseSucceedTime",operationRecordInstrumentList.TourNurseSucceedTime==null?(object)DBNull.Value:(object)operationRecordInstrumentList.TourNurseSucceedTime)); + cmd.Parameters.Add(new SqlParameter("@OutInstrumentNurse",operationRecordInstrumentList.OutInstrumentNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutInstrumentNurse)); + cmd.Parameters.Add(new SqlParameter("@OutInstrumentNurseSucceed",operationRecordInstrumentList.OutInstrumentNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutInstrumentNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@OutTourNurse",operationRecordInstrumentList.OutTourNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutTourNurse)); + cmd.Parameters.Add(new SqlParameter("@OutTourNurseSucceed",operationRecordInstrumentList.OutTourNurseSucceed==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OutTourNurseSucceed)); + cmd.Parameters.Add(new SqlParameter("@OtherInfo",operationRecordInstrumentList.OtherInfo==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OtherInfo)); + cmd.Parameters.Add(new SqlParameter("@OperationNurse",operationRecordInstrumentList.OperationNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.OperationNurse)); + cmd.Parameters.Add(new SqlParameter("@WardNurse",operationRecordInstrumentList.WardNurse==null?(object)DBNull.Value:(object)operationRecordInstrumentList.WardNurse)); cmd.Parameters.Add(new SqlParameter("@Id", operationRecordInstrumentList.Id)); return cmd.ExecuteNonQuery(); } @@ -621,6 +763,290 @@ namespace AIMSDAL { entity.OperateDate=Convert.ToDateTime(dr["OperateDate"]); } + if(dr["OperationName"]!=System.DBNull.Value) + { + entity.OperationName=dr["OperationName"].ToString(); + } + if(dr["OperationNameRermark"]!=System.DBNull.Value) + { + entity.OperationNameRermark=dr["OperationNameRermark"].ToString(); + } + if(dr["DiseaseName"]!=System.DBNull.Value) + { + entity.DiseaseName=dr["DiseaseName"].ToString(); + } + if(dr["OperationSite"]!=System.DBNull.Value) + { + entity.OperationSite=dr["OperationSite"].ToString(); + } + if(dr["SkinBackInfo"]!=System.DBNull.Value) + { + entity.SkinBackInfo=dr["SkinBackInfo"].ToString(); + } + if(dr["BeforSkinInfo"]!=System.DBNull.Value) + { + entity.BeforSkinInfo=dr["BeforSkinInfo"].ToString(); + } + if(dr["DeepVeniPuncture"]!=System.DBNull.Value) + { + entity.DeepVeniPuncture=dr["DeepVeniPuncture"].ToString(); + } + if(dr["SpecialInfected"]!=System.DBNull.Value) + { + entity.SpecialInfected=dr["SpecialInfected"].ToString(); + } + if(dr["GastricCanal"]!=System.DBNull.Value) + { + entity.GastricCanal=dr["GastricCanal"].ToString(); + } + if(dr["Catheterization"]!=System.DBNull.Value) + { + entity.Catheterization=dr["Catheterization"].ToString(); + } + if(dr["InBloodType"]!=System.DBNull.Value) + { + entity.InBloodType=dr["InBloodType"].ToString(); + } + if(dr["InBloodName"]!=System.DBNull.Value) + { + entity.InBloodName=dr["InBloodName"].ToString(); + } + if(dr["InBloodXXB"]!=System.DBNull.Value) + { + entity.InBloodXXB=dr["InBloodXXB"].ToString(); + } + if(dr["InBloodXFHXB"]!=System.DBNull.Value) + { + entity.InBloodXFHXB=dr["InBloodXFHXB"].ToString(); + } + if(dr["InBloodXJ"]!=System.DBNull.Value) + { + entity.InBloodXJ=dr["InBloodXJ"].ToString(); + } + if(dr["InBloodLCD"]!=System.DBNull.Value) + { + entity.InBloodLCD=dr["InBloodLCD"].ToString(); + } + if(dr["InBloodZTX"]!=System.DBNull.Value) + { + entity.InBloodZTX=dr["InBloodZTX"].ToString(); + } + if(dr["InBloodQT"]!=System.DBNull.Value) + { + entity.InBloodQT=dr["InBloodQT"].ToString(); + } + if(dr["InBloodDose"]!=System.DBNull.Value) + { + entity.InBloodDose=dr["InBloodDose"].ToString(); + } + if(dr["veinInfuse"]!=System.DBNull.Value) + { + entity.VeinInfuse=dr["veinInfuse"].ToString(); + } + if(dr["InDose"]!=System.DBNull.Value) + { + entity.InDose=dr["InDose"].ToString(); + } + if(dr["OutDose"]!=System.DBNull.Value) + { + entity.OutDose=dr["OutDose"].ToString(); + } + if(dr["ImagingData"]!=System.DBNull.Value) + { + entity.ImagingData=dr["ImagingData"].ToString(); + } + if(dr["Specimen"]!=System.DBNull.Value) + { + entity.Specimen=dr["Specimen"].ToString(); + } + if(dr["SpecimenCount"]!=System.DBNull.Value) + { + entity.SpecimenCount=dr["SpecimenCount"].ToString(); + } + if(dr["PathologyCount"]!=System.DBNull.Value) + { + entity.PathologyCount=dr["PathologyCount"].ToString(); + } + if(dr["SpecimenState"]!=System.DBNull.Value) + { + entity.SpecimenState=dr["SpecimenState"].ToString(); + } + if(dr["SpecimanToFrozen"]!=System.DBNull.Value) + { + entity.SpecimanToFrozen=dr["SpecimanToFrozen"].ToString(); + } + if(dr["specimanToPathology"]!=System.DBNull.Value) + { + entity.SpecimanToPathology=dr["specimanToPathology"].ToString(); + } + if(dr["SubmitForInspection"]!=System.DBNull.Value) + { + entity.SubmitForInspection=dr["SubmitForInspection"].ToString(); + } + if(dr["SubmitPerson"]!=System.DBNull.Value) + { + entity.SubmitPerson=dr["SubmitPerson"].ToString(); + } + if(dr["OpeOutState"]!=System.DBNull.Value) + { + entity.OpeOutState=dr["OpeOutState"].ToString(); + } + if(dr["OpeSpecialGoods"]!=System.DBNull.Value) + { + entity.OpeSpecialGoods=dr["OpeSpecialGoods"].ToString(); + } + if(dr["SpecialProblems"]!=System.DBNull.Value) + { + entity.SpecialProblems=dr["SpecialProblems"].ToString(); + } + if(dr["antibioticUserTime"]!=System.DBNull.Value) + { + entity.AntibioticUserTime=dr["antibioticUserTime"].ToString(); + } + if(dr["BeforInvasive"]!=System.DBNull.Value) + { + entity.BeforInvasive=dr["BeforInvasive"].ToString(); + } + if(dr["TourniquetBegin1"]!=System.DBNull.Value) + { + entity.TourniquetBegin1=dr["TourniquetBegin1"].ToString(); + } + if(dr["TourniquetEnd1"]!=System.DBNull.Value) + { + entity.TourniquetEnd1=dr["TourniquetEnd1"].ToString(); + } + if(dr["TourniquetBegin2"]!=System.DBNull.Value) + { + entity.TourniquetBegin2=dr["TourniquetBegin2"].ToString(); + } + if(dr["TourniquetEnd2"]!=System.DBNull.Value) + { + entity.TourniquetEnd2=dr["TourniquetEnd2"].ToString(); + } + if(dr["TourniquetBegin3"]!=System.DBNull.Value) + { + entity.TourniquetBegin3=dr["TourniquetBegin3"].ToString(); + } + if(dr["TourniquetEnd3"]!=System.DBNull.Value) + { + entity.TourniquetEnd3=dr["TourniquetEnd3"].ToString(); + } + if(dr["TourniquetPosition"]!=System.DBNull.Value) + { + entity.TourniquetPosition=dr["TourniquetPosition"].ToString(); + } + if(dr["NegativePlatePosition"]!=System.DBNull.Value) + { + entity.NegativePlatePosition=dr["NegativePlatePosition"].ToString(); + } + if(dr["InWardTime"]!=System.DBNull.Value) + { + entity.InWardTime=dr["InWardTime"].ToString(); + } + if(dr["EMRInfo"]!=System.DBNull.Value) + { + entity.EMRInfo=dr["EMRInfo"].ToString(); + } + if(dr["Consciousness"]!=System.DBNull.Value) + { + entity.Consciousness=dr["Consciousness"].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["Breathing"]!=System.DBNull.Value) + { + entity.Breathing=dr["Breathing"].ToString(); + } + if(dr["SkinType"]!=System.DBNull.Value) + { + entity.SkinType=dr["SkinType"].ToString(); + } + if(dr["HbsAg"]!=System.DBNull.Value) + { + entity.HbsAg=dr["HbsAg"].ToString(); + } + if(dr["afterSkinStatus"]!=System.DBNull.Value) + { + entity.AfterSkinStatus=dr["afterSkinStatus"].ToString(); + } + if(dr["drainage"]!=System.DBNull.Value) + { + entity.Drainage=dr["drainage"].ToString(); + } + if(dr["InBloodPosition"]!=System.DBNull.Value) + { + entity.InBloodPosition=dr["InBloodPosition"].ToString(); + } + if(dr["AsepticBagMonitor"]!=System.DBNull.Value) + { + entity.AsepticBagMonitor=dr["AsepticBagMonitor"].ToString(); + } + if(dr["DrugAllergy"]!=System.DBNull.Value) + { + entity.DrugAllergy=dr["DrugAllergy"].ToString(); + } + if(dr["OperationDoctor"]!=System.DBNull.Value) + { + entity.OperationDoctor=dr["OperationDoctor"].ToString(); + } + if(dr["InstrumentNurse"]!=System.DBNull.Value) + { + entity.InstrumentNurse=dr["InstrumentNurse"].ToString(); + } + if(dr["InstrumentNurseSucceed"]!=System.DBNull.Value) + { + entity.InstrumentNurseSucceed=dr["InstrumentNurseSucceed"].ToString(); + } + if(dr["InstrumentNurseSucceedTime"]!=System.DBNull.Value) + { + entity.InstrumentNurseSucceedTime=dr["InstrumentNurseSucceedTime"].ToString(); + } + if(dr["TourNurse"]!=System.DBNull.Value) + { + entity.TourNurse=dr["TourNurse"].ToString(); + } + if(dr["TourNurseSucceed"]!=System.DBNull.Value) + { + entity.TourNurseSucceed=dr["TourNurseSucceed"].ToString(); + } + if(dr["TourNurseSucceedTime"]!=System.DBNull.Value) + { + entity.TourNurseSucceedTime=dr["TourNurseSucceedTime"].ToString(); + } + if(dr["OutInstrumentNurse"]!=System.DBNull.Value) + { + entity.OutInstrumentNurse=dr["OutInstrumentNurse"].ToString(); + } + if(dr["OutInstrumentNurseSucceed"]!=System.DBNull.Value) + { + entity.OutInstrumentNurseSucceed=dr["OutInstrumentNurseSucceed"].ToString(); + } + if(dr["OutTourNurse"]!=System.DBNull.Value) + { + entity.OutTourNurse=dr["OutTourNurse"].ToString(); + } + if(dr["OutTourNurseSucceed"]!=System.DBNull.Value) + { + entity.OutTourNurseSucceed=dr["OutTourNurseSucceed"].ToString(); + } + if(dr["OtherInfo"]!=System.DBNull.Value) + { + entity.OtherInfo=dr["OtherInfo"].ToString(); + } + if(dr["OperationNurse"]!=System.DBNull.Value) + { + entity.OperationNurse=dr["OperationNurse"].ToString(); + } + if(dr["WardNurse"]!=System.DBNull.Value) + { + entity.WardNurse=dr["WardNurse"].ToString(); + } return entity; } } diff --git a/AIMSEntity/DAL/Extension/DOperationRecord.cs b/AIMSEntity/DAL/Extension/DOperationRecord.cs index 95e7f31..a42e7de 100644 --- a/AIMSEntity/DAL/Extension/DOperationRecord.cs +++ b/AIMSEntity/DAL/Extension/DOperationRecord.cs @@ -1,74 +1,27 @@ using AIMSModel; +using AIMSObjectQuery; using DrawGraph; using System; using System.Data; +using System.Data.SqlClient; using System.Text; namespace AIMSDAL { internal partial class DOperationRecord { - public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, string TableColumnName, DateTime Time, int RoomId) + public static int AddTitleTime(int PatientId, int ApplyId, int RecoverId, int State, DateTime Time, int RoomId) { - string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId," + TableColumnName + ",OperatorNo,OperatorName,OperateDate,RoomId)" + - "VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','" + string strSql = "INSERT INTO OperationRecord(PatientId,OperationApplyId,RecoverId,[State],InRoomTime,OperatorNo,OperatorName,OperateDate,RoomId)" + + "VALUES (" + PatientId + "," + ApplyId + "," + RecoverId + ",'" + State + "','" + Time + "','" + AIMSExtension.PublicMethod.OperatorNo + "','" + AIMSExtension.PublicMethod.OperatorName + "','" + AIMSExtension.PublicMethod.SystemDate() + "','" + RoomId + "');select @@identity "; return Convert.ToInt32(HelperDB.DbHelperSQL.ExecNonQuery(strSql)); ; } - - public static void UpdateTitleTime(int PatientId, string TableColumnName, DateTime Time) - { - string strSql = "Update OperationRecord Set " + TableColumnName + "='" + Time.ToString("yyyy-MM-dd HH:mm:ss") + - "',OperatorNo='" + AIMSExtension.PublicMethod.OperatorNo + - "',OperatorName='" + AIMSExtension.PublicMethod.OperatorName + "' WHERE PatientId=" + PatientId + ""; - HelperDB.DbHelperSQL.ExecNonQuery(strSql); - } - - public static TitleTime GetTitleTime(int PatientId, int RecoverId) - { - TitleTime TitleTimeObj = new TitleTime(); - string strSql = "SELECT OperationApplyId, InRoomTime, OutRoomTime, OperationBeginTime,OperationEndTime " + - "FROM OperationRecord WHERE PatientId='" + PatientId + "' and RecoverId='" + RecoverId + "'"; - - DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql); - - if (dt.Rows.Count > 0) - { - if (dt.Rows[0]["OperationApplyId"].ToString() != "") - { - TitleTimeObj.OperationApplyId = int.Parse(dt.Rows[0]["OperationApplyId"].ToString()); - } - - if (dt.Rows[0]["InRoomTime"].ToString() != "") - { - TitleTimeObj.InRoomTime = DateTime.Parse(DateTime.Parse(dt.Rows[0]["InRoomTime"].ToString()).ToString("yyyy-MM-dd HH:mm:ss")); - } - - if (dt.Rows[0]["OutRoomTime"].ToString() != "") - { - TitleTimeObj.OutRoomTime = DateTime.Parse(dt.Rows[0]["OutRoomTime"].ToString()); - } - if (dt.Rows[0]["OperationBeginTime"].ToString() != "") - { - TitleTimeObj.OperationBeginTime = DateTime.Parse(dt.Rows[0]["OperationBeginTime"].ToString()); - } - if (dt.Rows[0]["OperationEndTime"].ToString() != "") - { - TitleTimeObj.OperationEndTime = DateTime.Parse(dt.Rows[0]["OperationEndTime"].ToString()); - } - - } - return TitleTimeObj; - } - public static DataTable GetOperationDoingMainInfo(int PatientId, int TypeId) { - string strSql = "SELECT od.Id,od.PatientId, od.ApplyId,(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='入室' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as InRoomTime," - + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='出室' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OutRoomTime, " - + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术开始' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationBeginTime, " - + "(SELECT TOP 1 fe.EventBeginTime FROM FactEvents fe LEFT JOIN Events e ON e.Id =fe.EventId WHERE e.Name='手术结束' and PatientId=" + PatientId + " and EventTypeId=" + TypeId + " ) as OperationEndTime, " + + string strSql = "SELECT od.Id,od.PatientId, od.ApplyId, InRoomTime, OutRoomTime, OperationBeginTime, OperationEndTime, " + " od.DiagnoseInfoName, od.OperationInfoName,od.AnaesthesiaMethodName, od.OperationCutTypeName," + "od.OperationBodyPositionName, od.OperationPositionName, od.OperationDoctor,od.Assistant, od.AnesthesiaDoctor, od.Nurse,od.Nurse2," + "od.OperatorNo,od.OperatorName,od.OperateDate,od.State,OperationDoctorId ,[AssistantId] ,[AnesthesiaDoctorId] ,[InstrumentNurseId],[TourNurseId],DiagnoseInfoId,OperationInfoId,AnaesthesiaMethodId,OrtherDoctor,OrtherDoctorId,OperationPositionId,OperationBodyPositionId,ASALevel,SpecialCase,Fasting,BloodType FROM V_OperationDoing od WHERE od.PatientId=" + PatientId + " and od.RecoverId='" + TypeId + "'"; @@ -158,5 +111,342 @@ namespace AIMSDAL return int.Parse(dt.Rows[0]["RowCounts"].ToString()); } + + internal static void SelectSingleEntity(string oql, ref OperationRecord operationRecord) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordMap()); + if (filterString != string.Empty) + { + filterString = " where " + filterString; + } + cmd.CommandText = "select * from OperationRecord " + filterString; + cmd.Parameters.Clear(); + + using (SqlDataReader dr = cmd.ExecuteReader()) + { + if (dr.Read()) + operationRecord = DataReaderToEntity(dr, ref operationRecord); + } + } + } + } + + private static OperationRecord DataReaderToEntity(SqlDataReader dr, ref OperationRecord entity) + { + if (entity == null) + { + entity = new OperationRecord(); + } + 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["OperationBeginTime"] != System.DBNull.Value) + { + entity.OperationBeginTime = Convert.ToDateTime(dr["OperationBeginTime"]); + } + if (dr["OperationEndTime"] != System.DBNull.Value) + { + entity.OperationEndTime = Convert.ToDateTime(dr["OperationEndTime"]); + } + if (dr["AnesthesiaBeginTime"] != System.DBNull.Value) + { + entity.AnesthesiaBeginTime = Convert.ToDateTime(dr["AnesthesiaBeginTime"]); + } + if (dr["AnesthesiaEndTime"] != System.DBNull.Value) + { + entity.AnesthesiaEndTime = Convert.ToDateTime(dr["AnesthesiaEndTime"]); + } + if (dr["ASALevel"] != System.DBNull.Value) + { + entity.ASALevel = Convert.ToInt32(dr["ASALevel"]); + } + if (dr["SpecialCase"] != System.DBNull.Value) + { + entity.SpecialCase = dr["SpecialCase"].ToString(); + } + if (dr["Fasting"] != System.DBNull.Value) + { + entity.Fasting = Convert.ToInt32(dr["Fasting"]); + } + if (dr["BloodType"] != System.DBNull.Value) + { + entity.BloodType = dr["BloodType"].ToString(); + } + if (dr["OperationDate"] != System.DBNull.Value) + { + entity.OperationDate = dr["OperationDate"].ToString(); + } + if (dr["OpeSpecialCondition"] != System.DBNull.Value) + { + entity.OpeSpecialCondition = dr["OpeSpecialCondition"].ToString(); + } + if (dr["BMI"] != System.DBNull.Value) + { + entity.BMI = dr["BMI"].ToString(); + } + if (dr["BeforeDrugs"] != System.DBNull.Value) + { + entity.BeforeDrugs = dr["BeforeDrugs"].ToString(); + } + if (dr["AnaesthesiaMethodName"] != System.DBNull.Value) + { + entity.AnaesthesiaMethodName = dr["AnaesthesiaMethodName"].ToString(); + } + if (dr["AnaesthesiaTechnology"] != System.DBNull.Value) + { + entity.AnaesthesiaTechnology = dr["AnaesthesiaTechnology"].ToString(); + } + if (dr["AnaesthesiaComplication"] != System.DBNull.Value) + { + entity.AnaesthesiaComplication = dr["AnaesthesiaComplication"].ToString(); + } + if (dr["SpecialEvent"] != System.DBNull.Value) + { + entity.SpecialEvent = dr["SpecialEvent"].ToString(); + } + if (dr["SuddenSituation"] != System.DBNull.Value) + { + entity.SuddenSituation = dr["SuddenSituation"].ToString(); + } + if (dr["ConditionChage"] != System.DBNull.Value) + { + entity.ConditionChage = dr["ConditionChage"].ToString(); + } + if (dr["RescueMeasures"] != System.DBNull.Value) + { + entity.RescueMeasures = dr["RescueMeasures"].ToString(); + } + if (dr["RescueTime"] != System.DBNull.Value) + { + entity.RescueTime = dr["RescueTime"].ToString(); + } + if (dr["RescuePerson"] != System.DBNull.Value) + { + entity.RescuePerson = dr["RescuePerson"].ToString(); + } + if (dr["RescueTechnology"] != System.DBNull.Value) + { + entity.RescueTechnology = dr["RescueTechnology"].ToString(); + } + if (dr["SpileInTime"] != System.DBNull.Value) + { + entity.SpileInTime = dr["SpileInTime"].ToString(); + } + if (dr["SpileOutTime"] != System.DBNull.Value) + { + entity.SpileOutTime = dr["SpileOutTime"].ToString(); + } + if (dr["SpileSituation"] != System.DBNull.Value) + { + entity.SpileSituation = dr["SpileSituation"].ToString(); + } + if (dr["SpileWard"] != System.DBNull.Value) + { + entity.SpileWard = dr["SpileWard"].ToString(); + } + if (dr["SpileBeforCondition"] != System.DBNull.Value) + { + entity.SpileBeforCondition = dr["SpileBeforCondition"].ToString(); + } + if (dr["SpileAffterCondition"] != System.DBNull.Value) + { + entity.SpileAffterCondition = dr["SpileAffterCondition"].ToString(); + } + if (dr["RefluxFlag"] != System.DBNull.Value) + { + entity.RefluxFlag = dr["RefluxFlag"].ToString(); + } + if (dr["MuscleStrengthRecovery"] != System.DBNull.Value) + { + entity.MuscleStrengthRecovery = dr["MuscleStrengthRecovery"].ToString(); + } + if (dr["CoughReflex"] != System.DBNull.Value) + { + entity.CoughReflex = dr["CoughReflex"].ToString(); + } + if (dr["InOperaRoomState"] != System.DBNull.Value) + { + entity.InOperaRoomState = dr["InOperaRoomState"].ToString(); + } + if (dr["BloodPressure"] != System.DBNull.Value) + { + entity.BloodPressure = dr["BloodPressure"].ToString(); + } + if (dr["Tempeture"] != System.DBNull.Value) + { + entity.Tempeture = dr["Tempeture"].ToString(); + } + if (dr["Pulse"] != System.DBNull.Value) + { + entity.Pulse = dr["Pulse"].ToString(); + } + if (dr["Breath"] != System.DBNull.Value) + { + entity.Breath = dr["Breath"].ToString(); + } + if (dr["IsolationIndicator"] != System.DBNull.Value) + { + entity.IsolationIndicator = dr["IsolationIndicator"].ToString(); + } + if (dr["AnesMachine"] != System.DBNull.Value) + { + entity.AnesMachine = dr["AnesMachine"].ToString(); + } + if (dr["ControlledAnalgesia"] != System.DBNull.Value) + { + entity.ControlledAnalgesia = dr["ControlledAnalgesia"].ToString(); + } + if (dr["AnalgesiaModel"] != System.DBNull.Value) + { + entity.AnalgesiaModel = dr["AnalgesiaModel"].ToString(); + } + if (dr["AnalgesiaRate"] != System.DBNull.Value) + { + entity.AnalgesiaRate = dr["AnalgesiaRate"].ToString(); + } + if (dr["AnalgesiaDrug"] != System.DBNull.Value) + { + entity.AnalgesiaDrug = dr["AnalgesiaDrug"].ToString(); + } + if (dr["AldreteScore"] != System.DBNull.Value) + { + entity.AldreteScore = dr["AldreteScore"].ToString(); + } + if (dr["RouteMonitoring"] != System.DBNull.Value) + { + entity.RouteMonitoring = dr["RouteMonitoring"].ToString(); + } + if (dr["Entourage"] != System.DBNull.Value) + { + entity.Entourage = dr["Entourage"].ToString(); + } + if (dr["Remark1"] != System.DBNull.Value) + { + entity.Remark1 = dr["Remark1"].ToString(); + } + if (dr["Remark2"] != System.DBNull.Value) + { + entity.Remark2 = dr["Remark2"].ToString(); + } + if (dr["Remark3"] != System.DBNull.Value) + { + entity.Remark3 = dr["Remark3"].ToString(); + } + if (dr["Crystal"] != System.DBNull.Value) + { + entity.Crystal = dr["Crystal"].ToString(); + } + if (dr["Colloid"] != System.DBNull.Value) + { + entity.Colloid = dr["Colloid"].ToString(); + } + if (dr["InAmount"] != System.DBNull.Value) + { + entity.InAmount = dr["InAmount"].ToString(); + } + if (dr["OutAmount"] != System.DBNull.Value) + { + entity.OutAmount = dr["OutAmount"].ToString(); + } + if (dr["OperationTimeSpan"] != System.DBNull.Value) + { + entity.OperationTimeSpan = dr["OperationTimeSpan"].ToString(); + } + if (dr["AnaesthesiaTimeSpan"] != System.DBNull.Value) + { + entity.AnaesthesiaTimeSpan = dr["AnaesthesiaTimeSpan"].ToString(); + } + if (dr["RoomTimeSpan"] != System.DBNull.Value) + { + entity.RoomTimeSpan = dr["RoomTimeSpan"].ToString(); + } + if (dr["AnesthesiaDoctorTimeMinute"] != System.DBNull.Value) + { + entity.AnesthesiaDoctorTimeMinute = dr["AnesthesiaDoctorTimeMinute"].ToString(); + } + if (dr["anesthesiaDoctorSucceedTimeMinute"] != System.DBNull.Value) + { + entity.AnesthesiaDoctorSucceedTimeMinute = dr["anesthesiaDoctorSucceedTimeMinute"].ToString(); + } + if (dr["instrumentNurseTimeMinute"] != System.DBNull.Value) + { + entity.InstrumentNurseTimeMinute = dr["instrumentNurseTimeMinute"].ToString(); + } + if (dr["instrumentNurseSucceedTimeMinute"] != System.DBNull.Value) + { + entity.InstrumentNurseSucceedTimeMinute = dr["instrumentNurseSucceedTimeMinute"].ToString(); + } + if (dr["tourNurseTimeMinute"] != System.DBNull.Value) + { + entity.TourNurseTimeMinute = dr["tourNurseTimeMinute"].ToString(); + } + if (dr["tourNurseSucceedTimeMinute"] != System.DBNull.Value) + { + entity.TourNurseSucceedTimeMinute = dr["tourNurseSucceedTimeMinute"].ToString(); + } + if (dr["RecordPageCount"] != System.DBNull.Value) + { + entity.RecordPageCount = dr["RecordPageCount"].ToString(); + } + if (dr["SignName"] != System.DBNull.Value) + { + entity.SignName = dr["SignName"].ToString(); + } + if (dr["SignTime"] != System.DBNull.Value) + { + entity.SignTime = dr["SignTime"].ToString(); + } + if (dr["RoomId"] != System.DBNull.Value) + { + entity.RoomId = Convert.ToInt32(dr["RoomId"]); + } + if (dr["State"] != System.DBNull.Value) + { + entity.State = Convert.ToInt32(dr["State"]); + } + if (dr["RecoverId"] != System.DBNull.Value) + { + entity.RecoverId = Convert.ToInt32(dr["RecoverId"]); + } + 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"]); + } + if (dr["Remarks"] != System.DBNull.Value) + { + entity.Remarks = dr["Remarks"].ToString(); + } + return entity; + } } } diff --git a/AIMSEntity/ObjectQuery/OperationRecordInstrumentListMap.cs b/AIMSEntity/ObjectQuery/OperationRecordInstrumentListMap.cs index b45d86a..66d5009 100644 --- a/AIMSEntity/ObjectQuery/OperationRecordInstrumentListMap.cs +++ b/AIMSEntity/ObjectQuery/OperationRecordInstrumentListMap.cs @@ -18,6 +18,77 @@ namespace AIMSObjectQuery dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatedate", "OperateDate"); + dictionary.Add("operationname", "OperationName"); + dictionary.Add("operationnamerermark", "OperationNameRermark"); + dictionary.Add("diseasename", "DiseaseName"); + dictionary.Add("operationsite", "OperationSite"); + dictionary.Add("skinbackinfo", "SkinBackInfo"); + dictionary.Add("beforskininfo", "BeforSkinInfo"); + dictionary.Add("deepvenipuncture", "DeepVeniPuncture"); + dictionary.Add("specialinfected", "SpecialInfected"); + dictionary.Add("gastriccanal", "GastricCanal"); + dictionary.Add("catheterization", "Catheterization"); + dictionary.Add("inbloodtype", "InBloodType"); + dictionary.Add("inbloodname", "InBloodName"); + dictionary.Add("inbloodxxb", "InBloodXXB"); + dictionary.Add("inbloodxfhxb", "InBloodXFHXB"); + dictionary.Add("inbloodxj", "InBloodXJ"); + dictionary.Add("inbloodlcd", "InBloodLCD"); + dictionary.Add("inbloodztx", "InBloodZTX"); + dictionary.Add("inbloodqt", "InBloodQT"); + dictionary.Add("inblooddose", "InBloodDose"); + dictionary.Add("veininfuse", "veinInfuse"); + dictionary.Add("indose", "InDose"); + dictionary.Add("outdose", "OutDose"); + dictionary.Add("imagingdata", "ImagingData"); + dictionary.Add("specimen", "Specimen"); + dictionary.Add("specimencount", "SpecimenCount"); + dictionary.Add("pathologycount", "PathologyCount"); + dictionary.Add("specimenstate", "SpecimenState"); + dictionary.Add("specimantofrozen", "SpecimanToFrozen"); + dictionary.Add("specimantopathology", "specimanToPathology"); + dictionary.Add("submitforinspection", "SubmitForInspection"); + dictionary.Add("submitperson", "SubmitPerson"); + dictionary.Add("opeoutstate", "OpeOutState"); + dictionary.Add("opespecialgoods", "OpeSpecialGoods"); + dictionary.Add("specialproblems", "SpecialProblems"); + dictionary.Add("antibioticusertime", "antibioticUserTime"); + dictionary.Add("beforinvasive", "BeforInvasive"); + dictionary.Add("tourniquetbegin1", "TourniquetBegin1"); + dictionary.Add("tourniquetend1", "TourniquetEnd1"); + dictionary.Add("tourniquetbegin2", "TourniquetBegin2"); + dictionary.Add("tourniquetend2", "TourniquetEnd2"); + dictionary.Add("tourniquetbegin3", "TourniquetBegin3"); + dictionary.Add("tourniquetend3", "TourniquetEnd3"); + dictionary.Add("tourniquetposition", "TourniquetPosition"); + dictionary.Add("negativeplateposition", "NegativePlatePosition"); + dictionary.Add("inwardtime", "InWardTime"); + dictionary.Add("emrinfo", "EMRInfo"); + dictionary.Add("consciousness", "Consciousness"); + dictionary.Add("bloodpressure", "BloodPressure"); + dictionary.Add("pulse", "Pulse"); + dictionary.Add("breathing", "Breathing"); + dictionary.Add("skintype", "SkinType"); + dictionary.Add("hbsag", "HbsAg"); + dictionary.Add("afterskinstatus", "afterSkinStatus"); + dictionary.Add("drainage", "drainage"); + dictionary.Add("inbloodposition", "InBloodPosition"); + dictionary.Add("asepticbagmonitor", "AsepticBagMonitor"); + dictionary.Add("drugallergy", "DrugAllergy"); + dictionary.Add("operationdoctor", "OperationDoctor"); + dictionary.Add("instrumentnurse", "InstrumentNurse"); + dictionary.Add("instrumentnursesucceed", "InstrumentNurseSucceed"); + dictionary.Add("instrumentnursesucceedtime", "InstrumentNurseSucceedTime"); + dictionary.Add("tournurse", "TourNurse"); + dictionary.Add("tournursesucceed", "TourNurseSucceed"); + dictionary.Add("tournursesucceedtime", "TourNurseSucceedTime"); + dictionary.Add("outinstrumentnurse", "OutInstrumentNurse"); + dictionary.Add("outinstrumentnursesucceed", "OutInstrumentNurseSucceed"); + dictionary.Add("outtournurse", "OutTourNurse"); + dictionary.Add("outtournursesucceed", "OutTourNurseSucceed"); + dictionary.Add("otherinfo", "OtherInfo"); + dictionary.Add("operationnurse", "OperationNurse"); + dictionary.Add("wardnurse", "WardNurse"); } #region IMap 成员 diff --git a/AIMSEntity/ObjectQuery/OperationRecordMap.cs b/AIMSEntity/ObjectQuery/OperationRecordMap.cs index 9feea36..afb89f7 100644 --- a/AIMSEntity/ObjectQuery/OperationRecordMap.cs +++ b/AIMSEntity/ObjectQuery/OperationRecordMap.cs @@ -16,35 +16,75 @@ namespace AIMSObjectQuery dictionary.Add("outroomtime", "OutRoomTime"); dictionary.Add("operationbegintime", "OperationBeginTime"); dictionary.Add("operationendtime", "OperationEndTime"); + dictionary.Add("anesthesiabegintime", "AnesthesiaBeginTime"); + dictionary.Add("anesthesiaendtime", "AnesthesiaEndTime"); + dictionary.Add("asalevel", "ASALevel"); + dictionary.Add("specialcase", "SpecialCase"); + dictionary.Add("fasting", "Fasting"); + dictionary.Add("bloodtype", "BloodType"); + dictionary.Add("operationdate", "OperationDate"); + dictionary.Add("opespecialcondition", "OpeSpecialCondition"); + dictionary.Add("bmi", "BMI"); + dictionary.Add("beforedrugs", "BeforeDrugs"); + dictionary.Add("anaesthesiamethodname", "AnaesthesiaMethodName"); + dictionary.Add("anaesthesiatechnology", "AnaesthesiaTechnology"); + dictionary.Add("anaesthesiacomplication", "AnaesthesiaComplication"); + dictionary.Add("specialevent", "SpecialEvent"); + dictionary.Add("suddensituation", "SuddenSituation"); + dictionary.Add("conditionchage", "ConditionChage"); + dictionary.Add("rescuemeasures", "RescueMeasures"); + dictionary.Add("rescuetime", "RescueTime"); + dictionary.Add("rescueperson", "RescuePerson"); + dictionary.Add("rescuetechnology", "RescueTechnology"); + dictionary.Add("spileintime", "SpileInTime"); + dictionary.Add("spileouttime", "SpileOutTime"); + dictionary.Add("spilesituation", "SpileSituation"); + dictionary.Add("spileward", "SpileWard"); + dictionary.Add("spilebeforcondition", "SpileBeforCondition"); + dictionary.Add("spileafftercondition", "SpileAffterCondition"); + dictionary.Add("refluxflag", "RefluxFlag"); + dictionary.Add("musclestrengthrecovery", "MuscleStrengthRecovery"); + dictionary.Add("coughreflex", "CoughReflex"); + dictionary.Add("inoperaroomstate", "InOperaRoomState"); + dictionary.Add("bloodpressure", "BloodPressure"); + dictionary.Add("tempeture", "Tempeture"); + dictionary.Add("pulse", "Pulse"); + dictionary.Add("breath", "Breath"); + dictionary.Add("isolationindicator", "IsolationIndicator"); + dictionary.Add("anesmachine", "AnesMachine"); + dictionary.Add("controlledanalgesia", "ControlledAnalgesia"); + dictionary.Add("analgesiamodel", "AnalgesiaModel"); + dictionary.Add("analgesiarate", "AnalgesiaRate"); + dictionary.Add("analgesiadrug", "AnalgesiaDrug"); + dictionary.Add("aldretescore", "AldreteScore"); + dictionary.Add("routemonitoring", "RouteMonitoring"); + dictionary.Add("entourage", "Entourage"); + dictionary.Add("remark1", "Remark1"); + dictionary.Add("remark2", "Remark2"); + dictionary.Add("remark3", "Remark3"); + dictionary.Add("crystal", "Crystal"); + dictionary.Add("colloid", "Colloid"); + dictionary.Add("inamount", "InAmount"); + dictionary.Add("outamount", "OutAmount"); + dictionary.Add("operationtimespan", "OperationTimeSpan"); + dictionary.Add("anaesthesiatimespan", "AnaesthesiaTimeSpan"); + dictionary.Add("roomtimespan", "RoomTimeSpan"); + dictionary.Add("anesthesiadoctortimeminute", "AnesthesiaDoctorTimeMinute"); + dictionary.Add("anesthesiadoctorsucceedtimeminute", "anesthesiaDoctorSucceedTimeMinute"); + dictionary.Add("instrumentnursetimeminute", "instrumentNurseTimeMinute"); + dictionary.Add("instrumentnursesucceedtimeminute", "instrumentNurseSucceedTimeMinute"); + dictionary.Add("tournursetimeminute", "tourNurseTimeMinute"); + dictionary.Add("tournursesucceedtimeminute", "tourNurseSucceedTimeMinute"); + dictionary.Add("recordpagecount", "RecordPageCount"); + dictionary.Add("signname", "SignName"); + dictionary.Add("signtime", "SignTime"); + dictionary.Add("roomid", "RoomId"); dictionary.Add("state", "State"); - dictionary.Add("operationlevelid", "OperationLevelId"); - dictionary.Add("opeaftermode", "OpeAfterMode"); - dictionary.Add("specialsituation", "SpecialSituation"); - dictionary.Add("puncturebodyposition", "PunctureBodyPosition"); - dictionary.Add("punctureposition", "PuncturePosition"); - dictionary.Add("catheterdepth", "CatheterDepth"); - dictionary.Add("needlesize", "NeedleSize"); - dictionary.Add("needledirection", "NeedleDirection"); - dictionary.Add("anaesthesiaplane", "AnaesthesiaPlane"); - dictionary.Add("anaesthesiaeffect", "AnaesthesiaEffect"); - dictionary.Add("cannulaorlaryngealmasktype", "CannulaOrLaryngealMaskType"); - dictionary.Add("tubenumber", "TubeNumber"); - dictionary.Add("depth", "Depth"); - dictionary.Add("tracheainner", "TracheaInner"); - dictionary.Add("bronchialinner", "BronchialInner"); - dictionary.Add("fastanaesthesia", "FastAnaesthesia"); - dictionary.Add("planeanaesthesia", "PlaneAnaesthesia"); - dictionary.Add("mouth", "Mouth"); - dictionary.Add("noseleft", "NoseLeft"); - dictionary.Add("noseright", "NoseRight"); - dictionary.Add("photopic", "Photopic"); - dictionary.Add("cuff", "Cuff"); - dictionary.Add("stopperfabric", "StopperFabric"); - dictionary.Add("remarks", "Remarks"); + dictionary.Add("recoverid", "RecoverId"); dictionary.Add("operatorno", "OperatorNo"); dictionary.Add("operatorname", "OperatorName"); dictionary.Add("operatedate", "OperateDate"); - dictionary.Add("recoverid", "RecoverId"); + dictionary.Add("remarks", "Remarks"); } #region IMap 成员 diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs index f98d833..898f0f5 100644 --- a/DrawGraph/AreaManage/DBManage.cs +++ b/DrawGraph/AreaManage/DBManage.cs @@ -95,6 +95,10 @@ namespace DrawGraph // { // i += UpdateInstrumentList(items[2] + "='" + value + "' where Id= " + _operationRecord.Id); // } + // if (items[1] == "OperationRecordInfo") + // { + // i += UpdateOperationRecordInfo(items[2] + "='" + value + "' where Id= " + _operationRecord.Id); + // } //} //else //{ @@ -183,6 +187,11 @@ namespace DrawGraph string sqlStr = "update InstrumentList set " + sql; return DBHelper.ExecNonQuery(sqlStr); } + public static int UpdateOperationRecordInfo(string sql) + { + string sqlStr = "update OperationRecordInfo set " + sql; + return DBHelper.ExecNonQuery(sqlStr); + } public static int AddPerson(OperationRecord _operationRecord, string Persons, int PersonDutyId) { int i = 0; diff --git a/DrawGraph/AreaManage/OperationRecord.cs b/DrawGraph/AreaManage/OperationRecord.cs index 02e700b..cbaa613 100644 --- a/DrawGraph/AreaManage/OperationRecord.cs +++ b/DrawGraph/AreaManage/OperationRecord.cs @@ -31,820 +31,6 @@ namespace DrawGraph private string isFasting; private string age; - //申请信息 - private string patientType; - private int? applyDepartmentId; - private string applyDepartmentName; - private string applyDepName; - private string applydiagnose; - private string applydiagnoseRemark; - private string applyoperation; - private string applyOperationRemark; - private string operationPriority; - public DateTime PlanOperationTime; - - //术中信息 - private int? id; - private int? patientId; - private int? operationApplyId; - private int? recoverId; - private string diagnose; - private string operation; - private int? operationLevelId; - private string operationCutId; - private string operationSiteId; - private string operationPositionId; - private string anaesthesiaMethodId; - private string contagion; - private int? isReturnOperation; - private int? isPlanReturnOperation; - private int? isNotPlanReturnOperation; - private string operationDoctor; - private string assistant1; - private string assistant2; - private string assistant3; - private string anesthesiaDoctor; - private string anesthesiaDoctorSucceed; - private DateTime? anesthesiaDoctorSucceedTime; - private string instrumentNurse; - private string instrumentNurseSucceed; - private DateTime? instrumentNurseSucceedTime; - private string tourNurse; - private string tourNurseSucceed; - private DateTime? tourNurseSucceedTime; - private string extracorporealCirculation; - private string intern; - private string other; - private int? operationRoomId; - private int? tableIndex; - private DateTime? inRoomTime; - private DateTime? outRoomTime; - private DateTime? operationBeginTime; - private DateTime? operationEndTime; - private DateTime? anesthesiaBeginTime; - private DateTime? anesthesiaEndTime; - private string state; - private string cancelReason; - private string aSALevel; - private int? nYIIA; - private string operationAnalgesiaMode; - private string specialCase; - private int? fasting; - private int? takeMedicine; - private int? parentId; - private string whereabouts; - private int? pACUBedId; - private int? printCount; - private int? isStatement; - private int? operatorId; - private DateTime? operatorTime; - private string remark; - private Decimal? allSapDose; - private Decimal? allOutputLiquidsDose; - private int? anesthesiaDoctorTimeMinute; - private int? anesthesiaDoctorSucceedTimeMinute; - private int? instrumentNurseTimeMinute; - private int? instrumentNurseSucceedTimeMinute; - private int? tourNurseTimeMinute; - private int? tourNurseSucceedTimeMinute; - private string analgesiaModeMessage; - private string oPerationRemark; - private string diagnoseRemark; - private string anesthesiaDoctorAssistant; - private string spareOne; - private string spareTwo; - private string spareThree; - private string spareFour; - private string spareFive; - private string spareSix; - private string spareSeven; - private string spareEight; - private string spareNine; - private string spareTen; - - private List factEventsList; - private List factDrugList; - private List factOutputLiquidsList; - private List factBloodGasAnalysisList; - private List anaseDataQualityRecordList; - private OperationRecordInfo opeRecordInfo; - private OperationRecoverInInfo opeRecoverInInfo; - private OperationRecoverOutInfo opeRecoverOutInfo; - private OperationRecordInstrumentList instrumentList; - - public List EventListstr = new List(); - public List DrugsListstr = new List(); - public List AfterDrugsListstr = new List(); - public List FluidListstr = new List(); - public List PunctureAndIntubatio; - [NoCreatControlAttributs] - public List addPhysioList; - - [ClassAttributs(Description = "是否只读")] - public bool IsReadOnly = false; - [ClassAttributs(Description = "绘图开始时间")] - public DateTime sharpBegin; - [ClassAttributs(Description = "页开始时间")] - public DateTime pageBegin; - [ClassAttributs(Description = "页结束时间")] - public DateTime lastPageBegin; - [ClassAttributs(Description = "入CG时间")] - public DateTime? InCGTime; - [ClassAttributs(Description = "出CG时间")] - public DateTime? OutCGTime; - [NoCreatControlAttributs] - public string InCGType; - [NoCreatControlAttributs] - public string MedicalRecord; - - [NoCreatControlAttributs] - public DataTable PhysioParamList; - - [ClassAttributs(Description = "选中范围的对象")] - [NoCreatControlAttributs] - public SelectedAreaObj SAreaObj - { - get { return SelectedAreaObj.GetInstance(); } - } - - [ClassAttributs(Description = "总页数")] - public int currentPage { get; set; } - [ClassAttributs(Description = "当前页数")] - public int pageCount { get; set; } - - [ClassAttributs(Description = "手术记录编号,自增")] - /// - /// 编号,自增 - /// - public int? Id - { - get { return id; } - set { id = value; } - } - [ClassAttributs(Description = "患者编号")] - /// - /// 患者编号 - /// - public int? PatientId - { - get { return patientId; } - set { patientId = value; } - } - [NoCreatControlAttributs] - /// - /// 是否是恢复室 1不是 2是 - /// - public int? RecoverId - { - get { return recoverId; } - set { recoverId = value; } - } - [ClassAttributs(Description = "手术申请编号")] - /// - /// 手术申请编号 - /// - public int? OperationApplyId - { - get { return operationApplyId; } - set { operationApplyId = value; } - } - [ClassAttributs(Description = "手术诊断")] - /// - /// 手术诊断,保存诊断Id,可多选,逗号分隔 - /// - public string Diagnose - { - get { return diagnose; } - set { diagnose = value; } - } - [ClassAttributs(Description = "手术名称")] - /// - /// 手术名称,保存手术Id,可多选,逗号分隔 - /// - public string Operation - { - get { return operation; } - set { operation = value; } - } - [ClassAttributs(Description = "手术分级编号")] - /// - /// 手术分级编号 - /// - public int? OperationLevelId - { - get { return operationLevelId; } - set { operationLevelId = value; } - } - [ClassAttributs(Description = "手术切口分类")] - /// - /// 手术切口分类,保存手术切口分类Id,可多选,逗号分隔 - /// - public string OperationCutId - { - get { return operationCutId; } - set { operationCutId = value; } - } - [ClassAttributs(Description = "手术体位")] - /// - /// 手术体位,保存手术体位Id,可多选,逗号分隔 - /// - public string OperationSiteId - { - get { return operationSiteId; } - set { operationSiteId = value; } - } - [ClassAttributs(Description = "手术部位")] - /// - /// 手术部位,保存手术部位Id,可多选,逗号分隔 - /// - public string OperationPositionId - { - get { return operationPositionId; } - set { operationPositionId = value; } - } - [ClassAttributs(Description = "麻醉方式")] - /// - /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 - /// - public string AnaesthesiaMethodId - { - get { return anaesthesiaMethodId; } - set { anaesthesiaMethodId = value; } - } - [ClassAttributs(Description = "传染病")] - /// - /// 传染病 - /// - public string Contagion - { - get { return contagion; } - set { contagion = value; } - } - [ClassAttributs(Description = "是否重返再手术")] - /// - /// 是否重返再手术 - /// - public int? IsReturnOperation - { - get { return isReturnOperation; } - set { isReturnOperation = value; } - } - [ClassAttributs(Description = "计划再次手术")] - /// - /// 计划再次手术 - /// - public int? IsPlanReturnOperation - { - get { return isPlanReturnOperation; } - set { isPlanReturnOperation = value; } - } - [ClassAttributs(Description = "非计划再次手术")] - /// - /// 非计划再次手术 - /// - public int? IsNotPlanReturnOperation - { - get { return isNotPlanReturnOperation; } - set { isNotPlanReturnOperation = value; } - } - [ClassAttributs(Description = "手术医生")] - /// - /// 手术医生,保存手术医生Id,可多选,逗号分隔 - /// - public string OperationDoctor - { - get { return operationDoctor; } - set { operationDoctor = value; } - } - [ClassAttributs(Description = "助理1")] - /// - /// 助理1,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant1 - { - get { return assistant1; } - set { assistant1 = value; } - } - [ClassAttributs(Description = "助理2")] - /// - /// 助理2,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant2 - { - get { return assistant2; } - set { assistant2 = value; } - } - [ClassAttributs(Description = "助理3")] - /// - /// 助理3,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant3 - { - get { return assistant3; } - set { assistant3 = value; } - } - [ClassAttributs(Description = "麻醉医生")] - /// - /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 - /// - public string AnesthesiaDoctor - { - get { return anesthesiaDoctor; } - set { anesthesiaDoctor = value; } - } - [ClassAttributs(Description = "麻醉接台医生")] - /// - /// 麻醉接台医生,保存麻醉接台医生Id,可多选,逗号分隔 - /// - public string AnesthesiaDoctorSucceed - { - get { return anesthesiaDoctorSucceed; } - set { anesthesiaDoctorSucceed = value; } - } - [ClassAttributs(Description = "麻醉师接台时间")] - /// - /// 麻醉师接台时间 - /// - public DateTime? AnesthesiaDoctorSucceedTime - { - get { return anesthesiaDoctorSucceedTime; } - set { anesthesiaDoctorSucceedTime = value; } - } - [ClassAttributs(Description = "器械护士")] - /// - /// 器械护士,保存器械护士Id,可多选,逗号分隔 - /// - public string InstrumentNurse - { - get { return instrumentNurse; } - set { instrumentNurse = value; } - } - [ClassAttributs(Description = "器械接台护士")] - /// - /// 器械接台护士,保存器械接台护士Id,可多选,逗号分隔 - /// - public string InstrumentNurseSucceed - { - get { return instrumentNurseSucceed; } - set { instrumentNurseSucceed = value; } - } - [ClassAttributs(Description = "洗手护士接台时间")] - /// - /// 洗手护士接台时间 - /// - public DateTime? InstrumentNurseSucceedTime - { - get { return instrumentNurseSucceedTime; } - set { instrumentNurseSucceedTime = value; } - } - [ClassAttributs(Description = "巡回护士")] - /// - /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 - /// - public string TourNurse - { - get { return tourNurse; } - set { tourNurse = value; } - } - [ClassAttributs(Description = "巡回接台护士")] - /// - /// 巡回接台护士,保存巡回接台护士Id,可多选,逗号分隔 - /// - public string TourNurseSucceed - { - get { return tourNurseSucceed; } - set { tourNurseSucceed = value; } - } - [ClassAttributs(Description = "巡回护士接台时间")] - /// - /// 巡回护士接台时间 - /// - public DateTime? TourNurseSucceedTime - { - get { return tourNurseSucceedTime; } - set { tourNurseSucceedTime = value; } - } - [ClassAttributs(Description = "麻醉医生签字")] - public string ExtracorporealCirculation - { - get { return extracorporealCirculation; } - set { extracorporealCirculation = value; } - } - [ClassAttributs(Description = "实习生")] - /// - /// 实习生 - /// - public string Intern - { - get { return intern; } - set { intern = value; } - } - [ClassAttributs(Description = "其他人员")] - /// - /// 其他人员 - /// - public string Other - { - get { return other; } - set { other = value; } - } - [ClassAttributs(Description = "手术间编号")] - /// - /// 手术间编号 - /// - public int? OperationRoomId - { - get { return operationRoomId; } - set { operationRoomId = value; } - } - [ClassAttributs(Description = "手术台次")] - /// - /// 手术台次 - /// - public int? TableIndex - { - get { return tableIndex; } - set { tableIndex = value; } - } - [ClassAttributs(Description = "入手术室时间")] - /// - /// 入手术室时间 - /// - public DateTime? InRoomTime - { - get { return inRoomTime; } - set { inRoomTime = value; } - } - [ClassAttributs(Description = "出手术室时间")] - /// - /// 出手术室时间 - /// - public DateTime? OutRoomTime - { - get { return outRoomTime; } - set { outRoomTime = value; } - } - [ClassAttributs(Description = "手术开始时间")] - /// - /// 手术开始时间 - /// - public DateTime? OperationBeginTime - { - get { return operationBeginTime; } - set { operationBeginTime = value; } - } - [ClassAttributs(Description = "手术结束时间")] - /// - /// 手术结束时间 - /// - public DateTime? OperationEndTime - { - get { return operationEndTime; } - set { operationEndTime = value; } - } - [ClassAttributs(Description = "麻醉开始时间")] - /// - /// 麻醉开始时间 - /// - public DateTime? AnesthesiaBeginTime - { - get { return anesthesiaBeginTime; } - set { anesthesiaBeginTime = value; } - } - [ClassAttributs(Description = "麻醉结束时间")] - /// - /// 麻醉结束时间 - /// - public DateTime? AnesthesiaEndTime - { - get { return anesthesiaEndTime; } - set { anesthesiaEndTime = value; } - } - [ClassAttributs(Description = "手术状态")] - /// - /// 手术状态 - ///1、术中 2、结束 - /// - public string State - { - get { return state; } - set { state = value; } - } - [ClassAttributs(Description = "取消手术原因")] - /// - /// 取消手术原因 - /// - public string CancelReason - { - get { return cancelReason; } - set { cancelReason = value; } - } - [ClassAttributs(Description = "ASA分级")] - /// - /// ASA分级 - /// - public string ASALevel - { - get { return aSALevel; } - set { aSALevel = value; } - } - [ClassAttributs(Description = "心功能分级")] - /// - /// 心功能分级 - /// - public int? NYIIA - { - get { return nYIIA; } - set { nYIIA = value; } - } - [ClassAttributs(Description = "术后镇痛方式")] - /// - /// 术后镇痛方式,保存镇痛方式Id,可多选,逗号分隔 - /// - public string OperationAnalgesiaMode - { - get { return operationAnalgesiaMode; } - set { operationAnalgesiaMode = value; } - } - [ClassAttributs(Description = "特殊情况")] - /// - /// 特殊情况 - /// - public string SpecialCase - { - get { return specialCase; } - set { specialCase = value; } - } - [ClassAttributs(Description = "术前8小时禁食")] - /// - /// 术前8小时禁食 - /// - public int? Fasting - { - get { return fasting; } - set { fasting = value; } - } - [ClassAttributs(Description = "术晨用一小口水")] - /// - /// 术晨用一小口水(5ml)服用抗高压药物。 - /// - public int? TakeMedicine - { - get { return takeMedicine; } - set { takeMedicine = value; } - } - [ClassAttributs(Description = "保存手术记录编号")] - /// - /// 保存手术记录编号,该值如不为0,表示该记录为术后恢复记录(PACU) - /// - public int? ParentId - { - get { return parentId; } - set { parentId = value; } - } - [ClassAttributs(Description = "术后去向")] - /// - /// 术后去向 - /// - public string Whereabouts - { - get { return whereabouts; } - set { whereabouts = value; } - } - - [ClassAttributs(Description = "PACU床位")] - /// - /// - /// - public int? PACUBedId - { - get { return pACUBedId; } - set { pACUBedId = value; } - } - - [ClassAttributs(Description = "麻醉单打印次数")] - /// - /// 麻醉单打印次数 - /// - public int? PrintCount - { - get { return printCount; } - set { printCount = value; } - } - [ClassAttributs(Description = "是否结单")] - /// - /// 是否结单 - /// - public int? IsStatement - { - get { return isStatement; } - set { isStatement = value; } - } - [ClassAttributs(Description = "操作员")] - /// - /// 操作员 - /// - public int? OperatorId - { - get { return operatorId; } - set { operatorId = value; } - } - [ClassAttributs(Description = "操作时间")] - /// - /// 操作时间 - /// - public DateTime? OperatorTime - { - get { return operatorTime; } - set { operatorTime = value; } - } - [ClassAttributs(Description = "备注")] - /// - /// 备注 - /// - public string Remark - { - get { return remark; } - set { remark = value; } - } - [ClassAttributs(Description = "总出量")] - /// - /// 总出量 - /// - public Decimal? AllOutputLiquidsDose - { - get { return allOutputLiquidsDose; } - set { allOutputLiquidsDose = value; } - } - [ClassAttributs(Description = "总液量")] - /// - /// 总液量 - /// - public Decimal? AllSapDose - { - get { return allSapDose; } - set { allSapDose = value; } - } - [ClassAttributs(Description = "麻醉医生时间")] - /// - /// 麻醉医生时间(分钟) - /// - public int? AnesthesiaDoctorTimeMinute - { - get { return anesthesiaDoctorTimeMinute; } - set { anesthesiaDoctorTimeMinute = value; } - } - [ClassAttributs(Description = "麻醉接台时间")] - /// - /// 麻醉接台时间(分钟) - /// - public int? AnesthesiaDoctorSucceedTimeMinute - { - get { return anesthesiaDoctorSucceedTimeMinute; } - set { anesthesiaDoctorSucceedTimeMinute = value; } - } - [ClassAttributs(Description = "器械护士时间")] - /// - /// 器械护士时间(分钟) - /// - public int? InstrumentNurseTimeMinute - { - get { return instrumentNurseTimeMinute; } - set { instrumentNurseTimeMinute = value; } - } - [ClassAttributs(Description = "器械护士接台时间")] - /// - /// 器械护士接台时间(分钟) - /// - public int? InstrumentNurseSucceedTimeMinute - { - get { return instrumentNurseSucceedTimeMinute; } - set { instrumentNurseSucceedTimeMinute = value; } - } - [ClassAttributs(Description = "巡回护士时间")] - /// - /// 巡回护士时间(分钟) - /// - public int? TourNurseTimeMinute - { - get { return tourNurseTimeMinute; } - set { tourNurseTimeMinute = value; } - } - [ClassAttributs(Description = "阵痛信息")] - /// - /// 阵痛信息 RBT - /// - public string AnalgesiaModeMessage - { - get { return analgesiaModeMessage; } - set { analgesiaModeMessage = value; } - } - [ClassAttributs(Description = "手术备注")] - /// - /// 手术备注 - /// - public string OPerationRemark - { - get { return oPerationRemark; } - set { oPerationRemark = value; } - } - [ClassAttributs(Description = "诊断备注")] - /// - /// 诊断备注 - /// - public string DiagnoseRemark - { - get { return diagnoseRemark; } - set { diagnoseRemark = value; } - } - - public string beforeDrugs; - [ClassAttributs(Description = "麻醉前用药")] - public string BeforeDrugs - { - get { return beforeDrugs; } - set { beforeDrugs = value; } - } - - public string analgesiaDrug; - [ClassAttributs(Description = "镇痛用药")] - public string AnalgesiaDrug - { - get { return analgesiaDrug ; } - set { analgesiaDrug = value; } - } - - [ClassAttributs(Description = "麻醉助手")] - /// - /// - /// - public string AnesthesiaDoctorAssistant - { - get { return anesthesiaDoctorAssistant; } - set { anesthesiaDoctorAssistant = value; } - } - - [ClassAttributs(Description = "备用字段1")] - public string SpareOne - { - get { return spareOne; } - set { spareOne = value; } - } - [ClassAttributs(Description = "备用字段2")] - public string SpareTwo - { - get { return spareTwo; } - set { spareTwo = value; } - } - [ClassAttributs(Description = "备用字段3")] - public string SpareThree - { - get { return spareThree; } - set { spareThree = value; } - } - [ClassAttributs(Description = "备用字段4")] - public string SpareFour - { - get { return spareFour; } - set { spareFour = value; } - } - [ClassAttributs(Description = "备用字段5")] - public string SpareFive - { - get { return spareFive; } - set { spareFive = value; } - } - [ClassAttributs(Description = "备用字段6")] - public string SpareSix - { - get { return spareSix; } - set { spareSix = value; } - } - [ClassAttributs(Description = "备用字段7")] - public string SpareSeven - { - get { return spareSeven; } - set { spareSeven = value; } - } - [ClassAttributs(Description = "备用字段8")] - public string SpareEight - { - get { return spareEight; } - set { spareEight = value; } - } - [ClassAttributs(Description = "备用字段9")] - public string SpareNine - { - get { return spareNine; } - set { spareNine = value; } - } - [ClassAttributs(Description = "备用字段10")] - public string SpareTen - { - get { return spareTen; } - set { spareTen = value; } - } - [ClassAttributs(Description = "HIS编号")] public string HISPatientId @@ -977,6 +163,31 @@ namespace DrawGraph set { isFasting = value; } } + //申请信息 + private string patientType; + private int? applyDepartmentId; + private string applyDepartmentName; + private string applyDepName; + private string applydiagnose; + private string applydiagnoseRemark; + private string applyoperation; + private string applyOperationRemark; + private string operationPriority; + public DateTime PlanOperationTime; + + private string operation; + private string diagnose; + private string operationDoctor; + private string assistant1; + private string assistant2; + private string assistant3; + private string anaesthesiaMethodId; + private string anesthesiaDoctor; + private string instrumentNurse; + private string tourNurse; + private string ortherDoctorId; + private string operationSiteId; + private string operationPositionId; [ClassAttributs(Description = "住院门诊类型")] public string PatientType @@ -1033,6 +244,966 @@ namespace DrawGraph set { operationPriority = value; } } + [ClassAttributs(Description = "手术名称")] + /// + /// 手术名称,保存手术Id,可多选,逗号分隔 + /// + public string Operation + { + get { return operation; } + set { operation = value; } + } + [ClassAttributs(Description = "诊断名称")] + /// + /// 诊断名称,保存诊断Id,可多选,逗号分隔 + /// + public string Diagnose + { + get { return diagnose; } + set { diagnose = value; } + } + [ClassAttributs(Description = "手术医生")] + /// + /// 手术医生,保存手术医生Id,可多选,逗号分隔 + /// + public string OperationDoctor + { + get { return operationDoctor; } + set { operationDoctor = value; } + } + [ClassAttributs(Description = "助理1")] + /// + /// 助理1,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant1 + { + get { return assistant1; } + set { assistant1 = value; } + } + [ClassAttributs(Description = "助理2")] + /// + /// 助理2,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant2 + { + get { return assistant2; } + set { assistant2 = value; } + } + [ClassAttributs(Description = "助理3")] + /// + /// 助理3,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant3 + { + get { return assistant3; } + set { assistant3 = value; } + } + [ClassAttributs(Description = "麻醉方式")] + /// + /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 + /// + public string AnaesthesiaMethodId + { + get { return anaesthesiaMethodId; } + set { anaesthesiaMethodId = value; } + } + [ClassAttributs(Description = "麻醉医生")] + /// + /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 + /// + public string AnesthesiaDoctor + { + get { return anesthesiaDoctor; } + set { anesthesiaDoctor = value; } + } + [ClassAttributs(Description = "器械护士")] + /// + /// 器械护士,保存器械护士Id,可多选,逗号分隔 + /// + public string InstrumentNurse + { + get { return instrumentNurse; } + set { instrumentNurse = value; } + } + [ClassAttributs(Description = "巡回护士")] + /// + /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 + /// + public string TourNurse + { + get { return tourNurse; } + set { tourNurse = value; } + } + [ClassAttributs(Description = "其他医生")] + /// + /// 其他医生 + /// + public string OrtherDoctorId + { + get { return ortherDoctorId; } + set { ortherDoctorId = value; } + } + [ClassAttributs(Description = "手术体位")] + /// + /// 手术体位,保存手术体位Id,可多选,逗号分隔 + /// + public string OperationSiteId + { + get { return operationSiteId; } + set { operationSiteId = value; } + } + [ClassAttributs(Description = "手术部位")] + /// + /// 手术部位 + /// + public string OperationPositionId + { + get { return operationPositionId; } + set { operationPositionId = value; } + } + + + //术中信息 + + private int? id; + private int? patientId; + private int? operationApplyId; + private DateTime? inRoomTime; + private DateTime? outRoomTime; + private DateTime? operationBeginTime; + private DateTime? operationEndTime; + private DateTime? anesthesiaBeginTime; + private DateTime? anesthesiaEndTime; + private int? aSALevel; + private string specialCase; + private int? fasting; + private string operationDate; + private string opeSpecialCondition; + private string bMI; + private string beforeDrugs; + private string anaesthesiaMethodName; + private string anaesthesiaTechnology; + private string anaesthesiaComplication; + private string specialEvent; + private string suddenSituation; + private string conditionChage; + private string rescueMeasures; + private string rescueTime; + private string rescuePerson; + private string rescueTechnology; + private string spileInTime; + private string spileOutTime; + private string spileSituation; + private string spileWard; + private string spileBeforCondition; + private string spileAffterCondition; + private string refluxFlag; + private string muscleStrengthRecovery; + private string coughReflex; + private string inOperaRoomState; + private string bloodPressure; + private string tempeture; + private string pulse; + private string breath; + private string isolationIndicator; + private string anesMachine; + private string controlledAnalgesia; + private string analgesiaModel; + private string analgesiaRate; + private string analgesiaDrug; + private string aldreteScore; + private string routeMonitoring; + private string entourage; + private string remark1; + private string remark2; + private string remark3; + private string crystal; + private string colloid; + private string inAmount; + private string outAmount; + private string operationTimeSpan; + private string anaesthesiaTimeSpan; + private string roomTimeSpan; + private string anesthesiaDoctorTimeMinute; + private string anesthesiaDoctorSucceedTimeMinute; + private string instrumentNurseTimeMinute; + private string instrumentNurseSucceedTimeMinute; + private string tourNurseTimeMinute; + private string tourNurseSucceedTimeMinute; + private string recordPageCount; + private string signName; + private string signTime; + private int? roomId; + private int? state; + private int? recoverId; + private string operatorNo; + private string operatorName; + private DateTime? operateDate; + private string remarks; + + private string spareOne; + private string spareTwo; + private string spareThree; + private string spareFour; + private string spareFive; + private string spareSix; + private string spareSeven; + private string spareEight; + private string spareNine; + private string spareTen; + + [NoCreatControlAttributs] + public int? Id + { + get { return id; } + set { id = value; } + } + [NoCreatControlAttributs] + public int? PatientId + { + get { return patientId; } + set { patientId = value; } + } + [NoCreatControlAttributs] + public int? OperationApplyId + { + get { return operationApplyId; } + set { operationApplyId = value; } + } + /// + /// 入手术室时间 + /// + [ClassAttributs(Description = "入手术室时间")] + public DateTime? InRoomTime + { + get { return inRoomTime; } + set { inRoomTime = value; } + } + /// + /// 出手术室时间 + /// + [ClassAttributs(Description = "出手术室时间")] + public DateTime? OutRoomTime + { + get { return outRoomTime; } + set { outRoomTime = value; } + } + /// + /// 手术开始时间 + /// + [ClassAttributs(Description = "手术开始时间")] + public DateTime? OperationBeginTime + { + get { return operationBeginTime; } + set { operationBeginTime = value; } + } + /// + /// 手术结束时间 + /// + [ClassAttributs(Description = "手术结束时间")] + public DateTime? OperationEndTime + { + get { return operationEndTime; } + set { operationEndTime = value; } + } + /// + /// 麻醉开始时间 + /// + [ClassAttributs(Description = "麻醉开始时间")] + public DateTime? AnesthesiaBeginTime + { + get { return anesthesiaBeginTime; } + set { anesthesiaBeginTime = value; } + } + /// + /// 麻醉结束时间 + /// + [ClassAttributs(Description = "麻醉结束时间")] + public DateTime? AnesthesiaEndTime + { + get { return anesthesiaEndTime; } + set { anesthesiaEndTime = value; } + } + /// + /// ASA分级 + /// + [ClassAttributs(Description = "ASA分级")] + public int? ASALevel + { + get { return aSALevel; } + set { aSALevel = value; } + } + /// + /// 特殊情况 + /// + [ClassAttributs(Description = "特殊情况")] + public string SpecialCase + { + get { return specialCase; } + set { specialCase = value; } + } + /// + /// 是否禁食 + /// + [ClassAttributs(Description = "是否禁食")] + public int? Fasting + { + get { return fasting; } + set { fasting = value; } + } + /// + /// 手术日期 + /// + [ClassAttributs(Description = "手术日期")] + public string OperationDate + { + get { return operationDate; } + set { operationDate = value; } + } + /// + /// 术中特殊情况 + /// + [ClassAttributs(Description = "术中特殊情况")] + public string OpeSpecialCondition + { + get { return opeSpecialCondition; } + set { opeSpecialCondition = value; } + } + /// + /// BMI指数 + /// + [ClassAttributs(Description = "BMI指数")] + public string BMI + { + get { return bMI; } + set { bMI = value; } + } + /// + /// 麻醉前用药 + /// + [ClassAttributs(Description = "麻醉前用药")] + public string BeforeDrugs + { + get { return beforeDrugs; } + set { beforeDrugs = value; } + } + /// + /// 麻醉方法 + /// + [ClassAttributs(Description = "麻醉方法")] + public string AnaesthesiaMethodName + { + get { return anaesthesiaMethodName; } + set { anaesthesiaMethodName = value; } + } + /// + /// 麻醉技术 + /// + [ClassAttributs(Description = "麻醉技术")] + public string AnaesthesiaTechnology + { + get { return anaesthesiaTechnology; } + set { anaesthesiaTechnology = value; } + } + /// + /// 麻醉期间并发症 + /// + [ClassAttributs(Description = "麻醉期间并发症")] + public string AnaesthesiaComplication + { + get { return anaesthesiaComplication; } + set { anaesthesiaComplication = value; } + } + /// + /// 特殊事件 + /// + [ClassAttributs(Description = "特殊事件")] + public string SpecialEvent + { + get { return specialEvent; } + set { specialEvent = value; } + } + /// + /// 突发情况 + /// + [ClassAttributs(Description = "突发情况")] + public string SuddenSituation + { + get { return suddenSituation; } + set { suddenSituation = value; } + } + /// + /// 病情变化情况 + /// + [ClassAttributs(Description = "病情变化情况")] + public string ConditionChage + { + get { return conditionChage; } + set { conditionChage = value; } + } + /// + /// 抢救措施 + /// + [ClassAttributs(Description = "抢救措施")] + public string RescueMeasures + { + get { return rescueMeasures; } + set { rescueMeasures = value; } + } + /// + /// 抢救时间 + /// + [ClassAttributs(Description = "抢救时间")] + public string RescueTime + { + get { return rescueTime; } + set { rescueTime = value; } + } + /// + /// 抢救的医务人员姓名 + /// + [ClassAttributs(Description = "抢救的医务人员姓名")] + public string RescuePerson + { + get { return rescuePerson; } + set { rescuePerson = value; } + } + /// + /// 抢救的医务人员专业技术职称 + /// + [ClassAttributs(Description = "抢救的医务人员专业技术职称")] + public string RescueTechnology + { + get { return rescueTechnology; } + set { rescueTechnology = value; } + } + /// + /// 气管导管插入时间 + /// + [ClassAttributs(Description = "气管导管插入时间")] + public string SpileInTime + { + get { return spileInTime; } + set { spileInTime = value; } + } + /// + /// 气管导管拔除时间 + /// + [ClassAttributs(Description = "气管导管拔除时间")] + public string SpileOutTime + { + get { return spileOutTime; } + set { spileOutTime = value; } + } + /// + /// 气管导管插入情况 + /// + [ClassAttributs(Description = "气管导管插入情况")] + public string SpileSituation + { + get { return spileSituation; } + set { spileSituation = value; } + } + /// + /// 气管导管拔除地点 + /// + [ClassAttributs(Description = "气管导管拔除地点")] + public string SpileWard + { + get { return spileWard; } + set { spileWard = value; } + } + /// + /// 拔管前操作 + /// + [ClassAttributs(Description = "拔管前操作")] + public string SpileBeforCondition + { + get { return spileBeforCondition; } + set { spileBeforCondition = value; } + } + /// + /// 拔管后操作 + /// + [ClassAttributs(Description = "拔管后操作")] + public string SpileAffterCondition + { + get { return spileAffterCondition; } + set { spileAffterCondition = value; } + } + /// + /// 返流标志 + /// + [ClassAttributs(Description = "返流标志")] + public string RefluxFlag + { + get { return refluxFlag; } + set { refluxFlag = value; } + } + /// + /// 肌力恢复 + /// + [ClassAttributs(Description = "肌力恢复")] + public string MuscleStrengthRecovery + { + get { return muscleStrengthRecovery; } + set { muscleStrengthRecovery = value; } + } + /// + /// 咳嗽吞咽反射 + /// + [ClassAttributs(Description = "咳嗽吞咽反射")] + public string CoughReflex + { + get { return coughReflex; } + set { coughReflex = value; } + } + /// + /// 意识 + /// + [ClassAttributs(Description = "意识")] + public string InOperaRoomState + { + get { return inOperaRoomState; } + set { inOperaRoomState = value; } + } + /// + /// 血压 + /// + [ClassAttributs(Description = "血压")] + public string BloodPressure + { + get { return bloodPressure; } + set { bloodPressure = value; } + } + /// + /// 体温 + /// + [ClassAttributs(Description = "体温")] + public string Tempeture + { + get { return tempeture; } + set { tempeture = value; } + } + /// + /// 脉搏 + /// + [ClassAttributs(Description = "脉搏")] + public string Pulse + { + get { return pulse; } + set { pulse = value; } + } + /// + /// 呼吸 + /// + [ClassAttributs(Description = "呼吸")] + public string Breath + { + get { return breath; } + set { breath = value; } + } + /// + /// 隔离标识 + /// + [ClassAttributs(Description = "隔离标识")] + public string IsolationIndicator + { + get { return isolationIndicator; } + set { isolationIndicator = value; } + } + /// + /// 麻醉机型 + /// + [ClassAttributs(Description = "麻醉机型")] + public string AnesMachine + { + get { return anesMachine; } + set { anesMachine = value; } + } + /// + /// 自控镇痛 + /// + [ClassAttributs(Description = "自控镇痛")] + public string ControlledAnalgesia + { + get { return controlledAnalgesia; } + set { controlledAnalgesia = value; } + } + /// + /// 镇痛模式 + /// + [ClassAttributs(Description = "镇痛模式")] + public string AnalgesiaModel + { + get { return analgesiaModel; } + set { analgesiaModel = value; } + } + /// + /// 镇痛泵频次 + /// + [ClassAttributs(Description = "镇痛泵频次")] + public string AnalgesiaRate + { + get { return analgesiaRate; } + set { analgesiaRate = value; } + } + /// + /// 泵入药物 + /// + [ClassAttributs(Description = "泵入药物")] + public string AnalgesiaDrug + { + get { return analgesiaDrug; } + set { analgesiaDrug = value; } + } + /// + /// Aldrete恢复评分 + /// + [ClassAttributs(Description = "Aldrete恢复评分")] + public string AldreteScore + { + get { return aldreteScore; } + set { aldreteScore = value; } + } + /// + /// 运送途中患者监测 + /// + [ClassAttributs(Description = "运送途中患者监测")] + public string RouteMonitoring + { + get { return routeMonitoring; } + set { routeMonitoring = value; } + } + /// + /// 陪同人员 + /// + [ClassAttributs(Description = "陪同人员")] + public string Entourage + { + get { return entourage; } + set { entourage = value; } + } + /// + /// 备注1 + /// + [ClassAttributs(Description = "备注1")] + public string Remark1 + { + get { return remark1; } + set { remark1 = value; } + } + /// + /// 备注2 + /// + [ClassAttributs(Description = "备注2")] + public string Remark2 + { + get { return remark2; } + set { remark2 = value; } + } + /// + /// 备注3 + /// + [ClassAttributs(Description = "备注3")] + public string Remark3 + { + get { return remark3; } + set { remark3 = value; } + } + /// + /// 晶体量 + /// + [ClassAttributs(Description = "晶体量")] + public string Crystal + { + get { return crystal; } + set { crystal = value; } + } + /// + /// 胶体量 + /// + [ClassAttributs(Description = "胶体量")] + public string Colloid + { + get { return colloid; } + set { colloid = value; } + } + /// + /// 总入量 + /// + [ClassAttributs(Description = "总入量")] + public string InAmount + { + get { return inAmount; } + set { inAmount = value; } + } + /// + /// 总出量 + /// + [ClassAttributs(Description = "总出量")] + public string OutAmount + { + get { return outAmount; } + set { outAmount = value; } + } + /// + /// 手术时长分 + /// + [ClassAttributs(Description = "手术时长分")] + public string OperationTimeSpan + { + get { return operationTimeSpan; } + set { operationTimeSpan = value; } + } + /// + /// 麻醉时长分 + /// + [ClassAttributs(Description = "麻醉时长分")] + public string AnaesthesiaTimeSpan + { + get { return anaesthesiaTimeSpan; } + set { anaesthesiaTimeSpan = value; } + } + /// + /// 入出室时长分 + /// + [ClassAttributs(Description = "入出室时长分")] + public string RoomTimeSpan + { + get { return roomTimeSpan; } + set { roomTimeSpan = value; } + } + [NoCreatControlAttributs] + public string AnesthesiaDoctorTimeMinute + { + get { return anesthesiaDoctorTimeMinute; } + set { anesthesiaDoctorTimeMinute = value; } + } + [NoCreatControlAttributs] + public string AnesthesiaDoctorSucceedTimeMinute + { + get { return anesthesiaDoctorSucceedTimeMinute; } + set { anesthesiaDoctorSucceedTimeMinute = value; } + } + [NoCreatControlAttributs] + public string InstrumentNurseTimeMinute + { + get { return instrumentNurseTimeMinute; } + set { instrumentNurseTimeMinute = value; } + } + [NoCreatControlAttributs] + public string InstrumentNurseSucceedTimeMinute + { + get { return instrumentNurseSucceedTimeMinute; } + set { instrumentNurseSucceedTimeMinute = value; } + } + [NoCreatControlAttributs] + public string TourNurseTimeMinute + { + get { return tourNurseTimeMinute; } + set { tourNurseTimeMinute = value; } + } + [NoCreatControlAttributs] + public string TourNurseSucceedTimeMinute + { + get { return tourNurseSucceedTimeMinute; } + set { tourNurseSucceedTimeMinute = value; } + } + [NoCreatControlAttributs] + public string RecordPageCount + { + get { return recordPageCount; } + set { recordPageCount = value; } + } + /// + /// 签名人 + /// + [ClassAttributs(Description = "签名人")] + public string SignName + { + get { return signName; } + set { signName = value; } + } + /// + /// 签名时间 + /// + [ClassAttributs(Description = "签名时间")] + public string SignTime + { + get { return signTime; } + set { signTime = value; } + } + [NoCreatControlAttributs] + public int? RoomId + { + get { return roomId; } + set { roomId = value; } + } + /// + /// 1手术中 + /// 2.手术结束 + /// + [NoCreatControlAttributs] + public int? State + { + get { return state; } + set { state = value; } + } + [NoCreatControlAttributs] + public int? RecoverId + { + get { return recoverId; } + set { recoverId = value; } + } + /// + /// 操作人工号 + /// + [NoCreatControlAttributs] + public string OperatorNo + { + get { return operatorNo; } + set { operatorNo = value; } + } + /// + /// 操作人姓名 + /// + [NoCreatControlAttributs] + public string OperatorName + { + get { return operatorName; } + set { operatorName = value; } + } + /// + /// 操作时间 + /// + [NoCreatControlAttributs] + public DateTime? OperateDate + { + get { return operateDate; } + set { operateDate = value; } + } + /// + /// 备注S + /// + public string Remarks + { + get { return remarks; } + set { remarks = value; } + } + + + [ClassAttributs(Description = "备用字段1")] + public string SpareOne + { + get { return spareOne; } + set { spareOne = value; } + } + [ClassAttributs(Description = "备用字段2")] + public string SpareTwo + { + get { return spareTwo; } + set { spareTwo = value; } + } + [ClassAttributs(Description = "备用字段3")] + public string SpareThree + { + get { return spareThree; } + set { spareThree = value; } + } + [ClassAttributs(Description = "备用字段4")] + public string SpareFour + { + get { return spareFour; } + set { spareFour = value; } + } + [ClassAttributs(Description = "备用字段5")] + public string SpareFive + { + get { return spareFive; } + set { spareFive = value; } + } + [ClassAttributs(Description = "备用字段6")] + public string SpareSix + { + get { return spareSix; } + set { spareSix = value; } + } + [ClassAttributs(Description = "备用字段7")] + public string SpareSeven + { + get { return spareSeven; } + set { spareSeven = value; } + } + [ClassAttributs(Description = "备用字段8")] + public string SpareEight + { + get { return spareEight; } + set { spareEight = value; } + } + [ClassAttributs(Description = "备用字段9")] + public string SpareNine + { + get { return spareNine; } + set { spareNine = value; } + } + [ClassAttributs(Description = "备用字段10")] + public string SpareTen + { + get { return spareTen; } + set { spareTen = value; } + } + + private List factEventsList; + private List factDrugList; + private List factOutputLiquidsList; + private List factBloodGasAnalysisList; + private List anaseDataQualityRecordList; + private OperationRecordInfo opeRecordInfo; + private OperationRecoverInInfo opeRecoverInInfo; + private OperationRecoverOutInfo opeRecoverOutInfo; + private OperationRecordInstrumentList instrumentList; + + public List EventListstr = new List(); + public List DrugsListstr = new List(); + public List AfterDrugsListstr = new List(); + public List FluidListstr = new List(); + public List PunctureAndIntubatio; + public List addPhysioList; + + [ClassAttributs(Description = "总页数")] + public int currentPage { get; set; } + [ClassAttributs(Description = "当前页数")] + public int pageCount { get; set; } + [ClassAttributs(Description = "是否只读")] + public bool IsReadOnly = false; + [ClassAttributs(Description = "绘图开始时间")] + public DateTime sharpBegin; + [ClassAttributs(Description = "页开始时间")] + public DateTime pageBegin; + [ClassAttributs(Description = "页结束时间")] + public DateTime lastPageBegin; + [ClassAttributs(Description = "入CG时间")] + public DateTime? InCGTime; + [ClassAttributs(Description = "出CG时间")] + public DateTime? OutCGTime; + [NoCreatControlAttributs] + public string InCGType; + [NoCreatControlAttributs] + public string MedicalRecord; + [NoCreatControlAttributs] + public string StateName; + [NoCreatControlAttributs] + public DataTable PhysioParamList; + + [ClassAttributs(Description = "选中范围的对象")] + [NoCreatControlAttributs] + public SelectedAreaObj SAreaObj + { + get { return SelectedAreaObj.GetInstance(); } + } + + [NoCreatControlAttributs] public List FactEventsList @@ -1263,3 +1434,4 @@ namespace DrawGraph } } + diff --git a/DrawGraph/AreaManage/OperationRecordOld.cs b/DrawGraph/AreaManage/OperationRecordNew.cs similarity index 64% rename from DrawGraph/AreaManage/OperationRecordOld.cs rename to DrawGraph/AreaManage/OperationRecordNew.cs index 3f2d3c9..323ce52 100644 --- a/DrawGraph/AreaManage/OperationRecordOld.cs +++ b/DrawGraph/AreaManage/OperationRecordNew.cs @@ -31,6 +31,820 @@ namespace DrawGraph private string isFasting; private string age; + //申请信息 + private string patientType; + private int? applyDepartmentId; + private string applyDepartmentName; + private string applyDepName; + private string applydiagnose; + private string applydiagnoseRemark; + private string applyoperation; + private string applyOperationRemark; + private string operationPriority; + public DateTime PlanOperationTime; + + //术中信息 + private int? id; + private int? patientId; + private int? operationApplyId; + private int? recoverId; + private string diagnose; + private string operation; + private int? operationLevelId; + private string operationCutId; + private string operationSiteId; + private string operationPositionId; + private string anaesthesiaMethodId; + private string contagion; + private int? isReturnOperation; + private int? isPlanReturnOperation; + private int? isNotPlanReturnOperation; + private string operationDoctor; + private string assistant1; + private string assistant2; + private string assistant3; + private string anesthesiaDoctor; + private string anesthesiaDoctorSucceed; + private DateTime? anesthesiaDoctorSucceedTime; + private string instrumentNurse; + private string instrumentNurseSucceed; + private DateTime? instrumentNurseSucceedTime; + private string tourNurse; + private string tourNurseSucceed; + private DateTime? tourNurseSucceedTime; + private string extracorporealCirculation; + private string intern; + private string other; + private int? operationRoomId; + private int? tableIndex; + private DateTime? inRoomTime; + private DateTime? outRoomTime; + private DateTime? operationBeginTime; + private DateTime? operationEndTime; + private DateTime? anesthesiaBeginTime; + private DateTime? anesthesiaEndTime; + private string state; + private string cancelReason; + private string aSALevel; + private int? nYIIA; + private string operationAnalgesiaMode; + private string specialCase; + private int? fasting; + private int? takeMedicine; + private int? parentId; + private string whereabouts; + private int? pACUBedId; + private int? printCount; + private int? isStatement; + private int? operatorId; + private DateTime? operatorTime; + private string remark; + private Decimal? allSapDose; + private Decimal? allOutputLiquidsDose; + private int? anesthesiaDoctorTimeMinute; + private int? anesthesiaDoctorSucceedTimeMinute; + private int? instrumentNurseTimeMinute; + private int? instrumentNurseSucceedTimeMinute; + private int? tourNurseTimeMinute; + private int? tourNurseSucceedTimeMinute; + private string analgesiaModeMessage; + private string oPerationRemark; + private string diagnoseRemark; + private string anesthesiaDoctorAssistant; + private string spareOne; + private string spareTwo; + private string spareThree; + private string spareFour; + private string spareFive; + private string spareSix; + private string spareSeven; + private string spareEight; + private string spareNine; + private string spareTen; + + private List factEventsList; + private List factDrugList; + private List factOutputLiquidsList; + private List factBloodGasAnalysisList; + private List anaseDataQualityRecordList; + private OperationRecordInfo opeRecordInfo; + private OperationRecoverInInfo opeRecoverInInfo; + private OperationRecoverOutInfo opeRecoverOutInfo; + private OperationRecordInstrumentList instrumentList; + + public List EventListstr = new List(); + public List DrugsListstr = new List(); + public List AfterDrugsListstr = new List(); + public List FluidListstr = new List(); + public List PunctureAndIntubatio; + [NoCreatControlAttributs] + public List addPhysioList; + + [ClassAttributs(Description = "是否只读")] + public bool IsReadOnly = false; + [ClassAttributs(Description = "绘图开始时间")] + public DateTime sharpBegin; + [ClassAttributs(Description = "页开始时间")] + public DateTime pageBegin; + [ClassAttributs(Description = "页结束时间")] + public DateTime lastPageBegin; + [ClassAttributs(Description = "入CG时间")] + public DateTime? InCGTime; + [ClassAttributs(Description = "出CG时间")] + public DateTime? OutCGTime; + [NoCreatControlAttributs] + public string InCGType; + [NoCreatControlAttributs] + public string MedicalRecord; + + [NoCreatControlAttributs] + public DataTable PhysioParamList; + + [ClassAttributs(Description = "选中范围的对象")] + [NoCreatControlAttributs] + public SelectedAreaObj SAreaObj + { + get { return SelectedAreaObj.GetInstance(); } + } + + [ClassAttributs(Description = "总页数")] + public int currentPage { get; set; } + [ClassAttributs(Description = "当前页数")] + public int pageCount { get; set; } + + [ClassAttributs(Description = "手术记录编号,自增")] + /// + /// 编号,自增 + /// + public int? Id + { + get { return id; } + set { id = value; } + } + [ClassAttributs(Description = "患者编号")] + /// + /// 患者编号 + /// + public int? PatientId + { + get { return patientId; } + set { patientId = value; } + } + [NoCreatControlAttributs] + /// + /// 是否是恢复室 1不是 2是 + /// + public int? RecoverId + { + get { return recoverId; } + set { recoverId = value; } + } + [ClassAttributs(Description = "手术申请编号")] + /// + /// 手术申请编号 + /// + public int? OperationApplyId + { + get { return operationApplyId; } + set { operationApplyId = value; } + } + [ClassAttributs(Description = "手术诊断")] + /// + /// 手术诊断,保存诊断Id,可多选,逗号分隔 + /// + public string Diagnose + { + get { return diagnose; } + set { diagnose = value; } + } + [ClassAttributs(Description = "手术名称")] + /// + /// 手术名称,保存手术Id,可多选,逗号分隔 + /// + public string Operation + { + get { return operation; } + set { operation = value; } + } + [ClassAttributs(Description = "手术分级编号")] + /// + /// 手术分级编号 + /// + public int? OperationLevelId + { + get { return operationLevelId; } + set { operationLevelId = value; } + } + [ClassAttributs(Description = "手术切口分类")] + /// + /// 手术切口分类,保存手术切口分类Id,可多选,逗号分隔 + /// + public string OperationCutId + { + get { return operationCutId; } + set { operationCutId = value; } + } + [ClassAttributs(Description = "手术体位")] + /// + /// 手术体位,保存手术体位Id,可多选,逗号分隔 + /// + public string OperationSiteId + { + get { return operationSiteId; } + set { operationSiteId = value; } + } + [ClassAttributs(Description = "手术部位")] + /// + /// 手术部位,保存手术部位Id,可多选,逗号分隔 + /// + public string OperationPositionId + { + get { return operationPositionId; } + set { operationPositionId = value; } + } + [ClassAttributs(Description = "麻醉方式")] + /// + /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 + /// + public string AnaesthesiaMethodId + { + get { return anaesthesiaMethodId; } + set { anaesthesiaMethodId = value; } + } + [ClassAttributs(Description = "传染病")] + /// + /// 传染病 + /// + public string Contagion + { + get { return contagion; } + set { contagion = value; } + } + [ClassAttributs(Description = "是否重返再手术")] + /// + /// 是否重返再手术 + /// + public int? IsReturnOperation + { + get { return isReturnOperation; } + set { isReturnOperation = value; } + } + [ClassAttributs(Description = "计划再次手术")] + /// + /// 计划再次手术 + /// + public int? IsPlanReturnOperation + { + get { return isPlanReturnOperation; } + set { isPlanReturnOperation = value; } + } + [ClassAttributs(Description = "非计划再次手术")] + /// + /// 非计划再次手术 + /// + public int? IsNotPlanReturnOperation + { + get { return isNotPlanReturnOperation; } + set { isNotPlanReturnOperation = value; } + } + [ClassAttributs(Description = "手术医生")] + /// + /// 手术医生,保存手术医生Id,可多选,逗号分隔 + /// + public string OperationDoctor + { + get { return operationDoctor; } + set { operationDoctor = value; } + } + [ClassAttributs(Description = "助理1")] + /// + /// 助理1,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant1 + { + get { return assistant1; } + set { assistant1 = value; } + } + [ClassAttributs(Description = "助理2")] + /// + /// 助理2,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant2 + { + get { return assistant2; } + set { assistant2 = value; } + } + [ClassAttributs(Description = "助理3")] + /// + /// 助理3,保存手术助理医生Id,可多选,逗号分隔 + /// + public string Assistant3 + { + get { return assistant3; } + set { assistant3 = value; } + } + [ClassAttributs(Description = "麻醉医生")] + /// + /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 + /// + public string AnesthesiaDoctor + { + get { return anesthesiaDoctor; } + set { anesthesiaDoctor = value; } + } + [ClassAttributs(Description = "麻醉接台医生")] + /// + /// 麻醉接台医生,保存麻醉接台医生Id,可多选,逗号分隔 + /// + public string AnesthesiaDoctorSucceed + { + get { return anesthesiaDoctorSucceed; } + set { anesthesiaDoctorSucceed = value; } + } + [ClassAttributs(Description = "麻醉师接台时间")] + /// + /// 麻醉师接台时间 + /// + public DateTime? AnesthesiaDoctorSucceedTime + { + get { return anesthesiaDoctorSucceedTime; } + set { anesthesiaDoctorSucceedTime = value; } + } + [ClassAttributs(Description = "器械护士")] + /// + /// 器械护士,保存器械护士Id,可多选,逗号分隔 + /// + public string InstrumentNurse + { + get { return instrumentNurse; } + set { instrumentNurse = value; } + } + [ClassAttributs(Description = "器械接台护士")] + /// + /// 器械接台护士,保存器械接台护士Id,可多选,逗号分隔 + /// + public string InstrumentNurseSucceed + { + get { return instrumentNurseSucceed; } + set { instrumentNurseSucceed = value; } + } + [ClassAttributs(Description = "洗手护士接台时间")] + /// + /// 洗手护士接台时间 + /// + public DateTime? InstrumentNurseSucceedTime + { + get { return instrumentNurseSucceedTime; } + set { instrumentNurseSucceedTime = value; } + } + [ClassAttributs(Description = "巡回护士")] + /// + /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 + /// + public string TourNurse + { + get { return tourNurse; } + set { tourNurse = value; } + } + [ClassAttributs(Description = "巡回接台护士")] + /// + /// 巡回接台护士,保存巡回接台护士Id,可多选,逗号分隔 + /// + public string TourNurseSucceed + { + get { return tourNurseSucceed; } + set { tourNurseSucceed = value; } + } + [ClassAttributs(Description = "巡回护士接台时间")] + /// + /// 巡回护士接台时间 + /// + public DateTime? TourNurseSucceedTime + { + get { return tourNurseSucceedTime; } + set { tourNurseSucceedTime = value; } + } + [ClassAttributs(Description = "麻醉医生签字")] + public string ExtracorporealCirculation + { + get { return extracorporealCirculation; } + set { extracorporealCirculation = value; } + } + [ClassAttributs(Description = "实习生")] + /// + /// 实习生 + /// + public string Intern + { + get { return intern; } + set { intern = value; } + } + [ClassAttributs(Description = "其他人员")] + /// + /// 其他人员 + /// + public string Other + { + get { return other; } + set { other = value; } + } + [ClassAttributs(Description = "手术间编号")] + /// + /// 手术间编号 + /// + public int? OperationRoomId + { + get { return operationRoomId; } + set { operationRoomId = value; } + } + [ClassAttributs(Description = "手术台次")] + /// + /// 手术台次 + /// + public int? TableIndex + { + get { return tableIndex; } + set { tableIndex = value; } + } + [ClassAttributs(Description = "入手术室时间")] + /// + /// 入手术室时间 + /// + public DateTime? InRoomTime + { + get { return inRoomTime; } + set { inRoomTime = value; } + } + [ClassAttributs(Description = "出手术室时间")] + /// + /// 出手术室时间 + /// + public DateTime? OutRoomTime + { + get { return outRoomTime; } + set { outRoomTime = value; } + } + [ClassAttributs(Description = "手术开始时间")] + /// + /// 手术开始时间 + /// + public DateTime? OperationBeginTime + { + get { return operationBeginTime; } + set { operationBeginTime = value; } + } + [ClassAttributs(Description = "手术结束时间")] + /// + /// 手术结束时间 + /// + public DateTime? OperationEndTime + { + get { return operationEndTime; } + set { operationEndTime = value; } + } + [ClassAttributs(Description = "麻醉开始时间")] + /// + /// 麻醉开始时间 + /// + public DateTime? AnesthesiaBeginTime + { + get { return anesthesiaBeginTime; } + set { anesthesiaBeginTime = value; } + } + [ClassAttributs(Description = "麻醉结束时间")] + /// + /// 麻醉结束时间 + /// + public DateTime? AnesthesiaEndTime + { + get { return anesthesiaEndTime; } + set { anesthesiaEndTime = value; } + } + [ClassAttributs(Description = "手术状态")] + /// + /// 手术状态 + ///1、术中 2、结束 + /// + public string State + { + get { return state; } + set { state = value; } + } + [ClassAttributs(Description = "取消手术原因")] + /// + /// 取消手术原因 + /// + public string CancelReason + { + get { return cancelReason; } + set { cancelReason = value; } + } + [ClassAttributs(Description = "ASA分级")] + /// + /// ASA分级 + /// + public string ASALevel + { + get { return aSALevel; } + set { aSALevel = value; } + } + [ClassAttributs(Description = "心功能分级")] + /// + /// 心功能分级 + /// + public int? NYIIA + { + get { return nYIIA; } + set { nYIIA = value; } + } + [ClassAttributs(Description = "术后镇痛方式")] + /// + /// 术后镇痛方式,保存镇痛方式Id,可多选,逗号分隔 + /// + public string OperationAnalgesiaMode + { + get { return operationAnalgesiaMode; } + set { operationAnalgesiaMode = value; } + } + [ClassAttributs(Description = "特殊情况")] + /// + /// 特殊情况 + /// + public string SpecialCase + { + get { return specialCase; } + set { specialCase = value; } + } + [ClassAttributs(Description = "术前8小时禁食")] + /// + /// 术前8小时禁食 + /// + public int? Fasting + { + get { return fasting; } + set { fasting = value; } + } + [ClassAttributs(Description = "术晨用一小口水")] + /// + /// 术晨用一小口水(5ml)服用抗高压药物。 + /// + public int? TakeMedicine + { + get { return takeMedicine; } + set { takeMedicine = value; } + } + [ClassAttributs(Description = "保存手术记录编号")] + /// + /// 保存手术记录编号,该值如不为0,表示该记录为术后恢复记录(PACU) + /// + public int? ParentId + { + get { return parentId; } + set { parentId = value; } + } + [ClassAttributs(Description = "术后去向")] + /// + /// 术后去向 + /// + public string Whereabouts + { + get { return whereabouts; } + set { whereabouts = value; } + } + + [ClassAttributs(Description = "PACU床位")] + /// + /// + /// + public int? PACUBedId + { + get { return pACUBedId; } + set { pACUBedId = value; } + } + + [ClassAttributs(Description = "麻醉单打印次数")] + /// + /// 麻醉单打印次数 + /// + public int? PrintCount + { + get { return printCount; } + set { printCount = value; } + } + [ClassAttributs(Description = "是否结单")] + /// + /// 是否结单 + /// + public int? IsStatement + { + get { return isStatement; } + set { isStatement = value; } + } + [ClassAttributs(Description = "操作员")] + /// + /// 操作员 + /// + public int? OperatorId + { + get { return operatorId; } + set { operatorId = value; } + } + [ClassAttributs(Description = "操作时间")] + /// + /// 操作时间 + /// + public DateTime? OperatorTime + { + get { return operatorTime; } + set { operatorTime = value; } + } + [ClassAttributs(Description = "备注")] + /// + /// 备注 + /// + public string Remark + { + get { return remark; } + set { remark = value; } + } + [ClassAttributs(Description = "总出量")] + /// + /// 总出量 + /// + public Decimal? AllOutputLiquidsDose + { + get { return allOutputLiquidsDose; } + set { allOutputLiquidsDose = value; } + } + [ClassAttributs(Description = "总液量")] + /// + /// 总液量 + /// + public Decimal? AllSapDose + { + get { return allSapDose; } + set { allSapDose = value; } + } + [ClassAttributs(Description = "麻醉医生时间")] + /// + /// 麻醉医生时间(分钟) + /// + public int? AnesthesiaDoctorTimeMinute + { + get { return anesthesiaDoctorTimeMinute; } + set { anesthesiaDoctorTimeMinute = value; } + } + [ClassAttributs(Description = "麻醉接台时间")] + /// + /// 麻醉接台时间(分钟) + /// + public int? AnesthesiaDoctorSucceedTimeMinute + { + get { return anesthesiaDoctorSucceedTimeMinute; } + set { anesthesiaDoctorSucceedTimeMinute = value; } + } + [ClassAttributs(Description = "器械护士时间")] + /// + /// 器械护士时间(分钟) + /// + public int? InstrumentNurseTimeMinute + { + get { return instrumentNurseTimeMinute; } + set { instrumentNurseTimeMinute = value; } + } + [ClassAttributs(Description = "器械护士接台时间")] + /// + /// 器械护士接台时间(分钟) + /// + public int? InstrumentNurseSucceedTimeMinute + { + get { return instrumentNurseSucceedTimeMinute; } + set { instrumentNurseSucceedTimeMinute = value; } + } + [ClassAttributs(Description = "巡回护士时间")] + /// + /// 巡回护士时间(分钟) + /// + public int? TourNurseTimeMinute + { + get { return tourNurseTimeMinute; } + set { tourNurseTimeMinute = value; } + } + [ClassAttributs(Description = "阵痛信息")] + /// + /// 阵痛信息 RBT + /// + public string AnalgesiaModeMessage + { + get { return analgesiaModeMessage; } + set { analgesiaModeMessage = value; } + } + [ClassAttributs(Description = "手术备注")] + /// + /// 手术备注 + /// + public string OPerationRemark + { + get { return oPerationRemark; } + set { oPerationRemark = value; } + } + [ClassAttributs(Description = "诊断备注")] + /// + /// 诊断备注 + /// + public string DiagnoseRemark + { + get { return diagnoseRemark; } + set { diagnoseRemark = value; } + } + + public string beforeDrugs; + [ClassAttributs(Description = "麻醉前用药")] + public string BeforeDrugs + { + get { return beforeDrugs; } + set { beforeDrugs = value; } + } + + public string analgesiaDrug; + [ClassAttributs(Description = "镇痛用药")] + public string AnalgesiaDrug + { + get { return analgesiaDrug; } + set { analgesiaDrug = value; } + } + + [ClassAttributs(Description = "麻醉助手")] + /// + /// + /// + public string AnesthesiaDoctorAssistant + { + get { return anesthesiaDoctorAssistant; } + set { anesthesiaDoctorAssistant = value; } + } + + [ClassAttributs(Description = "备用字段1")] + public string SpareOne + { + get { return spareOne; } + set { spareOne = value; } + } + [ClassAttributs(Description = "备用字段2")] + public string SpareTwo + { + get { return spareTwo; } + set { spareTwo = value; } + } + [ClassAttributs(Description = "备用字段3")] + public string SpareThree + { + get { return spareThree; } + set { spareThree = value; } + } + [ClassAttributs(Description = "备用字段4")] + public string SpareFour + { + get { return spareFour; } + set { spareFour = value; } + } + [ClassAttributs(Description = "备用字段5")] + public string SpareFive + { + get { return spareFive; } + set { spareFive = value; } + } + [ClassAttributs(Description = "备用字段6")] + public string SpareSix + { + get { return spareSix; } + set { spareSix = value; } + } + [ClassAttributs(Description = "备用字段7")] + public string SpareSeven + { + get { return spareSeven; } + set { spareSeven = value; } + } + [ClassAttributs(Description = "备用字段8")] + public string SpareEight + { + get { return spareEight; } + set { spareEight = value; } + } + [ClassAttributs(Description = "备用字段9")] + public string SpareNine + { + get { return spareNine; } + set { spareNine = value; } + } + [ClassAttributs(Description = "备用字段10")] + public string SpareTen + { + get { return spareTen; } + set { spareTen = value; } + } + [ClassAttributs(Description = "HIS编号")] public string HISPatientId @@ -163,28 +977,6 @@ namespace DrawGraph set { isFasting = value; } } - //申请信息 - private string patientType; - private int? applyDepartmentId; - private string applyDepartmentName; - private string applyDepName; - private string applydiagnose; - private string applydiagnoseRemark; - private string applyoperation; - private string applyOperationRemark; - private string operationPriority; - public DateTime PlanOperationTime; - - private string operation; - private string operationDoctor; - private string assistant1; - private string assistant2; - private string assistant3; - private string anaesthesiaMethodId; - private string anesthesiaDoctor; - private string instrumentNurse; - private string tourNurse; - private string operationSiteId; [ClassAttributs(Description = "住院门诊类型")] public string PatientType @@ -241,826 +1033,6 @@ namespace DrawGraph set { operationPriority = value; } } - [ClassAttributs(Description = "手术名称")] - /// - /// 手术名称,保存手术Id,可多选,逗号分隔 - /// - public string Operation - { - get { return operation; } - set { operation = value; } - } - [ClassAttributs(Description = "手术医生")] - /// - /// 手术医生,保存手术医生Id,可多选,逗号分隔 - /// - public string OperationDoctor - { - get { return operationDoctor; } - set { operationDoctor = value; } - } - [ClassAttributs(Description = "助理1")] - /// - /// 助理1,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant1 - { - get { return assistant1; } - set { assistant1 = value; } - } - [ClassAttributs(Description = "助理2")] - /// - /// 助理2,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant2 - { - get { return assistant2; } - set { assistant2 = value; } - } - [ClassAttributs(Description = "助理3")] - /// - /// 助理3,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant3 - { - get { return assistant3; } - set { assistant3 = value; } - } - [ClassAttributs(Description = "麻醉方式")] - /// - /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 - /// - public string AnaesthesiaMethodId - { - get { return anaesthesiaMethodId; } - set { anaesthesiaMethodId = value; } - } - [ClassAttributs(Description = "麻醉医生")] - /// - /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 - /// - public string AnesthesiaDoctor - { - get { return anesthesiaDoctor; } - set { anesthesiaDoctor = value; } - } - [ClassAttributs(Description = "器械护士")] - /// - /// 器械护士,保存器械护士Id,可多选,逗号分隔 - /// - public string InstrumentNurse - { - get { return instrumentNurse; } - set { instrumentNurse = value; } - } - [ClassAttributs(Description = "巡回护士")] - /// - /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 - /// - public string TourNurse - { - get { return tourNurse; } - set { tourNurse = value; } - } - [ClassAttributs(Description = "手术体位")] - /// - /// 手术体位,保存手术体位Id,可多选,逗号分隔 - /// - public string OperationSiteId - { - get { return operationSiteId; } - set { operationSiteId = value; } - } - - //术中信息 - - private int? id; - private int? patientId; - private int? operationApplyId; - private DateTime? inRoomTime; - private DateTime? outRoomTime; - private DateTime? operationBeginTime; - private DateTime? operationEndTime; - private DateTime? anesthesiaBeginTime; - private DateTime? anesthesiaEndTime; - private int? aSALevel; - private string specialCase; - private int? fasting; - private string operationDate; - private string opeSpecialCondition; - private string bMI; - private string beforeDrugs; - private string anaesthesiaMethodName; - private string anaesthesiaTechnology; - private string anaesthesiaComplication; - private string specialEvent; - private string suddenSituation; - private string conditionChage; - private string rescueMeasures; - private string rescueTime; - private string rescuePerson; - private string rescueTechnology; - private string spileInTime; - private string spileOutTime; - private string spileSituation; - private string spileWard; - private string spileBeforCondition; - private string spileAffterCondition; - private string refluxFlag; - private string muscleStrengthRecovery; - private string coughReflex; - private string inOperaRoomState; - private string bloodPressure; - private string tempeture; - private string pulse; - private string breath; - private string isolationIndicator; - private string anesMachine; - private string controlledAnalgesia; - private string analgesiaModel; - private string analgesiaRate; - private string analgesiaDrug; - private string aldreteScore; - private string routeMonitoring; - private string entourage; - private string remark1; - private string remark2; - private string remark3; - private string crystal; - private string colloid; - private string inAmount; - private string outAmount; - private string operationTimeSpan; - private string anaesthesiaTimeSpan; - private string roomTimeSpan; - private string anesthesiaDoctorTimeMinute; - private string anesthesiaDoctorSucceedTimeMinute; - private string instrumentNurseTimeMinute; - private string instrumentNurseSucceedTimeMinute; - private string tourNurseTimeMinute; - private string tourNurseSucceedTimeMinute; - private string recordPageCount; - private string signName; - private string signTime; - private int? roomId; - private int? state; - private int? recoverId; - private string operatorNo; - private string operatorName; - private DateTime? operateDate; - private string remarks; - - - /// - /// - /// - public int? Id - { - get { return id; } - set { id = value; } - } - /// - /// - /// - public int? PatientId - { - get { return patientId; } - set { patientId = value; } - } - /// - /// - /// - public int? OperationApplyId - { - get { return operationApplyId; } - set { operationApplyId = value; } - } - /// - /// - /// - public DateTime? InRoomTime - { - get { return inRoomTime; } - set { inRoomTime = value; } - } - /// - /// - /// - public DateTime? OutRoomTime - { - get { return outRoomTime; } - set { outRoomTime = value; } - } - /// - /// - /// - public DateTime? OperationBeginTime - { - get { return operationBeginTime; } - set { operationBeginTime = value; } - } - /// - /// - /// - public DateTime? OperationEndTime - { - get { return operationEndTime; } - set { operationEndTime = value; } - } - /// - /// - /// - public DateTime? AnesthesiaBeginTime - { - get { return anesthesiaBeginTime; } - set { anesthesiaBeginTime = value; } - } - /// - /// - /// - public DateTime? AnesthesiaEndTime - { - get { return anesthesiaEndTime; } - set { anesthesiaEndTime = value; } - } - /// - /// - /// - public int? ASALevel - { - get { return aSALevel; } - set { aSALevel = value; } - } - /// - /// - /// - public string SpecialCase - { - get { return specialCase; } - set { specialCase = value; } - } - /// - /// - /// - public int? Fasting - { - get { return fasting; } - set { fasting = value; } - } - /// - /// - /// - public string OperationDate - { - get { return operationDate; } - set { operationDate = value; } - } - /// - /// - /// - public string OpeSpecialCondition - { - get { return opeSpecialCondition; } - set { opeSpecialCondition = value; } - } - /// - /// - /// - public string BMI - { - get { return bMI; } - set { bMI = value; } - } - /// - /// - /// - public string BeforeDrugs - { - get { return beforeDrugs; } - set { beforeDrugs = value; } - } - /// - /// - /// - public string AnaesthesiaMethodName - { - get { return anaesthesiaMethodName; } - set { anaesthesiaMethodName = value; } - } - /// - /// - /// - public string AnaesthesiaTechnology - { - get { return anaesthesiaTechnology; } - set { anaesthesiaTechnology = value; } - } - /// - /// - /// - public string AnaesthesiaComplication - { - get { return anaesthesiaComplication; } - set { anaesthesiaComplication = value; } - } - /// - /// - /// - public string SpecialEvent - { - get { return specialEvent; } - set { specialEvent = value; } - } - /// - /// - /// - public string SuddenSituation - { - get { return suddenSituation; } - set { suddenSituation = value; } - } - /// - /// - /// - public string ConditionChage - { - get { return conditionChage; } - set { conditionChage = value; } - } - /// - /// - /// - public string RescueMeasures - { - get { return rescueMeasures; } - set { rescueMeasures = value; } - } - /// - /// - /// - public string RescueTime - { - get { return rescueTime; } - set { rescueTime = value; } - } - /// - /// - /// - public string RescuePerson - { - get { return rescuePerson; } - set { rescuePerson = value; } - } - /// - /// - /// - public string RescueTechnology - { - get { return rescueTechnology; } - set { rescueTechnology = value; } - } - /// - /// - /// - public string SpileInTime - { - get { return spileInTime; } - set { spileInTime = value; } - } - /// - /// - /// - public string SpileOutTime - { - get { return spileOutTime; } - set { spileOutTime = value; } - } - /// - /// - /// - public string SpileSituation - { - get { return spileSituation; } - set { spileSituation = value; } - } - /// - /// - /// - public string SpileWard - { - get { return spileWard; } - set { spileWard = value; } - } - /// - /// - /// - public string SpileBeforCondition - { - get { return spileBeforCondition; } - set { spileBeforCondition = value; } - } - /// - /// - /// - public string SpileAffterCondition - { - get { return spileAffterCondition; } - set { spileAffterCondition = value; } - } - /// - /// - /// - public string RefluxFlag - { - get { return refluxFlag; } - set { refluxFlag = value; } - } - /// - /// - /// - public string MuscleStrengthRecovery - { - get { return muscleStrengthRecovery; } - set { muscleStrengthRecovery = value; } - } - /// - /// - /// - public string CoughReflex - { - get { return coughReflex; } - set { coughReflex = value; } - } - /// - /// - /// - public string InOperaRoomState - { - get { return inOperaRoomState; } - set { inOperaRoomState = value; } - } - /// - /// - /// - public string BloodPressure - { - get { return bloodPressure; } - set { bloodPressure = value; } - } - /// - /// - /// - public string Tempeture - { - get { return tempeture; } - set { tempeture = value; } - } - /// - /// - /// - public string Pulse - { - get { return pulse; } - set { pulse = value; } - } - /// - /// - /// - public string Breath - { - get { return breath; } - set { breath = value; } - } - /// - /// - /// - public string IsolationIndicator - { - get { return isolationIndicator; } - set { isolationIndicator = value; } - } - /// - /// - /// - public string AnesMachine - { - get { return anesMachine; } - set { anesMachine = value; } - } - /// - /// - /// - public string ControlledAnalgesia - { - get { return controlledAnalgesia; } - set { controlledAnalgesia = value; } - } - /// - /// - /// - public string AnalgesiaModel - { - get { return analgesiaModel; } - set { analgesiaModel = value; } - } - /// - /// - /// - public string AnalgesiaRate - { - get { return analgesiaRate; } - set { analgesiaRate = value; } - } - /// - /// - /// - public string AnalgesiaDrug - { - get { return analgesiaDrug; } - set { analgesiaDrug = value; } - } - /// - /// - /// - public string AldreteScore - { - get { return aldreteScore; } - set { aldreteScore = value; } - } - /// - /// - /// - public string RouteMonitoring - { - get { return routeMonitoring; } - set { routeMonitoring = value; } - } - /// - /// - /// - public string Entourage - { - get { return entourage; } - set { entourage = value; } - } - /// - /// - /// - public string Remark1 - { - get { return remark1; } - set { remark1 = value; } - } - /// - /// - /// - public string Remark2 - { - get { return remark2; } - set { remark2 = value; } - } - /// - /// - /// - public string Remark3 - { - get { return remark3; } - set { remark3 = value; } - } - /// - /// - /// - public string Crystal - { - get { return crystal; } - set { crystal = value; } - } - /// - /// - /// - public string Colloid - { - get { return colloid; } - set { colloid = value; } - } - /// - /// - /// - public string InAmount - { - get { return inAmount; } - set { inAmount = value; } - } - /// - /// - /// - public string OutAmount - { - get { return outAmount; } - set { outAmount = value; } - } - /// - /// - /// - public string OperationTimeSpan - { - get { return operationTimeSpan; } - set { operationTimeSpan = value; } - } - /// - /// - /// - public string AnaesthesiaTimeSpan - { - get { return anaesthesiaTimeSpan; } - set { anaesthesiaTimeSpan = value; } - } - /// - /// - /// - public string RoomTimeSpan - { - get { return roomTimeSpan; } - set { roomTimeSpan = value; } - } - /// - /// - /// - public string AnesthesiaDoctorTimeMinute - { - get { return anesthesiaDoctorTimeMinute; } - set { anesthesiaDoctorTimeMinute = value; } - } - /// - /// - /// - public string AnesthesiaDoctorSucceedTimeMinute - { - get { return anesthesiaDoctorSucceedTimeMinute; } - set { anesthesiaDoctorSucceedTimeMinute = value; } - } - /// - /// - /// - public string InstrumentNurseTimeMinute - { - get { return instrumentNurseTimeMinute; } - set { instrumentNurseTimeMinute = value; } - } - /// - /// - /// - public string InstrumentNurseSucceedTimeMinute - { - get { return instrumentNurseSucceedTimeMinute; } - set { instrumentNurseSucceedTimeMinute = value; } - } - /// - /// - /// - public string TourNurseTimeMinute - { - get { return tourNurseTimeMinute; } - set { tourNurseTimeMinute = value; } - } - /// - /// - /// - public string TourNurseSucceedTimeMinute - { - get { return tourNurseSucceedTimeMinute; } - set { tourNurseSucceedTimeMinute = value; } - } - /// - /// - /// - public string RecordPageCount - { - get { return recordPageCount; } - set { recordPageCount = value; } - } - /// - /// - /// - public string SignName - { - get { return signName; } - set { signName = value; } - } - /// - /// - /// - public string SignTime - { - get { return signTime; } - set { signTime = value; } - } - /// - /// - /// - public int? RoomId - { - get { return roomId; } - set { roomId = value; } - } - /// - /// 1手术中 - /// 2.手术结束 - /// - public int? State - { - get { return state; } - set { state = value; } - } - /// - /// - /// - public int? RecoverId - { - get { return recoverId; } - set { recoverId = value; } - } - /// - /// - /// - public string OperatorNo - { - get { return operatorNo; } - set { operatorNo = value; } - } - /// - /// - /// - public string OperatorName - { - get { return operatorName; } - set { operatorName = value; } - } - /// - /// - /// - public DateTime? OperateDate - { - get { return operateDate; } - set { operateDate = value; } - } - /// - /// - /// - public string Remarks - { - get { return remarks; } - set { remarks = value; } - } - - private List factEventsList; - private List factDrugList; - private List factOutputLiquidsList; - private List factBloodGasAnalysisList; - private List anaseDataQualityRecordList; - private OperationRecordInfo opeRecordInfo; - private OperationRecoverInInfo opeRecoverInInfo; - private OperationRecoverOutInfo opeRecoverOutInfo; - private OperationRecordInstrumentList instrumentList; - - public List EventListstr = new List(); - public List DrugsListstr = new List(); - public List AfterDrugsListstr = new List(); - public List FluidListstr = new List(); - public List PunctureAndIntubatio; - public List addPhysioList; - - [ClassAttributs(Description = "总页数")] - public int currentPage { get; set; } - [ClassAttributs(Description = "当前页数")] - public int pageCount { get; set; } - [ClassAttributs(Description = "是否只读")] - public bool IsReadOnly = false; - [ClassAttributs(Description = "绘图开始时间")] - public DateTime sharpBegin; - [ClassAttributs(Description = "页开始时间")] - public DateTime pageBegin; - [ClassAttributs(Description = "页结束时间")] - public DateTime lastPageBegin; - [ClassAttributs(Description = "入CG时间")] - public DateTime? InCGTime; - [ClassAttributs(Description = "出CG时间")] - public DateTime? OutCGTime; - [NoCreatControlAttributs] - public string InCGType; - [NoCreatControlAttributs] - public string MedicalRecord; - [NoCreatControlAttributs] - public DataTable PhysioParamList; - - [ClassAttributs(Description = "选中范围的对象")] - [NoCreatControlAttributs] - public SelectedAreaObj SAreaObj - { - get { return SelectedAreaObj.GetInstance(); } - } - - [NoCreatControlAttributs] public List FactEventsList diff --git a/DrawGraph/DrawGraph.csproj b/DrawGraph/DrawGraph.csproj index 9da8d7b..0bec243 100644 --- a/DrawGraph/DrawGraph.csproj +++ b/DrawGraph/DrawGraph.csproj @@ -67,7 +67,7 @@ Form - + diff --git a/DrawGraphManagement/Main.Designer.cs b/DrawGraphManagement/Main.Designer.cs index 9e2e8d5..43940e3 100644 --- a/DrawGraphManagement/Main.Designer.cs +++ b/DrawGraphManagement/Main.Designer.cs @@ -71,6 +71,7 @@ this.label4 = new System.Windows.Forms.Label(); this.myPanel1 = new DrawGraphManagement.MyPanel(); this.zedGraphMain = new DrawGraph.ZedGraphControl(); + this.button10 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.panel4.SuspendLayout(); this.pnlManageList.SuspendLayout(); @@ -131,7 +132,7 @@ // // btnSave // - this.btnSave.Location = new System.Drawing.Point(846, 7); + this.btnSave.Location = new System.Drawing.Point(929, 8); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(75, 23); this.btnSave.TabIndex = 5; @@ -170,6 +171,7 @@ this.panel4.Controls.Add(this.button8); this.panel4.Controls.Add(this.button7); this.panel4.Controls.Add(this.button6); + this.panel4.Controls.Add(this.button10); this.panel4.Controls.Add(this.button2); this.panel4.Controls.Add(this.btnCreate); this.panel4.Controls.Add(this.btnSave); @@ -233,7 +235,7 @@ // // BtnBind // - this.BtnBind.Location = new System.Drawing.Point(763, 8); + this.BtnBind.Location = new System.Drawing.Point(852, 8); this.BtnBind.Name = "BtnBind"; this.BtnBind.Size = new System.Drawing.Size(75, 23); this.BtnBind.TabIndex = 11; @@ -259,17 +261,17 @@ // // button9 // - this.button9.Location = new System.Drawing.Point(289, 8); + this.button9.Location = new System.Drawing.Point(394, 8); this.button9.Name = "button9"; - this.button9.Size = new System.Drawing.Size(122, 23); + this.button9.Size = new System.Drawing.Size(130, 23); this.button9.TabIndex = 6; - this.button9.Text = "加载麻醉记录单背面"; + this.button9.Text = "加载麻醉记录单2背面"; this.button9.UseVisualStyleBackColor = true; this.button9.Click += new System.EventHandler(this.button9_Click); // // button8 // - this.button8.Location = new System.Drawing.Point(633, 8); + this.button8.Location = new System.Drawing.Point(728, 8); this.button8.Name = "button8"; this.button8.Size = new System.Drawing.Size(122, 23); this.button8.TabIndex = 6; @@ -279,7 +281,7 @@ // // button7 // - this.button7.Location = new System.Drawing.Point(526, 8); + this.button7.Location = new System.Drawing.Point(627, 8); this.button7.Name = "button7"; this.button7.Size = new System.Drawing.Size(99, 23); this.button7.TabIndex = 6; @@ -289,7 +291,7 @@ // // button6 // - this.button6.Location = new System.Drawing.Point(419, 8); + this.button6.Location = new System.Drawing.Point(526, 8); this.button6.Name = "button6"; this.button6.Size = new System.Drawing.Size(99, 23); this.button6.TabIndex = 6; @@ -507,6 +509,16 @@ this.zedGraphMain.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zedGraphMain_KeyUp); this.zedGraphMain.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zedGraphMain_MouseDoubleClick); // + // button10 + // + this.button10.Location = new System.Drawing.Point(283, 8); + this.button10.Name = "button10"; + this.button10.Size = new System.Drawing.Size(109, 23); + this.button10.TabIndex = 6; + this.button10.Text = "加载麻醉记录单2"; + this.button10.UseVisualStyleBackColor = true; + this.button10.Click += new System.EventHandler(this.button10_Click); + // // Main // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -578,5 +590,6 @@ private System.Windows.Forms.Button button7; private System.Windows.Forms.Button button8; private System.Windows.Forms.Button button9; + private System.Windows.Forms.Button button10; } } \ No newline at end of file diff --git a/DrawGraphManagement/Main.cs b/DrawGraphManagement/Main.cs index 0ca5f08..9685f41 100644 --- a/DrawGraphManagement/Main.cs +++ b/DrawGraphManagement/Main.cs @@ -587,13 +587,13 @@ namespace DrawGraphManagement try { - string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=40").ToString(); + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=50").ToString(); if (jsonStr != null && jsonStr != "") { templateManage = JsonConvert.DeserializeObject(jsonStr); templateManage.ZedControl = zedGraphMain; templateManage.OpeRecord = operationRecor; - templateManage.Id = 40; + templateManage.Id = 50; bool reVal = templateManage.Load(); if (reVal) { @@ -686,5 +686,60 @@ namespace DrawGraphManagement } } + + private void button10_Click(object sender, EventArgs e) + { + if (templateManage != null) + { + templateManage.ControlClear(); + } + + try + { + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=40").ToString(); + if (jsonStr != null && jsonStr != "") + { + templateManage = JsonConvert.DeserializeObject(jsonStr); + templateManage.ZedControl = zedGraphMain; + templateManage.OpeRecord = operationRecor; + templateManage.Id = 40; + bool reVal = templateManage.Load(); + if (reVal) + { + AllRefresh(); + } + else + { + MessageBox.Show(templateManage.MsgStr); + } + AutoSizeF(); + + } + + //设置排版值 + if (templateManage.Typesetting == TypesettingEnum.Vertical) + { + cmbTypesetting.Text = "竖向"; + } + else + { + cmbTypesetting.Text = "横向"; + } + //设置纸张类型 + if (templateManage.PageType == PageTypeEnum.A4) + { + cmbPageType.Text = "A4"; + } + else + { + cmbPageType.Text = "A3"; + } + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + + } } }