1103测试文档开发修改

This commit is contained in:
leomo 2022-11-03 23:13:29 +08:00
parent dd4b0f5664
commit c422f19da1
23 changed files with 1343 additions and 1036 deletions

View File

@ -31,7 +31,7 @@ namespace AIMS
txtNo.Focus();
#if DEBUG
txtNo.Text = "admin";
txtPassWord.Text = "123";
txtPassWord.Text = "1";
btnOk_Click(null, null);
#endif
}

View File

@ -173,6 +173,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
zgcAnaesRecord.Focus();
}
templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord);
templateManage2.Bind();
zgcAnaesRecord2.Refresh();
Panel panel = zgcAnaesRecord.Parent as Panel;
panel.VerticalScroll.Value = 0;
Panel panel2 = zgcAnaesRecord2.Parent as Panel;
@ -211,6 +215,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
tb.Items.Insert(0, settingBtn);
}
}
pdg.PrintPreviewControl.Columns = 2;
pdg.Width = zgcAnaesRecord.Width + 50;
pdg.ClientSize = new System.Drawing.Size(zgcAnaesRecord.Width, zgcAnaesRecord.Height);
Form f = (Form)pdg;
@ -799,19 +804,23 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
#region
private void panel8_Scroll(object sender, ScrollEventArgs e)
{
if(templateManage!=null)
templateManage.SetPYL();
}
private void panel82_Scroll(object sender, ScrollEventArgs e)
{
if(templateManage2!=null)
templateManage2.SetPYL();
}
private void panel8_MouseWheel(object sender, MouseEventArgs e)
{
if(templateManage!=null)
templateManage.SetPYL();
}
private void panel82_MouseWheel(object sender, MouseEventArgs e)
{
if(templateManage2!=null)
templateManage2.SetPYL();
}
private void plRefresh_Click(object sender, EventArgs e)

View File

@ -11,6 +11,8 @@ using System.Windows.Forms;
using AIMSModel;
using AIMSBLL;
using DCSoftDotfuscate;
using System.Net;
using AIMSExtension;
namespace AIMS.OperationDoing.AnasRecordBill.UI
{
@ -34,6 +36,17 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
cboRoom.DisplayMember = "Name";
cboRoom.ValueMember = "Id";
//判断如果当前手术间编号不为空,则显示当前手术间
OperationRoom oprm = GetOperationRoom(rooms);
if (oprm != null && oprm.Id.Value > 0)
{
cboRoom.SelectedValue = oprm.Id.Value;
cboRoom.Text = oprm.Name.ToString();
}
if (cboRoom.Text == "" && PublicMethod.SelectRoom != 0)
{
cboRoom.SelectedValue = PublicMethod.SelectRoom;
}
FillDgv();
this.cboRoom.SelectedIndexChanged += new System.EventHandler(this.cboRoom_SelectedIndexChanged);
@ -205,7 +218,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
uc.buttonX2.Text = "取消手术";
uc.buttonX1.Visible = true;
uc.buttonX2.Visible = true;
uc.BackColor = Color.OldLace;
uc.panelExMain.Style.BackColor1.Color = Color.OldLace;
if (isMainOpen == false)
{
@ -249,6 +262,36 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI
AIMSExtension.PublicMethod.WriteLog(ex);
}
}
public OperationRoom GetOperationRoom(List<OperationRoom> list)
{
try
{
//得到计算机名
string strPcName = Dns.GetHostName();
//得到本机IP地址数组
IPHostEntry ipEntry = Dns.GetHostEntry(strPcName);
//遍历数组
foreach (OperationRoom room in list)
{
foreach (var IPadd in ipEntry.AddressList)
{
//判断当前字符串是否为正确IP地址
if (PublicMethod.IsRightIP(IPadd.ToString()))
{
if (room.Ip == IPadd.ToString() )
{
return room;
}
}
}
}
return null;
}
catch (Exception)
{
return null;
}
}
private void Uc_QxRoom(ucPatientCard uc, int RecorId, int PatientId, int applyId)
{

View File

@ -117,7 +117,7 @@ namespace AIMS.OperationDoing.AnasRecordBill
TxtAge.Text = _record.Age;
//txtEndemicArea.Text = _record.EndemicArea;
TxtBed.Text = _record.Bed;
txtOperationType.Text = _record.OperationPriority;
txtOperationType.Text = _record.OperationType;
txtOperation.Text = DBManage.GetDictionaryValuesById(_record.Operation, "手术");
txtOpeRoom.Text = _record.InRoomTime.Value.ToString("yyyy-MM-dd");

View File

@ -28,136 +28,25 @@
/// </summary>
private void InitializeComponent()
{
this.panel1 = new System.Windows.Forms.Panel();
this.lbaCon = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.label2 = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.buttonX1 = new DevComponents.DotNetBar.ButtonX();
this.buttonX2 = new DevComponents.DotNetBar.ButtonX();
this.panel1 = new System.Windows.Forms.Panel();
this.labelName = new System.Windows.Forms.Label();
this.labTabindex = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.lbaCon = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.panelExMain = new DevComponents.DotNetBar.PanelEx();
this.panel2.SuspendLayout();
this.panel1.SuspendLayout();
this.panelExMain.SuspendLayout();
this.SuspendLayout();
//
// panel1
//
this.panel1.Controls.Add(this.lbaCon);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(245, 37);
this.panel1.TabIndex = 0;
this.panel1.Click += new System.EventHandler(this.ucPatientCard_Click);
//
// lbaCon
//
this.lbaCon.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbaCon.ForeColor = System.Drawing.Color.Purple;
this.lbaCon.Location = new System.Drawing.Point(40, 10);
this.lbaCon.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbaCon.Name = "lbaCon";
this.lbaCon.Size = new System.Drawing.Size(36, 20);
this.lbaCon.TabIndex = 8;
this.lbaCon.Text = "感染";
this.lbaCon.Visible = false;
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(163, 10);
this.label3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 20);
this.label3.TabIndex = 7;
this.label3.Text = "男 30岁";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label3.Click += new System.EventHandler(this.labTabindex_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTabindex.Location = new System.Drawing.Point(69, 10);
this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labTabindex.Name = "labTabindex";
this.labTabindex.Size = new System.Drawing.Size(95, 20);
this.labTabindex.TabIndex = 7;
this.labTabindex.Text = "患者1";
this.labTabindex.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTabindex.Click += new System.EventHandler(this.labTabindex_Click);
//
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.ForeColor = System.Drawing.Color.Red;
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(36, 20);
this.labelName.TabIndex = 6;
this.labelName.Text = "急诊";
this.labelName.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse2
//
this.lblNurse2.BackColor = System.Drawing.Color.Transparent;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(245, 17);
this.lblNurse2.TabIndex = 7;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse
//
this.lblNurse.BackColor = System.Drawing.Color.Transparent;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(245, 17);
this.lblNurse.TabIndex = 6;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(245, 17);
this.lblAnesDoctors.TabIndex = 5;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(245, 17);
this.lblOpeDoctors.TabIndex = 4;
this.lblOpeDoctors.Text = "手术名称";
this.lblOpeDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// panel2
//
this.panel2.Controls.Add(this.buttonX2);
@ -167,33 +56,9 @@
this.panel2.Location = new System.Drawing.Point(0, 113);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(245, 37);
this.panel2.TabIndex = 8;
this.panel2.TabIndex = 14;
this.panel2.Click += new System.EventHandler(this.labTabindex_Click);
//
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(170, 7);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(63, 23);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 7;
this.buttonX2.Text = "取消手术";
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(101, 7);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(63, 23);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 7;
this.buttonX1.Text = "继续手术";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// label2
//
this.label2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -206,38 +71,199 @@
this.label2.Text = "状态:手术中";
this.label2.Click += new System.EventHandler(this.labTabindex_Click);
//
// buttonX1
//
this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX1.Location = new System.Drawing.Point(101, 7);
this.buttonX1.Name = "buttonX1";
this.buttonX1.Size = new System.Drawing.Size(63, 23);
this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX1.TabIndex = 7;
this.buttonX1.Text = "继续手术";
this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click);
//
// buttonX2
//
this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground;
this.buttonX2.Location = new System.Drawing.Point(170, 7);
this.buttonX2.Name = "buttonX2";
this.buttonX2.Size = new System.Drawing.Size(63, 23);
this.buttonX2.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.buttonX2.TabIndex = 7;
this.buttonX2.Text = "取消手术";
this.buttonX2.Click += new System.EventHandler(this.buttonX2_Click);
//
// panel1
//
this.panel1.Controls.Add(this.lbaCon);
this.panel1.Controls.Add(this.label3);
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(245, 37);
this.panel1.TabIndex = 9;
this.panel1.Click += new System.EventHandler(this.labTabindex_Click);
//
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.ForeColor = System.Drawing.Color.Red;
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(36, 20);
this.labelName.TabIndex = 6;
this.labelName.Text = "急诊";
this.labelName.Click += new System.EventHandler(this.labTabindex_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labTabindex.Location = new System.Drawing.Point(69, 10);
this.labTabindex.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labTabindex.Name = "labTabindex";
this.labTabindex.Size = new System.Drawing.Size(95, 20);
this.labTabindex.TabIndex = 7;
this.labTabindex.Text = "患者1";
this.labTabindex.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
this.labTabindex.Click += new System.EventHandler(this.labTabindex_Click);
//
// label3
//
this.label3.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.label3.Location = new System.Drawing.Point(163, 10);
this.label3.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(79, 20);
this.label3.TabIndex = 7;
this.label3.Text = "男 30岁";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.label3.Click += new System.EventHandler(this.labTabindex_Click);
//
// lbaCon
//
this.lbaCon.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lbaCon.ForeColor = System.Drawing.Color.Purple;
this.lbaCon.Location = new System.Drawing.Point(40, 10);
this.lbaCon.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lbaCon.Name = "lbaCon";
this.lbaCon.Size = new System.Drawing.Size(36, 20);
this.lbaCon.TabIndex = 8;
this.lbaCon.Text = "感染";
this.lbaCon.Visible = false;
this.lbaCon.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(245, 19);
this.lblOpeDoctors.TabIndex = 15;
this.lblOpeDoctors.Text = "手术名称";
this.lblOpeDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 56);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(245, 19);
this.lblAnesDoctors.TabIndex = 16;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse
//
this.lblNurse.BackColor = System.Drawing.Color.Transparent;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 75);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(245, 19);
this.lblNurse.TabIndex = 17;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.labTabindex_Click);
//
// lblNurse2
//
this.lblNurse2.BackColor = System.Drawing.Color.Transparent;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 94);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(245, 19);
this.lblNurse2.TabIndex = 18;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.labTabindex_Click);
//
// panelExMain
//
this.panelExMain.CanvasColor = System.Drawing.SystemColors.Control;
this.panelExMain.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelExMain.Controls.Add(this.lblNurse2);
this.panelExMain.Controls.Add(this.lblNurse);
this.panelExMain.Controls.Add(this.lblAnesDoctors);
this.panelExMain.Controls.Add(this.lblOpeDoctors);
this.panelExMain.Controls.Add(this.panel1);
this.panelExMain.Controls.Add(this.panel2);
this.panelExMain.DisabledBackColor = System.Drawing.Color.Empty;
this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExMain.Location = new System.Drawing.Point(0, 0);
this.panelExMain.Name = "panelExMain";
this.panelExMain.Size = new System.Drawing.Size(245, 150);
this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelExMain.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2;
this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine;
this.panelExMain.Style.BorderColor.Color = System.Drawing.Color.DodgerBlue;
this.panelExMain.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
this.panelExMain.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.panelExMain.Style.GradientAngle = 90;
this.panelExMain.TabIndex = 0;
this.panelExMain.Click += new System.EventHandler(this.labTabindex_Click);
//
// ucPatientCard
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.Color.WhiteSmoke;
this.Controls.Add(this.panel2);
this.Controls.Add(this.lblNurse2);
this.Controls.Add(this.lblNurse);
this.Controls.Add(this.lblAnesDoctors);
this.Controls.Add(this.lblOpeDoctors);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panelExMain);
this.Name = "ucPatientCard";
this.Size = new System.Drawing.Size(245, 150);
this.panel1.ResumeLayout(false);
this.panel2.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.panelExMain.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lblNurse2;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label labelName;
public System.Windows.Forms.Label labTabindex;
private System.Windows.Forms.Panel panel2;
public System.Windows.Forms.Label label2;
public System.Windows.Forms.Label label3;
public DevComponents.DotNetBar.ButtonX buttonX2;
public DevComponents.DotNetBar.ButtonX buttonX1;
public System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.Label lbaCon;
public System.Windows.Forms.Label label3;
public System.Windows.Forms.Label labTabindex;
public System.Windows.Forms.Label labelName;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblNurse2;
public DevComponents.DotNetBar.PanelEx panelExMain;
}
}

View File

@ -58,41 +58,37 @@ namespace AIMS.OremrUserControl
label2.Text = "状态:" + dr["State"].ToString();
if (dr["State"].ToString() == "手术中")
{
this.BackColor = Color.OldLace;
panelExMain.Style.BackColor1.Color = Color.OldLace;
buttonX1.Text = "继续手术";
buttonX2.Text = "取消手术";
}
else if (dr["State"].ToString() == "已排程" || dr["State"].ToString() == "已访视")
{
this.BackColor = Color.WhiteSmoke;
panelExMain.Style.BackColor1.Color = Color.WhiteSmoke;
buttonX1.Text = "转入术间";
buttonX2.Visible = false;
}
else if (dr["State"].ToString() == "已审核" || dr["State"].ToString() == "预排程")
{
this.BackColor = Color.WhiteSmoke;
panelExMain.Style.BackColor1.Color = Color.WhiteSmoke;
buttonX1.Text = "转入术间";
buttonX2.Visible = false;
label2.Text = "状态:未排程";
}
else if (dr["State"].ToString() == "停止手术")
{
this.BackColor = Color.MistyRose;
panelExMain.Style.BackColor1.Color = Color.MistyRose;
buttonX1.Text = "查看手术";
buttonX2.Text = "返回手术";
}
else
{
this.BackColor = Color.Honeydew;
panelExMain.Style.BackColor1.Color = Color.Honeydew;
buttonX1.Text = "查看手术";
buttonX2.Text = "返回手术";
}
}
private void ucPatientCard_Click(object sender, EventArgs e)
{
//ucPatientCard operationRoomClicked = GetParentRoomCards(sender as Control);
}
public ucPatientCard GetParentRoomCards(Control control)
{
if (control.Parent is ucPatientCard)
@ -122,38 +118,38 @@ namespace AIMS.OremrUserControl
}
private void SetWindowRegion()
{
GraphicsPath FormPath = new GraphicsPath();
Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
FormPath = GetRoundedRectPath(rect, 10);
this.Region = new Region(FormPath);
//private void SetWindowRegion()
//{
// GraphicsPath FormPath = new GraphicsPath();
// Rectangle rect = new Rectangle(0, 4, this.Width, this.Height - 4);
// FormPath = GetRoundedRectPath(rect, 10);
// this.Region = new Region(FormPath);
}
private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
{
int diameter = radius;
Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
GraphicsPath path = new GraphicsPath();
//左上角
path.AddArc(arcRect, 180, 90);
//右上角
arcRect.X = rect.Right - diameter;
path.AddArc(arcRect, 270, 90);
//右下角
arcRect.Y = rect.Bottom - diameter;
path.AddArc(arcRect, 0, 90);
//左下角
arcRect.X = rect.Left;
path.AddArc(arcRect, 90, 90);
path.CloseFigure();
return path;
//}
//private GraphicsPath GetRoundedRectPath(Rectangle rect, int radius)
//{
// int diameter = radius;
// Rectangle arcRect = new Rectangle(rect.Location, new Size(diameter, diameter));
// GraphicsPath path = new GraphicsPath();
// //左上角
// path.AddArc(arcRect, 180, 90);
// //右上角
// arcRect.X = rect.Right - diameter;
// path.AddArc(arcRect, 270, 90);
// //右下角
// arcRect.Y = rect.Bottom - diameter;
// path.AddArc(arcRect, 0, 90);
// //左下角
// arcRect.X = rect.Left;
// path.AddArc(arcRect, 90, 90);
// path.CloseFigure();
// return path;
}
protected override void OnResize(System.EventArgs e)
{
this.Region = null;
SetWindowRegion();
}
//}
//protected override void OnResize(System.EventArgs e)
//{
// this.Region = null;
// SetWindowRegion();
//}
}
}

View File

@ -29,34 +29,61 @@
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.panel1 = new System.Windows.Forms.Panel();
this.panelExMain = new DevComponents.DotNetBar.PanelEx();
this.lblNurse2 = new System.Windows.Forms.Label();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.tsDel = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelAnes = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelNs1 = new System.Windows.Forms.ToolStripMenuItem();
this.tsDelNs2 = new System.Windows.Forms.ToolStripMenuItem();
this.tsUpdateRoom = new System.Windows.Forms.ToolStripMenuItem();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.lblNurse2 = new System.Windows.Forms.Label();
this.lblNurse = new System.Windows.Forms.Label();
this.lblAnesDoctors = new System.Windows.Forms.Label();
this.lblOpeDoctors = new System.Windows.Forms.Label();
this.panel1.SuspendLayout();
this.panel1 = new System.Windows.Forms.Panel();
this.labTabindex = new System.Windows.Forms.Label();
this.labelName = new System.Windows.Forms.Label();
this.panelExMain.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// panel1
// panelExMain
//
this.panel1.ContextMenuStrip = this.contextMenuStrip1;
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(196, 37);
this.panel1.TabIndex = 0;
this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
this.panelExMain.CanvasColor = System.Drawing.SystemColors.Control;
this.panelExMain.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled;
this.panelExMain.Controls.Add(this.lblNurse2);
this.panelExMain.Controls.Add(this.lblNurse);
this.panelExMain.Controls.Add(this.lblAnesDoctors);
this.panelExMain.Controls.Add(this.lblOpeDoctors);
this.panelExMain.Controls.Add(this.panel1);
this.panelExMain.DisabledBackColor = System.Drawing.Color.Empty;
this.panelExMain.Dock = System.Windows.Forms.DockStyle.Fill;
this.panelExMain.Location = new System.Drawing.Point(0, 0);
this.panelExMain.Name = "panelExMain";
this.panelExMain.Size = new System.Drawing.Size(200, 110);
this.panelExMain.Style.Alignment = System.Drawing.StringAlignment.Center;
this.panelExMain.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground;
this.panelExMain.Style.Border = DevComponents.DotNetBar.eBorderType.DoubleLine;
this.panelExMain.Style.BorderColor.Color = System.Drawing.Color.DodgerBlue;
this.panelExMain.Style.BorderDashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot;
this.panelExMain.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText;
this.panelExMain.Style.GradientAngle = 90;
this.panelExMain.TabIndex = 0;
this.panelExMain.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse2
//
this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(200, 17);
this.lblNurse2.TabIndex = 19;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// contextMenuStrip1
//
@ -103,6 +130,59 @@
this.tsUpdateRoom.Size = new System.Drawing.Size(172, 22);
this.tsUpdateRoom.Text = "全部更换手术间至";
//
// lblNurse
//
this.lblNurse.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(200, 17);
this.lblNurse.TabIndex = 18;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(200, 17);
this.lblAnesDoctors.TabIndex = 17;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.BackColor = System.Drawing.Color.Transparent;
this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(200, 17);
this.lblOpeDoctors.TabIndex = 16;
this.lblOpeDoctors.Text = "手术医生";
this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.Transparent;
this.panel1.ContextMenuStrip = this.contextMenuStrip1;
this.panel1.Controls.Add(this.labTabindex);
this.panel1.Controls.Add(this.labelName);
this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(200, 37);
this.panel1.TabIndex = 8;
this.panel1.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// labTabindex
//
this.labTabindex.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@ -117,7 +197,7 @@
// labelName
//
this.labelName.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.labelName.Location = new System.Drawing.Point(0, 10);
this.labelName.Location = new System.Drawing.Point(3, 8);
this.labelName.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.labelName.Name = "labelName";
this.labelName.Size = new System.Drawing.Size(69, 20);
@ -125,91 +205,35 @@
this.labelName.Text = "第几间";
this.labelName.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse2
//
this.lblNurse2.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse2.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse2.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse2.Location = new System.Drawing.Point(0, 88);
this.lblNurse2.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse2.Name = "lblNurse2";
this.lblNurse2.Size = new System.Drawing.Size(196, 17);
this.lblNurse2.TabIndex = 7;
this.lblNurse2.Text = "巡回护士";
this.lblNurse2.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblNurse
//
this.lblNurse.ContextMenuStrip = this.contextMenuStrip1;
this.lblNurse.Dock = System.Windows.Forms.DockStyle.Top;
this.lblNurse.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblNurse.Location = new System.Drawing.Point(0, 71);
this.lblNurse.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblNurse.Name = "lblNurse";
this.lblNurse.Size = new System.Drawing.Size(196, 17);
this.lblNurse.TabIndex = 6;
this.lblNurse.Text = "洗手护士";
this.lblNurse.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblAnesDoctors
//
this.lblAnesDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblAnesDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblAnesDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblAnesDoctors.Location = new System.Drawing.Point(0, 54);
this.lblAnesDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblAnesDoctors.Name = "lblAnesDoctors";
this.lblAnesDoctors.Size = new System.Drawing.Size(196, 17);
this.lblAnesDoctors.TabIndex = 5;
this.lblAnesDoctors.Text = "麻醉医生";
this.lblAnesDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// lblOpeDoctors
//
this.lblOpeDoctors.ContextMenuStrip = this.contextMenuStrip1;
this.lblOpeDoctors.Dock = System.Windows.Forms.DockStyle.Top;
this.lblOpeDoctors.Font = new System.Drawing.Font("微软雅黑", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.lblOpeDoctors.Location = new System.Drawing.Point(0, 37);
this.lblOpeDoctors.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.lblOpeDoctors.Name = "lblOpeDoctors";
this.lblOpeDoctors.Size = new System.Drawing.Size(196, 17);
this.lblOpeDoctors.TabIndex = 4;
this.lblOpeDoctors.Text = "手术医生";
this.lblOpeDoctors.Click += new System.EventHandler(this.UcPlanOperationRoomCard_Click);
//
// ucPlanOperationRoomCard
//
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
this.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
this.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.Controls.Add(this.lblNurse2);
this.Controls.Add(this.lblNurse);
this.Controls.Add(this.lblAnesDoctors);
this.Controls.Add(this.lblOpeDoctors);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panelExMain);
this.Name = "ucPlanOperationRoomCard";
this.Size = new System.Drawing.Size(196, 106);
this.Size = new System.Drawing.Size(200, 110);
this.Load += new System.EventHandler(this.ucPlanOperationRoomCard_Load);
this.panel1.ResumeLayout(false);
this.panelExMain.ResumeLayout(false);
this.contextMenuStrip1.ResumeLayout(false);
this.panel1.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label lblNurse2;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblOpeDoctors;
public System.Windows.Forms.Label labelName;
public System.Windows.Forms.Label labTabindex;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem tsDel;
private System.Windows.Forms.ToolStripMenuItem tsDelAnes;
private System.Windows.Forms.ToolStripMenuItem tsDelNs1;
private System.Windows.Forms.ToolStripMenuItem tsDelNs2;
private System.Windows.Forms.ToolStripMenuItem tsUpdateRoom;
private System.Windows.Forms.Label lblNurse;
private System.Windows.Forms.Label lblAnesDoctors;
private System.Windows.Forms.Label lblOpeDoctors;
private System.Windows.Forms.Panel panel1;
public System.Windows.Forms.Label labTabindex;
public System.Windows.Forms.Label labelName;
public DevComponents.DotNetBar.PanelEx panelExMain;
}
}

View File

@ -94,8 +94,8 @@ namespace AIMS.OremrUserControl
if (operationRoomClicked != RoomCardManage.lastSelectOpeRoom)
{
if (RoomCardManage.lastSelectOpeRoom != null)
RoomCardManage.lastSelectOpeRoom.BackColor = System.Drawing.SystemColors.GradientActiveCaption;
operationRoomClicked.BackColor = Color.Khaki;
RoomCardManage.lastSelectOpeRoom.panelExMain.Style.BackColor1.Color = System.Drawing.SystemColors.Control;
operationRoomClicked.panelExMain.Style.BackColor1.Color = Color.Khaki;
RoomCardManage.lastSelectOpeRoom = operationRoomClicked;
RoomCardManage.IsFillAll = true;
}

View File

@ -85,7 +85,7 @@ namespace AIMSBLL
_record.Weight = double.Parse(OperationFrontdt.Rows[0]["Weight"].ToString()).ToString();
_record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString();
_record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString();
_record.OperationPriority = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString();
_record.RoomId = int.Parse(OperationFrontdt.Rows[0]["OperationRoomId"].ToString().Trim());
_record.MedicalRecord = OperationFrontdt.Rows[0]["MedicalRecord"].ToString();
@ -242,6 +242,7 @@ namespace AIMSBLL
FactDrug.OperatorNo = DrugAllData.Rows[i]["OperatorNo"].ToString();
FactDrug.OperatorName = DrugAllData.Rows[i]["OperatorName"].ToString();
FactDrug.OperateDate = DateTime.Parse(DrugAllData.Rows[i]["OperateDate"].ToString());
FactDrug.AnesType = DrugAllData.Rows[i]["AnesType"].ToString();
_record.FactDrugList.Add(FactDrug);
}
}

View File

@ -23,81 +23,81 @@ namespace AIMSDAL
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("@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 == null ? (object)DBNull.Value : (object)operationRecord.Fasting));
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.HasValue ? (object)operationRecord.SpileInTime.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@SpileOutTime", operationRecord.SpileOutTime.HasValue ? (object)operationRecord.SpileOutTime.Value : (object)DBNull.Value));
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("@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());
}
/// <summary>
@ -107,7 +107,7 @@ namespace AIMSDAL
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(OperationRecord operationRecord)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -123,7 +123,7 @@ namespace AIMSDAL
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecord">实体类对象</param>
/// <returns>标识列值或影响的记录行数</returns>
internal static int Insert(Connection connection,OperationRecord operationRecord)
internal static int Insert(Connection connection, OperationRecord operationRecord)
{
return Insert(connection.Command, operationRecord);
}
@ -167,7 +167,7 @@ namespace AIMSDAL
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecord">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Delete(Connection connection,OperationRecord operationRecord)
internal static int Delete(Connection connection, OperationRecord operationRecord)
{
return ExcuteDeleteCommand(connection.Command, operationRecord);
}
@ -244,81 +244,81 @@ namespace AIMSDAL
{
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("@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 == null ? (object)DBNull.Value : (object)operationRecord.Fasting));
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.HasValue ? (object)operationRecord.SpileInTime.Value : (object)DBNull.Value));
cmd.Parameters.Add(new SqlParameter("@SpileOutTime", operationRecord.SpileOutTime.HasValue ? (object)operationRecord.SpileOutTime.Value : (object)DBNull.Value));
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("@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();
}
@ -330,7 +330,7 @@ namespace AIMSDAL
/// <returns>影响的记录行数</returns>
internal static int Update(OperationRecord operationRecord)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -345,7 +345,7 @@ namespace AIMSDAL
/// <param name="connection">实现共享Connection的对象</param>
/// <param name="operationRecord">实体类对象</param>
/// <returns>影响的记录行数</returns>
internal static int Update(Connection connection,OperationRecord operationRecord)
internal static int Update(Connection connection, OperationRecord operationRecord)
{
return ExcuteUpdateCommand(connection.Command, operationRecord);
}
@ -412,7 +412,7 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象列表</returns>
internal static List<OperationRecord> ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
internal static List<OperationRecord> ExcuteSelectCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
{
List<OperationRecord> operationRecordList = new List<OperationRecord>();
using (SqlDataReader dr = cmd.ExecuteReader())
@ -434,13 +434,13 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
internal static List<OperationRecord> 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)
if (filterString.Trim().ToLower().IndexOf("order ") != 0)
filterString = " where " + filterString;
}
cmd.Parameters.Clear();
@ -462,7 +462,7 @@ namespace AIMSDAL
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> Select()
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -480,7 +480,7 @@ namespace AIMSDAL
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> Select(RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -499,7 +499,7 @@ namespace AIMSDAL
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> Select(string oql, ParameterList parameters)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -517,9 +517,9 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth)
internal static List<OperationRecord> Select(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -540,7 +540,7 @@ namespace AIMSDAL
/// <returns>实体类对象集合</returns>
internal static List<OperationRecord> Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth);
return ExcuteSelectCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth);
}
#endregion
@ -553,15 +553,15 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecord ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth)
internal static OperationRecord ExcuteSelectSingleCommand(SqlCommand cmd, RecursiveType recursiveType, int recursiveDepth)
{
OperationRecord operationRecord=null;
OperationRecord operationRecord = null;
using (SqlDataReader dr = cmd.ExecuteReader())
{
if(dr.Read())
if (dr.Read())
operationRecord = DataReaderToEntity(dr);
}
if(operationRecord==null)
if (operationRecord == null)
return operationRecord;
return operationRecord;
}
@ -574,13 +574,13 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecord ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth)
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)
if (filterString != string.Empty)
{
filterString=" where "+filterString;
filterString = " where " + filterString;
}
cmd.CommandText = "select * from OperationRecord " + filterString;
cmd.Parameters.Clear();
@ -606,7 +606,7 @@ namespace AIMSDAL
/// <returns>实体对象</returns>
internal static OperationRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
@ -625,7 +625,7 @@ namespace AIMSDAL
/// <returns>实体对象</returns>
internal static OperationRecord SelectSingle(string oql, ParameterList parameters)
{
return SelectSingle(oql,parameters,RecursiveType.Parent,1);
return SelectSingle(oql, parameters, RecursiveType.Parent, 1);
}
/// <summary>
@ -648,13 +648,13 @@ namespace AIMSDAL
/// <param name="recursiveType">递归类型</param>
/// <param name="recursiveDepth">递归深度</param>
/// <returns>实体对象</returns>
internal static OperationRecord SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth)
internal static OperationRecord SelectSingle(SqlCommand cmd, int? id, RecursiveType recursiveType, int recursiveDepth)
{
cmd.Parameters.Clear();
if(id.HasValue)
if (id.HasValue)
{
cmd.CommandText = "select * from OperationRecord where Id=@pk";
cmd.Parameters.Add(new SqlParameter("@pk",id.Value));
cmd.Parameters.Add(new SqlParameter("@pk", id.Value));
}
else
{
@ -670,12 +670,12 @@ namespace AIMSDAL
/// <returns>实体类对象</returns>
internal static OperationRecord SelectSingle(int? id)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id,RecursiveType.Parent,1);
return SelectSingle(cmd, id, RecursiveType.Parent, 1);
}
}
}
@ -688,12 +688,12 @@ namespace AIMSDAL
/// <returns>实体类对象</returns>
internal static OperationRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth)
{
using(SqlConnection conn=new SqlConnection(Connection.ConnectionString))
using (SqlConnection conn = new SqlConnection(Connection.ConnectionString))
{
conn.Open();
using (SqlCommand cmd = conn.CreateCommand())
{
return SelectSingle(cmd,id, recursiveType, recursiveDepth);
return SelectSingle(cmd, id, recursiveType, recursiveDepth);
}
}
}
@ -704,7 +704,7 @@ namespace AIMSDAL
/// <param name="connection">连接对象</param>
/// <param name="id">主键值</param>
/// <returns>实体类对象</returns>
internal static OperationRecord SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth)
internal static OperationRecord SelectSingle(Connection connection, int? id, RecursiveType recursiveType, int recursiveDepth)
{
return SelectSingle(connection.Command, id, recursiveType, recursiveDepth);
}
@ -718,310 +718,310 @@ namespace AIMSDAL
/// <returns>过滤条件字符串</returns>
private static OperationRecord DataReaderToEntity(SqlDataReader dr)
{
OperationRecord entity = new OperationRecord ();
if(dr["Id"]!=System.DBNull.Value)
OperationRecord entity = new OperationRecord();
if (dr["Id"] != System.DBNull.Value)
{
entity.Id=Convert.ToInt32(dr["Id"]);
entity.Id = Convert.ToInt32(dr["Id"]);
}
if(dr["PatientId"]!=System.DBNull.Value)
if (dr["PatientId"] != System.DBNull.Value)
{
entity.PatientId=Convert.ToInt32(dr["PatientId"]);
entity.PatientId = Convert.ToInt32(dr["PatientId"]);
}
if(dr["OperationApplyId"]!=System.DBNull.Value)
if (dr["OperationApplyId"] != System.DBNull.Value)
{
entity.OperationApplyId=Convert.ToInt32(dr["OperationApplyId"]);
entity.OperationApplyId = Convert.ToInt32(dr["OperationApplyId"]);
}
if(dr["InRoomTime"]!=System.DBNull.Value)
if (dr["InRoomTime"] != System.DBNull.Value)
{
entity.InRoomTime=Convert.ToDateTime(dr["InRoomTime"]);
entity.InRoomTime = Convert.ToDateTime(dr["InRoomTime"]);
}
if(dr["OutRoomTime"]!=System.DBNull.Value)
if (dr["OutRoomTime"] != System.DBNull.Value)
{
entity.OutRoomTime=Convert.ToDateTime(dr["OutRoomTime"]);
entity.OutRoomTime = Convert.ToDateTime(dr["OutRoomTime"]);
}
if(dr["OperationBeginTime"]!=System.DBNull.Value)
if (dr["OperationBeginTime"] != System.DBNull.Value)
{
entity.OperationBeginTime=Convert.ToDateTime(dr["OperationBeginTime"]);
entity.OperationBeginTime = Convert.ToDateTime(dr["OperationBeginTime"]);
}
if(dr["OperationEndTime"]!=System.DBNull.Value)
if (dr["OperationEndTime"] != System.DBNull.Value)
{
entity.OperationEndTime=Convert.ToDateTime(dr["OperationEndTime"]);
entity.OperationEndTime = Convert.ToDateTime(dr["OperationEndTime"]);
}
if(dr["AnesthesiaBeginTime"]!=System.DBNull.Value)
if (dr["AnesthesiaBeginTime"] != System.DBNull.Value)
{
entity.AnesthesiaBeginTime=Convert.ToDateTime(dr["AnesthesiaBeginTime"]);
entity.AnesthesiaBeginTime = Convert.ToDateTime(dr["AnesthesiaBeginTime"]);
}
if(dr["AnesthesiaEndTime"]!=System.DBNull.Value)
if (dr["AnesthesiaEndTime"] != System.DBNull.Value)
{
entity.AnesthesiaEndTime=Convert.ToDateTime(dr["AnesthesiaEndTime"]);
entity.AnesthesiaEndTime = Convert.ToDateTime(dr["AnesthesiaEndTime"]);
}
if(dr["ASALevel"]!=System.DBNull.Value)
if (dr["ASALevel"] != System.DBNull.Value)
{
entity.ASALevel=Convert.ToInt32(dr["ASALevel"]);
entity.ASALevel = Convert.ToInt32(dr["ASALevel"]);
}
if(dr["SpecialCase"]!=System.DBNull.Value)
if (dr["SpecialCase"] != System.DBNull.Value)
{
entity.SpecialCase=dr["SpecialCase"].ToString();
entity.SpecialCase = dr["SpecialCase"].ToString();
}
if(dr["Fasting"]!=System.DBNull.Value)
if (dr["Fasting"] != System.DBNull.Value)
{
entity.Fasting=Convert.ToInt32(dr["Fasting"]);
entity.Fasting = dr["Fasting"].ToString();
}
if(dr["BloodType"]!=System.DBNull.Value)
if (dr["BloodType"] != System.DBNull.Value)
{
entity.BloodType=dr["BloodType"].ToString();
entity.BloodType = dr["BloodType"].ToString();
}
if(dr["OperationDate"]!=System.DBNull.Value)
if (dr["OperationDate"] != System.DBNull.Value)
{
entity.OperationDate=dr["OperationDate"].ToString();
entity.OperationDate = dr["OperationDate"].ToString();
}
if(dr["OpeSpecialCondition"]!=System.DBNull.Value)
if (dr["OpeSpecialCondition"] != System.DBNull.Value)
{
entity.OpeSpecialCondition=dr["OpeSpecialCondition"].ToString();
entity.OpeSpecialCondition = dr["OpeSpecialCondition"].ToString();
}
if(dr["BMI"]!=System.DBNull.Value)
if (dr["BMI"] != System.DBNull.Value)
{
entity.BMI=dr["BMI"].ToString();
entity.BMI = dr["BMI"].ToString();
}
if(dr["BeforeDrugs"]!=System.DBNull.Value)
if (dr["BeforeDrugs"] != System.DBNull.Value)
{
entity.BeforeDrugs=dr["BeforeDrugs"].ToString();
entity.BeforeDrugs = dr["BeforeDrugs"].ToString();
}
if(dr["AnaesthesiaMethodName"]!=System.DBNull.Value)
if (dr["AnaesthesiaMethodName"] != System.DBNull.Value)
{
entity.AnaesthesiaMethodName=dr["AnaesthesiaMethodName"].ToString();
entity.AnaesthesiaMethodName = dr["AnaesthesiaMethodName"].ToString();
}
if(dr["AnaesthesiaTechnology"]!=System.DBNull.Value)
if (dr["AnaesthesiaTechnology"] != System.DBNull.Value)
{
entity.AnaesthesiaTechnology=dr["AnaesthesiaTechnology"].ToString();
entity.AnaesthesiaTechnology = dr["AnaesthesiaTechnology"].ToString();
}
if(dr["AnaesthesiaComplication"]!=System.DBNull.Value)
if (dr["AnaesthesiaComplication"] != System.DBNull.Value)
{
entity.AnaesthesiaComplication=dr["AnaesthesiaComplication"].ToString();
entity.AnaesthesiaComplication = dr["AnaesthesiaComplication"].ToString();
}
if(dr["SpecialEvent"]!=System.DBNull.Value)
if (dr["SpecialEvent"] != System.DBNull.Value)
{
entity.SpecialEvent=dr["SpecialEvent"].ToString();
entity.SpecialEvent = dr["SpecialEvent"].ToString();
}
if(dr["SuddenSituation"]!=System.DBNull.Value)
if (dr["SuddenSituation"] != System.DBNull.Value)
{
entity.SuddenSituation=dr["SuddenSituation"].ToString();
entity.SuddenSituation = dr["SuddenSituation"].ToString();
}
if(dr["ConditionChage"]!=System.DBNull.Value)
if (dr["ConditionChage"] != System.DBNull.Value)
{
entity.ConditionChage=dr["ConditionChage"].ToString();
entity.ConditionChage = dr["ConditionChage"].ToString();
}
if(dr["RescueMeasures"]!=System.DBNull.Value)
if (dr["RescueMeasures"] != System.DBNull.Value)
{
entity.RescueMeasures=dr["RescueMeasures"].ToString();
entity.RescueMeasures = dr["RescueMeasures"].ToString();
}
if(dr["RescueTime"]!=System.DBNull.Value)
if (dr["RescueTime"] != System.DBNull.Value)
{
entity.RescueTime=dr["RescueTime"].ToString();
entity.RescueTime = dr["RescueTime"].ToString();
}
if(dr["RescuePerson"]!=System.DBNull.Value)
if (dr["RescuePerson"] != System.DBNull.Value)
{
entity.RescuePerson=dr["RescuePerson"].ToString();
entity.RescuePerson = dr["RescuePerson"].ToString();
}
if(dr["RescueTechnology"]!=System.DBNull.Value)
if (dr["RescueTechnology"] != System.DBNull.Value)
{
entity.RescueTechnology=dr["RescueTechnology"].ToString();
entity.RescueTechnology = dr["RescueTechnology"].ToString();
}
if(dr["SpileInTime"]!=System.DBNull.Value)
if (dr["SpileInTime"] != System.DBNull.Value)
{
entity.SpileInTime= Convert.ToDateTime(dr["SpileInTime"]);
entity.SpileInTime = Convert.ToDateTime(dr["SpileInTime"]);
}
if(dr["SpileOutTime"]!=System.DBNull.Value)
if (dr["SpileOutTime"] != System.DBNull.Value)
{
entity.SpileOutTime= Convert.ToDateTime(dr["SpileOutTime"]);
entity.SpileOutTime = Convert.ToDateTime(dr["SpileOutTime"]);
}
if(dr["SpileSituation"]!=System.DBNull.Value)
if (dr["SpileSituation"] != System.DBNull.Value)
{
entity.SpileSituation=dr["SpileSituation"].ToString();
entity.SpileSituation = dr["SpileSituation"].ToString();
}
if(dr["SpileWard"]!=System.DBNull.Value)
if (dr["SpileWard"] != System.DBNull.Value)
{
entity.SpileWard=dr["SpileWard"].ToString();
entity.SpileWard = dr["SpileWard"].ToString();
}
if(dr["SpileBeforCondition"]!=System.DBNull.Value)
if (dr["SpileBeforCondition"] != System.DBNull.Value)
{
entity.SpileBeforCondition=dr["SpileBeforCondition"].ToString();
entity.SpileBeforCondition = dr["SpileBeforCondition"].ToString();
}
if(dr["SpileAffterCondition"]!=System.DBNull.Value)
if (dr["SpileAffterCondition"] != System.DBNull.Value)
{
entity.SpileAffterCondition=dr["SpileAffterCondition"].ToString();
entity.SpileAffterCondition = dr["SpileAffterCondition"].ToString();
}
if(dr["RefluxFlag"]!=System.DBNull.Value)
if (dr["RefluxFlag"] != System.DBNull.Value)
{
entity.RefluxFlag=dr["RefluxFlag"].ToString();
entity.RefluxFlag = dr["RefluxFlag"].ToString();
}
if(dr["MuscleStrengthRecovery"]!=System.DBNull.Value)
if (dr["MuscleStrengthRecovery"] != System.DBNull.Value)
{
entity.MuscleStrengthRecovery=dr["MuscleStrengthRecovery"].ToString();
entity.MuscleStrengthRecovery = dr["MuscleStrengthRecovery"].ToString();
}
if(dr["CoughReflex"]!=System.DBNull.Value)
if (dr["CoughReflex"] != System.DBNull.Value)
{
entity.CoughReflex=dr["CoughReflex"].ToString();
entity.CoughReflex = dr["CoughReflex"].ToString();
}
if(dr["InOperaRoomState"]!=System.DBNull.Value)
if (dr["InOperaRoomState"] != System.DBNull.Value)
{
entity.InOperaRoomState=dr["InOperaRoomState"].ToString();
entity.InOperaRoomState = dr["InOperaRoomState"].ToString();
}
if(dr["BloodPressure"]!=System.DBNull.Value)
if (dr["BloodPressure"] != System.DBNull.Value)
{
entity.BloodPressure=dr["BloodPressure"].ToString();
entity.BloodPressure = dr["BloodPressure"].ToString();
}
if(dr["Tempeture"]!=System.DBNull.Value)
if (dr["Tempeture"] != System.DBNull.Value)
{
entity.Tempeture=dr["Tempeture"].ToString();
entity.Tempeture = dr["Tempeture"].ToString();
}
if(dr["Pulse"]!=System.DBNull.Value)
if (dr["Pulse"] != System.DBNull.Value)
{
entity.Pulse=dr["Pulse"].ToString();
entity.Pulse = dr["Pulse"].ToString();
}
if(dr["Breath"]!=System.DBNull.Value)
if (dr["Breath"] != System.DBNull.Value)
{
entity.Breath=dr["Breath"].ToString();
entity.Breath = dr["Breath"].ToString();
}
if(dr["IsolationIndicator"]!=System.DBNull.Value)
if (dr["IsolationIndicator"] != System.DBNull.Value)
{
entity.IsolationIndicator=dr["IsolationIndicator"].ToString();
entity.IsolationIndicator = dr["IsolationIndicator"].ToString();
}
if(dr["AnesMachine"]!=System.DBNull.Value)
if (dr["AnesMachine"] != System.DBNull.Value)
{
entity.AnesMachine=dr["AnesMachine"].ToString();
entity.AnesMachine = dr["AnesMachine"].ToString();
}
if(dr["ControlledAnalgesia"]!=System.DBNull.Value)
if (dr["ControlledAnalgesia"] != System.DBNull.Value)
{
entity.ControlledAnalgesia=dr["ControlledAnalgesia"].ToString();
entity.ControlledAnalgesia = dr["ControlledAnalgesia"].ToString();
}
if(dr["AnalgesiaModel"]!=System.DBNull.Value)
if (dr["AnalgesiaModel"] != System.DBNull.Value)
{
entity.AnalgesiaModel=dr["AnalgesiaModel"].ToString();
entity.AnalgesiaModel = dr["AnalgesiaModel"].ToString();
}
if(dr["AnalgesiaRate"]!=System.DBNull.Value)
if (dr["AnalgesiaRate"] != System.DBNull.Value)
{
entity.AnalgesiaRate=dr["AnalgesiaRate"].ToString();
entity.AnalgesiaRate = dr["AnalgesiaRate"].ToString();
}
if(dr["AnalgesiaDrug"]!=System.DBNull.Value)
if (dr["AnalgesiaDrug"] != System.DBNull.Value)
{
entity.AnalgesiaDrug=dr["AnalgesiaDrug"].ToString();
entity.AnalgesiaDrug = dr["AnalgesiaDrug"].ToString();
}
if(dr["AldreteScore"]!=System.DBNull.Value)
if (dr["AldreteScore"] != System.DBNull.Value)
{
entity.AldreteScore=dr["AldreteScore"].ToString();
entity.AldreteScore = dr["AldreteScore"].ToString();
}
if(dr["RouteMonitoring"]!=System.DBNull.Value)
if (dr["RouteMonitoring"] != System.DBNull.Value)
{
entity.RouteMonitoring=dr["RouteMonitoring"].ToString();
entity.RouteMonitoring = dr["RouteMonitoring"].ToString();
}
if(dr["Entourage"]!=System.DBNull.Value)
if (dr["Entourage"] != System.DBNull.Value)
{
entity.Entourage=dr["Entourage"].ToString();
entity.Entourage = dr["Entourage"].ToString();
}
if(dr["Remark1"]!=System.DBNull.Value)
if (dr["Remark1"] != System.DBNull.Value)
{
entity.Remark1=dr["Remark1"].ToString();
entity.Remark1 = dr["Remark1"].ToString();
}
if(dr["Remark2"]!=System.DBNull.Value)
if (dr["Remark2"] != System.DBNull.Value)
{
entity.Remark2=dr["Remark2"].ToString();
entity.Remark2 = dr["Remark2"].ToString();
}
if(dr["Remark3"]!=System.DBNull.Value)
if (dr["Remark3"] != System.DBNull.Value)
{
entity.Remark3=dr["Remark3"].ToString();
entity.Remark3 = dr["Remark3"].ToString();
}
if(dr["Crystal"]!=System.DBNull.Value)
if (dr["Crystal"] != System.DBNull.Value)
{
entity.Crystal=dr["Crystal"].ToString();
entity.Crystal = dr["Crystal"].ToString();
}
if(dr["Colloid"]!=System.DBNull.Value)
if (dr["Colloid"] != System.DBNull.Value)
{
entity.Colloid=dr["Colloid"].ToString();
entity.Colloid = dr["Colloid"].ToString();
}
if(dr["InAmount"]!=System.DBNull.Value)
if (dr["InAmount"] != System.DBNull.Value)
{
entity.InAmount=dr["InAmount"].ToString();
entity.InAmount = dr["InAmount"].ToString();
}
if(dr["OutAmount"]!=System.DBNull.Value)
if (dr["OutAmount"] != System.DBNull.Value)
{
entity.OutAmount=dr["OutAmount"].ToString();
entity.OutAmount = dr["OutAmount"].ToString();
}
if(dr["OperationTimeSpan"]!=System.DBNull.Value)
if (dr["OperationTimeSpan"] != System.DBNull.Value)
{
entity.OperationTimeSpan=dr["OperationTimeSpan"].ToString();
entity.OperationTimeSpan = dr["OperationTimeSpan"].ToString();
}
if(dr["AnaesthesiaTimeSpan"]!=System.DBNull.Value)
if (dr["AnaesthesiaTimeSpan"] != System.DBNull.Value)
{
entity.AnaesthesiaTimeSpan=dr["AnaesthesiaTimeSpan"].ToString();
entity.AnaesthesiaTimeSpan = dr["AnaesthesiaTimeSpan"].ToString();
}
if(dr["RoomTimeSpan"]!=System.DBNull.Value)
if (dr["RoomTimeSpan"] != System.DBNull.Value)
{
entity.RoomTimeSpan=dr["RoomTimeSpan"].ToString();
entity.RoomTimeSpan = dr["RoomTimeSpan"].ToString();
}
if(dr["AnesthesiaDoctorTimeMinute"]!=System.DBNull.Value)
if (dr["AnesthesiaDoctorTimeMinute"] != System.DBNull.Value)
{
entity.AnesthesiaDoctorTimeMinute=dr["AnesthesiaDoctorTimeMinute"].ToString();
entity.AnesthesiaDoctorTimeMinute = dr["AnesthesiaDoctorTimeMinute"].ToString();
}
if(dr["anesthesiaDoctorSucceedTimeMinute"]!=System.DBNull.Value)
if (dr["anesthesiaDoctorSucceedTimeMinute"] != System.DBNull.Value)
{
entity.AnesthesiaDoctorSucceedTimeMinute=dr["anesthesiaDoctorSucceedTimeMinute"].ToString();
entity.AnesthesiaDoctorSucceedTimeMinute = dr["anesthesiaDoctorSucceedTimeMinute"].ToString();
}
if(dr["instrumentNurseTimeMinute"]!=System.DBNull.Value)
if (dr["instrumentNurseTimeMinute"] != System.DBNull.Value)
{
entity.InstrumentNurseTimeMinute=dr["instrumentNurseTimeMinute"].ToString();
entity.InstrumentNurseTimeMinute = dr["instrumentNurseTimeMinute"].ToString();
}
if(dr["instrumentNurseSucceedTimeMinute"]!=System.DBNull.Value)
if (dr["instrumentNurseSucceedTimeMinute"] != System.DBNull.Value)
{
entity.InstrumentNurseSucceedTimeMinute=dr["instrumentNurseSucceedTimeMinute"].ToString();
entity.InstrumentNurseSucceedTimeMinute = dr["instrumentNurseSucceedTimeMinute"].ToString();
}
if(dr["tourNurseTimeMinute"]!=System.DBNull.Value)
if (dr["tourNurseTimeMinute"] != System.DBNull.Value)
{
entity.TourNurseTimeMinute=dr["tourNurseTimeMinute"].ToString();
entity.TourNurseTimeMinute = dr["tourNurseTimeMinute"].ToString();
}
if(dr["tourNurseSucceedTimeMinute"]!=System.DBNull.Value)
if (dr["tourNurseSucceedTimeMinute"] != System.DBNull.Value)
{
entity.TourNurseSucceedTimeMinute=dr["tourNurseSucceedTimeMinute"].ToString();
entity.TourNurseSucceedTimeMinute = dr["tourNurseSucceedTimeMinute"].ToString();
}
if(dr["RecordPageCount"]!=System.DBNull.Value)
if (dr["RecordPageCount"] != System.DBNull.Value)
{
entity.RecordPageCount=dr["RecordPageCount"].ToString();
entity.RecordPageCount = dr["RecordPageCount"].ToString();
}
if(dr["SignName"]!=System.DBNull.Value)
if (dr["SignName"] != System.DBNull.Value)
{
entity.SignName=dr["SignName"].ToString();
entity.SignName = dr["SignName"].ToString();
}
if(dr["SignTime"]!=System.DBNull.Value)
if (dr["SignTime"] != System.DBNull.Value)
{
entity.SignTime=dr["SignTime"].ToString();
entity.SignTime = dr["SignTime"].ToString();
}
if(dr["RoomId"]!=System.DBNull.Value)
if (dr["RoomId"] != System.DBNull.Value)
{
entity.RoomId=Convert.ToInt32(dr["RoomId"]);
entity.RoomId = Convert.ToInt32(dr["RoomId"]);
}
if(dr["State"]!=System.DBNull.Value)
if (dr["State"] != System.DBNull.Value)
{
entity.State=Convert.ToInt32(dr["State"]);
entity.State = Convert.ToInt32(dr["State"]);
}
if(dr["RecoverId"]!=System.DBNull.Value)
if (dr["RecoverId"] != System.DBNull.Value)
{
entity.RecoverId=Convert.ToInt32(dr["RecoverId"]);
entity.RecoverId = Convert.ToInt32(dr["RecoverId"]);
}
if(dr["OperatorNo"]!=System.DBNull.Value)
if (dr["OperatorNo"] != System.DBNull.Value)
{
entity.OperatorNo=dr["OperatorNo"].ToString();
entity.OperatorNo = dr["OperatorNo"].ToString();
}
if(dr["OperatorName"]!=System.DBNull.Value)
if (dr["OperatorName"] != System.DBNull.Value)
{
entity.OperatorName=dr["OperatorName"].ToString();
entity.OperatorName = dr["OperatorName"].ToString();
}
if(dr["OperateDate"]!=System.DBNull.Value)
if (dr["OperateDate"] != System.DBNull.Value)
{
entity.OperateDate=Convert.ToDateTime(dr["OperateDate"]);
entity.OperateDate = Convert.ToDateTime(dr["OperateDate"]);
}
if(dr["Remarks"]!=System.DBNull.Value)
if (dr["Remarks"] != System.DBNull.Value)
{
entity.Remarks=dr["Remarks"].ToString();
entity.Remarks = dr["Remarks"].ToString();
}
return entity;
}

View File

@ -85,7 +85,7 @@ namespace AIMSDAL
public static DataTable FillDrugData(int PatientId, int DrugTypeId)
{
string strSql = " SELECT fd.Id,d.Id as DrugsId, d.Name AS DrugName ,fd.IsContinue,fd.Dosage,fd.DosageUnit,fd.DrugBeginTime, fd.DrugEndTime,fd.DrugChannel,fd.GiveDrugType,fd.Remark,d.DrugKind,[Density],[DensityUnit],[Velocity],[VelocityUnit],[BloodType] ,fd.[OperatorNo],fd.[OperatorName],fd.[OperateDate],fd.ParentId FROM FactDrug fd " +
string strSql = " SELECT fd.Id,d.Id as DrugsId, d.Name AS DrugName ,fd.IsContinue,fd.Dosage,fd.DosageUnit,fd.DrugBeginTime, fd.DrugEndTime,fd.DrugChannel,fd.GiveDrugType,fd.Remark,d.DrugKind,[Density],[DensityUnit],[Velocity],[VelocityUnit],[BloodType] ,fd.[OperatorNo],fd.[OperatorName],fd.[OperateDate],fd.ParentId,d.AnesType FROM FactDrug fd " +
"LEFT JOIN Drugs d ON d.Id = fd.DrugId " +
"WHERE fd.PatientId=" + PatientId + " AND fd.DrugTypeId=" + DrugTypeId + " ";
@ -203,7 +203,7 @@ namespace AIMSDAL
}
if (dr["Fasting"] != System.DBNull.Value)
{
entity.Fasting = Convert.ToInt32(dr["Fasting"]);
entity.Fasting = dr["Fasting"].ToString();
}
if (dr["BloodType"] != System.DBNull.Value)
{

View File

@ -7,6 +7,7 @@ using AIMSModel;
using AIMSObjectQuery;
using HelperDB;
using System.Text;
using AIMSBLL;
namespace AIMSDAL
{
@ -114,23 +115,38 @@ namespace AIMSDAL
strSql.Append("p.Diploma,p.JobTitle,p.PersonType,p.PersonOrder,CASE p.IsValid WHEN 1 THEN '有效' WHEN 0 THEN '无效' END AS IsValid FROM Person p ");
strSql.Append("LEFT JOIN Department d ON d.Id =p.DepId ");
strSql.Append("LEFT JOIN [Role] r ON r.Id = p.RoleId ");
if (name.Length > 0)
if (DeptName.Length > 0 && name.Length > 0)
{
strSql.Append(" WHERE p.No like '%" + name + "%' Or p.Name like '%" + name + "%' Or p.HelpCode like '%" + name + "%' and d.Name = '" + DeptName + "' ");
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else if (name.Length > 0 && DeptName.Length == 0)
{
strSql.Append(" WHERE p.No like '%" + name + "%' Or p.Name like '%" + name + "%' Or p.HelpCode like '%" + name + "%' ");
if (DeptName.Length > 0 && name.Length == 0)
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else if (DeptName.Length > 0 && name.Length == 0)
{
strSql.Append(" WHERE d.Name = '" + DeptName + "' ");
else if (DeptName.Length > 0 && name.Length > 0)
strSql.Append(" and d.Name = '" + DeptName + "' ");
else if (IsValid == true)
strSql.Append(" WHERE p.IsValid=1 ");
if (IsValid == false)
strSql.Append(" and p.IsValid=1 and d.IsValid=1");
}
else
{
if (IsValid == false)
strSql.Append(" WHERE p.IsValid=1 and d.IsValid=1");
}
return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
}
public static bool Login(string No, string PassWord)
{
string strSql = "SELECT * FROM Person p";
Person person = BPerson.SelectSingle("No=@no and PassWord=@passWord and IsValid=1", new ParameterList("@No", No, "@passWord", PassWord));
DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql.ToString());
if (dt.Rows.Count > 0)
if (person != null && person.Id != null)
return true;
else
return false;
@ -144,7 +160,7 @@ namespace AIMSDAL
strSql.Append("select top 1 ");
strSql.Append("Id,No,Name,HelpCode,Sex,PassWord,DepId,RoleId,BirthDay,TimeToWork,Diploma,JobTitle,PersonType,PersonOrder,IsValid,OperatorNo,OperatorName,OperateDate ");
strSql.Append(" from Person ");
strSql.Append(" where No='" + No + "'");
strSql.Append(" where No='" + No + "' and IsValid=1");
DataSet ds = HelperDB.DbHelperSQL.GetDataSet(strSql.ToString());
if (ds.Tables[0].Rows.Count > 0)
{

View File

@ -9,6 +9,7 @@ using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows.Forms;
namespace AIMSExtension
@ -24,6 +25,7 @@ namespace AIMSExtension
public static List<string> RoleName;
public static int PermissionLevel = 0;
public static string NowVersion;
public static int SelectRoom;
private static char zdSplit = '|';
private static char nameValueSplit = '*';
@ -776,5 +778,36 @@ namespace AIMSExtension
}
return b;
}
/// <summary>
/// 判断是否为正确的IP地址
/// </summary>
/// <param name="strIPadd">需要判断的字符串</param>
/// <returns>true = 是 false = 否</returns>
public static bool IsRightIP(string strIPadd)
{
//利用正则表达式判断字符串是否符合IPv4格式
if (Regex.IsMatch(strIPadd, "[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}"))
{
//根据小数点分拆字符串
string[] ips = strIPadd.Split('.');
if (ips.Length == 4 || ips.Length == 6)
{
//如果符合IPv4规则
if (System.Int32.Parse(ips[0]) < 256 && System.Int32.Parse(ips[1]) < 256 & System.Int32.Parse(ips[2]) < 256 & System.Int32.Parse(ips[3]) < 256)
//正确
return true;
//如果不符合
else
//错误
return false;
}
else
//错误
return false;
}
else
//错误
return false;
}
}
}

View File

@ -80,9 +80,30 @@ namespace DrawGraph
foreach (PackObjBase pack in ables)
{
AbleEditPackObj ableEdit = pack as AbleEditPackObj;
if (ableEdit != null)
{
//ableEdit.IsVisible = true;
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
Panel pan = ableEdit.CControl as Panel;
if (pan != null)
{
foreach (Control conl in pan.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox != null)
{
chBox.CheckedChanged -= new EventHandler(txt_Leave);
chBox.CheckedChanged += new EventHandler(txt_Leave);
}
}
}
}
SetAbleEditView(ableEdit);
}
}
}
public void SetBMI(bool IsUpdate = false)
{
@ -110,13 +131,37 @@ namespace DrawGraph
double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 12));
for (int i = 0; i < spanSum; i++)
{
span += " ";
span += "";
}
string text = "", value = "";
if (ableEdit != null)
{
switch (ableEdit.ControlType)
{
case EControlType.RadioButtonList:
foreach (Control conl in ableEdit.CControl.Controls)
{
string spanT = span.Clone().ToString();
if (ableEdit.DfArrangement == EIsBool.True)
{
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
{
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
}
}
CheckBox radio = conl as CheckBox;
if (radio.Checked)
{
text += "☑" + conl.Text + spanT;
value = conl.Text;
}
else
{
text += "□" + conl.Text + spanT;
}
}
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
case EControlType.Directory:
value = ableEdit.PackValue;
text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText);
@ -124,6 +169,8 @@ namespace DrawGraph
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value);
break;
default:
text = ableEdit.CControl.Text;
value = ableEdit.CControl.Text;
break;
}
}
@ -303,9 +350,9 @@ namespace DrawGraph
case "OperationRecord.OperationSiteId": //手术体位
TYZD_Click(aEdit1, e);
break;
case "OperationRecord.Fasting": //术前禁食
conl.Leave += new EventHandler(txt_Leave);
break;
//case "OperationRecord.Fasting": //术前禁食
// conl.Leave += new EventHandler(txt_Leave);
// break;
case "OperationRecord.SpecialCase": //特殊情况
((TextBox)conl).BorderStyle = BorderStyle.Fixed3D;
((TextBox)conl).Focus();
@ -508,34 +555,64 @@ namespace DrawGraph
string DataSourceName = ableEdit.ClassDataSourceName;
//Console.WriteLine(DataSourceName);
//拿到数据源格式OperationRecord.PatientRef.Bed
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
//SetAbleEditView(ableEdit,true);
if (sender is CheckBox)
if ((sender as CheckBox).Checked == true)
{
foreach (CheckBox chk in (sender as CheckBox).Parent.Controls)
{
chk.CheckedChanged -= new EventHandler(txt_Leave);
if (chk != sender)
{
chk.Checked = false;
}
chk.CheckedChanged += new EventHandler(txt_Leave);
}
}
}
bool updateOk = true;
string text = control.Text.Trim();
string value = control.Text.Trim();
string text = "";
string value = "";
if (!updateOk)
{
ableEdit.IsVisible = !ableEdit.IsVisible;
}
else
{
if (DataSourceName == "OperationRecord.Fasting")
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
foreach (Control conl in control.Controls)
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
foreach (Control conl in ableEdit.CControl.Controls)
{
CheckBox chBox = conl as CheckBox;
if (chBox.Checked)
string spanT = "";
if (ableEdit.DfArrangement == EIsBool.True)
{
text = "是";
value = "1";
if (spanT.Length - conl.Text.Length >= conl.Text.Length)
{
spanT = spanT.Remove(spanT.Length - conl.Text.Length, conl.Text.Length);
}
}
CheckBox radio = conl as CheckBox;
if (radio.Checked)
{
text += "☑" + conl.Text + spanT;
value = conl.Text;
}
else
{
text = "否";
value = "0";
text += "□" + conl.Text + spanT;
}
}
template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, true);
}
else
{
text = control.Text.Trim();
value = control.Text.Trim();
//设置属性的值
ableEdit.IsVisible = !ableEdit.IsVisible;
template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
@ -544,6 +621,16 @@ namespace DrawGraph
{
SetBMI(true);
}
}
////设置属性的值
//ableEdit.IsVisible = !ableEdit.IsVisible;
//template.SetObjValue(OpeRecord, DataSourceName, text, value, true);
//((TextBox)control).BorderStyle = BorderStyle.None;
//if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight")
//{
// SetBMI(true);
//}
}
}
catch (Exception ex)

View File

@ -57,19 +57,19 @@ namespace DrawGraph
strSql += " order by UseRate desc";
break;
case "麻醉方式":
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM AnaesthesiaMethod p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM AnaesthesiaMethod p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
case "手术体位":
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
case "手术部位":
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM OperationPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
strSql = "SELECT top 10 p.Id,p.Name,p.Explain Code FROM OperationPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
default:
strSql = "SELECT top 10 p.Id,p.Name,p.HelpCode Code FROM BasicDictionary p WHERE p.IsValid=1 and ParentId in(select Id from BasicDictionary where Name='" + _title + "') AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
strSql = "SELECT top 10 p.Id,p.Name,p.Remark Code FROM BasicDictionary p WHERE p.IsValid=1 and ParentId in(select Id from BasicDictionary where Name='" + _title + "') AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )";
if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") ";
break;
@ -154,6 +154,10 @@ namespace DrawGraph
{
i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId);
}
else if (items[1] == "OperationType")
{
i += UpdateApply (items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId);
}
else
{
i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id);
@ -178,6 +182,11 @@ namespace DrawGraph
string sqlStr = "update Oris_Patient set " + sql;
return DBHelper.ExecNonQuery(sqlStr);
}
public static int UpdateApply(string sql)
{
string sqlStr = "update OperationApply set " + sql;
return DBHelper.ExecNonQuery(sqlStr);
}
public static int UpdateInstrumentList(string sql)
{
string sqlStr = "update InstrumentList set " + sql;
@ -454,6 +463,9 @@ namespace DrawGraph
case "手术体位":
sql = "select dbo.GetOperationBodyPosition('" + Ids + "') value";
break;
case "手术部位":
sql = "select dbo.GetOperationPosition('" + Ids + "') value";
break;
default:
sql = "select dbo.funBasicDictionary('" + Ids + "') value";
break;

View File

@ -22,6 +22,7 @@ namespace DrawGraph
public string GiveDrugType;
public string Remark;
public string DrugKind;
public string AnesType;
public string OperatorNo { get; set; }
public string OperatorName { get; set; }
@ -253,7 +254,7 @@ namespace DrawGraph
//if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")";
if (this.DrugChannel != null && this.DrugChannel != "") DrName += "(" + this.DrugChannel + ")";
if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")";
if (DrugKind == "毒麻药品")
if (DrugKind == "毒麻药品" || AnesType.Contains("麻醉") || AnesType.Contains("精神"))
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Red, 5.75f);
else
ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Black, 5.75f);

View File

@ -150,7 +150,37 @@ namespace DrawGraph
try
{
//循环XML文件,文件中的内容是只画图不写字的事件对旬
//DataRow[] dr = myOpeRecord.PhysioParamList.Select("Name ='" + temp.EventName + "' ", "");
//if (dr.Length > 0)
//{
// temp.clearDNAndDT(ZedControl);
// string tagName = dr[0]["imgPath"].ToString();
// temp.drawIMG(ZedControl, tagName, eventy, 0.013);
//}
//else
//{
// int DValue = 0;
// string drawNumber = "";
// if (drawDatetime != null && temp.EventBeginTime > drawDatetime.Value.AddMinutes(-1) && temp.EventBeginTime < drawDatetime.Value.AddMinutes(10) && LastNumber != "" && drawEvent != null)
// {
// drawEvent.clearDNAndDT(ZedControl);
// drawEvent = temp;
// drawNumber = LastNumber + "-" + getNumber(i);// (i + 1).ToString();//
// DValue = (int)(((TimeSpan)(temp.EventBeginTime - drawDatetime.Value)).TotalMinutes / 2);
// }
// else
// {
// LastNumber = getNumber(i);// (i + 1).ToString();//
// drawNumber = LastNumber;
// drawEvent = temp;
// drawDatetime = temp.EventBeginTime.Value;
// }
// //画图上的序号
// temp.drawNumber(ZedControl, drawNumber, eventy + span - 0.001, DValue, Color.DarkBlue);
//}
//rowIndex++;
//循环XML文件,文件中的内容是只画图不写字的事件对旬
DataRow[] dr = myOpeRecord.PhysioParamList.Select("Name ='" + temp.EventName + "' ", "");
if (dr.Length > 0)
{
@ -166,12 +196,12 @@ namespace DrawGraph
{
drawEvent.clearDNAndDT(ZedControl);
drawEvent = temp;
drawNumber = LastNumber + "-" + getNumber(i);// (i + 1).ToString();//
drawNumber = LastNumber + "-" + getNumber(i);
DValue = (int)(((TimeSpan)(temp.EventBeginTime - drawDatetime.Value)).TotalMinutes / 2);
}
else
{
LastNumber = getNumber(i);// (i + 1).ToString();//
LastNumber = getNumber(i);
drawNumber = LastNumber;
drawEvent = temp;
drawDatetime = temp.EventBeginTime.Value;

View File

@ -28,7 +28,6 @@ namespace DrawGraph
private string bed;
private string contacts;
private string contactsPhone;
private string isFasting;
private string age;
@ -156,12 +155,6 @@ namespace DrawGraph
get { return contactsPhone; }
set { contactsPhone = value; }
}
[ClassAttributs(Description = "是否禁食")]
public string IsFasting
{
get { return isFasting; }
set { isFasting = value; }
}
//申请信息
private string patientType;
@ -173,7 +166,7 @@ namespace DrawGraph
private string applydiagnoseRemark;
private string applyoperation;
private string applyOperationRemark;
private string operationPriority;
private string operationType;
public DateTime PlanOperationTime;
private string operation;
@ -245,10 +238,10 @@ namespace DrawGraph
set { applyOperationRemark = value; }
}
[ClassAttributs(Description = "择期急诊")]
public string OperationPriority
public string OperationType
{
get { return operationPriority; }
set { operationPriority = value; }
get { return operationType; }
set { operationType = value; }
}
[ClassAttributs(Description = "手术名称")]
@ -383,7 +376,7 @@ namespace DrawGraph
private DateTime? anesthesiaEndTime;
private int? aSALevel;
private string specialCase;
private int? fasting;
private string fasting;
private string operationDate;
private string opeSpecialCondition;
private string bMI;
@ -553,7 +546,7 @@ namespace DrawGraph
/// 是否禁食
/// </summary>
[ClassAttributs(Description = "是否禁食")]
public int? Fasting
public string Fasting
{
get { return fasting; }
set { fasting = value; }

View File

@ -151,6 +151,7 @@ namespace DrawGraph
//if ((OpeRecord != null && status == DoOpeStatus.BEGINOPE) || IsReview)
if (myOpeRecord != null)
{
if (e.Button != System.Windows.Forms.MouseButtons.Left) return;
//清空选中框
myOpeRecord.SAreaObj.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.pageBegin,
myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN));
@ -249,17 +250,17 @@ namespace DrawGraph
}
}
//获得指定Tag和指定类型的组件
List<PackObjBase> packs = PackManage.ListPob.Where<PackObjBase>(s => s.PackTag == "Operation_AddListEvent" && s is LinesPackObj).ToList<PackObjBase>();
foreach (PackObjBase pack in packs)
{
LinesPackObj linesPack = pack as LinesPackObj;
if ((x > linesPack.RealX && x < linesPack.RealEndX) && (y > linesPack.RealY && y < linesPack.RealEndY))
{
string viewStr = string.Format("PhysioDataManage的MouseDown事件显示的内容{0}组件X={1}、Y={2}", pack.PackTag, linesPack.RealX, linesPack.RealY);
MessageBox.Show(viewStr);
}
}
////获得指定Tag和指定类型的组件
//List<PackObjBase> packs = PackManage.ListPob.Where<PackObjBase>(s => s.PackTag == "Operation_AddListEvent" && s is LinesPackObj).ToList<PackObjBase>();
//foreach (PackObjBase pack in packs)
//{
// LinesPackObj linesPack = pack as LinesPackObj;
// if ((x > linesPack.RealX && x < linesPack.RealEndX) && (y > linesPack.RealY && y < linesPack.RealEndY))
// {
// string viewStr = string.Format("PhysioDataManage的MouseDown事件显示的内容{0}组件X={1}、Y={2}", pack.PackTag, linesPack.RealX, linesPack.RealY);
// MessageBox.Show(viewStr);
// }
//}
}
ZedControl.AxisChange();
ZedControl.Refresh();

View File

@ -108,10 +108,16 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText;
dgvZd.Location = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
dgvZd.Size = new System.Drawing.Size( aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
if (dgvZd.Size.Width < 100)
{
dgvZd.Size = new System.Drawing.Size(400, 210);
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Columns[2].Visible = true;
}
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
@ -191,7 +197,7 @@ namespace DrawGraph
{
aEdit.CControl.Parent.Controls.Remove(dgvZd);
dgvZd.Visible = false;
aEdit.IsVisible =false;
aEdit.IsVisible = false;
}
}

View File

@ -5,6 +5,7 @@ using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using static System.Net.Mime.MediaTypeNames;
namespace DrawGraph
{
@ -13,8 +14,8 @@ namespace DrawGraph
private volatile static SelectDictValue2 _instance = null;
private static readonly object lockHelper = new object();
public delegate void SetValueHandler(string key,string Value,AbleEditPackObj aEdit);
public static event SetValueHandler SetValue ;
public delegate void SetValueHandler(string key, string Value, AbleEditPackObj aEdit);
public static event SetValueHandler SetValue;
private SelectDictValue2() { }
public static SelectDictValue2 CreateInstance()
@ -108,20 +109,34 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
//System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
//if (_type == "手术" || _type == "诊断")
//{
// dgvZd.Size = new System.Drawing.Size(400, 210);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
//}
//else
//{
// dgvZd.Size = new System.Drawing.Size(200, 290);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
//}
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText+"";
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
{
dgvZd.Size = new System.Drawing.Size(400, 210);
dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Location = point;
if (dgvZd.Size.Width < 100)
{
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Size = new System.Drawing.Size(200, 290);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Columns[2].Visible = true;
}
dgvZd.Location = point;
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
else
@ -245,7 +260,9 @@ namespace DrawGraph
//设置属性的值
//aEdit.IsVisible = !aEdit.IsVisible;
//template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, true);
SetValue(Key, Value,aEdit);
aEdit.PackValue = Value;
aEdit.PackText = Value;
SetValue(Key, Value, aEdit);
}
}

View File

@ -108,20 +108,36 @@ namespace DrawGraph
Value = aEdit.PackText;
DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key);
dgvZd.DataSource = dt;
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - aEdit.CControl.Height);
if (_type == "手术" || _type == "诊断")
{
dgvZd.Size = new System.Drawing.Size(400, 210);
//System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - aEdit.CControl.Height);
//if (_type == "手术" || _type == "诊断")
//{
// dgvZd.Size = new System.Drawing.Size(400, 210);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
//}
//else
//{
// dgvZd.Size = new System.Drawing.Size(200, 290);
// if (_aEdit.RealEndY > 0.8)
// point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
//}
//dgvZd.Location = point;
dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText;
System.Drawing.Point point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height);
dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 150 ? 149 : aEdit.CControl.Width, dgvZd.Height);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 220);
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Location = point;
if (dgvZd.Size.Width < 150)
{
dgvZd.Columns[2].Visible = false;
}
else
{
dgvZd.Size = new System.Drawing.Size(200, 290);
if (_aEdit.RealEndY > 0.8)
point = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y - 300);
dgvZd.Columns[2].Visible = true;
}
dgvZd.Location = point;
if (dgvZd.Parent == null)
aEdit.CControl.Parent.Controls.Add(dgvZd);
else

View File

@ -143,8 +143,6 @@ namespace DrawGraph
{
chBox.CheckedChanged -= new EventHandler(txt_Leave);
chBox.CheckedChanged += new EventHandler(txt_Leave);
//chBox.Click -= new EventHandler(radio_click);
//chBox.Click += new EventHandler(radio_click);
}
}
}
@ -444,11 +442,8 @@ namespace DrawGraph
if (control == null) return;
AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj;
if (ableEdit == null) return;
//拿到数据源格式OperationRecord.PatientRef.Bed
bool updateOk = true;
try
{
SetAbleEditView(ableEdit, true);
if (ableEdit.ControlType == EControlType.RadioButtonList)
{
if ((sender as CheckBox).Checked == true)
@ -464,11 +459,12 @@ namespace DrawGraph
}
}
}
SetAbleEditView(ableEdit, true);
}
catch (Exception ex)
{
//写日志
updateOk = false;
PublicMethod.WriteLog(ex);
}
finally
{