diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index 0ae3638..f9975bd 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -225,6 +225,12 @@ FormLogin.cs + + Form + + + frmAanesthesiaPainlessRecord.cs + Form @@ -249,6 +255,12 @@ frmSelectPatientGoodsBill2.cs + + Form + + + frmSelectPatientNew3.cs + Form @@ -904,6 +916,10 @@ FormLogin.cs Designer + + frmAanesthesiaPainlessRecord.cs + Designer + frmFactSpeedyDrug.cs @@ -917,6 +933,9 @@ frmSelectPatientGoodsBill2.cs + + frmSelectPatientNew3.cs + frmPrescriptionDocument.cs diff --git a/AIMS/AIMS.xml b/AIMS/AIMS.xml index 71c6330..7d66bdd 100644 --- a/AIMS/AIMS.xml +++ b/AIMS/AIMS.xml @@ -1,6 +1,6 @@  - Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020; + Data Source=.;Initial Catalog=AIMSDB_FJZPTFYY;User ID=sa;Password=Test2020; Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39; diff --git a/AIMS/FormMainManage.cs b/AIMS/FormMainManage.cs index a9dda65..e8c953d 100644 --- a/AIMS/FormMainManage.cs +++ b/AIMS/FormMainManage.cs @@ -160,6 +160,8 @@ namespace AIMS sideNavItem.Symbol = "\uf15b"; if (menuSec.Name == "ָ¼") sideNavItem.Symbol = "\uf15c"; + if (menuSec.Name == "ʹ¼") + sideNavItem.Symbol = "\uf044"; if (menuSec.Name == "ռ¼") sideNavItem.Symbol = "\uf15c"; if (menuSec.Name == "ѯ") diff --git a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs index 9abd725..f0ccbb0 100644 --- a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs +++ b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs @@ -184,6 +184,53 @@ namespace AIMS.OperationAanesthesia } } + public static void IniDrawAnasReordBill6(OperationRecord _record, ZedGraphControl Zgc ,ref TemplateManage templateManage ) + { + try + { + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=60").ToString(); + if (jsonStr != null && jsonStr != "") + { + templateManage = JsonConvert.DeserializeObject(jsonStr); + templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 1); + templateManage.ZedControl = Zgc; + templateManage.Id = 60; + bool reVal = templateManage.Load(); + if (reVal) + { + templateManage.DrawArea(); + DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.028, Zgc, DrawGraph.ZUtil.Font16); + DrawGraph.ZUtil.DrawText("镇静镇痛评估、记录单", 0.36, 0.055, Zgc, DrawGraph.ZUtil.Font14); + + #region 设置界面自适应 + //在此处可随时设置板子的属性 + templateManage.ZedControl.Width = templateManage.ZedControl.Parent.Width - 54; + templateManage.ZedControl.Height = (templateManage.ZedControl.Parent.Width - 54) / 8 * 11; + + + int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * 0.08); + templateManage.LocationY = LocationY; + templateManage.SetPYL(); + templateManage.ZedControl.AxisChange(); + templateManage.ZedControl.Refresh(); + //最后还要调整图表进行自适应 + PackObjBase pack = templateManage.GetPackObjectOTag("PhysioDataManage_ChartPackObj_6"); + if (pack != null) + pack.Draw(); + #endregion + + } + else + { + MessageBox.Show(templateManage.MsgStr); + } + } + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + } public static DataTable SelectPhysioDataUpdate(int Id) { string sql = string.Format("SELECT PhysioDataUpdate.Id,pr.Name ,PatientId,PhysioDataConfigId,RecordTime,[OldParamValue],[ParamValue],[PhysioDataUpdate].[OperatorName],[OperatorTime] FROM[dbo].[PhysioDataUpdate] left join PhysioDataConfig pr on pr.id =PhysioDataConfigId where PatientId ={0}", Id); diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.Designer.cs b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.Designer.cs new file mode 100644 index 0000000..6f93a36 --- /dev/null +++ b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.Designer.cs @@ -0,0 +1,1915 @@ +namespace AIMS.OperationAanesthesia +{ + partial class frmAanesthesiaPainlessRecord + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmAanesthesiaPainlessRecord)); + this.panel2 = new System.Windows.Forms.Panel(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel14 = new System.Windows.Forms.Panel(); + this.button8 = new System.Windows.Forms.Button(); + this.button7 = new System.Windows.Forms.Button(); + this.btnCancelIn = new System.Windows.Forms.Button(); + this.btnCancelOperation = new System.Windows.Forms.Button(); + this.btnTemplate = new System.Windows.Forms.Button(); + this.button6 = new System.Windows.Forms.Button(); + this.btnOperationInfo = new System.Windows.Forms.Button(); + this.btnOutputLiquids = new System.Windows.Forms.Button(); + this.btnAddEvents = new System.Windows.Forms.Button(); + this.btnDrug = new System.Windows.Forms.Button(); + this.btnSelectPatient = new System.Windows.Forms.Button(); + this.panel4 = new System.Windows.Forms.Panel(); + this.btnChage = new System.Windows.Forms.Button(); + this.btnsjzx = new System.Windows.Forms.Button(); + this.btnyldj = new System.Windows.Forms.Button(); + this.btnzsk = new System.Windows.Forms.Button(); + this.btndptz = new System.Windows.Forms.Button(); + this.btnxldlx = new System.Windows.Forms.Button(); + this.btnsbwh = new System.Windows.Forms.Button(); + this.lblSpo2 = new System.Windows.Forms.Label(); + this.lblRESP = new System.Windows.Forms.Label(); + this.lblDia = new System.Windows.Forms.Label(); + this.lblPR = new System.Windows.Forms.Label(); + this.lblHR = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); + this.label6 = new System.Windows.Forms.Label(); + this.label10 = new System.Windows.Forms.Label(); + this.label7 = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label1 = new System.Windows.Forms.Label(); + this.panel1 = new System.Windows.Forms.Panel(); + this.panel5 = new System.Windows.Forms.Panel(); + this.panel8 = new AIMS.PublicUI.UI.DrawPanel(); + this.circularProgress1 = new DevComponents.DotNetBar.Controls.CircularProgress(); + this.zgcAnaesRecord = new DrawGraph.ZedGraphControl(); + this.panel7 = new System.Windows.Forms.Panel(); + this.panel21 = new System.Windows.Forms.Panel(); + this.panel17 = new System.Windows.Forms.Panel(); + this.btnNextPage = new System.Windows.Forms.Panel(); + this.panel18 = new System.Windows.Forms.Panel(); + this.btnUpPage = new System.Windows.Forms.Panel(); + this.plPrintBrowse = new System.Windows.Forms.Panel(); + this.plPrint = new System.Windows.Forms.Panel(); + this.plRefresh = new System.Windows.Forms.Panel(); + this.lblRoom = new System.Windows.Forms.Label(); + this.label22 = new System.Windows.Forms.Label(); + this.labOperatorName = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.plTitleEventTime = new System.Windows.Forms.Panel(); + this.panel13 = new System.Windows.Forms.Panel(); + this.txtOutRoom = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picOutRoom = new System.Windows.Forms.PictureBox(); + this.button5 = new System.Windows.Forms.Button(); + this.panel10 = new System.Windows.Forms.Panel(); + this.txtOperationBegin = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picOpeBegin = new System.Windows.Forms.PictureBox(); + this.button2 = new System.Windows.Forms.Button(); + this.panel16 = new System.Windows.Forms.Panel(); + this.txtBG = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picBG = new System.Windows.Forms.PictureBox(); + this.button9 = new System.Windows.Forms.Button(); + this.panel12 = new System.Windows.Forms.Panel(); + this.txtAnaesthesiaEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picAnesEnd = new System.Windows.Forms.PictureBox(); + this.button4 = new System.Windows.Forms.Button(); + this.panel15 = new System.Windows.Forms.Panel(); + this.cmbCGType = new System.Windows.Forms.ComboBox(); + this.txtCG = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picCG = new System.Windows.Forms.PictureBox(); + this.panel9 = new System.Windows.Forms.Panel(); + this.txtAnaesthesiaBegin = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picAnesBegin = new System.Windows.Forms.PictureBox(); + this.button1 = new System.Windows.Forms.Button(); + this.panel11 = new System.Windows.Forms.Panel(); + this.txtOperationEnd = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picOpeEnd = new System.Windows.Forms.PictureBox(); + this.button3 = new System.Windows.Forms.Button(); + this.panel6 = new System.Windows.Forms.Panel(); + this.txtInRoom = new DevComponents.Editors.DateTimeAdv.DateTimeInput(); + this.picInRoom = new System.Windows.Forms.PictureBox(); + this.txtInRoom1 = new System.Windows.Forms.Button(); + this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + this.toolTip1 = new System.Windows.Forms.ToolTip(this.components); + this.panel3.SuspendLayout(); + this.panel14.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel8.SuspendLayout(); + this.panel7.SuspendLayout(); + this.panel21.SuspendLayout(); + this.plTitleEventTime.SuspendLayout(); + this.panel13.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtOutRoom)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOutRoom)).BeginInit(); + this.panel10.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtOperationBegin)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOpeBegin)).BeginInit(); + this.panel16.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtBG)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picBG)).BeginInit(); + this.panel12.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaEnd)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAnesEnd)).BeginInit(); + this.panel15.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtCG)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCG)).BeginInit(); + this.panel9.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaBegin)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAnesBegin)).BeginInit(); + this.panel11.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtOperationEnd)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOpeEnd)).BeginInit(); + this.panel6.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picInRoom)).BeginInit(); + this.SuspendLayout(); + // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.AliceBlue; + this.panel2.Dock = System.Windows.Forms.DockStyle.Top; + this.panel2.Location = new System.Drawing.Point(0, 0); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1711, 10); + this.panel2.TabIndex = 1; + this.panel2.Visible = false; + // + // panel3 + // + this.panel3.BackColor = System.Drawing.Color.SlateGray; + this.panel3.Controls.Add(this.panel14); + this.panel3.Dock = System.Windows.Forms.DockStyle.Left; + this.panel3.Font = new System.Drawing.Font("宋体", 12F); + this.panel3.Location = new System.Drawing.Point(0, 10); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(160, 931); + this.panel3.TabIndex = 2; + // + // panel14 + // + this.panel14.BackColor = System.Drawing.Color.White; + this.panel14.Controls.Add(this.button8); + this.panel14.Controls.Add(this.button7); + this.panel14.Controls.Add(this.btnCancelIn); + this.panel14.Controls.Add(this.btnCancelOperation); + this.panel14.Controls.Add(this.btnTemplate); + this.panel14.Controls.Add(this.button6); + this.panel14.Controls.Add(this.btnOperationInfo); + this.panel14.Controls.Add(this.btnOutputLiquids); + this.panel14.Controls.Add(this.btnAddEvents); + this.panel14.Controls.Add(this.btnDrug); + this.panel14.Controls.Add(this.btnSelectPatient); + this.panel14.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel14.Location = new System.Drawing.Point(0, 0); + this.panel14.Name = "panel14"; + this.panel14.Size = new System.Drawing.Size(160, 931); + this.panel14.TabIndex = 5; + // + // button8 + // + this.button8.BackColor = System.Drawing.Color.Transparent; + this.button8.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button8.Cursor = System.Windows.Forms.Cursors.Hand; + this.button8.Dock = System.Windows.Forms.DockStyle.Bottom; + this.button8.FlatAppearance.BorderSize = 0; + this.button8.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button8.Font = new System.Drawing.Font("微软雅黑", 11F); + this.button8.ForeColor = System.Drawing.Color.DimGray; + this.button8.Image = global::AIMS.Properties.Resources.系统设置; + this.button8.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.button8.Location = new System.Drawing.Point(0, 881); + this.button8.Name = "button8"; + this.button8.Size = new System.Drawing.Size(160, 50); + this.button8.TabIndex = 15; + this.button8.Text = " 参数设置"; + this.button8.UseVisualStyleBackColor = false; + this.button8.Click += new System.EventHandler(this.toolStripMenuItem2_Click); + // + // button7 + // + this.button7.BackColor = System.Drawing.Color.Transparent; + this.button7.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button7.Cursor = System.Windows.Forms.Cursors.Hand; + this.button7.Dock = System.Windows.Forms.DockStyle.Top; + this.button7.FlatAppearance.BorderSize = 0; + this.button7.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button7.Font = new System.Drawing.Font("微软雅黑", 11F); + this.button7.ForeColor = System.Drawing.Color.DimGray; + this.button7.Image = global::AIMS.Properties.Resources.文书编辑; + this.button7.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.button7.Location = new System.Drawing.Point(0, 450); + this.button7.Name = "button7"; + this.button7.Size = new System.Drawing.Size(160, 50); + this.button7.TabIndex = 14; + this.button7.Text = " 文书记录"; + this.button7.UseVisualStyleBackColor = false; + this.button7.Click += new System.EventHandler(this.tsbExePlan_Click); + // + // btnCancelIn + // + this.btnCancelIn.BackColor = System.Drawing.Color.Transparent; + this.btnCancelIn.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnCancelIn.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnCancelIn.Dock = System.Windows.Forms.DockStyle.Top; + this.btnCancelIn.FlatAppearance.BorderSize = 0; + this.btnCancelIn.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCancelIn.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnCancelIn.ForeColor = System.Drawing.Color.DimGray; + this.btnCancelIn.Image = global::AIMS.Properties.Resources.显示切换; + this.btnCancelIn.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnCancelIn.Location = new System.Drawing.Point(0, 400); + this.btnCancelIn.Name = "btnCancelIn"; + this.btnCancelIn.Size = new System.Drawing.Size(160, 50); + this.btnCancelIn.TabIndex = 12; + this.btnCancelIn.Text = " 取消转入"; + this.btnCancelIn.UseVisualStyleBackColor = false; + this.btnCancelIn.Click += new System.EventHandler(this.btnCancelIn_Click); + // + // btnCancelOperation + // + this.btnCancelOperation.BackColor = System.Drawing.Color.Transparent; + this.btnCancelOperation.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnCancelOperation.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnCancelOperation.Dock = System.Windows.Forms.DockStyle.Top; + this.btnCancelOperation.FlatAppearance.BorderSize = 0; + this.btnCancelOperation.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnCancelOperation.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnCancelOperation.ForeColor = System.Drawing.Color.DimGray; + this.btnCancelOperation.Image = global::AIMS.Properties.Resources.取消手术; + this.btnCancelOperation.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnCancelOperation.Location = new System.Drawing.Point(0, 350); + this.btnCancelOperation.Name = "btnCancelOperation"; + this.btnCancelOperation.Size = new System.Drawing.Size(160, 50); + this.btnCancelOperation.TabIndex = 11; + this.btnCancelOperation.Text = " 停止手术"; + this.btnCancelOperation.UseVisualStyleBackColor = false; + this.btnCancelOperation.Click += new System.EventHandler(this.btnCancelOperation_Click); + // + // btnTemplate + // + this.btnTemplate.BackColor = System.Drawing.Color.Transparent; + this.btnTemplate.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnTemplate.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnTemplate.Dock = System.Windows.Forms.DockStyle.Top; + this.btnTemplate.FlatAppearance.BorderSize = 0; + this.btnTemplate.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnTemplate.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnTemplate.ForeColor = System.Drawing.Color.DimGray; + this.btnTemplate.Image = global::AIMS.Properties.Resources.模板应用; + this.btnTemplate.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnTemplate.Location = new System.Drawing.Point(0, 300); + this.btnTemplate.Name = "btnTemplate"; + this.btnTemplate.Size = new System.Drawing.Size(160, 50); + this.btnTemplate.TabIndex = 10; + this.btnTemplate.Text = " 模板应用"; + this.btnTemplate.UseVisualStyleBackColor = false; + this.btnTemplate.Click += new System.EventHandler(this.btnTemplate_Click); + // + // button6 + // + this.button6.BackColor = System.Drawing.Color.Transparent; + this.button6.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.button6.Cursor = System.Windows.Forms.Cursors.Hand; + this.button6.Dock = System.Windows.Forms.DockStyle.Top; + this.button6.FlatAppearance.BorderSize = 0; + this.button6.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button6.Font = new System.Drawing.Font("微软雅黑", 11F); + this.button6.ForeColor = System.Drawing.Color.DimGray; + this.button6.Image = global::AIMS.Properties.Resources.手术申请; + this.button6.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.button6.Location = new System.Drawing.Point(0, 250); + this.button6.Name = "button6"; + this.button6.Size = new System.Drawing.Size(160, 50); + this.button6.TabIndex = 19; + this.button6.Text = " 默认"; + this.button6.UseVisualStyleBackColor = false; + this.button6.Click += new System.EventHandler(this.button6_Click_1); + // + // btnOperationInfo + // + this.btnOperationInfo.BackColor = System.Drawing.Color.Transparent; + this.btnOperationInfo.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnOperationInfo.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnOperationInfo.Dock = System.Windows.Forms.DockStyle.Top; + this.btnOperationInfo.FlatAppearance.BorderSize = 0; + this.btnOperationInfo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnOperationInfo.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnOperationInfo.ForeColor = System.Drawing.Color.DimGray; + this.btnOperationInfo.Image = global::AIMS.Properties.Resources.文书单; + this.btnOperationInfo.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnOperationInfo.Location = new System.Drawing.Point(0, 200); + this.btnOperationInfo.Name = "btnOperationInfo"; + this.btnOperationInfo.Size = new System.Drawing.Size(160, 50); + this.btnOperationInfo.TabIndex = 4; + this.btnOperationInfo.Text = " 手术信息"; + this.btnOperationInfo.UseVisualStyleBackColor = false; + this.btnOperationInfo.Click += new System.EventHandler(this.btnOperationInfo_Click); + // + // btnOutputLiquids + // + this.btnOutputLiquids.BackColor = System.Drawing.Color.Transparent; + this.btnOutputLiquids.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnOutputLiquids.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnOutputLiquids.Dock = System.Windows.Forms.DockStyle.Top; + this.btnOutputLiquids.FlatAppearance.BorderSize = 0; + this.btnOutputLiquids.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnOutputLiquids.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnOutputLiquids.ForeColor = System.Drawing.Color.DimGray; + this.btnOutputLiquids.Image = global::AIMS.Properties.Resources.快捷事件; + this.btnOutputLiquids.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnOutputLiquids.Location = new System.Drawing.Point(0, 150); + this.btnOutputLiquids.Name = "btnOutputLiquids"; + this.btnOutputLiquids.Size = new System.Drawing.Size(160, 50); + this.btnOutputLiquids.TabIndex = 7; + this.btnOutputLiquids.Text = " 出量记录"; + this.btnOutputLiquids.UseVisualStyleBackColor = false; + this.btnOutputLiquids.Click += new System.EventHandler(this.btnOutputLiquids_Click); + // + // btnAddEvents + // + this.btnAddEvents.BackColor = System.Drawing.Color.Transparent; + this.btnAddEvents.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnAddEvents.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAddEvents.Dock = System.Windows.Forms.DockStyle.Top; + this.btnAddEvents.FlatAppearance.BorderSize = 0; + this.btnAddEvents.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnAddEvents.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnAddEvents.ForeColor = System.Drawing.Color.DimGray; + this.btnAddEvents.Image = global::AIMS.Properties.Resources.事件记录; + this.btnAddEvents.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnAddEvents.Location = new System.Drawing.Point(0, 100); + this.btnAddEvents.Name = "btnAddEvents"; + this.btnAddEvents.Size = new System.Drawing.Size(160, 50); + this.btnAddEvents.TabIndex = 6; + this.btnAddEvents.Text = " 事件记录"; + this.btnAddEvents.UseVisualStyleBackColor = false; + this.btnAddEvents.Click += new System.EventHandler(this.btnAddEvents_Click); + // + // btnDrug + // + this.btnDrug.BackColor = System.Drawing.Color.Transparent; + this.btnDrug.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnDrug.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDrug.Dock = System.Windows.Forms.DockStyle.Top; + this.btnDrug.FlatAppearance.BorderSize = 0; + this.btnDrug.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnDrug.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnDrug.ForeColor = System.Drawing.Color.DimGray; + this.btnDrug.Image = global::AIMS.Properties.Resources.用药记录; + this.btnDrug.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnDrug.Location = new System.Drawing.Point(0, 50); + this.btnDrug.Name = "btnDrug"; + this.btnDrug.Size = new System.Drawing.Size(160, 50); + this.btnDrug.TabIndex = 5; + this.btnDrug.Text = " 用药记录"; + this.btnDrug.UseVisualStyleBackColor = false; + this.btnDrug.Click += new System.EventHandler(this.btnDrug_Click); + // + // btnSelectPatient + // + this.btnSelectPatient.BackColor = System.Drawing.Color.Transparent; + this.btnSelectPatient.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; + this.btnSelectPatient.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSelectPatient.Dock = System.Windows.Forms.DockStyle.Top; + this.btnSelectPatient.FlatAppearance.BorderSize = 0; + this.btnSelectPatient.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnSelectPatient.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnSelectPatient.ForeColor = System.Drawing.Color.DimGray; + this.btnSelectPatient.Image = global::AIMS.Properties.Resources.患者列表; + this.btnSelectPatient.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnSelectPatient.Location = new System.Drawing.Point(0, 0); + this.btnSelectPatient.Name = "btnSelectPatient"; + this.btnSelectPatient.Size = new System.Drawing.Size(160, 50); + this.btnSelectPatient.TabIndex = 3; + this.btnSelectPatient.Text = " 患者列表"; + this.btnSelectPatient.UseVisualStyleBackColor = false; + this.btnSelectPatient.Click += new System.EventHandler(this.btnSelectPatient_Click); + // + // panel4 + // + this.panel4.BackColor = System.Drawing.Color.White; + this.panel4.Controls.Add(this.btnChage); + this.panel4.Controls.Add(this.btnsjzx); + this.panel4.Controls.Add(this.btnyldj); + this.panel4.Controls.Add(this.btnzsk); + this.panel4.Controls.Add(this.btndptz); + this.panel4.Controls.Add(this.btnxldlx); + this.panel4.Controls.Add(this.btnsbwh); + this.panel4.Controls.Add(this.lblSpo2); + this.panel4.Controls.Add(this.lblRESP); + this.panel4.Controls.Add(this.lblDia); + this.panel4.Controls.Add(this.lblPR); + this.panel4.Controls.Add(this.lblHR); + this.panel4.Controls.Add(this.label9); + this.panel4.Controls.Add(this.label8); + this.panel4.Controls.Add(this.label6); + this.panel4.Controls.Add(this.label10); + this.panel4.Controls.Add(this.label7); + this.panel4.Controls.Add(this.label5); + this.panel4.Controls.Add(this.label3); + this.panel4.Controls.Add(this.label2); + this.panel4.Controls.Add(this.label4); + this.panel4.Controls.Add(this.label1); + this.panel4.Dock = System.Windows.Forms.DockStyle.Right; + this.panel4.Font = new System.Drawing.Font("宋体", 10.5F); + this.panel4.Location = new System.Drawing.Point(1551, 10); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(160, 931); + this.panel4.TabIndex = 3; + // + // btnChage + // + this.btnChage.BackColor = System.Drawing.Color.Transparent; + this.btnChage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnChage.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnChage.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnChage.FlatAppearance.BorderSize = 0; + this.btnChage.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnChage.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnChage.ForeColor = System.Drawing.Color.DimGray; + this.btnChage.Image = global::AIMS.Properties.Resources.麻醉医嘱; + this.btnChage.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnChage.Location = new System.Drawing.Point(0, 581); + this.btnChage.Name = "btnChage"; + this.btnChage.Size = new System.Drawing.Size(160, 50); + this.btnChage.TabIndex = 32; + this.btnChage.Text = " 收费记录"; + this.btnChage.UseVisualStyleBackColor = false; + this.btnChage.Visible = false; + this.btnChage.Click += new System.EventHandler(this.btnChage_Click); + // + // btnsjzx + // + this.btnsjzx.BackColor = System.Drawing.Color.Transparent; + this.btnsjzx.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnsjzx.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnsjzx.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnsjzx.FlatAppearance.BorderSize = 0; + this.btnsjzx.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnsjzx.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnsjzx.ForeColor = System.Drawing.Color.DimGray; + this.btnsjzx.Image = global::AIMS.Properties.Resources.工作列表; + this.btnsjzx.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnsjzx.Location = new System.Drawing.Point(0, 631); + this.btnsjzx.Name = "btnsjzx"; + this.btnsjzx.Size = new System.Drawing.Size(160, 50); + this.btnsjzx.TabIndex = 30; + this.btnsjzx.Text = " 数据中心"; + this.btnsjzx.UseVisualStyleBackColor = false; + this.btnsjzx.Click += new System.EventHandler(this.btnsjzx_Click); + // + // btnyldj + // + this.btnyldj.BackColor = System.Drawing.Color.Transparent; + this.btnyldj.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnyldj.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnyldj.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnyldj.FlatAppearance.BorderSize = 0; + this.btnyldj.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnyldj.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnyldj.ForeColor = System.Drawing.Color.DimGray; + this.btnyldj.Image = global::AIMS.Properties.Resources.麻醉记录; + this.btnyldj.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnyldj.Location = new System.Drawing.Point(0, 681); + this.btnyldj.Name = "btnyldj"; + this.btnyldj.Size = new System.Drawing.Size(160, 50); + this.btnyldj.TabIndex = 29; + this.btnyldj.Text = " 余量登记"; + this.btnyldj.UseVisualStyleBackColor = false; + this.btnyldj.Visible = false; + this.btnyldj.Click += new System.EventHandler(this.btnyldj_Click); + // + // btnzsk + // + this.btnzsk.BackColor = System.Drawing.Color.Transparent; + this.btnzsk.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnzsk.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnzsk.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnzsk.FlatAppearance.BorderSize = 0; + this.btnzsk.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnzsk.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnzsk.ForeColor = System.Drawing.Color.DimGray; + this.btnzsk.Image = global::AIMS.Properties.Resources.知识库; + this.btnzsk.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnzsk.Location = new System.Drawing.Point(0, 731); + this.btnzsk.Name = "btnzsk"; + this.btnzsk.Size = new System.Drawing.Size(160, 50); + this.btnzsk.TabIndex = 28; + this.btnzsk.Text = " 知识库"; + this.btnzsk.UseVisualStyleBackColor = false; + this.btnzsk.Click += new System.EventHandler(this.btnzsk_Click); + // + // btndptz + // + this.btndptz.BackColor = System.Drawing.Color.Transparent; + this.btndptz.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btndptz.Cursor = System.Windows.Forms.Cursors.Hand; + this.btndptz.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btndptz.FlatAppearance.BorderSize = 0; + this.btndptz.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btndptz.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btndptz.ForeColor = System.Drawing.Color.DimGray; + this.btndptz.Image = global::AIMS.Properties.Resources.文书状态; + this.btndptz.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btndptz.Location = new System.Drawing.Point(0, 781); + this.btndptz.Name = "btndptz"; + this.btndptz.Size = new System.Drawing.Size(160, 50); + this.btndptz.TabIndex = 27; + this.btndptz.Text = " 大屏通知"; + this.btndptz.UseVisualStyleBackColor = false; + this.btndptz.Click += new System.EventHandler(this.btndptz_Click); + // + // btnxldlx + // + this.btnxldlx.BackColor = System.Drawing.Color.Transparent; + this.btnxldlx.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnxldlx.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnxldlx.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnxldlx.FlatAppearance.BorderSize = 0; + this.btnxldlx.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnxldlx.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnxldlx.ForeColor = System.Drawing.Color.DimGray; + this.btnxldlx.Image = global::AIMS.Properties.Resources.心脏复跳_select; + this.btnxldlx.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnxldlx.Location = new System.Drawing.Point(0, 831); + this.btnxldlx.Name = "btnxldlx"; + this.btnxldlx.Size = new System.Drawing.Size(160, 50); + this.btnxldlx.TabIndex = 26; + this.btnxldlx.Text = " 血流动力学"; + this.btnxldlx.UseVisualStyleBackColor = false; + this.btnxldlx.Visible = false; + this.btnxldlx.Click += new System.EventHandler(this.btnxldlx_Click); + // + // btnsbwh + // + this.btnsbwh.BackColor = System.Drawing.Color.Transparent; + this.btnsbwh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnsbwh.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnsbwh.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnsbwh.FlatAppearance.BorderSize = 0; + this.btnsbwh.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnsbwh.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnsbwh.ForeColor = System.Drawing.Color.DimGray; + this.btnsbwh.Image = global::AIMS.Properties.Resources.耗材管理; + this.btnsbwh.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnsbwh.Location = new System.Drawing.Point(0, 881); + this.btnsbwh.Name = "btnsbwh"; + this.btnsbwh.Size = new System.Drawing.Size(160, 50); + this.btnsbwh.TabIndex = 25; + this.btnsbwh.Text = " 设备维护"; + this.btnsbwh.UseVisualStyleBackColor = false; + this.btnsbwh.Visible = false; + this.btnsbwh.Click += new System.EventHandler(this.btnsbwh_Click); + // + // lblSpo2 + // + this.lblSpo2.AutoSize = true; + this.lblSpo2.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblSpo2.ForeColor = System.Drawing.Color.Cyan; + this.lblSpo2.Location = new System.Drawing.Point(43, 410); + this.lblSpo2.Name = "lblSpo2"; + this.lblSpo2.Size = new System.Drawing.Size(50, 46); + this.lblSpo2.TabIndex = 9; + this.lblSpo2.Text = "--"; + // + // lblRESP + // + this.lblRESP.AutoSize = true; + this.lblRESP.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblRESP.ForeColor = System.Drawing.Color.DarkOrange; + this.lblRESP.Location = new System.Drawing.Point(53, 317); + this.lblRESP.Name = "lblRESP"; + this.lblRESP.Size = new System.Drawing.Size(50, 46); + this.lblRESP.TabIndex = 7; + this.lblRESP.Text = "--"; + // + // lblDia + // + this.lblDia.AutoSize = true; + this.lblDia.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblDia.ForeColor = System.Drawing.Color.Red; + this.lblDia.Location = new System.Drawing.Point(20, 224); + this.lblDia.Name = "lblDia"; + this.lblDia.Size = new System.Drawing.Size(125, 46); + this.lblDia.TabIndex = 5; + this.lblDia.Text = "---/---"; + // + // lblPR + // + this.lblPR.AutoSize = true; + this.lblPR.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblPR.ForeColor = System.Drawing.Color.Green; + this.lblPR.Location = new System.Drawing.Point(53, 131); + this.lblPR.Name = "lblPR"; + this.lblPR.Size = new System.Drawing.Size(50, 46); + this.lblPR.TabIndex = 3; + this.lblPR.Text = "--"; + // + // lblHR + // + this.lblHR.AutoSize = true; + this.lblHR.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblHR.ForeColor = System.Drawing.Color.Green; + this.lblHR.Location = new System.Drawing.Point(53, 38); + this.lblHR.Name = "lblHR"; + this.lblHR.Size = new System.Drawing.Size(50, 46); + this.lblHR.TabIndex = 1; + this.lblHR.Text = "--"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.BackColor = System.Drawing.Color.White; + this.label9.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label9.ForeColor = System.Drawing.Color.DimGray; + this.label9.Location = new System.Drawing.Point(37, 384); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(95, 24); + this.label9.TabIndex = 10; + this.label9.Text = "SPO2( % )"; + // + // label8 + // + this.label8.AutoSize = true; + this.label8.BackColor = System.Drawing.Color.White; + this.label8.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label8.ForeColor = System.Drawing.Color.DimGray; + this.label8.Location = new System.Drawing.Point(29, 291); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(110, 24); + this.label8.TabIndex = 8; + this.label8.Text = "呼吸( 次/分 )"; + // + // label6 + // + this.label6.AutoSize = true; + this.label6.BackColor = System.Drawing.Color.White; + this.label6.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label6.ForeColor = System.Drawing.Color.DimGray; + this.label6.Location = new System.Drawing.Point(21, 198); + this.label6.Name = "label6"; + this.label6.Size = new System.Drawing.Size(127, 24); + this.label6.TabIndex = 4; + this.label6.Text = "血压( mmHg )"; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.BackColor = System.Drawing.Color.White; + this.label10.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label10.ForeColor = System.Drawing.Color.DimGray; + this.label10.Location = new System.Drawing.Point(47, 458); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(70, 17); + this.label10.TabIndex = 2; + this.label10.Text = "90%-100%"; + // + // label7 + // + this.label7.AutoSize = true; + this.label7.BackColor = System.Drawing.Color.White; + this.label7.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label7.ForeColor = System.Drawing.Color.DimGray; + this.label7.Location = new System.Drawing.Point(47, 365); + this.label7.Name = "label7"; + this.label7.Size = new System.Drawing.Size(74, 17); + this.label7.TabIndex = 2; + this.label7.Text = "16-20 次/分"; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.BackColor = System.Drawing.Color.White; + this.label5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label5.ForeColor = System.Drawing.Color.DimGray; + this.label5.Location = new System.Drawing.Point(39, 272); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(91, 17); + this.label5.TabIndex = 2; + this.label5.Text = "60-140 mmHg"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.BackColor = System.Drawing.Color.White; + this.label3.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label3.ForeColor = System.Drawing.Color.DimGray; + this.label3.Location = new System.Drawing.Point(44, 179); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(81, 17); + this.label3.TabIndex = 2; + this.label3.Text = "60-100 次/分"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.BackColor = System.Drawing.Color.White; + this.label2.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label2.ForeColor = System.Drawing.Color.DimGray; + this.label2.Location = new System.Drawing.Point(44, 86); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(81, 17); + this.label2.TabIndex = 2; + this.label2.Text = "60-100 次/分"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.BackColor = System.Drawing.Color.White; + this.label4.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label4.ForeColor = System.Drawing.Color.DimGray; + this.label4.Location = new System.Drawing.Point(29, 105); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(110, 24); + this.label4.TabIndex = 2; + this.label4.Text = "脉搏( 次/分 )"; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.BackColor = System.Drawing.Color.White; + this.label1.Font = new System.Drawing.Font("微软雅黑", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.ForeColor = System.Drawing.Color.DimGray; + this.label1.Location = new System.Drawing.Point(29, 12); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(110, 24); + this.label1.TabIndex = 0; + this.label1.Text = "心率( 次/分 )"; + // + // panel1 + // + this.panel1.Controls.Add(this.panel5); + this.panel1.Controls.Add(this.panel4); + this.panel1.Controls.Add(this.panel3); + this.panel1.Controls.Add(this.panel2); + this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1711, 941); + this.panel1.TabIndex = 0; + // + // panel5 + // + this.panel5.BackColor = System.Drawing.SystemColors.Control; + this.panel5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panel5.Controls.Add(this.panel8); + this.panel5.Controls.Add(this.panel7); + this.panel5.Controls.Add(this.plTitleEventTime); + this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel5.Location = new System.Drawing.Point(160, 10); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(1391, 931); + this.panel5.TabIndex = 4; + // + // panel8 + // + this.panel8.AutoScroll = true; + this.panel8.BackColor = System.Drawing.Color.White; + this.panel8.Controls.Add(this.circularProgress1); + this.panel8.Controls.Add(this.zgcAnaesRecord); + this.panel8.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel8.Location = new System.Drawing.Point(0, 58); + this.panel8.Name = "panel8"; + this.panel8.Size = new System.Drawing.Size(1389, 831); + this.panel8.TabIndex = 3; + this.panel8.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel8_Scroll); + // + // circularProgress1 + // + this.circularProgress1.AnimationSpeed = 50; + // + // + // + this.circularProgress1.BackgroundStyle.BackgroundImageAlpha = ((byte)(0)); + this.circularProgress1.BackgroundStyle.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.Zoom; + this.circularProgress1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.circularProgress1.FocusCuesEnabled = false; + this.circularProgress1.Font = new System.Drawing.Font("微软雅黑", 9F); + this.circularProgress1.Location = new System.Drawing.Point(602, 274); + this.circularProgress1.Margin = new System.Windows.Forms.Padding(4); + this.circularProgress1.Name = "circularProgress1"; + this.circularProgress1.ProgressColor = System.Drawing.Color.DodgerBlue; + this.circularProgress1.Size = new System.Drawing.Size(389, 239); + this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; + this.circularProgress1.TabIndex = 6; + this.circularProgress1.Value = 100; + // + // zgcAnaesRecord + // + this.zgcAnaesRecord.Location = new System.Drawing.Point(416, 41); + this.zgcAnaesRecord.Name = "zgcAnaesRecord"; + this.zgcAnaesRecord.ScrollGrace = 0D; + this.zgcAnaesRecord.ScrollMaxX = 0D; + this.zgcAnaesRecord.ScrollMaxY = 0D; + this.zgcAnaesRecord.ScrollMaxY2 = 0D; + this.zgcAnaesRecord.ScrollMinX = 0D; + this.zgcAnaesRecord.ScrollMinY = 0D; + this.zgcAnaesRecord.ScrollMinY2 = 0D; + this.zgcAnaesRecord.Size = new System.Drawing.Size(800, 1000); + this.zgcAnaesRecord.TabIndex = 0; + this.zgcAnaesRecord.Visible = false; + this.zgcAnaesRecord.ContextMenuBuilder += new DrawGraph.ZedGraphControl.ContextMenuBuilderEventHandler(this.zgcAnaesRecord_ContextMenuBuilder); + this.zgcAnaesRecord.MouseDownEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord_MouseDownEvent); + this.zgcAnaesRecord.MouseUpEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord_MouseUpEvent); + this.zgcAnaesRecord.MouseMoveEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord_MouseMoveEvent); + this.zgcAnaesRecord.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zgcAnaesRecord_KeyUp); + this.zgcAnaesRecord.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zgcAnaesRecord_MouseDoubleClick); + // + // panel7 + // + this.panel7.BackColor = System.Drawing.SystemColors.Control; + this.panel7.Controls.Add(this.panel21); + this.panel7.Controls.Add(this.lblRoom); + this.panel7.Controls.Add(this.label22); + this.panel7.Controls.Add(this.labOperatorName); + this.panel7.Controls.Add(this.label19); + this.panel7.Dock = System.Windows.Forms.DockStyle.Bottom; + this.panel7.Location = new System.Drawing.Point(0, 889); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(1389, 40); + this.panel7.TabIndex = 1; + // + // panel21 + // + this.panel21.Controls.Add(this.panel17); + this.panel21.Controls.Add(this.btnNextPage); + this.panel21.Controls.Add(this.panel18); + this.panel21.Controls.Add(this.btnUpPage); + this.panel21.Controls.Add(this.plPrintBrowse); + this.panel21.Controls.Add(this.plPrint); + this.panel21.Controls.Add(this.plRefresh); + this.panel21.Dock = System.Windows.Forms.DockStyle.Right; + this.panel21.Location = new System.Drawing.Point(1035, 0); + this.panel21.Name = "panel21"; + this.panel21.Size = new System.Drawing.Size(354, 40); + this.panel21.TabIndex = 10; + // + // panel17 + // + this.panel17.BackgroundImage = global::AIMS.Properties.Resources.图标_末尾页; + this.panel17.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.panel17.Cursor = System.Windows.Forms.Cursors.Hand; + this.panel17.Location = new System.Drawing.Point(124, 4); + this.panel17.Name = "panel17"; + this.panel17.Size = new System.Drawing.Size(28, 28); + this.panel17.TabIndex = 7; + this.panel17.Tag = "未页"; + this.toolTip1.SetToolTip(this.panel17, "未页"); + this.panel17.Click += new System.EventHandler(this.btnNextEndPage_Click); + // + // btnNextPage + // + this.btnNextPage.BackgroundImage = global::AIMS.Properties.Resources.图标_后一页; + this.btnNextPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.btnNextPage.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNextPage.Location = new System.Drawing.Point(83, 4); + this.btnNextPage.Name = "btnNextPage"; + this.btnNextPage.Size = new System.Drawing.Size(28, 28); + this.btnNextPage.TabIndex = 8; + this.btnNextPage.Tag = "下一页"; + this.toolTip1.SetToolTip(this.btnNextPage, "下一页"); + this.btnNextPage.Click += new System.EventHandler(this.btnNextPage_Click); + // + // panel18 + // + this.panel18.BackgroundImage = global::AIMS.Properties.Resources.图标_第一页; + this.panel18.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.panel18.Cursor = System.Windows.Forms.Cursors.Hand; + this.panel18.Location = new System.Drawing.Point(1, 4); + this.panel18.Name = "panel18"; + this.panel18.Size = new System.Drawing.Size(28, 28); + this.panel18.TabIndex = 5; + this.panel18.Tag = "首页"; + this.toolTip1.SetToolTip(this.panel18, "首页"); + this.panel18.Click += new System.EventHandler(this.btnUpFsPage_Click); + // + // btnUpPage + // + this.btnUpPage.BackgroundImage = global::AIMS.Properties.Resources.图标_前一页; + this.btnUpPage.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.btnUpPage.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnUpPage.Location = new System.Drawing.Point(42, 4); + this.btnUpPage.Name = "btnUpPage"; + this.btnUpPage.Size = new System.Drawing.Size(28, 28); + this.btnUpPage.TabIndex = 6; + this.btnUpPage.Tag = "上一页"; + this.toolTip1.SetToolTip(this.btnUpPage, "上一页"); + this.btnUpPage.Click += new System.EventHandler(this.btnUpPage_Click); + // + // plPrintBrowse + // + this.plPrintBrowse.BackgroundImage = global::AIMS.Properties.Resources.图标_预览; + this.plPrintBrowse.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.plPrintBrowse.Cursor = System.Windows.Forms.Cursors.Hand; + this.plPrintBrowse.Location = new System.Drawing.Point(206, 4); + this.plPrintBrowse.Name = "plPrintBrowse"; + this.plPrintBrowse.Size = new System.Drawing.Size(28, 28); + this.plPrintBrowse.TabIndex = 4; + this.toolTip1.SetToolTip(this.plPrintBrowse, "预览"); + this.plPrintBrowse.Click += new System.EventHandler(this.plPrintBrowse_Click); + // + // plPrint + // + this.plPrint.BackgroundImage = global::AIMS.Properties.Resources.图标_打印; + this.plPrint.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.plPrint.Cursor = System.Windows.Forms.Cursors.Hand; + this.plPrint.Location = new System.Drawing.Point(165, 4); + this.plPrint.Name = "plPrint"; + this.plPrint.Size = new System.Drawing.Size(28, 28); + this.plPrint.TabIndex = 3; + this.toolTip1.SetToolTip(this.plPrint, "打印"); + this.plPrint.Click += new System.EventHandler(this.plPrint_Click); + // + // plRefresh + // + this.plRefresh.BackgroundImage = global::AIMS.Properties.Resources.图标_刷新; + this.plRefresh.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.plRefresh.Cursor = System.Windows.Forms.Cursors.Hand; + this.plRefresh.Location = new System.Drawing.Point(247, 4); + this.plRefresh.Name = "plRefresh"; + this.plRefresh.Size = new System.Drawing.Size(28, 28); + this.plRefresh.TabIndex = 2; + this.toolTip1.SetToolTip(this.plRefresh, "刷新"); + this.plRefresh.Click += new System.EventHandler(this.plRefresh_Click); + // + // lblRoom + // + this.lblRoom.AutoSize = true; + this.lblRoom.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.lblRoom.Location = new System.Drawing.Point(317, 8); + this.lblRoom.Name = "lblRoom"; + this.lblRoom.Size = new System.Drawing.Size(13, 20); + this.lblRoom.TabIndex = 9; + this.lblRoom.Text = " "; + // + // label22 + // + this.label22.AutoSize = true; + this.label22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label22.Location = new System.Drawing.Point(235, 8); + this.label22.Name = "label22"; + this.label22.Size = new System.Drawing.Size(82, 20); + this.label22.TabIndex = 8; + this.label22.Text = "当前手术间:"; + // + // labOperatorName + // + this.labOperatorName.AutoSize = true; + this.labOperatorName.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labOperatorName.Location = new System.Drawing.Point(84, 8); + this.labOperatorName.Name = "labOperatorName"; + this.labOperatorName.Size = new System.Drawing.Size(93, 20); + this.labOperatorName.TabIndex = 7; + this.labOperatorName.Text = "操作人员名称"; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label19.Location = new System.Drawing.Point(8, 8); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(68, 20); + this.label19.TabIndex = 6; + this.label19.Text = "操作人员:"; + // + // plTitleEventTime + // + this.plTitleEventTime.BackColor = System.Drawing.Color.White; + this.plTitleEventTime.Controls.Add(this.panel13); + this.plTitleEventTime.Controls.Add(this.panel10); + this.plTitleEventTime.Controls.Add(this.panel16); + this.plTitleEventTime.Controls.Add(this.panel12); + this.plTitleEventTime.Controls.Add(this.panel15); + this.plTitleEventTime.Controls.Add(this.panel9); + this.plTitleEventTime.Controls.Add(this.panel11); + this.plTitleEventTime.Controls.Add(this.panel6); + this.plTitleEventTime.Dock = System.Windows.Forms.DockStyle.Top; + this.plTitleEventTime.Location = new System.Drawing.Point(0, 0); + this.plTitleEventTime.Name = "plTitleEventTime"; + this.plTitleEventTime.Size = new System.Drawing.Size(1389, 58); + this.plTitleEventTime.TabIndex = 0; + // + // panel13 + // + this.panel13.BackColor = System.Drawing.Color.AliceBlue; + this.panel13.Controls.Add(this.txtOutRoom); + this.panel13.Controls.Add(this.picOutRoom); + this.panel13.Controls.Add(this.button5); + this.panel13.Location = new System.Drawing.Point(1134, 3); + this.panel13.Name = "panel13"; + this.panel13.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel13.Size = new System.Drawing.Size(150, 53); + this.panel13.TabIndex = 54; + // + // txtOutRoom + // + this.txtOutRoom.AutoAdvance = true; + // + // + // + this.txtOutRoom.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtOutRoom.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOutRoom.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtOutRoom.CustomFormat = "MM-ddHH:mm"; + this.txtOutRoom.FocusHighlightColor = System.Drawing.Color.White; + this.txtOutRoom.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtOutRoom.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtOutRoom.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtOutRoom.IsPopupCalendarOpen = false; + this.txtOutRoom.Location = new System.Drawing.Point(42, 23); + this.txtOutRoom.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtOutRoom.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOutRoom.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtOutRoom.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtOutRoom.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOutRoom.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtOutRoom.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtOutRoom.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtOutRoom.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtOutRoom.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtOutRoom.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtOutRoom.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOutRoom.Name = "txtOutRoom"; + this.txtOutRoom.Size = new System.Drawing.Size(101, 23); + this.txtOutRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtOutRoom.TabIndex = 43; + // + // picOutRoom + // + this.picOutRoom.BackColor = System.Drawing.Color.Transparent; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; + this.picOutRoom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picOutRoom.Location = new System.Drawing.Point(2, 10); + this.picOutRoom.Name = "picOutRoom"; + this.picOutRoom.Size = new System.Drawing.Size(34, 33); + this.picOutRoom.TabIndex = 42; + this.picOutRoom.TabStop = false; + // + // button5 + // + this.button5.BackColor = System.Drawing.Color.Transparent; + this.button5.FlatAppearance.BorderSize = 0; + this.button5.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button5.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button5.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button5.Location = new System.Drawing.Point(39, -3); + this.button5.Name = "button5"; + this.button5.Size = new System.Drawing.Size(100, 25); + this.button5.TabIndex = 41; + this.button5.Tag = ""; + this.button5.Text = "出手术间"; + this.button5.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button5.UseVisualStyleBackColor = false; + // + // panel10 + // + this.panel10.BackColor = System.Drawing.Color.AliceBlue; + this.panel10.Controls.Add(this.txtOperationBegin); + this.panel10.Controls.Add(this.picOpeBegin); + this.panel10.Controls.Add(this.button2); + this.panel10.Location = new System.Drawing.Point(494, 3); + this.panel10.Name = "panel10"; + this.panel10.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel10.Size = new System.Drawing.Size(150, 53); + this.panel10.TabIndex = 55; + // + // txtOperationBegin + // + this.txtOperationBegin.AutoAdvance = true; + // + // + // + this.txtOperationBegin.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtOperationBegin.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationBegin.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtOperationBegin.CustomFormat = "MM-ddHH:mm"; + this.txtOperationBegin.FocusHighlightColor = System.Drawing.Color.White; + this.txtOperationBegin.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtOperationBegin.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtOperationBegin.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtOperationBegin.IsPopupCalendarOpen = false; + this.txtOperationBegin.Location = new System.Drawing.Point(42, 23); + this.txtOperationBegin.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtOperationBegin.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationBegin.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtOperationBegin.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtOperationBegin.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationBegin.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtOperationBegin.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtOperationBegin.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtOperationBegin.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtOperationBegin.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtOperationBegin.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtOperationBegin.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationBegin.Name = "txtOperationBegin"; + this.txtOperationBegin.Size = new System.Drawing.Size(101, 23); + this.txtOperationBegin.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtOperationBegin.TabIndex = 43; + // + // picOpeBegin + // + this.picOpeBegin.BackColor = System.Drawing.Color.Transparent; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始; + this.picOpeBegin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picOpeBegin.Location = new System.Drawing.Point(2, 10); + this.picOpeBegin.Name = "picOpeBegin"; + this.picOpeBegin.Size = new System.Drawing.Size(34, 33); + this.picOpeBegin.TabIndex = 42; + this.picOpeBegin.TabStop = false; + // + // button2 + // + this.button2.BackColor = System.Drawing.Color.Transparent; + this.button2.FlatAppearance.BorderSize = 0; + this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button2.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button2.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button2.Location = new System.Drawing.Point(39, -3); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(100, 25); + this.button2.TabIndex = 41; + this.button2.Tag = ""; + this.button2.Text = "手术开始"; + this.button2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button2.UseVisualStyleBackColor = false; + // + // panel16 + // + this.panel16.BackColor = System.Drawing.Color.AliceBlue; + this.panel16.Controls.Add(this.txtBG); + this.panel16.Controls.Add(this.picBG); + this.panel16.Controls.Add(this.button9); + this.panel16.Location = new System.Drawing.Point(814, 3); + this.panel16.Name = "panel16"; + this.panel16.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel16.Size = new System.Drawing.Size(150, 53); + this.panel16.TabIndex = 56; + // + // txtBG + // + this.txtBG.AutoAdvance = true; + // + // + // + this.txtBG.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtBG.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtBG.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtBG.CustomFormat = "MM-ddHH:mm"; + this.txtBG.FocusHighlightColor = System.Drawing.Color.White; + this.txtBG.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtBG.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtBG.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtBG.IsPopupCalendarOpen = false; + this.txtBG.Location = new System.Drawing.Point(42, 26); + this.txtBG.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtBG.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtBG.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtBG.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtBG.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtBG.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtBG.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtBG.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtBG.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtBG.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtBG.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtBG.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtBG.Name = "txtBG"; + this.txtBG.Size = new System.Drawing.Size(101, 23); + this.txtBG.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtBG.TabIndex = 43; + // + // picBG + // + this.picBG.BackColor = System.Drawing.Color.Transparent; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; + this.picBG.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picBG.Location = new System.Drawing.Point(2, 10); + this.picBG.Name = "picBG"; + this.picBG.Size = new System.Drawing.Size(34, 33); + this.picBG.TabIndex = 42; + this.picBG.TabStop = false; + // + // button9 + // + this.button9.BackColor = System.Drawing.Color.Transparent; + this.button9.FlatAppearance.BorderSize = 0; + this.button9.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button9.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button9.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button9.Location = new System.Drawing.Point(39, -3); + this.button9.Name = "button9"; + this.button9.Size = new System.Drawing.Size(100, 25); + this.button9.TabIndex = 41; + this.button9.Tag = ""; + this.button9.Text = "拔管"; + this.button9.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button9.UseVisualStyleBackColor = false; + // + // panel12 + // + this.panel12.BackColor = System.Drawing.Color.AliceBlue; + this.panel12.Controls.Add(this.txtAnaesthesiaEnd); + this.panel12.Controls.Add(this.picAnesEnd); + this.panel12.Controls.Add(this.button4); + this.panel12.Location = new System.Drawing.Point(974, 3); + this.panel12.Name = "panel12"; + this.panel12.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel12.Size = new System.Drawing.Size(150, 53); + this.panel12.TabIndex = 57; + // + // txtAnaesthesiaEnd + // + this.txtAnaesthesiaEnd.AutoAdvance = true; + // + // + // + this.txtAnaesthesiaEnd.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtAnaesthesiaEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtAnaesthesiaEnd.CustomFormat = "MM-ddHH:mm"; + this.txtAnaesthesiaEnd.FocusHighlightColor = System.Drawing.Color.White; + this.txtAnaesthesiaEnd.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtAnaesthesiaEnd.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtAnaesthesiaEnd.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtAnaesthesiaEnd.IsPopupCalendarOpen = false; + this.txtAnaesthesiaEnd.Location = new System.Drawing.Point(42, 23); + this.txtAnaesthesiaEnd.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtAnaesthesiaEnd.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaEnd.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtAnaesthesiaEnd.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtAnaesthesiaEnd.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaEnd.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtAnaesthesiaEnd.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtAnaesthesiaEnd.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtAnaesthesiaEnd.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtAnaesthesiaEnd.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtAnaesthesiaEnd.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtAnaesthesiaEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaEnd.Name = "txtAnaesthesiaEnd"; + this.txtAnaesthesiaEnd.Size = new System.Drawing.Size(101, 23); + this.txtAnaesthesiaEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtAnaesthesiaEnd.TabIndex = 43; + // + // picAnesEnd + // + this.picAnesEnd.BackColor = System.Drawing.Color.Transparent; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; + this.picAnesEnd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picAnesEnd.Location = new System.Drawing.Point(2, 10); + this.picAnesEnd.Name = "picAnesEnd"; + this.picAnesEnd.Size = new System.Drawing.Size(34, 33); + this.picAnesEnd.TabIndex = 42; + this.picAnesEnd.TabStop = false; + // + // button4 + // + this.button4.BackColor = System.Drawing.Color.Transparent; + this.button4.FlatAppearance.BorderSize = 0; + this.button4.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button4.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button4.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button4.Location = new System.Drawing.Point(39, -3); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(100, 25); + this.button4.TabIndex = 41; + this.button4.Tag = ""; + this.button4.Text = "麻醉完成"; + this.button4.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button4.UseVisualStyleBackColor = false; + // + // panel15 + // + this.panel15.BackColor = System.Drawing.Color.AliceBlue; + this.panel15.Controls.Add(this.cmbCGType); + this.panel15.Controls.Add(this.txtCG); + this.panel15.Controls.Add(this.picCG); + this.panel15.Location = new System.Drawing.Point(334, 3); + this.panel15.Name = "panel15"; + this.panel15.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel15.Size = new System.Drawing.Size(150, 53); + this.panel15.TabIndex = 58; + // + // cmbCGType + // + this.cmbCGType.Font = new System.Drawing.Font("微软雅黑", 9F); + this.cmbCGType.FormattingEnabled = true; + this.cmbCGType.Items.AddRange(new object[] { + "插管", + "喉罩"}); + this.cmbCGType.Location = new System.Drawing.Point(42, 0); + this.cmbCGType.Name = "cmbCGType"; + this.cmbCGType.Size = new System.Drawing.Size(101, 25); + this.cmbCGType.TabIndex = 47; + this.cmbCGType.Text = "插管"; + // + // txtCG + // + this.txtCG.AutoAdvance = true; + // + // + // + this.txtCG.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtCG.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtCG.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtCG.CustomFormat = "MM-ddHH:mm"; + this.txtCG.FocusHighlightColor = System.Drawing.Color.White; + this.txtCG.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtCG.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtCG.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtCG.IsPopupCalendarOpen = false; + this.txtCG.Location = new System.Drawing.Point(42, 26); + this.txtCG.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtCG.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtCG.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtCG.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtCG.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtCG.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtCG.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtCG.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtCG.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtCG.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtCG.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtCG.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtCG.Name = "txtCG"; + this.txtCG.Size = new System.Drawing.Size(101, 23); + this.txtCG.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtCG.TabIndex = 43; + // + // picCG + // + this.picCG.BackColor = System.Drawing.Color.Transparent; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管; + this.picCG.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picCG.Location = new System.Drawing.Point(2, 10); + this.picCG.Name = "picCG"; + this.picCG.Size = new System.Drawing.Size(34, 33); + this.picCG.TabIndex = 42; + this.picCG.TabStop = false; + // + // panel9 + // + this.panel9.BackColor = System.Drawing.Color.AliceBlue; + this.panel9.Controls.Add(this.txtAnaesthesiaBegin); + this.panel9.Controls.Add(this.picAnesBegin); + this.panel9.Controls.Add(this.button1); + this.panel9.Location = new System.Drawing.Point(174, 3); + this.panel9.Name = "panel9"; + this.panel9.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel9.Size = new System.Drawing.Size(150, 53); + this.panel9.TabIndex = 59; + // + // txtAnaesthesiaBegin + // + this.txtAnaesthesiaBegin.AutoAdvance = true; + // + // + // + this.txtAnaesthesiaBegin.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtAnaesthesiaBegin.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaBegin.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtAnaesthesiaBegin.CustomFormat = "MM-ddHH:mm"; + this.txtAnaesthesiaBegin.FocusHighlightColor = System.Drawing.Color.White; + this.txtAnaesthesiaBegin.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtAnaesthesiaBegin.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtAnaesthesiaBegin.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtAnaesthesiaBegin.IsPopupCalendarOpen = false; + this.txtAnaesthesiaBegin.Location = new System.Drawing.Point(42, 23); + this.txtAnaesthesiaBegin.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtAnaesthesiaBegin.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaBegin.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtAnaesthesiaBegin.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtAnaesthesiaBegin.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaBegin.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtAnaesthesiaBegin.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtAnaesthesiaBegin.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtAnaesthesiaBegin.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtAnaesthesiaBegin.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtAnaesthesiaBegin.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtAnaesthesiaBegin.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtAnaesthesiaBegin.Name = "txtAnaesthesiaBegin"; + this.txtAnaesthesiaBegin.Size = new System.Drawing.Size(101, 23); + this.txtAnaesthesiaBegin.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtAnaesthesiaBegin.TabIndex = 43; + // + // picAnesBegin + // + this.picAnesBegin.BackColor = System.Drawing.Color.Transparent; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始; + this.picAnesBegin.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picAnesBegin.Location = new System.Drawing.Point(2, 10); + this.picAnesBegin.Name = "picAnesBegin"; + this.picAnesBegin.Size = new System.Drawing.Size(34, 33); + this.picAnesBegin.TabIndex = 42; + this.picAnesBegin.TabStop = false; + // + // button1 + // + this.button1.BackColor = System.Drawing.Color.Transparent; + this.button1.FlatAppearance.BorderSize = 0; + this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button1.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button1.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button1.Location = new System.Drawing.Point(39, -3); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(100, 25); + this.button1.TabIndex = 41; + this.button1.Tag = "麻醉开始"; + this.button1.Text = "麻醉开始"; + this.button1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button1.UseVisualStyleBackColor = false; + // + // panel11 + // + this.panel11.BackColor = System.Drawing.Color.AliceBlue; + this.panel11.Controls.Add(this.txtOperationEnd); + this.panel11.Controls.Add(this.picOpeEnd); + this.panel11.Controls.Add(this.button3); + this.panel11.Location = new System.Drawing.Point(654, 3); + this.panel11.Name = "panel11"; + this.panel11.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel11.Size = new System.Drawing.Size(150, 53); + this.panel11.TabIndex = 52; + // + // txtOperationEnd + // + this.txtOperationEnd.AutoAdvance = true; + // + // + // + this.txtOperationEnd.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtOperationEnd.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationEnd.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtOperationEnd.CustomFormat = "MM-ddHH:mm"; + this.txtOperationEnd.FocusHighlightColor = System.Drawing.Color.White; + this.txtOperationEnd.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtOperationEnd.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtOperationEnd.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtOperationEnd.IsPopupCalendarOpen = false; + this.txtOperationEnd.Location = new System.Drawing.Point(42, 23); + this.txtOperationEnd.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtOperationEnd.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationEnd.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtOperationEnd.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtOperationEnd.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationEnd.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtOperationEnd.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtOperationEnd.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtOperationEnd.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtOperationEnd.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtOperationEnd.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtOperationEnd.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtOperationEnd.Name = "txtOperationEnd"; + this.txtOperationEnd.Size = new System.Drawing.Size(101, 23); + this.txtOperationEnd.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtOperationEnd.TabIndex = 43; + // + // picOpeEnd + // + this.picOpeEnd.BackColor = System.Drawing.Color.Transparent; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束; + this.picOpeEnd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picOpeEnd.Location = new System.Drawing.Point(2, 10); + this.picOpeEnd.Name = "picOpeEnd"; + this.picOpeEnd.Size = new System.Drawing.Size(34, 33); + this.picOpeEnd.TabIndex = 42; + this.picOpeEnd.TabStop = false; + // + // button3 + // + this.button3.BackColor = System.Drawing.Color.Transparent; + this.button3.FlatAppearance.BorderSize = 0; + this.button3.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.button3.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.button3.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.button3.Location = new System.Drawing.Point(39, -3); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(100, 25); + this.button3.TabIndex = 41; + this.button3.Tag = ""; + this.button3.Text = "手术结束"; + this.button3.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.button3.UseVisualStyleBackColor = false; + // + // panel6 + // + this.panel6.BackColor = System.Drawing.Color.AliceBlue; + this.panel6.Controls.Add(this.txtInRoom); + this.panel6.Controls.Add(this.picInRoom); + this.panel6.Controls.Add(this.txtInRoom1); + this.panel6.Location = new System.Drawing.Point(14, 3); + this.panel6.Name = "panel6"; + this.panel6.Padding = new System.Windows.Forms.Padding(3, 0, 3, 6); + this.panel6.Size = new System.Drawing.Size(150, 53); + this.panel6.TabIndex = 53; + // + // txtInRoom + // + this.txtInRoom.AutoAdvance = true; + // + // + // + this.txtInRoom.BackgroundStyle.Class = "DateTimeInputBackground"; + this.txtInRoom.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtInRoom.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown; + this.txtInRoom.CustomFormat = "MM-ddHH:mm"; + this.txtInRoom.FocusHighlightColor = System.Drawing.Color.White; + this.txtInRoom.Font = new System.Drawing.Font("微软雅黑", 9F); + this.txtInRoom.Format = DevComponents.Editors.eDateTimePickerFormat.Custom; + this.txtInRoom.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + this.txtInRoom.IsPopupCalendarOpen = false; + this.txtInRoom.Location = new System.Drawing.Point(42, 23); + this.txtInRoom.Margin = new System.Windows.Forms.Padding(6, 0, 6, 6); + // + // + // + // + // + // + this.txtInRoom.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtInRoom.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + this.txtInRoom.MonthCalendar.ClearButtonVisible = true; + // + // + // + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderBottom = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderLeft = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderRight = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1; + this.txtInRoom.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtInRoom.MonthCalendar.DaySize = new System.Drawing.Size(20, 15); + this.txtInRoom.MonthCalendar.DisplayMonth = new System.DateTime(2017, 11, 1, 0, 0, 0, 0); + this.txtInRoom.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.txtInRoom.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.txtInRoom.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90; + this.txtInRoom.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.txtInRoom.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtInRoom.Name = "txtInRoom"; + this.txtInRoom.Size = new System.Drawing.Size(101, 23); + this.txtInRoom.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.txtInRoom.TabIndex = 43; + // + // picInRoom + // + this.picInRoom.BackColor = System.Drawing.Color.Transparent; + this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室; + this.picInRoom.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.picInRoom.Location = new System.Drawing.Point(2, 10); + this.picInRoom.Name = "picInRoom"; + this.picInRoom.Size = new System.Drawing.Size(34, 33); + this.picInRoom.TabIndex = 42; + this.picInRoom.TabStop = false; + // + // txtInRoom1 + // + this.txtInRoom1.BackColor = System.Drawing.Color.Transparent; + this.txtInRoom1.FlatAppearance.BorderSize = 0; + this.txtInRoom1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.txtInRoom1.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.txtInRoom1.ImageAlign = System.Drawing.ContentAlignment.BottomLeft; + this.txtInRoom1.Location = new System.Drawing.Point(39, -3); + this.txtInRoom1.Name = "txtInRoom1"; + this.txtInRoom1.Size = new System.Drawing.Size(100, 25); + this.txtInRoom1.TabIndex = 41; + this.txtInRoom1.Tag = "进手术间"; + this.txtInRoom1.Text = "进手术间"; + this.txtInRoom1.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; + this.txtInRoom1.UseVisualStyleBackColor = false; + // + // flowLayoutPanel1 + // + this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 441); + this.flowLayoutPanel1.Name = "flowLayoutPanel1"; + this.flowLayoutPanel1.Size = new System.Drawing.Size(147, 71); + this.flowLayoutPanel1.TabIndex = 0; + // + // frmAanesthesiaPainlessRecord + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(1711, 941); + this.Controls.Add(this.panel1); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "frmAanesthesiaPainlessRecord"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "镇静镇痛评估、记录单"; + this.WindowState = System.Windows.Forms.FormWindowState.Maximized; + this.Load += new System.EventHandler(this.frmAnasRecordBill2_Load); + this.VisibleChanged += new System.EventHandler(this.frmAnasRecordBill2_VisibleChanged); + this.panel3.ResumeLayout(false); + this.panel14.ResumeLayout(false); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel5.ResumeLayout(false); + this.panel8.ResumeLayout(false); + this.panel7.ResumeLayout(false); + this.panel7.PerformLayout(); + this.panel21.ResumeLayout(false); + this.plTitleEventTime.ResumeLayout(false); + this.panel13.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtOutRoom)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOutRoom)).EndInit(); + this.panel10.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtOperationBegin)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOpeBegin)).EndInit(); + this.panel16.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtBG)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picBG)).EndInit(); + this.panel12.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaEnd)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAnesEnd)).EndInit(); + this.panel15.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtCG)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCG)).EndInit(); + this.panel9.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtAnaesthesiaBegin)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAnesBegin)).EndInit(); + this.panel11.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtOperationEnd)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOpeEnd)).EndInit(); + this.panel6.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtInRoom)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picInRoom)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Panel panel4; + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.Panel panel7; + private System.Windows.Forms.Panel plTitleEventTime; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label lblSpo2; + private System.Windows.Forms.Label lblDia; + private System.Windows.Forms.Label label6; + private System.Windows.Forms.Label lblPR; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label lblHR; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lblRoom; + private System.Windows.Forms.Label label22; + private System.Windows.Forms.Label labOperatorName; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Panel panel21; + private System.Windows.Forms.Panel plPrintBrowse; + private System.Windows.Forms.Panel plPrint; + private System.Windows.Forms.Panel plRefresh; + private System.Windows.Forms.Button btnSelectPatient; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.Panel panel14; + private System.Windows.Forms.Button btnDrug; + private System.Windows.Forms.Button btnOperationInfo; + private System.Windows.Forms.Button btnAddEvents; + private System.Windows.Forms.Button btnTemplate; + private System.Windows.Forms.Button btnOutputLiquids; + private System.Windows.Forms.Button button8; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.Button btnCancelIn; + private System.Windows.Forms.Button btnCancelOperation; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label lblRESP; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.Panel panel13; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtOutRoom; + private System.Windows.Forms.PictureBox picOutRoom; + private System.Windows.Forms.Button button5; + private System.Windows.Forms.Panel panel10; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtOperationBegin; + private System.Windows.Forms.PictureBox picOpeBegin; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Panel panel16; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtBG; + private System.Windows.Forms.PictureBox picBG; + private System.Windows.Forms.Button button9; + private System.Windows.Forms.Panel panel12; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtAnaesthesiaEnd; + private System.Windows.Forms.PictureBox picAnesEnd; + private System.Windows.Forms.Button button4; + private System.Windows.Forms.Panel panel15; + private System.Windows.Forms.ComboBox cmbCGType; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtCG; + private System.Windows.Forms.PictureBox picCG; + private System.Windows.Forms.Panel panel9; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtAnaesthesiaBegin; + private System.Windows.Forms.PictureBox picAnesBegin; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Panel panel11; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtOperationEnd; + private System.Windows.Forms.PictureBox picOpeEnd; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Panel panel6; + private DevComponents.Editors.DateTimeAdv.DateTimeInput txtInRoom; + private System.Windows.Forms.PictureBox picInRoom; + private System.Windows.Forms.Button txtInRoom1; + private System.Windows.Forms.Button btnChage; + private System.Windows.Forms.Button btnsjzx; + private System.Windows.Forms.Button btnyldj; + private System.Windows.Forms.Button btnzsk; + private System.Windows.Forms.Button btndptz; + private System.Windows.Forms.Button btnxldlx; + private System.Windows.Forms.Button btnsbwh; + private System.Windows.Forms.Panel panel17; + private System.Windows.Forms.Panel btnNextPage; + private System.Windows.Forms.Panel panel18; + private System.Windows.Forms.Panel btnUpPage; + private System.Windows.Forms.ToolTip toolTip1; + private PublicUI.UI.DrawPanel panel8; + public DevComponents.DotNetBar.Controls.CircularProgress circularProgress1; + private DrawGraph.ZedGraphControl zgcAnaesRecord; + private System.Windows.Forms.Button button6; + } +} \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.cs b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.cs new file mode 100644 index 0000000..6f2a5ab --- /dev/null +++ b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.cs @@ -0,0 +1,2241 @@ +using AIMS.DocManager; +using AIMS.OperationFront.UI; +using AIMS.PublicUI.UI; +using AIMSBLL; +using AIMSExtension; +using AIMSModel; +using DevComponents.DotNetBar; +using DevComponents.Editors.DateTimeAdv; +using DocumentManagement; +using DrawGraph; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Diagnostics; +using System.Drawing; +using System.Drawing.Printing; +using System.Linq; +using System.Windows.Forms; + +namespace AIMS.OperationAanesthesia +{ + public partial class frmAanesthesiaPainlessRecord : Form + { + #region 初始化 + public OperationRecord _record; + public TemplateManage templateManage; + public AIMSModel.OperationRoom NowRoom; + + public int PatientId = 0; + public int ApplyId = 0; + public int RecoverId = 1; + private System.Windows.Forms.Timer timerGetTextCollectorData; + public AIMSExtension.EditState State; + public bool isReadOnly = false; + + public frmAanesthesiaPainlessRecord() + { + InitializeComponent(); + #region 时间轴事件 + txtInRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtOutRoom.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtAnaesthesiaBegin.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtAnaesthesiaEnd.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtOperationBegin.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtOperationEnd.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtCG.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + txtBG.MouseDown += new MouseEventHandler(txtDateTime_MouseDown); + + txtAnaesthesiaBegin.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + txtAnaesthesiaEnd.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + txtOperationBegin.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + txtOperationEnd.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + txtCG.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + txtBG.KeyUp += new KeyEventHandler(dateTimePicker_KeyUp); + + txtInRoom.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtOutRoom.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtAnaesthesiaBegin.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtAnaesthesiaEnd.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtOperationBegin.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtOperationEnd.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtCG.LostFocus += new EventHandler(txtDateTime_LostFocus); + txtBG.LostFocus += new EventHandler(txtDateTime_LostFocus); + + this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; + #endregion + panel8.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel8_MouseWheel); + } + + private void frmAnasRecordBill2_Load(object sender, EventArgs e) + { + labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName; + if (NowRoom != null) lblRoom.Text = NowRoom.Name; + circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2); + if (PublicMethod.OperatorNo == "admin" || PublicMethod.RoleName.Contains("麻醉收费记录")) + { + btnChage.Visible = true; + } + //this.MaximizeBox = false; + this.MinimizeBox = false; + LoadAnesRescue(); + } + + #endregion + + #region 打印方法 + public List mPanes = new List(); + public List UpPanes = new List(); + int m_startPrintPage;// 打印的起始页码 + int m_endPrintPage;//打印的终止页码 + //int m_PageIndex;// 当前打印页码 + int count = 0; + + private void plPrint_Click(object sender, EventArgs e) + { + if (_record == null || _record.Id == 0) return; + plPrint.Select(); + + SelectWorkerValue.Hidden(); + SelectDictValue.Hidden(); + SelectDictText.Hidden(); + + if (_record.SAreaObj != null && _record.SAreaObj.Selected == true) + { + _record.SAreaObj.Clear(); + } + if (_record.SelPhysioConfig != null) + { + _record.SelPhysioConfig.IsClick = false; + _record.SelPhysioConfig.onClick(e); + _record.SelPhysioConfig = null; + } + + Panel panel = zgcAnaesRecord.Parent as Panel; + panel.VerticalScroll.Value = 0; + panel2.VerticalScroll.Value = 0; + if (_record.StateName == "手术中") + { + if (txtOperationEnd.CustomFormat == " " && txtOutRoom.CustomFormat == " ") + { + txtOperationEnd.BackColor = Color.Red; + txtOutRoom.BackColor = Color.Red; + MessageBox.Show("手术还没有结束,请填写 手术结束时间和出室时间!", "系统提示"); + return; + } + if (txtOperationEnd.CustomFormat == " ") + { + txtOperationEnd.BackColor = Color.Red; + MessageBox.Show("手术还没有结束,请填写手术结束时间!", "系统提示"); + return; + } + if (txtOutRoom.CustomFormat == " ") + { + txtOutRoom.BackColor = Color.Red; + MessageBox.Show("手术还没有结束,请填写出室时间!", "系统提示"); + return; + } + } + + try + { + mPanes = new List(); + UpPanes = new List(); + + while (_record.pageCount != 1) + { + btnUpPage_Click(null, null); + } + PrintDocPage(null, null); + + count = 0; + int pylWidth = 3; + System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument(); + pDoc.DefaultPageSettings.Landscape = false; + pDoc.OriginAtMargins = true; + pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High; + pDoc.DefaultPageSettings.Margins = new Margins(pylWidth, 0, 0, 0); + pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage); + pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage); + + System.Windows.Forms.PrintDialog pDlg = new System.Windows.Forms.PrintDialog(); + pDlg.Document = pDoc; + if (pDlg.ShowDialog() == System.Windows.Forms.DialogResult.OK) + { + pDoc.Print(); + } + + PublicMethod.WriteLog("打印麻醉记录单", _record.PatientId.Value, 1, "麻醉"); + count = 0; + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp, ""); + } + } + + private void plPrintBrowse_Click(object sender, EventArgs e) + { + if (_record == null || _record.Id == 0) return; + plPrintBrowse.Select(); + + SelectWorkerValue.Hidden(); + SelectDictValue.Hidden(); + SelectDictText.Hidden(); + if (_record.SAreaObj != null && _record.SAreaObj.Selected == true) + { + _record.SAreaObj.Clear(); + } + + if (_record.SelPhysioConfig != null) + { + _record.SelPhysioConfig.IsClick = false; + _record.SelPhysioConfig.onClick(e); + _record.SelPhysioConfig = null; + } + + panel8.VerticalScroll.Value = 0; + + mPanes = new List(); + UpPanes = new List(); + PrintDocPage(null, null); + count = 0; + System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument(); + pDoc.DefaultPageSettings.Landscape = false; + if (templateManage.Typesetting == TypesettingEnum.Horizontal) + { + pDoc.DefaultPageSettings.Landscape = true; + } + pDoc.OriginAtMargins = true; + pDoc.DefaultPageSettings.PrinterResolution.Kind = PrinterResolutionKind.High; + pDoc.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0); + pDoc.PrintPage -= new PrintPageEventHandler(pDoc_PrintPage); + pDoc.PrintPage += new PrintPageEventHandler(pDoc_PrintPage); + + PrintPreviewDialog pdg = new PrintPreviewDialog(); + foreach (Control ctl in pdg.Controls) + { + if (ctl is ToolStrip) + { + ToolStrip toolbar = ctl as ToolStrip; + toolbar.Items.RemoveAt(0); + ToolStrip tb = ctl as ToolStrip; + //tb.ImageList.Images.Add(Properties.Resources.); + ToolStripButton settingBtn = new ToolStripButton(); + settingBtn.ToolTipText = "打印"; + settingBtn.Text = "打印"; + //settingBtn.ImageIndex = tb.ImageList.Images.Count - 1; + settingBtn.Click += PageSetting_Click; + 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; + f.WindowState = FormWindowState.Maximized; + pdg.Document = pDoc; + pdg.PrintPreviewControl.Zoom = 1; + pdg.ShowDialog(); + pdg.Focus(); + pdg.BringToFront(); + + } + private void PageSetting_Click(object sender, EventArgs e) + { + plPrint_Click(null, null); + } + + private void PrintDocPage(object sender, PrintPageEventArgs e) + { + if (_record.currentPage == 1) + { + PrintDocPane(e, zgcAnaesRecord, templateManage, true); + } + else + { + for (int i = 1; i <= _record.pageCount; i++) + { + PrintDocPane(e, zgcAnaesRecord, templateManage, true); + btnNextPage_Click(null, null); + if (i != 1) + { + MasterPane mPane = new MasterPane(); + mPane.Border.IsVisible = false; + mPanes.Add(mPane); + } + } + } + + } + + private void PrintDocPane(PrintPageEventArgs e, ZedGraphControl zedGraph, TemplateManage template, bool InitChart) + { + foreach (AreaManageBase area in template.ManageList) + { + area.setPrint(false); + area.BindTempData(); + } + int zedGraphMainWidth = zedGraph.Size.Width; + int zedGraphMainHeight = zedGraph.Size.Height; + + int width = 825; + int height = Convert.ToInt32(width * 1.414) + 2; + zedGraph.Size = new Size(width, height); + zedGraph.Width = width; + zedGraph.Height = height; + + if (InitChart == true) + foreach (PhysioDataConfig pp in _record.PhysioConfigList) + { + if (pp.ShowText == true) + { + pp.IsValid = false; + ///重新设置曲线属性 + pp.reSetCurveSpo2(); + } + } + TipBox.Hidden(); + + MasterPane mPane = zedGraph.MasterPane; //this.MasterPane; + mPane.Border.IsVisible = false; + //当前窗体中的矩形区域大小 + RectangleF saveRect = mPane.Rect; + if (InitChart == true) + template.initChart(); + mPanes.Add(mPane.Clone()); + if (e != null) + mPane.Draw(e.Graphics); //在打印文档中画出MasterPane内容 + using (Graphics g = zedGraph.CreateGraphics()) + { + mPane.ReSize(g, saveRect); + } + + zedGraph.Size = new Size(zedGraphMainWidth, zedGraphMainHeight); + if (InitChart == true) + template.initChart(); + UpPanes.Add(mPane.Clone()); + + if (InitChart == true) + foreach (PhysioDataConfig pp in _record.PhysioConfigList) + { + if (pp.ShowText == true) + { + pp.IsValid = true; + ///重新设置曲线属性 + pp.reSetCurveSpo2(); + } + } + if (InitChart == true) + { + int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * 0.08); + templateManage.LocationY = LocationY; + templateManage.SetPYL(); + foreach (AreaManageBase area in template.ManageList) + { + area.setPrint(true); + } + } + } + private void pDoc_PrintPage(object sender, PrintPageEventArgs e) + { + System.Drawing.Printing.PrintDocument pDoc = sender as System.Drawing.Printing.PrintDocument; + m_startPrintPage = pDoc.PrinterSettings.FromPage; + m_endPrintPage = pDoc.PrinterSettings.ToPage; + + int printCount = mPanes.Count; + if (mPanes.Count > 0 && count < printCount) + { + mPanes[count].Draw(e.Graphics); + count++; + if (count < printCount) + { + e.HasMorePages = true; + } + } + else + { + e.HasMorePages = false; + } + + //if (m_startPrintPage == 0 && m_endPrintPage == 0) + //{ + // int printCount = mPanes.Count; + // if (mPanes.Count > 0 && count < printCount) + // { + // mPanes[count].Draw(e.Graphics); + // count++; + // if (count < printCount) + // { + // e.HasMorePages = true; + // } + // } + // else + // { + // e.HasMorePages = false; + // } + //} + //else + //{ + // try + // { + // //如果当前打印页小于打印起始页码,就递增一页,直至等于打印起始页码 + // if (m_startPrintPage > 0) + // { + // while (m_PageIndex < m_startPrintPage) + // { + // m_PageIndex++; + // } + // } + + // mPanes[m_PageIndex - 1].Draw(e.Graphics); + // //当前打印页加1 + // m_PageIndex++; + + // if (m_PageIndex <= m_endPrintPage) + // { + // e.HasMorePages = true; + // } + + // //如果设置了打印页码范围并且当前打印页大于打印终止页码,终止打印,设置e.HasMorePages参数,初始化相关变量 + // if ((m_startPrintPage > 0) && (m_PageIndex > m_endPrintPage)) + // { + // e.HasMorePages = false; + // m_PageIndex = 1; + // return; + // } + + // } + // catch (Exception ex) + // { + // //出错处理,终止打印,设置e.HasMorePages参数,初始化相关变量 + // e.HasMorePages = false; + // m_PageIndex = 1; + // } + //} + } + + #endregion + + #region 上方按钮 + /// + /// 手术特殊事件时间点处理事件 + /// + /// + /// + public void txtDateTime_MouseDown(object sender, MouseEventArgs e) + { + if (PatientId == 0) return; + DateTimeInput tb = sender as DateTimeInput; + if (_record != null && _record.OutRoomTime != null) + { + if ((tb.Name == "txtBG" || tb.Name == "txtCG") && tb.Text.Trim() == "") + { + return; + } + } + + if (tb.Text.Trim() == "" && tb.CustomFormat == " ") + { + tb.BackColor = Color.White; + SetPic(sender); + } + else + { + tb.CustomFormat = "HH:mm"; + tb.ButtonDropDown.Visible = true; + } + } + private void txtDateTime_LostFocus(object sender, EventArgs e) + { + if (PatientId == 0) return; + DateTimeInput tb = sender as DateTimeInput; + if (tb.CustomFormat == "HH:mm") + { + if (tb.Name == "txtInRoom" || tb.Name == "txtOutRoom") + { + tb.CustomFormat = "MM-dd HH:mm"; + } + tb.ButtonDropDown.Visible = false; + } + if (tb.Text.Trim() != "" && tb.Value.ToString() != tb.Tag.ToString()) + { + try + { + SetPic(sender, tb.Value); + tb.BackColor = Color.White; + } + catch (Exception) + { + tb.Focus(); + tb.Value = DateTime.Parse(tb.Tag.ToString()); + return; + } + } + else + { + if (tb.Tag != null && tb.Tag.ToString() != "") + tb.Value = DateTime.Parse(tb.Tag.ToString()); + } + } + private void dateTimePicker_KeyUp(object sender, KeyEventArgs e) + { + if (PatientId == 0) return; + DateTimeInput dtpak = (DateTimeInput)sender; + if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back) + { + if (dtpak.CustomFormat != " " && dtpak.Tag != null) + { + try + { + SetPic((DateTimeInput)sender); + } + catch (Exception) + { + //PublicMethod.ShowMessage("输入的时间格式不符合规范(HH:mm)!"); + return; + } + } + + } + } + /// + /// 特殊事件触发时设置图片 + /// + /// 显示时间的控件 + private void SetPic(Object obj) + { + DrawGraph.FactEvents Inevent = null; + DateTimeInput tb = obj as DateTimeInput; + DateTime nowtime = DateTime.Now;// getOpeMaxTime(); + DateTime curTimeTemp = new DateTime(nowtime.Year, nowtime.Month, nowtime.Day, nowtime.Hour, nowtime.Minute, 0); + InsertOrUpdateEventTime(0, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtAnaesthesiaBegin", "麻醉开始", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtCG", cmbCGType.Text, tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtBG", "拔管", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtOperationBegin", "手术开始", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtOperationEnd", "手术结束", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(0, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent); + + if (Inevent != null) + { + _record.FactEventsList.Add(Inevent); + if (Inevent.EventName == "入室") + { + _record.pageCount = 0; + ReviewEvent(); + } + else if (Inevent.EventName == "手术开始" || Inevent.EventName == "出室" || Inevent.EventBeginTime > _record.lastPageBegin) + { + ReviewEvent(); + } + else + { + DrawEvent(); + } + PublicMethod.WriteLog(Inevent.EventName, _record.PatientId.Value, 1, "麻醉"); + } + } + /// + /// 特殊事件触发时设置图片 + /// + /// 显示时间的控件 + private void SetPic(Object obj, DateTime curTimeTemp) + { + DrawGraph.FactEvents Inevent = null; + DateTimeInput tb = obj as DateTimeInput; + curTimeTemp = new DateTime(curTimeTemp.Year, curTimeTemp.Month, curTimeTemp.Day, curTimeTemp.Hour, curTimeTemp.Minute, 0); + //try + //{ + // if (curTimeTemp.Date < _record.PlanOperationTime.AddDays(-3).Date) + // { + // tb.Focus(); + // tb.Value = DateTime.Parse(tb.Tag.ToString()); + // return; + // } + //} + //catch (Exception) + //{ + //} + InsertOrUpdateEventTime(1, "txtInRoom", "入室", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtAnaesthesiaBegin", "麻醉开始", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtOperationBegin", "手术开始", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtCG", cmbCGType.Text, tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtBG", "拔管", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtOperationEnd", "手术结束", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtAnaesthesiaEnd", "麻醉完成", tb, curTimeTemp, ref Inevent); + curTimeTemp = curTimeTemp.AddSeconds(2); + InsertOrUpdateEventTime(1, "txtOutRoom", "出室", tb, curTimeTemp, ref Inevent); + + if (Inevent != null) + { + if (Inevent.EventName == "入室") + { + _record.pageCount = 0; + ReviewEvent(); + } + else if (Inevent.EventName == "出室" || Inevent.EventName == "手术开始" || Inevent.EventBeginTime > _record.lastPageBegin) + { + ReviewEvent(); + } + else + { + DrawEvent(); + } + PublicMethod.WriteLog("修改" + Inevent.EventName, _record.PatientId.Value, 1, "麻醉"); + } + } + /// + /// 特殊事件触发时设置图片 + /// + /// 显示时间的控件 + private void SetPic(DateTimeInput obj) + { + DrawGraph.FactEvents Inevent = null; + DateTimeInput tb = obj as DateTimeInput; + if (_record.StateName == "手术中") + { + DeleteEventTime("txtAnaesthesiaBegin", "麻醉开始", tb, ref Inevent); + DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent); + DeleteEventTime("txtOperationEnd", "手术结束", tb, ref Inevent); + DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent); + DeleteEventTime("txtCG", cmbCGType.Text, tb, ref Inevent); + DeleteEventTime("txtBG", "拔管", tb, ref Inevent); + } + else + { + MessageBox.Show("选择的事件不可删除 只可修改!"); + } + + if (Inevent != null) + { + tb.ButtonDropDown.Visible = false; + _record.FactEventsList.Remove(Inevent); + DrawEvent(); + PublicMethod.WriteLog("删除" + Inevent.EventName, _record.PatientId.Value, 1, "麻醉"); + } + } + /// + /// 判断控件对应的事件 删除事件 + /// + /// 事件对应的控件名称 + /// 事件名称 + /// 控件 + private void DeleteEventTime(string EventTxtName, string EventName, DateTimeInput tb, ref DrawGraph.FactEvents Inevent) + { + if (tb.Name.Equals(EventTxtName)) + { + List list = _record.FactEventsList.Where(c => c.EventName == EventName).ToList(); + if (list.Count <= 0) return; + Inevent = list[0]; + if (EventName == "入室" || EventName == "出室") + { + //PublicMethod.ShowMessage("该事件为主要事件 不可删除 只可修改!!"); + tb.Value = Inevent.EventBeginTime.Value; + Inevent = null; + return; + } + + BFactEvents.DeleteById(Inevent.Id.ToString()); + Inevent.clearAddObj(zgcAnaesRecord); + tb.CustomFormat = " "; + tb.Value = DateTime.Now; + tb.Tag = null; + + + if (Inevent != null && Inevent.EventName == "麻醉开始") + { + _record.AnesthesiaBeginTime = null; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始; + BOperationRecord.Update("AnesthesiaBeginTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "手术开始") + { + _record.OperationBeginTime = null; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始; + BOperationRecord.Update(" OperationBeginTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "手术结束") + { + _record.OperationEndTime = null; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束; + BOperationRecord.Update(" OperationEndTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "麻醉完成") + { + _record.AnesthesiaEndTime = null; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; + BOperationRecord.Update(" AnesthesiaEndTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == cmbCGType.Text) + { + _record.InCGType = ""; + _record.SpileInTime = null; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管; + BOperationRecord.Update(" SpileInTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + UpdatePhysioDataResp(); + } + if (Inevent != null && Inevent.EventName == "拔管") + { + _record.SpileOutTime = null; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; + BOperationRecord.Update(" SpileOutTime=null where Id=@id ", new AIMSModel.ParameterList("@id", _record.Id)); + UpdatePhysioDataResp(); + } + } + } + /// + /// 判断控件对应的事件 插入事件 + /// + /// 0插入 1更新 + /// 事件对应的控件名称 + /// 事件名称 + /// 事件对应的对象时间 + /// 控件 + /// 事件时间 + /// 事件对象 + private void InsertOrUpdateEventTime(int state, string EventTxtName, string EventName, DateTimeInput tb, DateTime curTimeTemp, ref DrawGraph.FactEvents Inevent) + { + if (tb.Name.Equals(EventTxtName)) + { + string messing = ""; + bool timeistrue = true; + timeistrue = BOperationRecord.IfTimeisTrue(true, _record, EventName, curTimeTemp, ref messing); + if (_record.StateName != null && _record.StateName != "手术中") + { + if (messing != "") + { + MessageBox.Show(messing); + } + } + else + { timeistrue = true; } + if (EventName == "出室" && _record.StateName == "手术中" && state == 0) + { + if (GetOpeState(ref messing) == false) + { + if (messing != "") MessageBox.Show(messing, "系统提示"); + if (messing == "请与手术信息选择手术分级!" || messing == "请与手术信息选择手术切口!") + btnOperationInfo_Click(null, null); + return; + } + } + if (timeistrue == false) + { + if (tb.Tag != null) tb.Value = DateTime.Parse(tb.Tag.ToString()); + return; + } + if (EventName == "出室" && curTimeTemp.ToString("yyyy-MM-dd HH:mm") == _record.lastPageBegin.ToString("yyyy-MM-dd HH:mm")) + { + curTimeTemp = _record.lastPageBegin; + } + if (state != 1) + { + Inevent = BFactEvents.Insert(PatientId, EventName, curTimeTemp, curTimeTemp, RecoverId); + } + else + { + updateEventTime(EventName, curTimeTemp, ref Inevent); + } + tb.Value = curTimeTemp; + tb.Tag = curTimeTemp; + + if (Inevent != null && Inevent.EventName == "入室" && _record.InRoomTime != Inevent.EventBeginTime) + { + _record.InRoomTime = Inevent.EventBeginTime; + this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select; + BOperationRecord.Update("InRoomTime=@InRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + + //try + //{ + // if (State != AIMSExtension.EditState.BROWSE && _record.StateName == "手术中" && NowRoom != null && isReadOnly == false) + // { + // //没有IP判断 + // DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.InRoomTime.Value, getOpeMaxTime(_record), 5); + // if (dtPhysioData.Rows.Count > 0) + // { + // foreach (var addPP in _record.PhysioConfigList) + // { + // addPP.clearAddObj(zgcAnaesRecord); + // } + // BOperationRecord.DeletePhysioDataByOpeID(_record.Id.Value); + // //同步未画点数据 + // DrawFillPhysioData(dtPhysioData); + // } + // } + //} + //catch (Exception ex) + //{ + // PublicMethod.WriteLog(ex); + //} + } + if (Inevent != null && Inevent.EventName == "麻醉开始" && _record.AnesthesiaBeginTime != Inevent.EventBeginTime) + { + _record.AnesthesiaBeginTime = Inevent.EventBeginTime; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始_select; + BOperationRecord.Update("AnesthesiaBeginTime=@AnesthesiaBeginTime where Id=@id ", new AIMSModel.ParameterList("@AnesthesiaBeginTime", _record.AnesthesiaBeginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "手术开始" && _record.OperationBeginTime != Inevent.EventBeginTime) + { + _record.OperationBeginTime = Inevent.EventBeginTime; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始_select; + BOperationRecord.Update("OperationBeginTime=@OperationBegin where Id=@id ", new AIMSModel.ParameterList("@OperationBegin", _record.OperationBeginTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == cmbCGType.Text && _record.SpileInTime != Inevent.EventBeginTime) + { + _record.InCGType = cmbCGType.Text; + _record.SpileInTime = Inevent.EventBeginTime; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管_select; + BOperationRecord.Update(" SpileInTime=@SpileIn where Id=@id ", new AIMSModel.ParameterList("@SpileIn", _record.SpileInTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + UpdatePhysioDataResp(); + + } + if (Inevent != null && Inevent.EventName == "拔管" && _record.SpileOutTime != Inevent.EventBeginTime) + { + _record.SpileOutTime = Inevent.EventBeginTime; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管_select; + BOperationRecord.Update(" SpileOutTime=@SpileOut where Id=@id ", new AIMSModel.ParameterList("@SpileOut", _record.SpileOutTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + UpdatePhysioDataResp(); + } + if (Inevent != null && Inevent.EventName == "手术结束" && _record.OperationEndTime != Inevent.EventBeginTime) + { + _record.OperationEndTime = Inevent.EventBeginTime; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束_select; + BOperationRecord.Update("OperationEndTime=@OperationEnd where Id=@id ", new AIMSModel.ParameterList("@OperationEnd", _record.OperationEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "麻醉完成" && _record.AnesthesiaEndTime != Inevent.EventBeginTime) + { + _record.AnesthesiaEndTime = Inevent.EventBeginTime; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束_select; + BOperationRecord.Update("AnesthesiaEndTime=@AnesthesiaEndTime where Id=@id ", new AIMSModel.ParameterList("@AnesthesiaEndTime", _record.AnesthesiaEndTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + } + if (Inevent != null && Inevent.EventName == "出室" && _record.OutRoomTime != Inevent.EventBeginTime) + { + _record.OutRoomTime = Inevent.EventBeginTime; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; + BOperationRecord.Update("OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@OutRoom", _record.OutRoomTime.Value.ToString("yyyy-MM-dd HH:mm:ss"), "@id", _record.Id)); + } + } + } + /// + /// 修改事件时间 + /// + /// + /// + public void updateEventTime(string eventName, DateTime dt, ref DrawGraph.FactEvents elist) + { + List list = _record.FactEventsList.Where(c => c.EventName == eventName).ToList(); + if (list.Count <= 0) return; + elist = list[0]; + if (elist.EventBeginTime != dt) + { + elist.EventBeginTime = dt; + elist.EventEndTime = dt; + BFactEvents.Update("EventBeginTime=@EventBeginTime,EventEndTime=@EventEndTime where id=@id ", new AIMSModel.ParameterList("@EventBeginTime", elist.EventBeginTime, "@EventEndTime", elist.EventEndTime, "@id", elist.Id)); + } + } + #endregion + + #region 下方按钮 + private void panel8_Scroll(object sender, ScrollEventArgs e) + { + if (templateManage != null) + templateManage.SetPYL(); + } + + private void panel8_MouseWheel(object sender, MouseEventArgs e) + { + if (templateManage != null) + templateManage.SetPYL(); + } + private void plRefresh_Click(object sender, EventArgs e) + { + if (PatientId == 0) return; + //刷新到当前页 + ReviewEvent(); + } + private void btnUpPage_Click(object sender, EventArgs e) + { + if (PatientId == 0) return; + if (_record.pageCount == 1) return; + SetUpPageTime(); + ReviewEvent(); + } + private void btnNextPage_Click(object sender, EventArgs e) + { + if (PatientId == 0) return; + if (_record.pageCount == _record.currentPage) return; + SetNextPageTime(); + ReviewEvent(); + } + + private void btnUpFsPage_Click(object sender, EventArgs e) + { + while (_record.pageCount != 1) + { + btnUpPage_Click(null, null); + } + } + private void btnNextEndPage_Click(object sender, EventArgs e) + { + while (_record.currentPage != _record.pageCount) + { + btnNextPage_Click(null, null); + } + } + public void SetUpPageTime() + { + if (_record.PageBegin < _record.sharpBegin) return; + _record.lastPageBegin = _record.PageBegin; + _record.PageBegin = _record.PageBegin.AddMinutes(-240); + _record.pageCount--; + if (_record.pageCount < 1) _record.pageCount = 1; + + if (_record.phListPack != null) + { + Panel pan3 = _record.phListPack.CControl as Panel; + if (pan3 != null) + { + pan3.Controls.Clear(); + } + } + } + public void SetNextPageTime() + { + //当下一页的开始时间,小于当前最大时间 + DateTime curTimeTemp = getOpeMaxTime(_record); + if (_record.lastPageBegin > curTimeTemp) return; + //先设置新页的开始时间 + _record.PageBegin = _record.lastPageBegin; + _record.lastPageBegin = _record.PageBegin.AddMinutes(240); + _record.pageCount++; + if (_record.pageCount > _record.currentPage) _record.pageCount = _record.currentPage; + + if (_record.phListPack != null) + { + Panel pan3 = _record.phListPack.CControl as Panel; + if (pan3 != null) + { + pan3.Controls.Clear(); + } + } + } + public DateTime getOpeMaxTime(OperationRecord myOpeRecord) + { + try + { + DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.PatientId.Value, myOpeRecord.RecoverId.Value); + DateTime nowDate = DateTime.Now; + TimeSpan tsp = nowDate - dts; + if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false + { + dts = nowDate; + } + if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.PageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm")) + { + dts = myOpeRecord.PageBegin.AddMinutes(240); + } + if (myOpeRecord.OutRoomTime != null) + { + DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString()); + if (DateTime.Compare(dts, outRoomTime) > 0) + { + dts = outRoomTime; + } + } + return dts; + } + catch (Exception) + { + return DateTime.Now; + } + } + #endregion + + #region 左侧按钮 + private void btnSelectPatient_Click(object sender, EventArgs e) + { + OperationAanesthesia.frmSelectPatientNew3 frmSelectPatient = new frmSelectPatientNew3(); + frmSelectPatient.isMainOpen = true; + frmSelectPatient.tempfrmAnasRecord = this; + frmSelectPatient.FormClosed += new FormClosedEventHandler(frmSelectPatient_FormClosed); + frmSelectPatient.ShowDialog(); + + } + void frmSelectPatient_FormClosed(object sender, FormClosedEventArgs e) + { + LoadAnesRescue(); + } + + private System.Windows.Forms.Timer timerLoadAnesRescue; + + public void LoadAnesRescue() + { + circularProgress1.IsRunning = true; + circularProgress1.Visible = true; + zgcAnaesRecord.Visible = false; + timerLoadAnesRescue = new System.Windows.Forms.Timer(components); + timerLoadAnesRescue.Enabled = true;//调试时设置为FALSE , + timerLoadAnesRescue.Interval = 300; + timerLoadAnesRescue.Tick -= TimerLoadAnesRescue_Tick; + timerLoadAnesRescue.Tick += TimerLoadAnesRescue_Tick; + timerLoadAnesRescue.Start(); + } + private void TimerLoadAnesRescue_Tick(object sender, EventArgs e) + { + timerLoadAnesRescue.Dispose(); + if (PatientId > 0 && State == AIMSExtension.EditState.ADD) + { + try + { + HelperDB.DbHelperSQL.BeginTrans(); + _record = new OperationRecord(); + _record.OperationApplyId = ApplyId; + _record.PatientId = PatientId; + _record.RecoverId = RecoverId; + _record.Id = BOperationRecord.AddTitleTime(PatientId, ApplyId, RecoverId, 1, DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:00")), NowRoom.Id.Value); + HelperDB.DbHelperSQL.CommitTrans(); + ClearTimeText(); + btnSelectPatient.Enabled = false; + btnCancelOperation.Enabled = true; + btnCancelIn.Enabled = true; + DrawAnasReordBill.IniDrawAnasReordBill6(_record, zgcAnaesRecord, ref templateManage); + _record.ComputerRect = Screen.GetWorkingArea(this); + PublicMethod.WriteLog("入手术间", _record.PatientId.Value, 1, "麻醉"); + StartTimer(); + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + else if (PatientId > 0 && State == AIMSExtension.EditState.EDIT) + { + _record = new OperationRecord(); + btnSelectPatient.Enabled = false; //清空记录点并重新加载 + btnCancelOperation.Enabled = true; + btnCancelIn.Enabled = true; + ClearTimeText(); + if (templateManage != null) + { + templateManage.ControlClear(); + } + DrawAnasReordBill.IniDrawAnasReordBill6(_record, zgcAnaesRecord, ref templateManage); + _record.ComputerRect = Screen.GetWorkingArea(this); + StartTimer(); + } + else if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE) + { + _record = new OperationRecord(); + btnSelectPatient.Enabled = true; + btnCancelOperation.Enabled = false; + btnCancelIn.Enabled = false; + LastMonitorDataTime = null; + ClearTimeText(); + if (templateManage != null) + { + templateManage.ControlClear(); + } + DrawAnasReordBill.IniDrawAnasReordBill6(_record, zgcAnaesRecord, ref templateManage); + _record.ComputerRect = Screen.GetWorkingArea(this); + + StartTimer(); + } + ReviewEvent(); + if (_record.MedicalRecord != null && _record.MedicalRecord != "") + { + btnOutputLiquids.Enabled = false; + btnDrug.Enabled = false; + btnAddEvents.Enabled = false; + txtInRoom.Enabled = false; + txtAnaesthesiaBegin.Enabled = false; + txtOperationBegin.Enabled = false; + txtOperationEnd.Enabled = false; + txtAnaesthesiaEnd.Enabled = false; + txtOutRoom.Enabled = false; + txtCG.Enabled = false; + txtBG.Enabled = false; + isReadOnly = true; + } + + circularProgress1.IsRunning = false; + circularProgress1.Visible = false; + zgcAnaesRecord.Visible = true; + + } + + private void _record_SpeedyDrugsParam(List factDrugs) + { + frmFactSpeedyDrug frmFact = new frmFactSpeedyDrug(); + frmFact._record = _record; + frmFact.factDrugs = factDrugs; + frmFact.zgcAnaesRecord = zgcAnaesRecord; + frmFact.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 + frmFact.DrugsParam += frmFactEventsNew_EventsParam; + frmFact.ShowDialog(); + } + + private void btnOperationInfo_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + AIMS.OperationAanesthesia.frmOperationInfoNew2 frmOperationInfo = new frmOperationInfoNew2(); + frmOperationInfo._record = _record; + //frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click); + frmOperationInfo.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + + private void btnDrug_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + PublicUI.UI.frmFactDrugNew frmFactDrug = new PublicUI.UI.frmFactDrugNew(); + frmFactDrug._record = _record; + frmFactDrug.zgcAnaesRecord = zgcAnaesRecord; + frmFactDrug.DrugTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 + frmFactDrug.DrugsParam += frmFactEventsNew_EventsParam; + frmFactDrug.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + + private void btnAddEvents_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + PublicUI.UI.frmFactEventsNew frmFactEventsNew = new PublicUI.UI.frmFactEventsNew(); + frmFactEventsNew._record = _record; + frmFactEventsNew.zgcAnaesRecord = zgcAnaesRecord; + frmFactEventsNew.EventTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 + frmFactEventsNew.EventParam += frmFactEventsNew_EventsParam; + frmFactEventsNew.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + private void frmFactEventsNew_EventsParam() + { + if (txtInRoom.Value != _record.InRoomTime) + { + _record.pageCount = 0; + ReviewEvent(); + } + else + { + DrawEvent(); + } + + } + private void btnOutputLiquids_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew(); + frmFactOutputLiquids._record = _record; + frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord; + frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 + frmFactOutputLiquids.OutParam += FrmFactOutputLiquids_OutParam; + frmFactOutputLiquids.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + + private void FrmFactOutputLiquids_OutParam() + { + templateManage.Bind("OutputManage"); + templateManage.Bind("RemarkManage"); + zgcAnaesRecord.Refresh(); + } + + private void button6_Click(object sender, EventArgs e) + { + frmAanesthesiaQuality frmAnaseDataQuality = new frmAanesthesiaQuality(); + frmAnaseDataQuality._record = _record; + frmAnaseDataQuality.ShowDialog(); + } + private void btnCancelOperation_Click(object sender, EventArgs e) + { + if (PatientId == 0) + { + MessageBox.Show("请选择患者!"); + return; + } + frmStopOperation frmStop = new frmStopOperation(); + frmStop.tsbCancel.Text = " 停止手术"; + frmStop.ApplyIdList = new List() { _record.OperationApplyId.Value }; + DialogResult ddr = frmStop.ShowDialog(); + if (ddr == System.Windows.Forms.DialogResult.OK) + { + try + { + HelperDB.DbHelperSQL.BeginTrans(); + BOperationApply.UpdateApplyState(ApplyId, 11); + BOperationRecord.UpdateOpeState(PatientId, 1, 5, frmStop.txtContent.Text.Trim()); + HelperDB.DbHelperSQL.CommitTrans(); + + this.Close(); + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + } + private void btnCancelIn_Click(object sender, EventArgs e) + { + if (PatientId == 0) + { + MessageBox.Show("请选择患者!"); + return; + } + if (BOperationRecord.GetDataCount(_record.Id.Value, PatientId, RecoverId) > 0) + { + MessageBox.Show("清除数据在进行取消转入操作!"); + return; + } + if (MessageBox.Show("确认要取消转入吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + try + { + HelperDB.DbHelperSQL.BeginTrans(); + BOperationApply.UpdateApplyState(ApplyId, 5); + BOperationRecord.DeleteOperationRecordData(_record.Id.Value, PatientId, RecoverId); + HelperDB.DbHelperSQL.CommitTrans(); + + DisposeTimer(); + //ClearData(); + this.Close(); + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + } + private void btnTemplate_Click(object sender, EventArgs e) + { + if (PatientId == 0) + { + MessageBox.Show("请选择患者!"); + return; + } + PublicUI.UI.frmTemplate frmTemplateObj = new PublicUI.UI.frmTemplate(); + frmTemplateObj._record = _record; + frmTemplateObj.InRoomTime = _record.InRoomTime.Value; + frmTemplateObj.PatientId = PatientId; + frmTemplateObj.TypeId = 1; + DialogResult ddr = frmTemplateObj.ShowDialog(); + if (ddr == System.Windows.Forms.DialogResult.OK) + { + ReviewEvent(); + } + } + private void tsbExePlan_Click(object sender, EventArgs e) + { + if (PatientId == 0) + { + MessageBox.Show("请先选择患者!"); + return; + } + if (_record.Applydiagnose == null || _record.Applydiagnose == "") + { + MessageBox.Show("请选择诊断后再填写文书!", "系统提示"); + ModifyApply_Click(null, null); + return; + } + PatientRecord patient = PatientRecord.GetPatientRecord(PatientId); + frmDocument frmDoc = new frmDocument(patient); + frmDoc.StartPosition = FormStartPosition.CenterScreen; + frmDoc.WindowState = FormWindowState.Maximized; + frmDoc.Show(); + frmDoc.BringToFront(); + } + void toolStripMenuItem2_Click(object sender, EventArgs e) + { + frmPhysiosSetting frm = new frmPhysiosSetting(); + frm.ConfigParam += new frmPhysiosSetting.ConfigParamHandler(templateManage.frmInstance_ConfigParam); + frm._record = _record; + frm.FormClosed += ((s, er) => + { + if (PatientId == 0) return; + //刷新到当前页 + ReviewEvent(); + }); + frm.ShowDialog(); + } + private void btnBloodGasAnalysis_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + frmBloodGasAnalysisNew frmFactBloodGasAnalysis = new frmBloodGasAnalysisNew(); + frmFactBloodGasAnalysis._record = _record; + frmFactBloodGasAnalysis.zgcAnaesRecord = zgcAnaesRecord; + frmFactBloodGasAnalysis.FormClosed += ((s, er) => + { + reDrawAnalysis(); + }); + frmFactBloodGasAnalysis.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + private void reDrawAnalysis() + { + try + { + //图表的对象 + TextPackObj janCePack = templateManage.GetPackObjectOTag("PhysioDataManage_TextPackObj_12"); + LinePackObj H5pack = templateManage.GetPackObjectOTag("IconManage_LinePackObj_6"); + foreach (FactBloodGasAnalysis analysis in _record.FactBloodGasAnalysisList) + { + analysis.clearAddObj(zgcAnaesRecord); + if (analysis.RecordTime.Value >= _record.PageBegin && analysis.RecordTime.Value < _record.lastPageBegin) + { + analysis.setAnasArr(zgcAnaesRecord, H5pack.RealX, H5pack.RealEndX, _record.PageBegin, _record.PageBegin.AddMinutes(240)); + analysis.drawText(janCePack.RealEndX, janCePack.RealY); + } + } + if (_record.FactBloodGasAnalysisList != null && _record.FactBloodGasAnalysisList.Count > 0) + zgcAnaesRecord.Refresh(); + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp, ""); + } + } + + #endregion + + #region 采集程序 + public DateTime? LastMonitorDataTime = null; + private void timerGetCollectorData_Tick() + { + if (State == AIMSExtension.EditState.BROWSE || _record.StateName != "手术中" || NowRoom == null || isReadOnly == true) return; + if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return; + DateTime dtTime = DateTime.Now; + //InRoomTime.Value + double span = ((TimeSpan)(dtTime - _record.PageBegin)).TotalSeconds % 300; + if (span < 10 || span > 12) + return; + if (LastMonitorDataTime != null && LastMonitorDataTime.Value.ToString("yyyy-MM-dd HH:mm") == dtTime.ToString("yyyy-MM-dd HH:mm")) return; + if (LastMonitorDataTime != null && LastMonitorDataTime.Value > dtTime) return; + try + { + LastMonitorDataTime = dtTime; + DateTime InsertTime = Convert.ToDateTime(dtTime.ToString("yyyy-MM-dd HH:mm:00.000")); + int date = 0; + + List physioDatas = new List(); + foreach (PhysioDataConfig addPP in _record.PhysioConfigList) + { + string key = addPP.Name; + string value = addPP.Enname; + if (addPP.IsValid == false) continue; + if (value == null || value == "") continue; + + int minMinutes = -5; + DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1)); + if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) + { + foreach (DataRow dr in dtPhysioData.Rows) + { + //if (Double.Parse(dr["ParamValue"].ToString()) <= 1) continue; + //if (key.Contains("压") && Double.Parse(dr["ParamValue"].ToString()) <= 30) continue; + if (!isCgtime(addPP.Name, dtTime)) continue; + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString()); + physioDatas.Add(pdTemp); + continue; + } + } + } + + //有有创清空无创 + foreach (var pdTemp in physioDatas) + { + if (pdTemp.PhysioDataConfigId == 7) + { + foreach (var temp in physioDatas) + { + if (temp.PhysioDataConfigId == 5) + { + temp.Value = -1; + } + } + } + if (pdTemp.PhysioDataConfigId == 8) + { + foreach (var temp in physioDatas) + { + if (temp.PhysioDataConfigId == 6) + { + temp.Value = -1; + } + } + } + } + + foreach (var pdTemp in physioDatas) + { + if (pdTemp.Value < 0) continue; + PhysioDataConfig addPP = _record.PhysioConfigList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList()[0]; + addPP.AddPointItem(pdTemp); + date++; + } + + if (dtTime > _record.lastPageBegin && ((TimeSpan)(dtTime - _record.lastPageBegin)).TotalHours < 24 && date > 0) + { + _record.currentPage++; + btnNextPage_Click(null, null); + } + zgcAnaesRecord.Refresh(); + + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + public string szy;//舒张压 + public string ssy;//收缩压 + private void timerGetTextCollectorData_Tick(object sender, EventArgs e) + { + try + { + if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24 || NowRoom == null) return; + timerGetCollectorData_Tick(); + if (State != AIMSExtension.EditState.BROWSE) + ShowMonitorDataToRight(); + } + catch (Exception) + { + //PublicMethod.WriteLog(ex); + } + } + + private BackgroundWorker backgroundWorker1; + public void ShowMonitorDataToRight() + { + this.backgroundWorker1 = new BackgroundWorker(); + this.backgroundWorker1.WorkerReportsProgress = true; + this.backgroundWorker1.WorkerSupportsCancellation = true; + this.backgroundWorker1.DoWork += new DoWorkEventHandler(this.backgroundWorker1_DoWork); + this.backgroundWorker1.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker1_RunWorkerCompleted); + this.backgroundWorker1.RunWorkerAsync(); + } + private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) + { + BackgroundWorker worker = sender as BackgroundWorker; + List lists = DeviceCacheData.Select(" IPAddress='" + NowRoom.Ip + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-300) + "'"); + e.Result = lists; + } + private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) + { + List lists = e.Result as List; + if (lists != null && lists.Count > 0) + { + DeviceCacheData deviceCacheData = lists[0]; + NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData); + + if (nowPhysioData.HR != null && nowPhysioData.HR.ToString() != string.Empty && nowPhysioData.HR.ToString() != "NaN" && nowPhysioData.HR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.HR.ToString()); + lblHR.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.Resp != null && nowPhysioData.Resp.ToString() != string.Empty && nowPhysioData.Resp.ToString() != "NaN" && nowPhysioData.Resp.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Resp.ToString()); + lblRESP.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.SPO2 != null && nowPhysioData.SPO2.ToString() != string.Empty && nowPhysioData.SPO2.ToString() != "NaN" && nowPhysioData.SPO2.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.SPO2.ToString()); + lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.PR != null && nowPhysioData.PR.ToString() != string.Empty && nowPhysioData.PR.ToString() != "NaN" && nowPhysioData.PR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.PR.ToString()); + lblPR.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.Dia != null && nowPhysioData.Dia.ToString() != string.Empty && nowPhysioData.Dia.ToString() != "NaN" && nowPhysioData.Dia.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys != null && nowPhysioData.Sys.ToString() != string.Empty && nowPhysioData.Sys.ToString() != "NaN" && nowPhysioData.Sys.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Dia_H != null && nowPhysioData.Dia_H.ToString() != string.Empty && nowPhysioData.Dia_H.ToString() != "NaN" && nowPhysioData.Dia_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia_H.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys_H != null && nowPhysioData.Sys_H.ToString() != string.Empty && nowPhysioData.Sys_H.ToString() != "NaN" && nowPhysioData.Sys_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys_H.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + + string szyssy = ssy + "/" + szy; + if (szyssy != "/") + lblDia.Text = szyssy; + } + else + { + lblHR.Text = "--"; + lblRESP.Text = "--"; + lblSpo2.Text = "--"; + lblPR.Text = "--"; + lblDia.Text = "---/---"; + lblHR.ForeColor = Color.Green; + lblRESP.ForeColor = Color.DarkOrange; + lblSpo2.ForeColor = Color.Cyan; + lblPR.ForeColor = Color.Green; + lblDia.ForeColor = Color.Red; + } + } + + public bool isCgtime(string key, DateTime time) + { + bool b = false; + if (key == "机械通气") + { + if (_record.SpileInTime != null && _record.SpileOutTime != null) + { + if (time >= _record.SpileInTime && time < _record.SpileOutTime.Value.AddMinutes(-3)) + b = true; + } + if (_record.SpileInTime != null && _record.SpileOutTime == null) + { + if (time > _record.SpileInTime) + b = true; + } + } + else if (key == "自主呼吸") + { + if (_record.SpileInTime != null && _record.SpileOutTime != null) + { + if (time < _record.SpileInTime || time >= _record.SpileOutTime) + b = true; + } + if (_record.SpileInTime != null && _record.SpileOutTime == null) + { + if (time < _record.SpileInTime) + b = true; + } + if (_record.SpileInTime == null && _record.SpileOutTime == null) + { + b = true; + } + } + else + { + b = true; + } + return b; + } + + private void StartTimer() + { + if (timerGetTextCollectorData == null) + timerGetTextCollectorData = new System.Windows.Forms.Timer(components); + timerGetTextCollectorData.Enabled = true;//调试时设置为FALSE , + timerGetTextCollectorData.Interval = 2000; + timerGetTextCollectorData.Tick -= new System.EventHandler(timerGetTextCollectorData_Tick); + timerGetTextCollectorData.Tick += new System.EventHandler(timerGetTextCollectorData_Tick); + timerGetTextCollectorData.Start(); + } + + private void DisposeTimer() + { + if (timerGetTextCollectorData != null) + { + LastMonitorDataTime = null; + timerGetTextCollectorData.Enabled = false; + timerGetTextCollectorData.Stop(); + } + } + + + #endregion + + #region 鼠标右键 + + private void zgcAnaesRecord_KeyUp(object sender, KeyEventArgs e) + { + if (templateManage != null) + { + ZedGraphControl send = sender as ZedGraphControl; + templateManage.zedControl_KeyUp(send, e); + } + } + + private bool zgcAnaesRecord_MouseDownEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage != null && isReadOnly == false) + { + SelectWorkerValue.Hidden(); + SelectDictValue.Hidden(); + templateManage.zedControl_MouseDownEvent(sender, e); + + } + return default(bool); + } + + private bool zgcAnaesRecord_MouseUpEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage != null && isReadOnly == false) + { + templateManage.zedControl_MouseUpEvent(sender, e); + } + return default(bool); + } + + private bool zgcAnaesRecord_MouseMoveEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage != null) + { + templateManage.zedControl_MouseMoveEvent(sender, e); + } + return default(bool); + } + + private void zgcAnaesRecord_MouseDoubleClick(object sender, MouseEventArgs e) + { + if (templateManage != null && isReadOnly == false) + { + ZedGraphControl send = sender as ZedGraphControl; + templateManage.zedControl_MouseDoubleClick(send, e); + } + } + private void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState) + { + //添加自定义的新菜单 + ToolStripMenuItem clearSelectCouve = new ToolStripMenuItem(); + clearSelectCouve.Text = "删除选择数据"; + clearSelectCouve.Click += new EventHandler(clearSelectCouve_Click); + menuStrip.Items.Add(clearSelectCouve); + + if (NowRoom != null) + { + ToolStripMenuItem getPhysioData = new ToolStripMenuItem(); + getPhysioData.Text = "重新获取数据"; + getPhysioData.Click += getPhysioData_Click; + menuStrip.Items.Add(getPhysioData); + } + + ToolStripMenuItem ModifyApply = new ToolStripMenuItem(); + ModifyApply.Text = "手术申请信息"; + ModifyApply.Click += ModifyApply_Click; + menuStrip.Items.Add(ModifyApply); + + ToolStripMenuItem mnuAddDrug = new ToolStripMenuItem(); + mnuAddDrug.Name = "add_medicine"; + mnuAddDrug.Tag = "add_medicine"; + mnuAddDrug.Text = "手动添加数据"; + mnuAddDrug.Click += ((s, er) => + { + frmPhysioDataEdit frm = new frmPhysioDataEdit(_record); + frm.FormClosed += ((ss, err) => + { + templateManage.Bind("MonitorManage"); + zgcAnaesRecord.Refresh(); + }); + frm.ShowDialog(); + }); + menuStrip.Items.Add(mnuAddDrug); + + if (NowRoom != null) + { + ToolStripMenuItem ModifyRoom = new ToolStripMenuItem(); + ModifyRoom.Text = "更换患者术间"; + ModifyRoom.Click += ModifyRoom_Click; + menuStrip.Items.Add(ModifyRoom); + } + + if (PublicMethod.RoleId == 1 || PublicMethod.RoleId == 6 || PublicMethod.RoleId == 8 || PublicMethod.RoleId == 10) + { + ToolStripMenuItem btnSyatemPhysion = new ToolStripMenuItem(); + btnSyatemPhysion.Name = "btnSyatemPhysion"; + btnSyatemPhysion.Tag = "btnSyatemPhysion"; + btnSyatemPhysion.Text = "查询修改痕迹"; + btnSyatemPhysion.Click += new EventHandler(btnSyatemPhysion_Click); + menuStrip.Items.Add(btnSyatemPhysion); + } + + + } + + private void btnSyatemPhysion_Click(object sender, EventArgs e) + { + if (PatientId == 0) return; + frmPhysioDataUpdateLog Log = new frmPhysioDataUpdateLog(); + Log.OperationRecordId = _record.Id.Value; + Log.ShowDialog(); + } + + private void ModifyRoom_Click(object sender, EventArgs e) + { + frmSeleteRoom seleteRoom = new frmSeleteRoom(); + seleteRoom.NowRoomId = NowRoom.Id.ToString(); + seleteRoom.ShowDialog(); + string RoomStr = seleteRoom.RoomId; + if (RoomStr != null && RoomStr != "") + { + _record.RoomId = int.Parse(RoomStr); + BOperationRecord.Update("RoomId=@RoomId where Id=@id ", new AIMSModel.ParameterList("@RoomId", _record.RoomId, "@id", _record.Id)); + BOperationApply.UpdateApplyRoom(_record.OperationApplyId.Value, _record.RoomId.Value, _record.PlanOperationTime); + BOperationApply.UpdteOperationOrder(_record.PlanOperationTime, NowRoom.Id.Value); + NowRoom = AIMSBLL.BOperationRoom.SelectSingle(_record.RoomId); + lblRoom.Text = NowRoom.Name; + } + } + private void getPhysioData_Click(object sender, EventArgs e) + { + if (State != AIMSExtension.EditState.BROWSE && _record.StateName == "手术中" && NowRoom != null && isReadOnly == false) + { + //InRoomTime + //没有IP判断 + DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.PageBegin, getOpeMaxTime(_record), 5); + + //同步未画点数据 + DrawFillPhysioData(dtPhysioData); + + templateManage.Bind("MonitorManage"); + zgcAnaesRecord.Refresh(); + + } + } + private void DrawFillPhysioData(DataTable dtPhysioData) + { + if (dtPhysioData.Rows.Count <= 0) + return; + if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) + { + foreach (var addPP in _record.PhysioConfigList) + { + if (addPP.IsValid == false) continue; + foreach (DataRow dr in dtPhysioData.Rows) + { + if (Double.Parse(dr["ParamValue"].ToString()) <= 0) continue; + if (dr["ParameterName"] != null && dr["ParameterName"].ToString() != "" && dr["ParameterName"].ToString().Equals(addPP.Id.ToString())) + { + DateTime RecordTime = DateTime.Parse(dr["InsertTime"].ToString()); + if (!isCgtime(addPP.Name, RecordTime)) continue; + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, RecordTime, dr["ParamValue"].ToString()); + addPP.AddPointItem(pdTemp); + } + } + } + //foreach (var addPP in _record.PhysioAnesConfigList) + //{ + // if (addPP.IsValid == false) continue; + // foreach (DataRow dr in dtPhysioData.Rows) + // { + // if (dr["ParameterName"] != null && dr["ParameterName"].ToString() != "" && dr["ParameterName"].ToString().Equals(addPP.Id.ToString())) + // { + // DateTime RecordTime = DateTime.Parse(dr["InsertTime"].ToString()); + // PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, RecordTime, dr["ParamValue"].ToString()); + // addPP.AddPointItem(pdTemp); + // } + // } + //} + } + } + private void UpdatePhysioDataResp() + { + BOperationRecord.UpdatePhysioDataRespByTime(_record); + string PhysioDataConfigIds = "3,12"; + DataTable dtPhysioData = BOperationRecord.getByOpeIDIsPhysioData(_record.Id.Value, PhysioDataConfigIds); + List Ids = PhysioDataConfigIds.Split(',').ToList(); + if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) + { + foreach (PhysioDataConfig addPP in _record.PhysioConfigList) + { + if (!Ids.Contains(addPP.Id.ToString())) continue; + addPP.clearAddObj(zgcAnaesRecord); + if (addPP.IsDefalultShow == false) continue; + for (int i = 0; i < dtPhysioData.Rows.Count; i++) + { + if (dtPhysioData.Rows[i]["Name"].ToString().Equals(addPP.Name.ToString())) + { + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, DateTime.Parse(dtPhysioData.Rows[i]["RecordTime"].ToString()), dtPhysioData.Rows[i]["Value"].ToString()); + addPP.AddPointItem(pdTemp, false); + } + } + } + } + } + + private void clearSelectCouve_Click(Object sender, EventArgs e) + { + templateManage.ClearSelectCouve(); + } + + + private void ModifyApply_Click(object sender, EventArgs e) + { + if (PatientId == 0) return; + + frmOperationApplyDetail frm = new frmOperationApplyDetail(); + frm.State = AIMSExtension.EditState.EDIT; + frm.EditApplyId = ApplyId; + frm.tsbExit.Visible = true; + frm.tsbCancel.Visible = false; + frm.FormClosed += (s, er) => + { + ReviewEvent(); + }; + //frm.FormBorderStyle = FormBorderStyle.None; // 无边框 + //frm.TopLevel = false; + //frm.Dock = DockStyle.Fill; + //panel8.Controls.Add(frm); + frm.Show(); + frm.Focus(); + frm.BringToFront(); + } + + #endregion + + #region 公共方法 + private void ReviewEvent() + { + try + { + if (PatientId != 0) + { + templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId); + _record.SpeedyDrugsParam -= _record_SpeedyDrugsParam; + _record.SpeedyDrugsParam += _record_SpeedyDrugsParam; + templateManage.BindOperationRecordValueAll(templateManage.OpeRecord); + + reDrawEvent(); + templateManage.Bind(); + reDrawAnalysis(); + + zgcAnaesRecord.Refresh(); + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + private void DrawEvent() + { + reDrawEvent(); + templateManage.Bind("IconManage"); + templateManage.Bind("RemarkManage"); + zgcAnaesRecord.Refresh(); + } + + private void reDrawEvent() + { + ClearTimeText(); + if (_record.InRoomTime != null) + { + txtInRoom.CustomFormat = "MM-dd HH:mm"; + txtInRoom.ButtonDropDown.Visible = false; + txtInRoom.Tag = _record.InRoomTime.Value; + txtInRoom.Value = _record.InRoomTime.Value; + this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室_select; + } + if (_record.AnesthesiaBeginTime != null) + { + txtAnaesthesiaBegin.CustomFormat = "HH:mm"; + txtAnaesthesiaBegin.ButtonDropDown.Visible = false; + txtAnaesthesiaBegin.Tag = _record.AnesthesiaBeginTime.Value; + txtAnaesthesiaBegin.Value = _record.AnesthesiaBeginTime.Value; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始_select; + } + if (_record.SpileInTime != null) + { + cmbCGType.Text = _record.InCGType; + txtCG.CustomFormat = "MM-dd HH:mm"; + txtCG.Tag = _record.SpileInTime.Value; + txtCG.Value = _record.SpileInTime.Value; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管_select; + } + if (_record.SpileOutTime != null) + { + txtBG.CustomFormat = "MM-dd HH:mm"; + txtBG.Tag = _record.SpileOutTime.Value; + txtBG.Value = _record.SpileOutTime.Value; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管_select; + } + if (_record.OperationBeginTime != null) + { + txtOperationBegin.CustomFormat = "HH:mm"; + txtOperationBegin.ButtonDropDown.Visible = false; + txtOperationBegin.Tag = _record.OperationBeginTime.Value; + txtOperationBegin.Value = _record.OperationBeginTime.Value; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始_select; + } + if (_record.OperationEndTime != null) + { + txtOperationEnd.CustomFormat = "HH:mm"; + txtOperationEnd.ButtonDropDown.Visible = false; + txtOperationEnd.Tag = _record.OperationEndTime.Value; + txtOperationEnd.Value = _record.OperationEndTime.Value; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束_select; + } + if (_record.AnesthesiaEndTime != null) + { + txtAnaesthesiaEnd.CustomFormat = "HH:mm"; + txtAnaesthesiaEnd.ButtonDropDown.Visible = false; + txtAnaesthesiaEnd.Tag = _record.AnesthesiaEndTime.Value; + txtAnaesthesiaEnd.Value = _record.AnesthesiaEndTime.Value; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束_select; + } + if (_record.OutRoomTime != null) + { + txtOutRoom.CustomFormat = "MM-dd HH:mm"; + txtOutRoom.ButtonDropDown.Visible = false; + txtOutRoom.Tag = _record.OutRoomTime.Value; + txtOutRoom.Value = _record.OutRoomTime.Value; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; + } + + if (_record.OutRoomTime != null && _record.StateName == "手术中") + { + txtOutRoom.CustomFormat = "MM-dd HH:mm"; + txtOutRoom.ButtonDropDown.Visible = false; + txtOutRoom.Tag = _record.OutRoomTime.Value; + txtOutRoom.Value = _record.OutRoomTime.Value; + EndOperationOutRoom(); + } + } + private void ClearTimeText() + { + txtInRoom.CustomFormat = " "; + txtAnaesthesiaBegin.CustomFormat = " "; + txtOperationBegin.CustomFormat = " "; + txtOperationEnd.CustomFormat = " "; + txtAnaesthesiaEnd.CustomFormat = " "; + txtOutRoom.CustomFormat = " "; + txtCG.CustomFormat = " "; + txtBG.CustomFormat = " "; + txtInRoom.Tag = null; + txtAnaesthesiaBegin.Tag = null; + txtOperationBegin.Tag = null; + txtOperationEnd.Tag = null; + txtAnaesthesiaEnd.Tag = null; + txtOutRoom.Tag = null; + txtCG.Tag = null; + txtBG.Tag = null; + txtInRoom.Text = ""; + txtAnaesthesiaBegin.Text = ""; + txtOperationBegin.Text = ""; + txtOperationEnd.Text = ""; + txtAnaesthesiaEnd.Text = ""; + txtOutRoom.Text = ""; + txtCG.Text = ""; + txtBG.Text = ""; + + this.picInRoom.BackgroundImage = global::AIMS.Properties.Resources.入手术室; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; + } + + private bool GetOpeState(ref string message) + { + bool isTrue = true; + + if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") + { + if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0) + { + message = "请填写麻醉质量质控指标"; + isTrue = false; + } + + //if (_record.OpeRecordInfo.StewardNumber == null || _record.OpeRecordInfo.StewardNumber.ToString().Trim() == "") + //{ + // message = "请与手术信息选择患者Steward评分!"; + // isTrue = false; + //} + //if (_record.OpeRecordInfo.Whereabouts == null || _record.OpeRecordInfo.Whereabouts.ToString().Trim() == "") + //{ + // message = "请与手术信息选择患者去向!"; + // isTrue = false; + //} + + if (_record.ASALevel == null || _record.ASALevel == null) + { + message = "请添写ASA分级!"; + isTrue = false; + } + + if (_record.OperationDoctor == null || _record.OperationDoctor.Trim() == "") + { + message = "请添加手术医师!"; + isTrue = false; + } + + if (PublicMethod.RoleName.Contains("术中填写手术等级切口等级")) + { + if (_record.OpeRecordInfo.OperationLevel == null || _record.OpeRecordInfo.OperationLevel.ToString().Trim() == "") + { + message = "请与手术信息选择手术分级!"; + isTrue = false; + } + if (_record.OpeRecordInfo.OperationCut == null || _record.OpeRecordInfo.OperationCut.ToString().Trim() == "") + { + message = "请与手术信息选择手术切口!"; + isTrue = false; + } + } + } + + return isTrue; + } + + private void EndOperationOutRoom() + { + if (_record == null || _record.StateName != "手术中") return; + try + { + //CloseOtherFrom(); + //保存持续加药未结束药品 + foreach (FactDrug temp in _record.FactDrugList) + { + if (temp.IsContinue == 1 && temp.DrugBeginTime == temp.DrugEndTime) + { + temp.DrugEndTime = _record.OutRoomTime.Value; + temp.OperatorNo = PublicMethod.OperatorNo; + temp.OperatorName = PublicMethod.OperatorName; + temp.OperateDate = DateTime.Now; + BFactDrug.Update(temp); + } + } + //保存持续事件未结束事件 + foreach (FactEvents temp in _record.FactEventsList) + { + if (temp.IsContinue == 1 && temp.EventBeginTime == temp.EventEndTime) + { + temp.EventEndTime = _record.OutRoomTime; + temp.OperatorNo = PublicMethod.OperatorNo; + temp.OperatorName = PublicMethod.OperatorName; + temp.OperateDate = DateTime.Now; + BFactEvents.Update(temp); + } + } + _record.StateName = "手术结束"; + BOperationApply.UpdateApplyState(ApplyId, 8); + BOperationRecord.UpdateState(PatientId, 1, 2); + + //PublicMethod.WriteLog("结束转出手术: " + _record.Id); + //TipBox.Hidden(true); + State = AIMSExtension.EditState.BROWSE; + btnCancelOperation.Enabled = false; + btnCancelIn.Enabled = false; + btnSelectPatient.Enabled = true; + DisposeTimer(); + ReviewEvent(); + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp, ""); + } + + } + public void ClearRecordDate() + { + panel8.VerticalScroll.Value = 0; + //清空记录点并重新加载 + ClearTimeText(); + //关闭采集的服务 + DisposeTimer(); + lblHR.Text = "--"; + lblRESP.Text = "--"; + lblSpo2.Text = "--"; + lblPR.Text = "--"; + lblDia.Text = "---/---"; + lblHR.ForeColor = Color.Green; + lblRESP.ForeColor = Color.DarkOrange; + lblSpo2.ForeColor = Color.Cyan; + lblPR.ForeColor = Color.Green; + lblDia.ForeColor = Color.Red; + if (templateManage != null) + { + templateManage.ControlClear(); + } + if (_record.phListPack != null) + { + Panel pan3 = _record.phListPack.CControl as Panel; + if (pan3 != null) + { + pan3.Controls.Clear(); + } + } + _record = null; + //this.Dispose(); + } + #endregion + + #region 右侧按钮 + private void btnyldj_Click(object sender, EventArgs e) + { + //FormUseDrugsReport formUseDrugsReport = new FormUseDrugsReport(1); + //if (_record != null) formUseDrugsReport._record = _record; + //formUseDrugsReport.Show(); + } + + private void btnzsk_Click(object sender, EventArgs e) + { + frmKnowledgeBase frm = new frmKnowledgeBase(); + frm.Show(); + } + + private void btndptz_Click(object sender, EventArgs e) + { + frmNoticeLargeScreen fnc = new frmNoticeLargeScreen(); + if (_record != null) + { + fnc.lblName.Text = _record.Name; + fnc.textBox2.Focus(); + fnc.groupBox1.Visible = false; + } + fnc.ShowDialog(); + } + + private void btnxldlx_Click(object sender, EventArgs e) + { + frmHemodynamics frm = new frmHemodynamics(); + frm.Show(); + } + + private void btnsbwh_Click(object sender, EventArgs e) + { + frmInstrumentRegistration frm = new frmInstrumentRegistration(); + frm.Show(); + } + + private void btnsjzx_Click(object sender, EventArgs e) + { + if (_record != null) + { + EMRExtension.OpenEMRS(_record.PatientId.Value, _record.OperationApplyId.Value); + } + } + private void btnChage_Click(object sender, EventArgs e) + { + frmFeesRecord frmchargRecord = new frmFeesRecord(_record, "麻醉"); + frmchargRecord.Show(); + frmchargRecord.BringToFront(); + } + private void frmAnasRecordBill2_VisibleChanged(object sender, EventArgs e) + { + if (this.Visible == false) + { + plPrint.Select(); + panel8.VerticalScroll.Value = 0; + if (templateManage != null) + templateManage.SetPYL(); + if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE) + { + DisposeTimer(); + } + } + else + { + if (_record != null && _record.StateName == "手术中" && State != AIMSExtension.EditState.BROWSE) + { + StartTimer(); + } + } + } + private void superTabMain_SelectedTabChanged(object sender, SuperTabStripSelectedTabChangedEventArgs e) + { + + if (_record.SelPhysioConfig != null) + { + _record.SelPhysioConfig.IsClick = false; + _record.SelPhysioConfig.onClick(e); + _record.SelPhysioConfig = null; + } + } + private void button10_Click(object sender, EventArgs e) + { + frmSafetyExamine frmSafety = new frmSafetyExamine(); + frmSafety.PatientId = PatientId; + frmSafety.Show(); + } + private void button6_Click_1(object sender, EventArgs e) + { + if (PatientId != 0) + { + if (_record.AnalgesiaRecord != null) + { + _record.AnalgesiaRecord.Consciousness = "清醒"; + _record.AnalgesiaRecord.NutritionalDevelopment = "良"; + _record.AnalgesiaRecord.Pregnancy = "无"; + _record.AnalgesiaRecord.LooseDenture = "无"; + _record.AnalgesiaRecord.DifficultyOpeningMouth = "无"; + _record.AnalgesiaRecord.DrugAllergy = "无"; + _record.AnalgesiaRecord.Hypertension = "无"; + _record.AnalgesiaRecord.AnesthesiaSurgeryHistory = "无"; + _record.AnalgesiaRecord.CardiovascularSystem = "无"; + _record.AnalgesiaRecord.RespiratorySystem = "无"; + _record.AnalgesiaRecord.EndocrineSystem = "有"; + _record.AnalgesiaRecord.OtherSpecialConditions = "无"; + _record.AnalgesiaRecord.PatientOutcome = "病房"; + //_record.AnalgesiaRecord.PainScore = "10"; + _record.AnalgesiaRecord.HighFallRisk = "无"; + _record.AnalgesiaRecord.StewardScoreDischarge = "";//评估者麻醉师 + _record.AnalgesiaRecord. AssessmentTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm"); + BOperationRecordAnalgesia.Update(_record.AnalgesiaRecord); + ReviewEvent(); + } + } + } + #endregion + + } +} diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.resx b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.resx new file mode 100644 index 0000000..e6263d6 --- /dev/null +++ b/AIMS/OperationAanesthesia/frmAanesthesiaPainlessRecord.resx @@ -0,0 +1,414 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 17, 17 + + + 62 + + + + + AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAABMLAAATCwAAAAAAAAAA + AAD///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////+//38/P/9+/r//v38//// + /v////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////v5 + 9//q2tD/4sq6/+rc0v/7+ff///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////37ef/5LGP/+Kdbv/jsZD/9uzl//7///////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////8+/r/79vO/+OZZv/jk1z/45lm/+nQwP/69/b///////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////+fb0/+bLuf/jlF3/45Nc/+OT + Xf/gvaT/9vHt//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////fy + 7//hv6r/45Re/+OTXP/jlF3/36+N//bs5f////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////27+r/3rac/+OUXf/jk1z/45Nd/+Omff/y4dX//f39//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9uzl/96ujf/jlF3/45Nc/+OTXP/mnWz/58q2//fz + 8f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////fp4P/hp4D/45Nd/+OT + XP/jk1z/45Ja/9+0l//z6uX///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////7/ + ///14tX/5qFy/+OTXP/jk1z/4pJb/+OSW//fp4H/8+PZ//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////5+Pf/68+7/+OSW//jk1z/4pJc/92OWP/hkVv/5KBx//LZyf/9/f7///////// + ///////////////////////////////////////////////+/v/9+/r/+/j1//z39P/8+PX//Pn3//79 + /f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9vLv/+TDq//jklv/4pJb/+GRW//djlj/4JBa/+OS + Wv/kvaL/9O7q///////////////////////////////////////////////////////59vT/69nN/9+7 + ov/gtZf/37id/+HGsv/17Ob//fz7//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////Ts6P/guJ7/45Jb/+KT + XP/fkFr/3I5Y/+CRWv/jkVn/36yJ//Dj2f////////////////////////////////////////////// + ///38/H/6c68/+Knfv/il2P/4pdi/+KXY//jmmn/6bGM//Di2P/8+/r///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///z5+D/3q6O/+OSW//ilmH/3q2M/+O8ov/mqH//5JZh/+Cid//x28z///////////////////////// + ////////////////////////7NvP/+CqhP/jlF7/45Jb/+OTW//jk1v/45Nc/+SYY//jtZT/+O/p//// + ////////////////////////////////////////////////////////////////////////+PLv/+nP + v//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwaP/7cKl/+vOu//8+vj///////// + ////////////////////////8+TZ/9+ngP/jklr/45lm/+bOv//27ef/57mb/+KYZf/lnm7/7tC8//r6 + +f//////+fLu/+jKtv/vwqT/78Kj/+/Co//vwqP/78Kk/+m1k//jnm//45Ja/+OTXP/jk1z/45Nc/+OT + XP/jk1z/4pln/+nPvf/59vT///////////////////////////////////////////////////////// + //////////////Xt6f/et57/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+OZ + Zv/ipHr/7d7U//38+/////////////////////////////bh0//koXT/45Re/+iofv/06+X//fz7/+TD + rf/hm2r/5JVf/+W5nP/y6ub//Pz7/+/d0P/jqYH/5Jhl/+SYZP/kmGT/5Jhk/+SYZP/lmWb/5JZh/+OT + XP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTW//guqL/9u/r//////////////////////////////////// + ///////////////////////////////////17ej/3ree/+WaaP/lmmf/5Zpn/+WaZ//lmmf/5Zpn/+Wa + Z//lmmf/5Ztp/+WZZv/jklr/45hk/+HFsf/8+ff///////////////////////z9/f/y2sn/5qBx/+SW + Yf/rsov//fn2//7+/v/l0MH/4Z9x/+OPVv/fpoD/7d3S//by7//jwar/5pxq/+Wda//lmmj/5Zpn/+Wa + Z//lmmf/5Zxq/+SYY//jk1v/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1v/4Luj//bw7P////////////// + ////////////////////////////////////////////////////////+fXy/+3Yy//yzbT/8s20//LN + tP/yzbT/8s20//LNtP/yzbT/8s61/+3GrP/krIf/45Ja/+KXY//guZ3//Pj1//////////////////// + ///39PL/6cmz/+WaZ//jlmH/6LOO//76+P//////7eLb/+Wthf/jlF3/4Z9x//DVw//06uP/3qyK/+SV + YP/prIP/8cux//LNtP/yzbT/8s62/+m5mv/jnW7/45Ja/+OTXP/jk1z/45Nc/+OTXP/jk1z/5Jto/+bK + t//49PL///////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////18e7/5MOt/+SXYv/jlmH/5LCN//ny + 7f//////////////////////8uzo/+K5nf/jkFf/4pdk/+O4mf/9+/n///////j29P/pwKT/45po/+Wb + af/wy7P/8dzO/+Kjef/jlmH/6LGM//369//////////////////t3ND/4ayI/+KVYP/jklr/45Jb/+OS + W//jk1v/5Jlm/+Sxjv/w4dj//Pv6//////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////+vn4/+7Z + yv/lpHj/5JVf/+ene//u4NX//Pv6//////////////////Dl3f/fr4//45FZ/+KZZ//hwKj//fv6//// + ////////5su4/+Cdb//lmWX/5rCM/+a1lv/mnWz/4pdk/+O4nP/9+vj/////////////////+Pb0/+vU + xP/irYj/4Zlo/+KYZP/imGX/4p5w/+i1kv/o08b/+vf1//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////26eH/36mE/+OTXP/jl2P/5Mq6//r39v/////////////////v3tL/3qV//+OR + Wf/inGz/482+//38+////////////+jWzP/hpn7/45Jb/+GRWv/hklv/45Nc/+Oeb//kzb7//fz7//// + ///////////////////7+fj/7d/W/+LBqv/muJj/5rqc/+PLuf/v5d7//fz7//////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9e3n/96zlf/jk13/45Zh/9+8pf/59fH///////// + ////////8drK/+GhdP/jkln/5KJ0/+zf1//+/f3////////////x6uT/57qc/+KYZv/gkFn/4pJb/+SX + Y//ptJD/9e7q//7+/v////////////////////////////7+/f/+/fz//vz7//78+//+/fz//v7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////fy7//iwav/45Re/+OV + YP/fsJD/+fLt//////////////////TYxP/lnWz/5JZh/+u1kf/69vT////+/////////////////+vI + sv/gmmv/4pFa/+OSW//imWb/5ryg//78+/////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///6+Pb/69XH/+ekd//jlWD/5qmB//Tn3v/9/f3///////n5+P/uzrn/5p1s/+OXY//ruZj//v38//// + ///////////////////p0sH/36F2/+OSWv/jklr/4Z1u/+PJuP/+/v3///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v////br4//iq4f/45Vf/+SZZv/p0cH/+vj2///////z7ur/5rye/+ST + XP/imWb/5r6h///+/f//////////////////////7N/V/+GqhP/jkFf/5Jdi/+ewi//r39f//v7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////48u3/3rWY/+OVX//jlF3/4L+p//fy + 7///////7uPc/+CujP/jkFf/4Ztr/+PDrf/+/v3///////////////////////Tv7P/pvqH/5Zdi/+KZ + Zv/nv6T/+vj2//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////+fXy/+HC + rP/jlV//45Rd/96ylf/27uj//////+zZzf/fpX7/45FY/+GecP/kzLz//v7+//////////////////// + ///9/f3/7NTF/9+phv/grYr/69fJ//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////v59//p1cb/5Z9w/+OUXv/hqYT/9ejf///////u1MH/4J9z/+OQV//jonb/6drQ///+ + /v////////////////////////////bv6//t28//8N/T//fz8P////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////+/f3/9erj/+WtiP/jlmD/5J1u/+7Xyf/7/f7/8dG7/+Oc + a//jk1z/6LCJ//Tv6/////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////v28v/ftZf/4pZi/+OS + Wv/kvqX/8ube//DIrf/lm2j/45hk/+3Aov////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///7+PX/4MKs/+KXZP/jklv/3qR9/+S0lP/mrIP/5Jll/+GZaP/pwqj///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////Pr5/+bSxP/knGv/4pFc/9+QWv/gkVv/35Ba/+CPWP/gnW//5sm1//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////79/f/06uX/6K+J/+OVYP/gkVr/35Ba/+CQ + Wv/ikFj/4KJ2/+bSw/////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////Pn2/+O4 + mv/il2T/349Y/9+QWf/gkFr/4pBZ/+Knfv/p29L///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////37+f/hwq3/4ppo/+KRWv/fj1n/349Z/+SYZf/ouJj/7+fi//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////9/Pv/5dLF/+OcbP/jklr/4pJb/+KRWv/kmmj/7saq//z8 + +/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////v39//Ho4v/nrYX/45Vg/+OT + XP/jklv/4pxs/+3LtP////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///7+ff/5rue/+KZZv/jklv/45Ja/+Cfc//qz73///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v39/+PEsP/hm2v/45Ja/+ORWf/fpHz/6dbJ//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////7+/f/l0cX/4p9x/+OSWf/jkVj/4aqF/+zf + 1/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////v7/7uXf/+Wq + gf/jk1z/5JNc/+W1lP/w6eT///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////v6+f/qv6H/45hl/+Scav/ryK//9/Xz//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////58u3/+Ghdf/go3n/7tfG//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////Tu6v/m0cT/5M7A//Pr + 5f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///+/f3//Pr4//v5+P/9/fz///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + + \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmSelectPatientNew3.Designer.cs b/AIMS/OperationAanesthesia/frmSelectPatientNew3.Designer.cs new file mode 100644 index 0000000..c291862 --- /dev/null +++ b/AIMS/OperationAanesthesia/frmSelectPatientNew3.Designer.cs @@ -0,0 +1,614 @@ +namespace AIMS.OperationAanesthesia +{ + partial class frmSelectPatientNew3 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSelectPatientNew3)); + this.panel1 = new System.Windows.Forms.Panel(); + this.txtquery = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btnQuery = new DevComponents.DotNetBar.ButtonX(); + this.buttonX3 = new DevComponents.DotNetBar.ButtonX(); + this.label1 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.cboRoom = new System.Windows.Forms.ComboBox(); + this.btnFrontDay = new System.Windows.Forms.Button(); + this.btnNextDay = new System.Windows.Forms.Button(); + this.dtpSelectPatientTime = new System.Windows.Forms.DateTimePicker(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.panel2 = new System.Windows.Forms.Panel(); + this.buttonX2 = new DevComponents.DotNetBar.ButtonX(); + this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); + this.txtState = new System.Windows.Forms.Label(); + this.txttime = new System.Windows.Forms.Label(); + this.txtage = new System.Windows.Forms.Label(); + this.txtsex = new System.Windows.Forms.Label(); + this.txtdept = new System.Windows.Forms.Label(); + this.txtNo = new System.Windows.Forms.Label(); + this.txths = new System.Windows.Forms.Label(); + this.txtmzys = new System.Windows.Forms.Label(); + this.txtzdys = new System.Windows.Forms.Label(); + this.txtss = new System.Windows.Forms.Label(); + this.txtzd = new System.Windows.Forms.Label(); + this.txtname = new System.Windows.Forms.Label(); + this.label5 = new System.Windows.Forms.Label(); + this.txtRoom = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); + this.label21 = new System.Windows.Forms.Label(); + this.label9 = new System.Windows.Forms.Label(); + this.label19 = new System.Windows.Forms.Label(); + this.label13 = new System.Windows.Forms.Label(); + this.label25 = new System.Windows.Forms.Label(); + this.label17 = new System.Windows.Forms.Label(); + this.label23 = new System.Windows.Forms.Label(); + this.txtType = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.panel3 = new System.Windows.Forms.Panel(); + this.panel1.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.panel2.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.SuspendLayout(); + // + // panel1 + // + this.panel1.BackColor = System.Drawing.Color.AliceBlue; + this.panel1.Controls.Add(this.txtquery); + this.panel1.Controls.Add(this.btnQuery); + this.panel1.Controls.Add(this.buttonX3); + this.panel1.Controls.Add(this.label1); + this.panel1.Controls.Add(this.label4); + this.panel1.Controls.Add(this.label2); + this.panel1.Controls.Add(this.cboRoom); + this.panel1.Controls.Add(this.btnFrontDay); + this.panel1.Controls.Add(this.btnNextDay); + this.panel1.Controls.Add(this.dtpSelectPatientTime); + this.panel1.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1.Font = new System.Drawing.Font("宋体", 10.5F); + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(1035, 39); + this.panel1.TabIndex = 0; + // + // txtquery + // + // + // + // + this.txtquery.Border.Class = "TextBoxBorder"; + this.txtquery.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtquery.Location = new System.Drawing.Point(550, 8); + this.txtquery.Name = "txtquery"; + this.txtquery.PreventEnterBeep = true; + this.txtquery.Size = new System.Drawing.Size(100, 23); + this.txtquery.TabIndex = 9; + // + // btnQuery + // + this.btnQuery.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnQuery.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnQuery.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnQuery.Location = new System.Drawing.Point(656, 9); + this.btnQuery.Name = "btnQuery"; + this.btnQuery.Size = new System.Drawing.Size(80, 23); + this.btnQuery.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnQuery.TabIndex = 8; + this.btnQuery.Text = "查询"; + this.btnQuery.Click += new System.EventHandler(this.btnQuery_Click); + // + // buttonX3 + // + this.buttonX3.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX3.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.buttonX3.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.buttonX3.Location = new System.Drawing.Point(742, 9); + this.buttonX3.Name = "buttonX3"; + this.buttonX3.Size = new System.Drawing.Size(93, 23); + this.buttonX3.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.buttonX3.TabIndex = 8; + this.buttonX3.Text = "+新增手术申请"; + this.buttonX3.Click += new System.EventHandler(this.buttonX3_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label1.Location = new System.Drawing.Point(12, 9); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(65, 20); + this.label1.TabIndex = 7; + this.label1.Text = "手术日期"; + // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label4.Location = new System.Drawing.Point(481, 8); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 20); + this.label4.TabIndex = 6; + this.label4.Text = "患者查询"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label2.Location = new System.Drawing.Point(291, 8); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(51, 20); + this.label2.TabIndex = 6; + this.label2.Text = "手术间"; + // + // cboRoom + // + this.cboRoom.FormattingEnabled = true; + this.cboRoom.Location = new System.Drawing.Point(345, 8); + this.cboRoom.Name = "cboRoom"; + this.cboRoom.Size = new System.Drawing.Size(121, 22); + this.cboRoom.TabIndex = 5; + // + // btnFrontDay + // + this.btnFrontDay.BackColor = System.Drawing.Color.Transparent; + this.btnFrontDay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnFrontDay.BackgroundImage"))); + this.btnFrontDay.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnFrontDay.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnFrontDay.FlatAppearance.BorderSize = 0; + this.btnFrontDay.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnFrontDay.Location = new System.Drawing.Point(213, 7); + this.btnFrontDay.Name = "btnFrontDay"; + this.btnFrontDay.Size = new System.Drawing.Size(34, 24); + this.btnFrontDay.TabIndex = 2; + this.btnFrontDay.UseVisualStyleBackColor = false; + this.btnFrontDay.Click += new System.EventHandler(this.btnFrontDay_Click); + // + // btnNextDay + // + this.btnNextDay.BackColor = System.Drawing.Color.Transparent; + this.btnNextDay.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("btnNextDay.BackgroundImage"))); + this.btnNextDay.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnNextDay.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnNextDay.FlatAppearance.BorderSize = 0; + this.btnNextDay.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnNextDay.Location = new System.Drawing.Point(251, 7); + this.btnNextDay.Name = "btnNextDay"; + this.btnNextDay.Size = new System.Drawing.Size(34, 24); + this.btnNextDay.TabIndex = 1; + this.btnNextDay.UseVisualStyleBackColor = false; + this.btnNextDay.Click += new System.EventHandler(this.btnNext_Click); + // + // dtpSelectPatientTime + // + this.dtpSelectPatientTime.CustomFormat = "yyyy-MM-dd"; + this.dtpSelectPatientTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dtpSelectPatientTime.Location = new System.Drawing.Point(79, 9); + this.dtpSelectPatientTime.Name = "dtpSelectPatientTime"; + this.dtpSelectPatientTime.Size = new System.Drawing.Size(111, 23); + this.dtpSelectPatientTime.TabIndex = 0; + this.dtpSelectPatientTime.ValueChanged += new System.EventHandler(this.dtpSelectPatientTime_ValueChanged); + // + // groupBox1 + // + this.groupBox1.BackColor = System.Drawing.Color.AliceBlue; + this.groupBox1.Controls.Add(this.panel2); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top; + this.groupBox1.Location = new System.Drawing.Point(0, 39); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(1035, 103); + this.groupBox1.TabIndex = 1; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "患者信息"; + // + // panel2 + // + this.panel2.AutoScroll = true; + this.panel2.Controls.Add(this.buttonX2); + this.panel2.Controls.Add(this.buttonX1); + this.panel2.Controls.Add(this.txtState); + this.panel2.Controls.Add(this.txttime); + this.panel2.Controls.Add(this.txtage); + this.panel2.Controls.Add(this.txtsex); + this.panel2.Controls.Add(this.txtdept); + this.panel2.Controls.Add(this.txtNo); + this.panel2.Controls.Add(this.txths); + this.panel2.Controls.Add(this.txtmzys); + this.panel2.Controls.Add(this.txtzdys); + this.panel2.Controls.Add(this.txtss); + this.panel2.Controls.Add(this.txtzd); + this.panel2.Controls.Add(this.txtname); + this.panel2.Controls.Add(this.label5); + this.panel2.Controls.Add(this.txtRoom); + this.panel2.Controls.Add(this.label11); + this.panel2.Controls.Add(this.label15); + this.panel2.Controls.Add(this.label21); + this.panel2.Controls.Add(this.label9); + this.panel2.Controls.Add(this.label19); + this.panel2.Controls.Add(this.label13); + this.panel2.Controls.Add(this.label25); + this.panel2.Controls.Add(this.label17); + this.panel2.Controls.Add(this.label23); + this.panel2.Controls.Add(this.txtType); + this.panel2.Controls.Add(this.label3); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(3, 17); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(1029, 83); + this.panel2.TabIndex = 0; + this.panel2.Visible = false; + // + // buttonX2 + // + this.buttonX2.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX2.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.buttonX2.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.buttonX2.Location = new System.Drawing.Point(888, 14); + this.buttonX2.Name = "buttonX2"; + this.buttonX2.Size = new System.Drawing.Size(95, 54); + 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.Font = new System.Drawing.Font("微软雅黑", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.buttonX1.Location = new System.Drawing.Point(781, 14); + this.buttonX1.Name = "buttonX1"; + this.buttonX1.Size = new System.Drawing.Size(90, 54); + this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.buttonX1.TabIndex = 6; + this.buttonX1.Text = "查看记录单"; + this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); + // + // txtState + // + this.txtState.AutoSize = true; + this.txtState.Font = new System.Drawing.Font("微软雅黑", 14F, System.Drawing.FontStyle.Bold); + this.txtState.ForeColor = System.Drawing.Color.Red; + this.txtState.Location = new System.Drawing.Point(687, 24); + this.txtState.Name = "txtState"; + this.txtState.Size = new System.Drawing.Size(69, 26); + this.txtState.TabIndex = 5; + this.txtState.Text = "手术中"; + // + // txttime + // + this.txttime.AutoSize = true; + this.txttime.Location = new System.Drawing.Point(607, 14); + this.txttime.Name = "txttime"; + this.txttime.Size = new System.Drawing.Size(11, 12); + this.txttime.TabIndex = 5; + this.txttime.Text = " "; + // + // txtage + // + this.txtage.AutoSize = true; + this.txtage.Location = new System.Drawing.Point(454, 14); + this.txtage.Name = "txtage"; + this.txtage.Size = new System.Drawing.Size(11, 12); + this.txtage.TabIndex = 5; + this.txtage.Text = " "; + // + // txtsex + // + this.txtsex.AutoSize = true; + this.txtsex.Location = new System.Drawing.Point(375, 14); + this.txtsex.Name = "txtsex"; + this.txtsex.Size = new System.Drawing.Size(11, 12); + this.txtsex.TabIndex = 5; + this.txtsex.Text = " "; + // + // txtdept + // + this.txtdept.AutoSize = true; + this.txtdept.Location = new System.Drawing.Point(115, 34); + this.txtdept.Name = "txtdept"; + this.txtdept.Size = new System.Drawing.Size(11, 12); + this.txtdept.TabIndex = 5; + this.txtdept.Text = " "; + // + // txtNo + // + this.txtNo.AutoSize = true; + this.txtNo.Location = new System.Drawing.Point(127, 14); + this.txtNo.Name = "txtNo"; + this.txtNo.Size = new System.Drawing.Size(11, 12); + this.txtNo.TabIndex = 5; + this.txtNo.Text = " "; + // + // txths + // + this.txths.AutoSize = true; + this.txths.Location = new System.Drawing.Point(535, 34); + this.txths.Name = "txths"; + this.txths.Size = new System.Drawing.Size(11, 12); + this.txths.TabIndex = 5; + this.txths.Text = " "; + // + // txtmzys + // + this.txtmzys.AutoSize = true; + this.txtmzys.Location = new System.Drawing.Point(397, 34); + this.txtmzys.Name = "txtmzys"; + this.txtmzys.Size = new System.Drawing.Size(11, 12); + this.txtmzys.TabIndex = 5; + this.txtmzys.Text = " "; + // + // txtzdys + // + this.txtzdys.AutoSize = true; + this.txtzdys.Location = new System.Drawing.Point(261, 34); + this.txtzdys.Name = "txtzdys"; + this.txtzdys.Size = new System.Drawing.Size(11, 12); + this.txtzdys.TabIndex = 5; + this.txtzdys.Text = " "; + // + // txtss + // + this.txtss.AutoSize = true; + this.txtss.Location = new System.Drawing.Point(454, 56); + this.txtss.Name = "txtss"; + this.txtss.Size = new System.Drawing.Size(11, 12); + this.txtss.TabIndex = 5; + this.txtss.Text = " "; + // + // txtzd + // + this.txtzd.AutoSize = true; + this.txtzd.Location = new System.Drawing.Point(134, 56); + this.txtzd.Name = "txtzd"; + this.txtzd.Size = new System.Drawing.Size(11, 12); + this.txtzd.TabIndex = 5; + this.txtzd.Text = " "; + // + // txtname + // + this.txtname.AutoSize = true; + this.txtname.Location = new System.Drawing.Point(261, 14); + this.txtname.Name = "txtname"; + this.txtname.Size = new System.Drawing.Size(11, 12); + this.txtname.TabIndex = 5; + this.txtname.Text = " "; + // + // label5 + // + this.label5.AutoSize = true; + this.label5.Location = new System.Drawing.Point(525, 14); + this.label5.Name = "label5"; + this.label5.Size = new System.Drawing.Size(77, 12); + this.label5.TabIndex = 5; + this.label5.Text = "申请预约时间"; + // + // txtRoom + // + this.txtRoom.AutoSize = true; + this.txtRoom.Font = new System.Drawing.Font("宋体", 14F, System.Drawing.FontStyle.Bold); + this.txtRoom.Location = new System.Drawing.Point(10, 23); + this.txtRoom.Name = "txtRoom"; + this.txtRoom.Size = new System.Drawing.Size(49, 19); + this.txtRoom.TabIndex = 5; + this.txtRoom.Text = "一间"; + // + // label11 + // + this.label11.AutoSize = true; + this.label11.Location = new System.Drawing.Point(421, 14); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(29, 12); + this.label11.TabIndex = 5; + this.label11.Text = "年龄"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.Location = new System.Drawing.Point(75, 34); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(29, 12); + this.label15.TabIndex = 5; + this.label15.Text = "科室"; + // + // label21 + // + this.label21.AutoSize = true; + this.label21.Location = new System.Drawing.Point(476, 34); + this.label21.Name = "label21"; + this.label21.Size = new System.Drawing.Size(53, 12); + this.label21.TabIndex = 5; + this.label21.Text = "术中护士"; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.Location = new System.Drawing.Point(342, 14); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(29, 12); + this.label9.TabIndex = 5; + this.label9.Text = "性别"; + // + // label19 + // + this.label19.AutoSize = true; + this.label19.Location = new System.Drawing.Point(338, 34); + this.label19.Name = "label19"; + this.label19.Size = new System.Drawing.Size(53, 12); + this.label19.TabIndex = 5; + this.label19.Text = "麻醉医生"; + // + // label13 + // + this.label13.AutoSize = true; + this.label13.Location = new System.Drawing.Point(75, 14); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(41, 12); + this.label13.TabIndex = 5; + this.label13.Text = "住院号"; + // + // label25 + // + this.label25.AutoSize = true; + this.label25.Location = new System.Drawing.Point(395, 56); + this.label25.Name = "label25"; + this.label25.Size = new System.Drawing.Size(53, 12); + this.label25.TabIndex = 5; + this.label25.Text = "拟施手术"; + // + // label17 + // + this.label17.AutoSize = true; + this.label17.Location = new System.Drawing.Point(202, 34); + this.label17.Name = "label17"; + this.label17.Size = new System.Drawing.Size(53, 12); + this.label17.TabIndex = 5; + this.label17.Text = "主刀医生"; + // + // label23 + // + this.label23.AutoSize = true; + this.label23.Location = new System.Drawing.Point(75, 56); + this.label23.Name = "label23"; + this.label23.Size = new System.Drawing.Size(53, 12); + this.label23.TabIndex = 5; + this.label23.Text = "术前诊断"; + // + // txtType + // + this.txtType.AutoSize = true; + this.txtType.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.txtType.ForeColor = System.Drawing.Color.Red; + this.txtType.Location = new System.Drawing.Point(22, 52); + this.txtType.Name = "txtType"; + this.txtType.Size = new System.Drawing.Size(23, 16); + this.txtType.TabIndex = 5; + this.txtType.Text = "急"; + // + // label3 + // + this.label3.AutoSize = true; + this.label3.Location = new System.Drawing.Point(202, 14); + this.label3.Name = "label3"; + this.label3.Size = new System.Drawing.Size(53, 12); + this.label3.TabIndex = 5; + this.label3.Text = "患者姓名"; + // + // groupBox2 + // + this.groupBox2.BackColor = System.Drawing.Color.AliceBlue; + this.groupBox2.Controls.Add(this.panel3); + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox2.Location = new System.Drawing.Point(0, 142); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(1035, 519); + this.groupBox2.TabIndex = 2; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "手术患者"; + // + // panel3 + // + this.panel3.AutoScroll = true; + this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel3.Location = new System.Drawing.Point(3, 17); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(1029, 499); + this.panel3.TabIndex = 0; + // + // frmSelectPatientNew3 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.AutoScroll = true; + this.ClientSize = new System.Drawing.Size(1035, 661); + this.Controls.Add(this.groupBox2); + this.Controls.Add(this.groupBox1); + this.Controls.Add(this.panel1); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "frmSelectPatientNew3"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "选择患者"; + this.Load += new System.EventHandler(this.frmSelectPatientNew3_Load); + this.panel1.ResumeLayout(false); + this.panel1.PerformLayout(); + this.groupBox1.ResumeLayout(false); + this.panel2.ResumeLayout(false); + this.panel2.PerformLayout(); + this.groupBox2.ResumeLayout(false); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.Panel panel1; + private System.Windows.Forms.DateTimePicker dtpSelectPatientTime; + private System.Windows.Forms.Button btnNextDay; + private System.Windows.Forms.Button btnFrontDay; + private System.Windows.Forms.GroupBox groupBox1; + private System.Windows.Forms.GroupBox groupBox2; + private System.Windows.Forms.Panel panel2; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.ComboBox cboRoom; + private System.Windows.Forms.Label label1; + private DevComponents.DotNetBar.ButtonX buttonX1; + private System.Windows.Forms.Label txtState; + private System.Windows.Forms.Label txttime; + private System.Windows.Forms.Label txtage; + private System.Windows.Forms.Label txtsex; + private System.Windows.Forms.Label txtdept; + private System.Windows.Forms.Label txtNo; + private System.Windows.Forms.Label txths; + private System.Windows.Forms.Label txtmzys; + private System.Windows.Forms.Label txtzdys; + private System.Windows.Forms.Label txtss; + private System.Windows.Forms.Label txtzd; + private System.Windows.Forms.Label txtname; + private System.Windows.Forms.Label label5; + private System.Windows.Forms.Label txtRoom; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label21; + private System.Windows.Forms.Label label9; + private System.Windows.Forms.Label label19; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label25; + private System.Windows.Forms.Label label17; + private System.Windows.Forms.Label label23; + private System.Windows.Forms.Label txtType; + private System.Windows.Forms.Label label3; + private DevComponents.DotNetBar.ButtonX buttonX3; + private DevComponents.DotNetBar.Controls.TextBoxX txtquery; + private DevComponents.DotNetBar.ButtonX btnQuery; + private System.Windows.Forms.Label label4; + private DevComponents.DotNetBar.ButtonX buttonX2; + } +} \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmSelectPatientNew3.cs b/AIMS/OperationAanesthesia/frmSelectPatientNew3.cs new file mode 100644 index 0000000..6c023de --- /dev/null +++ b/AIMS/OperationAanesthesia/frmSelectPatientNew3.cs @@ -0,0 +1,554 @@ +using DrawGraph; +using AIMS.OremrUserControl; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; +using AIMSModel; +using AIMSBLL; +using DCSoftDotfuscate; +using System.Net; +using AIMSExtension; + +namespace AIMS.OperationAanesthesia +{ + public partial class frmSelectPatientNew3 : Form + { + + public int SelPatientId; + public int SelApplyId; + public bool isMainOpen = false; + public AIMS.OperationAanesthesia.frmAanesthesiaPainlessRecord tempfrmAnasRecord; + List rooms; + + public frmSelectPatientNew3() + { + InitializeComponent(); + } + + private void frmSelectPatientNew3_Load(object sender, EventArgs e) + { + rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); + rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" }); + cboRoom.DataSource = rooms; + 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); + } + + private void btnNext_Click(object sender, EventArgs e) + { + dtpSelectPatientTime.Value = dtpSelectPatientTime.Value.AddDays(1); + } + private void btnFrontDay_Click(object sender, EventArgs e) + { + dtpSelectPatientTime.Value = dtpSelectPatientTime.Value.AddDays(-1); + } + + private void dtpSelectPatientTime_ValueChanged(object sender, EventArgs e) + { + FillDgv(); + } + + private void FillDgv() + { + panel3.Controls.Clear(); + panel2.Visible = false; + + DataTable dt = new DataTable(); + if (txtquery.Text.Trim() != "") + dt = SelectPatient.GetSelectPatientDataTable(txtquery.Text); + else + dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); + + DataTable dt2 = new DataTable(); + if (txtquery.Text.Trim() != "") + dt2 = SelectPatient.GetRelieveLockingPatientDataTable(txtquery.Text); + else + dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); + + List list = new List(); + for (int i = 0; i < rooms.Count; i++) + { + foreach (DataRow dr in dt.Rows) + { + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } + } + } + if (cboRoom.Text != "") + { + int i = 0, j = 0; + foreach (DataRow dr in dt.Rows) + { + if (dr["OperationRoom"].ToString() != cboRoom.Text) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + panel3.Controls.Add(uc); + j++; + if (j == 5) + { + i++; + j = 0; + } + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() != cboRoom.Text) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + panel3.Controls.Add(uc); + j++; + if (j == 5) + { + i++; + j = 0; + } + } + } + else + { + for (int i = 0; i < list.Count; i++) + { + int j = 0; + int Pointx = 0; + foreach (DataRow dr in dt.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; Pointx = (uc.Width + 9) * i; + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; + Pointx = (uc.Width + 9) * i; + } + + if (Pointx > 0) + { + DevComponents.DotNetBar.Controls.Line line1 = new DevComponents.DotNetBar.Controls.Line(); + line1.Location = new System.Drawing.Point(Pointx - 10, 0); + line1.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot; + line1.Size = new System.Drawing.Size(10, panel3.Height); + line1.ForeColor = Color.DarkGray; + line1.VerticalLine = true; + panel3.Controls.Add(line1); + } + } + } + + + } + + public ucPatientCard SelUc; + + private void Uc_Clicks(ucPatientCard uc, int PatientId, int applyId, DataRow dr) + { + SelPatientId = PatientId; + SelApplyId = applyId; + txtType.Text = dr["OperationType"].ToString(); + txtNo.Text = dr["MdrecNo"].ToString(); + txtname.Text = dr["PatientName"].ToString(); + txtsex.Text = dr["sex"].ToString(); + txtage.Text = dr["age"].ToString(); + txtss.Text = dr["ApplyOperationInfoName"].ToString(); + txtmzys.Text = dr["AnesthesiaDoctor"].ToString(); + txttime.Text = dr["OrderOperationTime"].ToString(); + txtdept.Text = dr["ApplyDepName"].ToString(); + txtzdys.Text = dr["OperationDoctor"].ToString(); + txths.Text = dr["InstrumentNurse"].ToString() + " " + dr["TourNurse"].ToString(); + txtzd.Text = dr["ApplyDiagnoseInfoName"].ToString(); + txtRoom.Text = dr["OperationRoom"].ToString(); + txtRoom.Tag = dr["OperationRoomId"].ToString(); + if (!txtType.Text.Contains("急")) txtType.ForeColor = Color.DarkGreen; + else txtType.ForeColor = Color.Red; + txtState.Text = dr["State"].ToString(); + if (txtState.Text == "手术中" || txtState.Text == "手术结束" || txtState.Text == "停止手术") + { + label5.Text = "手术开始时间"; + label23.Text = "术中诊断"; + label25.Text = "实施手术"; + } + else + { + label5.Text = "申请预约时间"; + label23.Text = "术前诊断"; + label25.Text = "拟施手术"; + } + buttonX1.Text = uc.buttonX1.Text; + panel2.Visible = true; + SelUc = uc; + } + + private void Uc_InRoom(ucPatientCard uc, int PatientId, int applyId) + { + string RoomStr = uc.Tag.ToString(); + if (RoomStr == "") + { + frmSeleteRoom seleteRoom = new frmSeleteRoom(); + seleteRoom.ShowDialog(); + if (seleteRoom.RoomId != null) + { + RoomStr = seleteRoom.RoomId.ToString(); + if (RoomStr != null && RoomStr != "") + { + OperationApply opeapply = BOperationApply.SelectSingle(applyId, RecursiveType.None, 0); + opeapply.State = 4; + opeapply.OperationRoomId = int.Parse(seleteRoom.RoomId); + opeapply.PlanOperationTime = dtpSelectPatientTime.Value; + opeapply.PlanOrder = BOperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1; + BOperationApply.Update(opeapply); + } + } + } + if (RoomStr == "") return; + SatrtOperation(uc, PatientId, applyId, int.Parse(RoomStr)); + } + + private void SatrtOperation(ucPatientCard uc, int PatientId, int applyId, int RoomId) + { + try + { + string State = uc.buttonX1.Text; + if (State == "转入术间") + { + OperationApply operA = BOperationApply.SelectSingle(applyId); + if (operA.State == 11) + { + MessageBox.Show("当前手术已停止 ,请确认后重新选择!", "系统提示"); + return; + } + if (operA.OrderOperationTime.Value.Date != DateTime.Now.Date)// && operA.OrderOperationTime.Value.Hour < 20) + { + MessageBox.Show("该手术预约时间不是当前日期 ,请确认后重新选择!", "系统提示"); + return; + } + DataTable dtOperationRecord = SelectPatient.GetTodayDoOpePatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString())); + foreach (DataRow row in dtOperationRecord.Rows) + { + if (row["OperationRoomId"].ToString() == operA.OperationRoomId.ToString()) + { + MessageBox.Show("当前有未完成的手术占用手术间,请先选择解锁术中手术!", "系统提示"); + return; + } + } + + frmAanesthesiaPainlessRecord frmAnasRecord = null; + if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null) + { + frmAnasRecord = tempfrmAnasRecord; + frmAnasRecord.ClearRecordDate(); + } + else + { + frmAnasRecord = new frmAanesthesiaPainlessRecord(); + } + frmAnasRecord.PatientId = PatientId; + frmAnasRecord.ApplyId = applyId; + frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId); + frmAnasRecord.State = AIMSExtension.EditState.ADD; + SelectPatient.UpdateApplyState(PatientId, applyId); //修改状态 + + uc.label2.Text = "手术中"; + uc.label2.ForeColor = Color.Red; + uc.buttonX1.Text = "继续手术"; + uc.buttonX2.Text = "取消手术"; + uc.buttonX1.Visible = true; + uc.buttonX2.Visible = true; + uc.panelExMain.Style.BackColor1.Color = Color.OldLace; + + if (isMainOpen == false) + { + frmAnasRecord.ShowDialog(); + FillDgv(); + } + else + { + this.Close(); + } + + } + else + { + frmAanesthesiaPainlessRecord frmAnasRecord = null; + if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null) + { + frmAnasRecord = tempfrmAnasRecord; + frmAnasRecord.ClearRecordDate(); + } + else + { + frmAnasRecord = new frmAanesthesiaPainlessRecord(); + } + frmAnasRecord.PatientId = PatientId; + frmAnasRecord.ApplyId = applyId; + frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId); + if (State == "继续手术") + { + frmAnasRecord.State = AIMSExtension.EditState.EDIT; + } + else + { + frmAnasRecord.State = AIMSExtension.EditState.BROWSE; + } + + if (isMainOpen == false) + { + frmAnasRecord.ShowDialog(); + FillDgv(); + } + else + { + this.Close(); + } + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + public OperationRoom GetOperationRoom(List 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() || room.Ip2 == IPadd.ToString() || room.Ip3 == IPadd.ToString()) + { + return room; + } + } + } + } + return null; + } + catch (Exception) + { + return null; + } + } + + private void Uc_QxRoom(ucPatientCard uc, int RecorId, int PatientId, int applyId) + { + try + { + if (uc.buttonX2.Text == "取消手术") + { + if (BOperationRecord.GetDataCount(RecorId, PatientId, 1) > 0) + { + MessageBox.Show("清除数据在进行取消转入操作!"); + return; + } + if (MessageBox.Show("确认要取消手术吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + try + { + HelperDB.DbHelperSQL.BeginTrans(); + BOperationApply.UpdateApplyState(applyId, 4); + BOperationRecord.DeleteOperationRecordData(RecorId, PatientId, 1); + HelperDB.DbHelperSQL.CommitTrans(); + + if (isMainOpen == false) + { + FillDgv(); + } + else + { + this.Close(); + } + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + } + else + { + if (MessageBox.Show("确认要返回手术吗?", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + try + { + HelperDB.DbHelperSQL.BeginTrans(); + BOperationApply.UpdateApplyState(applyId, 6); + BOperationRecord.UpdateOpeState(PatientId, 1, 1, ""); + BOperationRecord.DeleteEvent(PatientId, 8); + HelperDB.DbHelperSQL.CommitTrans(); + + frmAanesthesiaPainlessRecord frmAnasRecord = null; + if (tempfrmAnasRecord != null && tempfrmAnasRecord._record != null) + { + frmAnasRecord = tempfrmAnasRecord; + frmAnasRecord.ClearRecordDate(); + } + else + { + frmAnasRecord = new frmAanesthesiaPainlessRecord(); + } + frmAnasRecord.PatientId = PatientId; + frmAnasRecord.ApplyId = applyId; + frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString())); + frmAnasRecord.State = AIMSExtension.EditState.EDIT; + + frmAnasRecord._record = new OperationRecord(); + frmAnasRecord._record.Id = PatientId; + + if (isMainOpen == false) + { + frmAnasRecord.ShowDialog(); + FillDgv(); + } + else + { + //if (frmAnasRecord._record != null) + // frmAnasRecord.ClearRecordDate(); + this.Close(); + } + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + + private void cboRoom_SelectedIndexChanged(object sender, EventArgs e) + { + if (cboRoom.SelectedIndex > 0) + { + PublicMethod.SelectRoom = Convert.ToInt32(cboRoom.SelectedValue); + } + else + { + PublicMethod.SelectRoom = -1; + } + FillDgv(); + } + + private void buttonX1_Click(object sender, EventArgs e) + { + string RoomStr = txtRoom.Tag.ToString(); + if (RoomStr == "") + { + frmSeleteRoom seleteRoom = new frmSeleteRoom(); + seleteRoom.ShowDialog(); + if (seleteRoom.RoomId != null) + { + RoomStr = seleteRoom.RoomId.ToString(); + if (RoomStr != null && RoomStr != "") + { + OperationApply opeapply = BOperationApply.SelectSingle(SelApplyId, RecursiveType.None, 0); + opeapply.State = 4; + opeapply.OperationRoomId = int.Parse(seleteRoom.RoomId); + opeapply.PlanOperationTime = dtpSelectPatientTime.Value; + opeapply.PlanOrder = BOperationApply.GetMaxPlanOrder(opeapply.PlanOperationTime.Value, opeapply.OperationRoomId.Value) + 1; + BOperationApply.Update(opeapply); + } + } + } + if (RoomStr == "") return; + SatrtOperation(SelUc, SelPatientId, SelApplyId, (int.Parse(RoomStr))); + } + + private void buttonX3_Click(object sender, EventArgs e) + { + AIMS.OperationFront.UI.frmOperationApplyDetail frmOperationApplyDetail = new AIMS.OperationFront.UI.frmOperationApplyDetail(); + frmOperationApplyDetail.State = AIMSExtension.EditState.ADD; + frmOperationApplyDetail.ShowDialog(); + } + + private void btnQuery_Click(object sender, EventArgs e) + { + FillDgv(); + } + + private void buttonX2_Click(object sender, EventArgs e) + { + string RoomStr = txtRoom.Tag.ToString(); + if (RoomStr != "") + { + frmSeleteRoom seleteRoom = new frmSeleteRoom(); + seleteRoom.NowRoomId = RoomStr; + seleteRoom.ShowDialog(); + RoomStr = seleteRoom.RoomId; + if (RoomStr != null && RoomStr != "") + { + txtRoom.Text = seleteRoom.RoomName; + txtRoom.Tag = int.Parse(RoomStr); + BOperationRecord.Update("RoomId=@RoomId where OperationApplyId=@id ", new AIMSModel.ParameterList("@RoomId", int.Parse(RoomStr), "@id", SelApplyId)); + BOperationApply.UpdateApplyRoom(SelApplyId, int.Parse(RoomStr), DateTime.Parse(txttime.Text)); + BOperationApply.UpdteOperationOrder(DateTime.Parse(txttime.Text), int.Parse(RoomStr)); + FillDgv(); + panel2.Visible = true; + MessageBox.Show("手术间切换成功!"); + } + } + } + } +} \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmSelectPatientNew3.resx b/AIMS/OperationAanesthesia/frmSelectPatientNew3.resx new file mode 100644 index 0000000..1dbb543 --- /dev/null +++ b/AIMS/OperationAanesthesia/frmSelectPatientNew3.resx @@ -0,0 +1,523 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH + DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp + bGUAAEjHnZZ3VFTXFofPvXd6oc0w0hl6ky4wgPQuIB0EURhmBhjKAMMMTWyIqEBEEREBRZCggAGjoUis + iGIhKKhgD0gQUGIwiqioZEbWSnx5ee/l5ffHvd/aZ+9z99l7n7UuACRPHy4vBZYCIJkn4Ad6ONNXhUfQ + sf0ABniAAaYAMFnpqb5B7sFAJC83F3q6yAn8i94MAUj8vmXo6U+ng/9P0qxUvgAAyF/E5mxOOkvE+SJO + yhSkiu0zIqbGJIoZRomZL0pQxHJijlvkpZ99FtlRzOxkHlvE4pxT2clsMfeIeHuGkCNixEfEBRlcTqaI + b4tYM0mYzBXxW3FsMoeZDgCKJLYLOKx4EZuImMQPDnQR8XIAcKS4LzjmCxZwsgTiQ7mkpGbzuXHxArou + S49uam3NoHtyMpM4AoGhP5OVyOSz6S4pyalMXjYAi2f+LBlxbemiIluaWltaGpoZmX5RqP+6+Dcl7u0i + vQr43DOI1veH7a/8UuoAYMyKarPrD1vMfgA6tgIgd/8Pm+YhACRFfWu/8cV5aOJ5iRcIUm2MjTMzM424 + HJaRuKC/6386/A198T0j8Xa/l4fuyollCpMEdHHdWClJKUI+PT2VyeLQDf88xP848K/zWBrIieXwOTxR + RKhoyri8OFG7eWyugJvCo3N5/6mJ/zDsT1qca5Eo9Z8ANcoISN2gAuTnPoCiEAESeVDc9d/75oMPBeKb + F6Y6sTj3nwX9+65wifiRzo37HOcSGExnCfkZi2viawnQgAAkARXIAxWgAXSBITADVsAWOAI3sAL4gWAQ + DtYCFogHyYAPMkEu2AwKQBHYBfaCSlAD6kEjaAEnQAc4DS6Ay+A6uAnugAdgBIyD52AGvAHzEARhITJE + geQhVUgLMoDMIAZkD7lBPlAgFA5FQ3EQDxJCudAWqAgqhSqhWqgR+hY6BV2ArkID0D1oFJqCfoXewwhM + gqmwMqwNG8MM2An2hoPhNXAcnAbnwPnwTrgCroOPwe3wBfg6fAcegZ/DswhAiAgNUUMMEQbigvghEUgs + wkc2IIVIOVKHtCBdSC9yCxlBppF3KAyKgqKjDFG2KE9UCIqFSkNtQBWjKlFHUe2oHtQt1ChqBvUJTUYr + oQ3QNmgv9Cp0HDoTXYAuRzeg29CX0HfQ4+g3GAyGhtHBWGE8MeGYBMw6TDHmAKYVcx4zgBnDzGKxWHms + AdYO64dlYgXYAux+7DHsOewgdhz7FkfEqeLMcO64CBwPl4crxzXhzuIGcRO4ebwUXgtvg/fDs/HZ+BJ8 + Pb4LfwM/jp8nSBN0CHaEYEICYTOhgtBCuER4SHhFJBLVidbEACKXuIlYQTxOvEIcJb4jyZD0SS6kSJKQ + tJN0hHSedI/0ikwma5MdyRFkAXknuZF8kfyY/FaCImEk4SXBltgoUSXRLjEo8UISL6kl6SS5VjJHslzy + pOQNyWkpvJS2lIsUU2qDVJXUKalhqVlpirSptJ90snSxdJP0VelJGayMtoybDFsmX+awzEWZMQpC0aC4 + UFiULZR6yiXKOBVD1aF6UROoRdRvqP3UGVkZ2WWyobJZslWyZ2RHaAhNm+ZFS6KV0E7QhmjvlygvcVrC + WbJjScuSwSVzcopyjnIcuUK5Vrk7cu/l6fJu8onyu+U75B8poBT0FQIUMhUOKlxSmFakKtoqshQLFU8o + 3leClfSVApXWKR1W6lOaVVZR9lBOVd6vfFF5WoWm4qiSoFKmclZlSpWiaq/KVS1TPaf6jC5Ld6In0Svo + PfQZNSU1TzWhWq1av9q8uo56iHqeeqv6Iw2CBkMjVqNMo1tjRlNV01czV7NZ874WXouhFa+1T6tXa05b + RztMe5t2h/akjpyOl06OTrPOQ12yroNumm6d7m09jB5DL1HvgN5NfVjfQj9ev0r/hgFsYGnANThgMLAU + vdR6KW9p3dJhQ5Khk2GGYbPhqBHNyMcoz6jD6IWxpnGE8W7jXuNPJhYmSSb1Jg9MZUxXmOaZdpn+aqZv + xjKrMrttTjZ3N99o3mn+cpnBMs6yg8vuWlAsfC22WXRbfLS0suRbtlhOWWlaRVtVWw0zqAx/RjHjijXa + 2tl6o/Vp63c2ljYCmxM2v9ga2ibaNtlOLtdZzllev3zMTt2OaVdrN2JPt4+2P2Q/4qDmwHSoc3jiqOHI + dmxwnHDSc0pwOub0wtnEme/c5jznYuOy3uW8K+Lq4Vro2u8m4xbiVun22F3dPc692X3Gw8Jjncd5T7Sn + t+duz2EvZS+WV6PXzAqrFetX9HiTvIO8K72f+Oj78H26fGHfFb57fB+u1FrJW9nhB/y8/Pb4PfLX8U/z + /z4AE+AfUBXwNNA0MDewN4gSFBXUFPQm2Dm4JPhBiG6IMKQ7VDI0MrQxdC7MNaw0bGSV8ar1q66HK4Rz + wzsjsBGhEQ0Rs6vdVu9dPR5pEVkQObRGZ03WmqtrFdYmrT0TJRnFjDoZjY4Oi26K/sD0Y9YxZ2O8Yqpj + ZlgurH2s52xHdhl7imPHKeVMxNrFlsZOxtnF7YmbineIL4+f5rpwK7kvEzwTahLmEv0SjyQuJIUltSbj + kqOTT/FkeIm8nhSVlKyUgVSD1ILUkTSbtL1pM3xvfkM6lL4mvVNAFf1M9Ql1hVuFoxn2GVUZbzNDM09m + SWfxsvqy9bN3ZE/kuOd8vQ61jrWuO1ctd3Pu6Hqn9bUboA0xG7o3amzM3zi+yWPT0c2EzYmbf8gzySvN + e70lbEtXvnL+pvyxrR5bmwskCvgFw9tst9VsR23nbu/fYb5j/45PhezCa0UmReVFH4pZxde+Mv2q4quF + nbE7+0ssSw7uwuzi7Rra7bD7aKl0aU7p2B7fPe1l9LLCstd7o/ZeLV9WXrOPsE+4b6TCp6Jzv+b+Xfs/ + VMZX3qlyrmqtVqreUT13gH1g8KDjwZYa5ZqimveHuIfu1nrUttdp15UfxhzOOPy0PrS+92vG140NCg1F + DR+P8I6MHA082tNo1djYpNRU0gw3C5unjkUeu/mN6zedLYYtta201qLj4Ljw+LNvo78dOuF9ovsk42TL + d1rfVbdR2grbofbs9pmO+I6RzvDOgVMrTnV32Xa1fW/0/ZHTaqerzsieKTlLOJt/duFczrnZ86nnpy/E + XRjrjup+cHHVxds9AT39l7wvXbnsfvlir1PvuSt2V05ftbl66hrjWsd1y+vtfRZ9bT9Y/NDWb9nffsPq + RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP + lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l + f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK + j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDAAACwwBP0AiyAAAAXJJREFUSEu1lk1KxTAU + hTMSF6Ag6ExBHLkHceISXIP0J0n7+n7U5bgHFyCIougSnPgDOnD2wEE8t6+tSW5FafIG3+T2cA9Jzm0i + jDGMNJNzm6SYCZepSDQxsTlOc/Xa148VCDQ2Nkl5JhxglKqRSHMNJOk30ix/JK3fi2AFwjYgFs1PfzFR + W9DcNtp5Xz9WINrmLV1z30TqdZjcW9pQE7aSVazkztNGNpHlpa8DkbZrdE5JmuHAHU1DgEkd0TG2qBKJ + qo5wDp9Ik6NpGG7SJSnL98EL+/5DoInUO9iid/bNJcSk2sNK3lidE2AiywdW6yfAJMv/swoiaCXXrNbP + cBPEdhdn8uzXewgyQbqK7WWnq5kTubw5WVxQ3cQfYOI/ok+883Mk9OQEW/fl60CoiUUBVHXh60BME9zz + eryCMFx52ugmdKesIRA3ljayiapNKHWbOJ/WKLZJPTv0kCD9oNfKH++uFkS7fYMV00MYPvF+RnwD+CXX + 0K4KC2cAAAAASUVORK5CYII= + + + + + iVBORw0KGgoAAAANSUhEUgAAABkAAAAZCAYAAADE6YVjAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAACH + DwAAjA8AAP1SAACBQAAAfXkAAOmLAAA85QAAGcxzPIV3AAAKOWlDQ1BQaG90b3Nob3AgSUNDIHByb2Zp + bGUAAEjHnZZ3VFTXFofPvXd6oc0w0hl6ky4wgPQuIB0EURhmBhjKAMMMTWyIqEBEEREBRZCggAGjoUis + iGIhKKhgD0gQUGIwiqioZEbWSnx5ee/l5ffHvd/aZ+9z99l7n7UuACRPHy4vBZYCIJkn4Ad6ONNXhUfQ + sf0ABniAAaYAMFnpqb5B7sFAJC83F3q6yAn8i94MAUj8vmXo6U+ng/9P0qxUvgAAyF/E5mxOOkvE+SJO + yhSkiu0zIqbGJIoZRomZL0pQxHJijlvkpZ99FtlRzOxkHlvE4pxT2clsMfeIeHuGkCNixEfEBRlcTqaI + b4tYM0mYzBXxW3FsMoeZDgCKJLYLOKx4EZuImMQPDnQR8XIAcKS4LzjmCxZwsgTiQ7mkpGbzuXHxArou + S49uam3NoHtyMpM4AoGhP5OVyOSz6S4pyalMXjYAi2f+LBlxbemiIluaWltaGpoZmX5RqP+6+Dcl7u0i + vQr43DOI1veH7a/8UuoAYMyKarPrD1vMfgA6tgIgd/8Pm+YhACRFfWu/8cV5aOJ5iRcIUm2MjTMzM424 + HJaRuKC/6386/A198T0j8Xa/l4fuyollCpMEdHHdWClJKUI+PT2VyeLQDf88xP848K/zWBrIieXwOTxR + RKhoyri8OFG7eWyugJvCo3N5/6mJ/zDsT1qca5Eo9Z8ANcoISN2gAuTnPoCiEAESeVDc9d/75oMPBeKb + F6Y6sTj3nwX9+65wifiRzo37HOcSGExnCfkZi2viawnQgAAkARXIAxWgAXSBITADVsAWOAI3sAL4gWAQ + DtYCFogHyYAPMkEu2AwKQBHYBfaCSlAD6kEjaAEnQAc4DS6Ay+A6uAnugAdgBIyD52AGvAHzEARhITJE + geQhVUgLMoDMIAZkD7lBPlAgFA5FQ3EQDxJCudAWqAgqhSqhWqgR+hY6BV2ArkID0D1oFJqCfoXewwhM + gqmwMqwNG8MM2An2hoPhNXAcnAbnwPnwTrgCroOPwe3wBfg6fAcegZ/DswhAiAgNUUMMEQbigvghEUgs + wkc2IIVIOVKHtCBdSC9yCxlBppF3KAyKgqKjDFG2KE9UCIqFSkNtQBWjKlFHUe2oHtQt1ChqBvUJTUYr + oQ3QNmgv9Cp0HDoTXYAuRzeg29CX0HfQ4+g3GAyGhtHBWGE8MeGYBMw6TDHmAKYVcx4zgBnDzGKxWHms + AdYO64dlYgXYAux+7DHsOewgdhz7FkfEqeLMcO64CBwPl4crxzXhzuIGcRO4ebwUXgtvg/fDs/HZ+BJ8 + Pb4LfwM/jp8nSBN0CHaEYEICYTOhgtBCuER4SHhFJBLVidbEACKXuIlYQTxOvEIcJb4jyZD0SS6kSJKQ + tJN0hHSedI/0ikwma5MdyRFkAXknuZF8kfyY/FaCImEk4SXBltgoUSXRLjEo8UISL6kl6SS5VjJHslzy + pOQNyWkpvJS2lIsUU2qDVJXUKalhqVlpirSptJ90snSxdJP0VelJGayMtoybDFsmX+awzEWZMQpC0aC4 + UFiULZR6yiXKOBVD1aF6UROoRdRvqP3UGVkZ2WWyobJZslWyZ2RHaAhNm+ZFS6KV0E7QhmjvlygvcVrC + WbJjScuSwSVzcopyjnIcuUK5Vrk7cu/l6fJu8onyu+U75B8poBT0FQIUMhUOKlxSmFakKtoqshQLFU8o + 3leClfSVApXWKR1W6lOaVVZR9lBOVd6vfFF5WoWm4qiSoFKmclZlSpWiaq/KVS1TPaf6jC5Ld6In0Svo + PfQZNSU1TzWhWq1av9q8uo56iHqeeqv6Iw2CBkMjVqNMo1tjRlNV01czV7NZ874WXouhFa+1T6tXa05b + RztMe5t2h/akjpyOl06OTrPOQ12yroNumm6d7m09jB5DL1HvgN5NfVjfQj9ev0r/hgFsYGnANThgMLAU + vdR6KW9p3dJhQ5Khk2GGYbPhqBHNyMcoz6jD6IWxpnGE8W7jXuNPJhYmSSb1Jg9MZUxXmOaZdpn+aqZv + xjKrMrttTjZ3N99o3mn+cpnBMs6yg8vuWlAsfC22WXRbfLS0suRbtlhOWWlaRVtVWw0zqAx/RjHjijXa + 2tl6o/Vp63c2ljYCmxM2v9ga2ibaNtlOLtdZzllev3zMTt2OaVdrN2JPt4+2P2Q/4qDmwHSoc3jiqOHI + dmxwnHDSc0pwOub0wtnEme/c5jznYuOy3uW8K+Lq4Vro2u8m4xbiVun22F3dPc692X3Gw8Jjncd5T7Sn + t+duz2EvZS+WV6PXzAqrFetX9HiTvIO8K72f+Oj78H26fGHfFb57fB+u1FrJW9nhB/y8/Pb4PfLX8U/z + /z4AE+AfUBXwNNA0MDewN4gSFBXUFPQm2Dm4JPhBiG6IMKQ7VDI0MrQxdC7MNaw0bGSV8ar1q66HK4Rz + wzsjsBGhEQ0Rs6vdVu9dPR5pEVkQObRGZ03WmqtrFdYmrT0TJRnFjDoZjY4Oi26K/sD0Y9YxZ2O8Yqpj + ZlgurH2s52xHdhl7imPHKeVMxNrFlsZOxtnF7YmbineIL4+f5rpwK7kvEzwTahLmEv0SjyQuJIUltSbj + kqOTT/FkeIm8nhSVlKyUgVSD1ILUkTSbtL1pM3xvfkM6lL4mvVNAFf1M9Ql1hVuFoxn2GVUZbzNDM09m + SWfxsvqy9bN3ZE/kuOd8vQ61jrWuO1ctd3Pu6Hqn9bUboA0xG7o3amzM3zi+yWPT0c2EzYmbf8gzySvN + e70lbEtXvnL+pvyxrR5bmwskCvgFw9tst9VsR23nbu/fYb5j/45PhezCa0UmReVFH4pZxde+Mv2q4quF + nbE7+0ssSw7uwuzi7Rra7bD7aKl0aU7p2B7fPe1l9LLCstd7o/ZeLV9WXrOPsE+4b6TCp6Jzv+b+Xfs/ + VMZX3qlyrmqtVqreUT13gH1g8KDjwZYa5ZqimveHuIfu1nrUttdp15UfxhzOOPy0PrS+92vG140NCg1F + DR+P8I6MHA082tNo1djYpNRU0gw3C5unjkUeu/mN6zedLYYtta201qLj4Ljw+LNvo78dOuF9ovsk42TL + d1rfVbdR2grbofbs9pmO+I6RzvDOgVMrTnV32Xa1fW/0/ZHTaqerzsieKTlLOJt/duFczrnZ86nnpy/E + XRjrjup+cHHVxds9AT39l7wvXbnsfvlir1PvuSt2V05ftbl66hrjWsd1y+vtfRZ9bT9Y/NDWb9nffsPq + RudN65tdA8sHzg46DF645Xrr8m2v29fvrLwzMBQydHc4cnjkLvvu5L2key/vZ9yff7DpIfph4SOpR+WP + lR7X/aj3Y+uI5ciZUdfRvidBTx6Mscae/5T+04fx/Kfkp+UTqhONk2aTp6fcp24+W/1s/Hnq8/npgp+l + f65+ofviu18cf+mbWTUz/pL/cuHX4lfyr468Xva6e9Z/9vGb5Dfzc4Vv5d8efcd41/s+7P3EfOYH7IeK + j3ofuz55f3q4kLyw8Bv3hPP74uYdwgAAAAlwSFlzAAALDAAACwwBP0AiyAAAAaJJREFUSEu1lkFKw0AY + hWclHkBB0J2CuPIO4sYjeAbJZGaSttqqx/EOHkCQiqJHcKMWdOFOcDG+lzRN8/+ldpEsPgovr+9lkn+G + mBijwrrwkWQXp8DUDE2Sk1EDm/qfeRblKYHAHG3qXvC7ZZ1HaWZs6JfBvasGpbdGZhElEJh5V/zTA1a1 + s7jksrWSiJIn67PNLlcyLcoeUbLe3UoqfO+2+xLnI6ZslPSv54raLkkd3893EgYnNgww0ufFaEufzCJK + IDAvKKlw7+Cwmjh5XWYRJRCYl5QA5z8xcXvdlhCXTfDYDqQus4gSCMz/lxDfe5aazCJKIDCvVpK6idRk + FlECgXnVldxLTWYRJRCYV3knbxjnfanLLKIEAvPykmK68l2U0Nu4JrOIEgjMS0q4T/x0n7ReUuz4L9z9 + Ub3jhy2XOP+LY+Rs/tziISl9MosogcCsSrCCmyTnydtE+mQWUQKBuVni8zs8nrXyqO+ixGVj7IeN4h10 + UuL8GCXbKDFJaL8Ef6i+VoLB40IJJqrVEhde8Y11XH9r6e+tCgRz1TN0XjR/BRzX0I6JRvgAAAAASUVO + RK5CYII= + + + + + AAABAAEAQEAAAAEAIAAoQgAAFgAAACgAAABAAAAAgAAAAAEAIAAAAAAAAEAAABMLAAATCwAAAAAAAAAA + AAD///////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////////////+//38/P/9+/r//v38//// + /v////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////v5 + 9//q2tD/4sq6/+rc0v/7+ff///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////37ef/5LGP/+Kdbv/jsZD/9uzl//7///////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////8+/r/79vO/+OZZv/jk1z/45lm/+nQwP/69/b///////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////+fb0/+bLuf/jlF3/45Nc/+OT + Xf/gvaT/9vHt//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////fy + 7//hv6r/45Re/+OTXP/jlF3/36+N//bs5f////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////27+r/3rac/+OUXf/jk1z/45Nd/+Omff/y4dX//f39//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9uzl/96ujf/jlF3/45Nc/+OTXP/mnWz/58q2//fz + 8f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////fp4P/hp4D/45Nd/+OT + XP/jk1z/45Ja/9+0l//z6uX///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////7/ + ///14tX/5qFy/+OTXP/jk1z/4pJb/+OSW//fp4H/8+PZ//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////5+Pf/68+7/+OSW//jk1z/4pJc/92OWP/hkVv/5KBx//LZyf/9/f7///////// + ///////////////////////////////////////////////+/v/9+/r/+/j1//z39P/8+PX//Pn3//79 + /f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9vLv/+TDq//jklv/4pJb/+GRW//djlj/4JBa/+OS + Wv/kvaL/9O7q///////////////////////////////////////////////////////59vT/69nN/9+7 + ov/gtZf/37id/+HGsv/17Ob//fz7//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////Ts6P/guJ7/45Jb/+KT + XP/fkFr/3I5Y/+CRWv/jkVn/36yJ//Dj2f////////////////////////////////////////////// + ///38/H/6c68/+Knfv/il2P/4pdi/+KXY//jmmn/6bGM//Di2P/8+/r///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///z5+D/3q6O/+OSW//ilmH/3q2M/+O8ov/mqH//5JZh/+Cid//x28z///////////////////////// + ////////////////////////7NvP/+CqhP/jlF7/45Jb/+OTW//jk1v/45Nc/+SYY//jtZT/+O/p//// + ////////////////////////////////////////////////////////////////////////+PLv/+nP + v//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwqP/78Kj/+/Co//vwaP/7cKl/+vOu//8+vj///////// + ////////////////////////8+TZ/9+ngP/jklr/45lm/+bOv//27ef/57mb/+KYZf/lnm7/7tC8//r6 + +f//////+fLu/+jKtv/vwqT/78Kj/+/Co//vwqP/78Kk/+m1k//jnm//45Ja/+OTXP/jk1z/45Nc/+OT + XP/jk1z/4pln/+nPvf/59vT///////////////////////////////////////////////////////// + //////////////Xt6f/et57/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+SYZP/kmGT/5Jhk/+OZ + Zv/ipHr/7d7U//38+/////////////////////////////bh0//koXT/45Re/+iofv/06+X//fz7/+TD + rf/hm2r/5JVf/+W5nP/y6ub//Pz7/+/d0P/jqYH/5Jhl/+SYZP/kmGT/5Jhk/+SYZP/lmWb/5JZh/+OT + XP/jk1z/45Nc/+OTXP/jk1z/45Nc/+OTW//guqL/9u/r//////////////////////////////////// + ///////////////////////////////////17ej/3ree/+WaaP/lmmf/5Zpn/+WaZ//lmmf/5Zpn/+Wa + Z//lmmf/5Ztp/+WZZv/jklr/45hk/+HFsf/8+ff///////////////////////z9/f/y2sn/5qBx/+SW + Yf/rsov//fn2//7+/v/l0MH/4Z9x/+OPVv/fpoD/7d3S//by7//jwar/5pxq/+Wda//lmmj/5Zpn/+Wa + Z//lmmf/5Zxq/+SYY//jk1v/45Nc/+OTXP/jk1z/45Nc/+OTXP/jk1v/4Luj//bw7P////////////// + ////////////////////////////////////////////////////////+fXy/+3Yy//yzbT/8s20//LN + tP/yzbT/8s20//LNtP/yzbT/8s61/+3GrP/krIf/45Ja/+KXY//guZ3//Pj1//////////////////// + ///39PL/6cmz/+WaZ//jlmH/6LOO//76+P//////7eLb/+Wthf/jlF3/4Z9x//DVw//06uP/3qyK/+SV + YP/prIP/8cux//LNtP/yzbT/8s62/+m5mv/jnW7/45Ja/+OTXP/jk1z/45Nc/+OTXP/jk1z/5Jto/+bK + t//49PL///////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////18e7/5MOt/+SXYv/jlmH/5LCN//ny + 7f//////////////////////8uzo/+K5nf/jkFf/4pdk/+O4mf/9+/n///////j29P/pwKT/45po/+Wb + af/wy7P/8dzO/+Kjef/jlmH/6LGM//369//////////////////t3ND/4ayI/+KVYP/jklr/45Jb/+OS + W//jk1v/5Jlm/+Sxjv/w4dj//Pv6//////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////+vn4/+7Z + yv/lpHj/5JVf/+ene//u4NX//Pv6//////////////////Dl3f/fr4//45FZ/+KZZ//hwKj//fv6//// + ////////5su4/+Cdb//lmWX/5rCM/+a1lv/mnWz/4pdk/+O4nP/9+vj/////////////////+Pb0/+vU + xP/irYj/4Zlo/+KYZP/imGX/4p5w/+i1kv/o08b/+vf1//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////26eH/36mE/+OTXP/jl2P/5Mq6//r39v/////////////////v3tL/3qV//+OR + Wf/inGz/482+//38+////////////+jWzP/hpn7/45Jb/+GRWv/hklv/45Nc/+Oeb//kzb7//fz7//// + ///////////////////7+fj/7d/W/+LBqv/muJj/5rqc/+PLuf/v5d7//fz7//////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////9e3n/96zlf/jk13/45Zh/9+8pf/59fH///////// + ////////8drK/+GhdP/jkln/5KJ0/+zf1//+/f3////////////x6uT/57qc/+KYZv/gkFn/4pJb/+SX + Y//ptJD/9e7q//7+/v////////////////////////////7+/f/+/fz//vz7//78+//+/fz//v7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////fy7//iwav/45Re/+OV + YP/fsJD/+fLt//////////////////TYxP/lnWz/5JZh/+u1kf/69vT////+/////////////////+vI + sv/gmmv/4pFa/+OSW//imWb/5ryg//78+/////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///6+Pb/69XH/+ekd//jlWD/5qmB//Tn3v/9/f3///////n5+P/uzrn/5p1s/+OXY//ruZj//v38//// + ///////////////////p0sH/36F2/+OSWv/jklr/4Z1u/+PJuP/+/v3///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v////br4//iq4f/45Vf/+SZZv/p0cH/+vj2///////z7ur/5rye/+ST + XP/imWb/5r6h///+/f//////////////////////7N/V/+GqhP/jkFf/5Jdi/+ewi//r39f//v7+//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////////////////////48u3/3rWY/+OVX//jlF3/4L+p//fy + 7///////7uPc/+CujP/jkFf/4Ztr/+PDrf/+/v3///////////////////////Tv7P/pvqH/5Zdi/+KZ + Zv/nv6T/+vj2//////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////////////////////////////////////+fXy/+HC + rP/jlV//45Rd/96ylf/27uj//////+zZzf/fpX7/45FY/+GecP/kzLz//v7+//////////////////// + ///9/f3/7NTF/9+phv/grYr/69fJ//////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////v59//p1cb/5Z9w/+OUXv/hqYT/9ejf///////u1MH/4J9z/+OQV//jonb/6drQ///+ + /v////////////////////////////bv6//t28//8N/T//fz8P////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////+/f3/9erj/+WtiP/jlmD/5J1u/+7Xyf/7/f7/8dG7/+Oc + a//jk1z/6LCJ//Tv6/////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////v28v/ftZf/4pZi/+OS + Wv/kvqX/8ube//DIrf/lm2j/45hk/+3Aov////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///7+PX/4MKs/+KXZP/jklv/3qR9/+S0lP/mrIP/5Jll/+GZaP/pwqj///////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////Pr5/+bSxP/knGv/4pFc/9+QWv/gkVv/35Ba/+CPWP/gnW//5sm1//// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////79/f/06uX/6K+J/+OVYP/gkVr/35Ba/+CQ + Wv/ikFj/4KJ2/+bSw/////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////////Pn2/+O4 + mv/il2T/349Y/9+QWf/gkFr/4pBZ/+Knfv/p29L///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////37+f/hwq3/4ppo/+KRWv/fj1n/349Z/+SYZf/ouJj/7+fi//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///////////////////////////////////9/Pv/5dLF/+OcbP/jklr/4pJb/+KRWv/kmmj/7saq//z8 + +/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////v39//Ho4v/nrYX/45Vg/+OT + XP/jklv/4pxs/+3LtP////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///7+ff/5rue/+KZZv/jklv/45Ja/+Cfc//qz73///////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////v39/+PEsP/hm2v/45Ja/+ORWf/fpHz/6dbJ//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////7+/f/l0cX/4p9x/+OSWf/jkVj/4aqF/+zf + 1/////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + /////////////////////////////////////////////////////////////////////v7/7uXf/+Wq + gf/jk1z/5JNc/+W1lP/w6eT///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////v6+f/qv6H/45hl/+Scav/ryK//9/Xz//////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////////////////////////////////////58u3/+Ghdf/go3n/7tfG//////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////Tu6v/m0cT/5M7A//Pr + 5f////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ///+/f3//Pr4//v5+P/9/fz///////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + //////////////////////////////////////////////////////////////////////////////// + ////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA + AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + + + \ No newline at end of file diff --git a/AIMSEntity/AIMSEntity.csproj b/AIMSEntity/AIMSEntity.csproj index 978060e..6b1c95c 100644 --- a/AIMSEntity/AIMSEntity.csproj +++ b/AIMSEntity/AIMSEntity.csproj @@ -53,10 +53,12 @@ + + @@ -514,6 +516,7 @@ + diff --git a/AIMSEntity/BLL/AutoGenerate/BOperationRecordAnalgesia.cs b/AIMSEntity/BLL/AutoGenerate/BOperationRecordAnalgesia.cs new file mode 100644 index 0000000..4dd04f3 --- /dev/null +++ b/AIMSEntity/BLL/AutoGenerate/BOperationRecordAnalgesia.cs @@ -0,0 +1,161 @@ +using System; +using AIMSDAL; +using AIMSModel; +using System.Collections; +using System.Collections.Generic; +using DrawGraph; + +namespace AIMSBLL +{ + public partial class BOperationRecordAnalgesia + { + #region 插入实体操作部份 + /// + /// 插入实体 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + public static int Insert(OperationRecordAnalgesia operationRecordAnalgesia) + { + return DOperationRecordAnalgesia.Insert(operationRecordAnalgesia); + } + #endregion + + #region 删除实体操作 + /// + /// 删除实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Delete(OperationRecordAnalgesia operationRecordAnalgesia) + { + return DOperationRecordAnalgesia.Delete(operationRecordAnalgesia); + } + /// + /// 根据对象查询语句删除 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Delete(string oql, ParameterList parameters) + { + return DOperationRecordAnalgesia.Delete(oql,parameters); + } + #endregion + + #region 更新实体操作 + + /// + /// 更新实体 + /// + /// 实体类对象 + /// 影响的记录行数 + public static int Update(OperationRecordAnalgesia operationRecordAnalgesia) + { + return DOperationRecordAnalgesia.Update(operationRecordAnalgesia); + } + + /// + /// 根据对象查询语句更新实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + public static int Update(string oql, ParameterList parameters) + { + return DOperationRecordAnalgesia.Update(oql,parameters); + } + #endregion + + #region 查询实体集合 + /// + /// \查询实体集合 + /// + /// 实体类对象集合 + public static List Select() + { + return DOperationRecordAnalgesia.Select(); + } + /// + /// 递归查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecordAnalgesia.Select(recursiveType, recursiveDepth); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters) + { + return DOperationRecordAnalgesia.Select(oql, parameters); + } + + /// + /// 根据对象查询语句递归查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecordAnalgesia.Select(oql, parameters, recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + /// + /// 更据对象查询语句查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + public static OperationRecordAnalgesia SelectSingle(string oql, ParameterList parameters) + { + return DOperationRecordAnalgesia.SelectSingle(oql, parameters); + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static OperationRecordAnalgesia SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecordAnalgesia.SelectSingle(oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + public static OperationRecordAnalgesia SelectSingle(int? id) + { + return DOperationRecordAnalgesia.SelectSingle(id); + } + + /// + /// 更据主键递归查询单个实体 + /// + /// 递归类型 + /// 递归深度 + /// 实体对象 + public static OperationRecordAnalgesia SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) + { + return DOperationRecordAnalgesia.SelectSingle(id, recursiveType, recursiveDepth); + } + #endregion + } +} diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs index eff9d9b..ca68676 100644 --- a/AIMSEntity/BLL/Extension/BOperationRecord.cs +++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs @@ -38,33 +38,6 @@ namespace AIMSBLL { _record.Breath = "10"; } - List InstrumentLists = BOperationRecordInstrumentList.Select(" OperationRecordId=" + Convert.ToInt32(_record.Id), null); - if (InstrumentLists != null && InstrumentLists.Count > 0) - { - _record.InstrumentList = InstrumentLists[0]; - //if (_record.InstrumentList != null) - //{ - _record.InstrumentList.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList.Id)); - //} - //else - //{ - // _record.InstrumentList = new OperationRecordInstrumentList(); - // _record.InstrumentList.OperationRecordId = _record.Id; - // _record.InstrumentList.OperatorNo = PublicMethod.OperatorNo; - // _record.InstrumentList.OperatorName = PublicMethod.OperatorName; - // _record.InstrumentList.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList); - //} - } - if (InstrumentLists != null && InstrumentLists.Count > 1) - { - _record.InstrumentList2 = InstrumentLists[1]; - //if (_record.InstrumentList2 != null) - //{ - _record.InstrumentList2.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList2.Id)); - //} - - } - if (_record.InRoomTime != null) _record.OperationDate = _record.InRoomTime.Value.ToShortDateString(); @@ -147,6 +120,11 @@ namespace AIMSBLL _record.OperationRoom = OperationDoingdt.Rows[0]["OperationRoom"].ToString().Trim(); } + if (_record.InRoomTime != null) + { + _record.OpeDay = _record.InRoomTime.Value.ToString("yyyy-MM-dd"); + } + _record.OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null); if (_record.OpeRecordInfo == null || _record.OpeRecordInfo.Id == null) { @@ -162,6 +140,18 @@ namespace AIMSBLL _record.OpeRecordInfo.OperatorTime = DateTime.Now; _record.OpeRecordInfo.Id = BOperationRecordInfo.Insert(_record.OpeRecordInfo); } + _record.AnalgesiaRecord = BOperationRecordAnalgesia.SelectSingle("OperationRecordId=" + _record.Id, null); + if (_record.AnalgesiaRecord == null || _record.AnalgesiaRecord.Id == null) + { + _record.AnalgesiaRecord = new OperationRecordAnalgesia(); + _record.AnalgesiaRecord.OperationRecordId = _record.Id; + _record.AnalgesiaRecord.PatientId = PatientId; + _record.AnalgesiaRecord.ApplyId = _record.OperationApplyId; + _record.AnalgesiaRecord.IsValid = 1; + _record.AnalgesiaRecord.OperatorId = PublicMethod.OperatorId; + _record.AnalgesiaRecord.OperatorTime = DateTime.Now; + _record.AnalgesiaRecord.Id = BOperationRecordAnalgesia.Insert(_record.AnalgesiaRecord); + } _record.FactBloodGasAnalysisList = BFactBloodGasAnalysis.Select("OperationRecordId=" + _record.Id, null); foreach (var item in _record.FactBloodGasAnalysisList) { @@ -272,10 +262,39 @@ namespace AIMSBLL } + + List InstrumentLists = BOperationRecordInstrumentList.Select(" OperationRecordId=" + Convert.ToInt32(_record.Id), null); + if (InstrumentLists != null && InstrumentLists.Count > 0) + { + _record.InstrumentList = InstrumentLists[0]; + //if (_record.InstrumentList != null) + //{ + _record.InstrumentList.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList.Id)); + //} + //else + //{ + // _record.InstrumentList = new OperationRecordInstrumentList(); + // _record.InstrumentList.OperationRecordId = _record.Id; + // _record.InstrumentList.OperatorNo = PublicMethod.OperatorNo; + // _record.InstrumentList.OperatorName = PublicMethod.OperatorName; + // _record.InstrumentList.Id = BOperationRecordInstrumentList.Insert(_record.InstrumentList); + //} + } + if (InstrumentLists != null && InstrumentLists.Count > 1) + { + _record.InstrumentList2 = InstrumentLists[1]; + //if (_record.InstrumentList2 != null) + //{ + _record.InstrumentList2.ApplianceRecordList = BApplianceRecord.GetApplianceRecordById(Convert.ToInt32(_record.Id), Convert.ToInt32(_record.InstrumentList2.Id)); + //} + + } + + if ((_record.ASALevel == null || _record.ASALevel == 0) && ASALevel != "") BOperationReview.GetASALevel(PatientId, _record, ASALevel); else if (_record.ASALevel == null || _record.ASALevel == 0) - BOperationReview.GetASALevel(PatientId, _record); + BOperationReview.GetASALevel(PatientId, _record); return _record; } diff --git a/AIMSEntity/DAL/AutoGenerate/DOperationRecordAnalgesia.cs b/AIMSEntity/DAL/AutoGenerate/DOperationRecordAnalgesia.cs new file mode 100644 index 0000000..0b98981 --- /dev/null +++ b/AIMSEntity/DAL/AutoGenerate/DOperationRecordAnalgesia.cs @@ -0,0 +1,832 @@ +using System; +using System.Data; +using System.Data.SqlClient; +using System.Collections; +using AIMSModel; +using AIMSObjectQuery; +using System.Collections.Generic; +using DrawGraph; + +namespace AIMSDAL +{ + internal partial class DOperationRecordAnalgesia + { + #region 插入实体操作部份 + /// + /// 插入 + /// + /// Command对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(SqlCommand cmd, OperationRecordAnalgesia operationRecordAnalgesia) + { + cmd.Parameters.Clear(); + cmd.CommandText = "insert into OperationRecordAnalgesia (PatientId,ApplyId,OperationRecordId,ProhibitedDrinkingTime,ProhibitedEatingTime,Consciousness,NutritionalDevelopment,Pregnancy,LooseDenture,DifficultyOpeningMouth,MouthOpeningDegree,AirwayAssessment,DrugAllergy,HeartFunction,Hypertension,AnesthesiaSurgeryHistory,AnesthesiaSurgeryHistoryDetails,CardiovascularSystem,CardiovascularSystemDetails,RespiratorySystem,RespiratorySystemDetails,EndocrineSystem,EndocrineSystemDetails,ASAClassification,SedationAnalgesiaPlan,OtherSpecialConditions,PatientOutcome,PainScore,HighFallRisk,Evaluator,PostoperativeMonitoringDoctor,StewardScoreDischarge,AssessmentTime,IsValid,OperatorId,OperatorTime,Remark,Extend1,Extend2,Extend3,Extend4,Extend5) values (@PatientId,@ApplyId,@OperationRecordId,@ProhibitedDrinkingTime,@ProhibitedEatingTime,@Consciousness,@NutritionalDevelopment,@Pregnancy,@LooseDenture,@DifficultyOpeningMouth,@MouthOpeningDegree,@AirwayAssessment,@DrugAllergy,@HeartFunction,@Hypertension,@AnesthesiaSurgeryHistory,@AnesthesiaSurgeryHistoryDetails,@CardiovascularSystem,@CardiovascularSystemDetails,@RespiratorySystem,@RespiratorySystemDetails,@EndocrineSystem,@EndocrineSystemDetails,@ASAClassification,@SedationAnalgesiaPlan,@OtherSpecialConditions,@PatientOutcome,@PainScore,@HighFallRisk,@Evaluator,@PostoperativeMonitoringDoctor,@StewardScoreDischarge,@AssessmentTime,@IsValid,@OperatorId,@OperatorTime,@Remark,@Extend1,@Extend2,@Extend3,@Extend4,@Extend5);select @@identity"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecordAnalgesia.PatientId.HasValue?(object)operationRecordAnalgesia.PatientId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ApplyId",operationRecordAnalgesia.ApplyId.HasValue?(object)operationRecordAnalgesia.ApplyId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecordAnalgesia.OperationRecordId.HasValue?(object)operationRecordAnalgesia.OperationRecordId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ProhibitedDrinkingTime",operationRecordAnalgesia.ProhibitedDrinkingTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ProhibitedDrinkingTime)); + cmd.Parameters.Add(new SqlParameter("@ProhibitedEatingTime",operationRecordAnalgesia.ProhibitedEatingTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ProhibitedEatingTime)); + cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecordAnalgesia.Consciousness==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Consciousness)); + cmd.Parameters.Add(new SqlParameter("@NutritionalDevelopment",operationRecordAnalgesia.NutritionalDevelopment==null?(object)DBNull.Value:(object)operationRecordAnalgesia.NutritionalDevelopment)); + cmd.Parameters.Add(new SqlParameter("@Pregnancy",operationRecordAnalgesia.Pregnancy==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Pregnancy)); + cmd.Parameters.Add(new SqlParameter("@LooseDenture",operationRecordAnalgesia.LooseDenture==null?(object)DBNull.Value:(object)operationRecordAnalgesia.LooseDenture)); + cmd.Parameters.Add(new SqlParameter("@DifficultyOpeningMouth",operationRecordAnalgesia.DifficultyOpeningMouth==null?(object)DBNull.Value:(object)operationRecordAnalgesia.DifficultyOpeningMouth)); + cmd.Parameters.Add(new SqlParameter("@MouthOpeningDegree",operationRecordAnalgesia.MouthOpeningDegree==null?(object)DBNull.Value:(object)operationRecordAnalgesia.MouthOpeningDegree)); + cmd.Parameters.Add(new SqlParameter("@AirwayAssessment",operationRecordAnalgesia.AirwayAssessment==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AirwayAssessment)); + cmd.Parameters.Add(new SqlParameter("@DrugAllergy",operationRecordAnalgesia.DrugAllergy==null?(object)DBNull.Value:(object)operationRecordAnalgesia.DrugAllergy)); + cmd.Parameters.Add(new SqlParameter("@HeartFunction",operationRecordAnalgesia.HeartFunction==null?(object)DBNull.Value:(object)operationRecordAnalgesia.HeartFunction)); + cmd.Parameters.Add(new SqlParameter("@Hypertension",operationRecordAnalgesia.Hypertension==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Hypertension)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaSurgeryHistory",operationRecordAnalgesia.AnesthesiaSurgeryHistory==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AnesthesiaSurgeryHistory)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaSurgeryHistoryDetails",operationRecordAnalgesia.AnesthesiaSurgeryHistoryDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AnesthesiaSurgeryHistoryDetails)); + cmd.Parameters.Add(new SqlParameter("@CardiovascularSystem",operationRecordAnalgesia.CardiovascularSystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.CardiovascularSystem)); + cmd.Parameters.Add(new SqlParameter("@CardiovascularSystemDetails",operationRecordAnalgesia.CardiovascularSystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.CardiovascularSystemDetails)); + cmd.Parameters.Add(new SqlParameter("@RespiratorySystem",operationRecordAnalgesia.RespiratorySystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.RespiratorySystem)); + cmd.Parameters.Add(new SqlParameter("@RespiratorySystemDetails",operationRecordAnalgesia.RespiratorySystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.RespiratorySystemDetails)); + cmd.Parameters.Add(new SqlParameter("@EndocrineSystem",operationRecordAnalgesia.EndocrineSystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.EndocrineSystem)); + cmd.Parameters.Add(new SqlParameter("@EndocrineSystemDetails",operationRecordAnalgesia.EndocrineSystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.EndocrineSystemDetails)); + cmd.Parameters.Add(new SqlParameter("@ASAClassification",operationRecordAnalgesia.ASAClassification==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ASAClassification)); + cmd.Parameters.Add(new SqlParameter("@SedationAnalgesiaPlan",operationRecordAnalgesia.SedationAnalgesiaPlan==null?(object)DBNull.Value:(object)operationRecordAnalgesia.SedationAnalgesiaPlan)); + cmd.Parameters.Add(new SqlParameter("@OtherSpecialConditions",operationRecordAnalgesia.OtherSpecialConditions==null?(object)DBNull.Value:(object)operationRecordAnalgesia.OtherSpecialConditions)); + cmd.Parameters.Add(new SqlParameter("@PatientOutcome",operationRecordAnalgesia.PatientOutcome==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PatientOutcome)); + cmd.Parameters.Add(new SqlParameter("@PainScore",operationRecordAnalgesia.PainScore==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PainScore)); + cmd.Parameters.Add(new SqlParameter("@HighFallRisk",operationRecordAnalgesia.HighFallRisk==null?(object)DBNull.Value:(object)operationRecordAnalgesia.HighFallRisk)); + cmd.Parameters.Add(new SqlParameter("@Evaluator",operationRecordAnalgesia.Evaluator==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Evaluator)); + cmd.Parameters.Add(new SqlParameter("@PostoperativeMonitoringDoctor",operationRecordAnalgesia.PostoperativeMonitoringDoctor==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PostoperativeMonitoringDoctor)); + cmd.Parameters.Add(new SqlParameter("@StewardScoreDischarge",operationRecordAnalgesia.StewardScoreDischarge==null?(object)DBNull.Value:(object)operationRecordAnalgesia.StewardScoreDischarge)); + cmd.Parameters.Add(new SqlParameter("@AssessmentTime",operationRecordAnalgesia.AssessmentTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AssessmentTime)); + cmd.Parameters.Add(new SqlParameter("@IsValid",operationRecordAnalgesia.IsValid.HasValue?(object)operationRecordAnalgesia.IsValid.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorId",operationRecordAnalgesia.OperatorId.HasValue?(object)operationRecordAnalgesia.OperatorId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorTime",operationRecordAnalgesia.OperatorTime.HasValue?(object)operationRecordAnalgesia.OperatorTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@Remark",operationRecordAnalgesia.Remark==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Remark)); + cmd.Parameters.Add(new SqlParameter("@Extend1",operationRecordAnalgesia.Extend1==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend1)); + cmd.Parameters.Add(new SqlParameter("@Extend2",operationRecordAnalgesia.Extend2==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend2)); + cmd.Parameters.Add(new SqlParameter("@Extend3",operationRecordAnalgesia.Extend3==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend3)); + cmd.Parameters.Add(new SqlParameter("@Extend4",operationRecordAnalgesia.Extend4==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend4)); + cmd.Parameters.Add(new SqlParameter("@Extend5",operationRecordAnalgesia.Extend5==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend5)); + return Convert.ToInt32(cmd.ExecuteScalar()); + } + /// + /// 不使用事务的插入方法 + /// + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(OperationRecordAnalgesia operationRecordAnalgesia) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return Insert(cmd, operationRecordAnalgesia); + } + } + } + + /// + /// 使用事务的插入方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 标识列值或影响的记录行数 + internal static int Insert(Connection connection,OperationRecordAnalgesia operationRecordAnalgesia) + { + return Insert(connection.Command, operationRecordAnalgesia); + } + #endregion + + #region 删除实体操作 + + /// + /// 删除 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int ExcuteDeleteCommand(SqlCommand cmd, OperationRecordAnalgesia operationRecordAnalgesia) + { + cmd.Parameters.Clear(); + cmd.CommandText = "delete from OperationRecordAnalgesia where Id=@Id"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@Id", operationRecordAnalgesia.Id)); + return cmd.ExecuteNonQuery(); + } + /// + /// 不使用事务的删除方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(OperationRecordAnalgesia operationRecordAnalgesia) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteDeleteCommand(cmd, operationRecordAnalgesia); + } + } + } + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Delete(Connection connection,OperationRecordAnalgesia operationRecordAnalgesia) + { + return ExcuteDeleteCommand(connection.Command, operationRecordAnalgesia); + } + + /// + /// 执行删除命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int ExcuteDeleteCommand(SqlCommand cmd, string oql, ParameterList parameters) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordAnalgesiaMap()); + if (filterString != string.Empty) + { + filterString = " where " + filterString; + } + cmd.Parameters.Clear(); + cmd.CommandText = "delete from OperationRecordAnalgesia " + filterString; + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return cmd.ExecuteNonQuery(); + } + + /// + /// 不使用事务的删除方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Delete(string oql, ParameterList parameters) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteDeleteCommand(cmd, oql, parameters); + } + } + } + + /// + /// 使用事务的删除方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Delete(Connection connection, string oql, ParameterList parameters) + { + return ExcuteDeleteCommand(connection.Command, oql, parameters); + } + + #endregion + + #region 更新实体操作 + + /// + /// 更新 + /// + /// Command对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int ExcuteUpdateCommand(SqlCommand cmd, OperationRecordAnalgesia operationRecordAnalgesia) + { + cmd.CommandText = "update OperationRecordAnalgesia set PatientId=@PatientId,ApplyId=@ApplyId,OperationRecordId=@OperationRecordId,ProhibitedDrinkingTime=@ProhibitedDrinkingTime,ProhibitedEatingTime=@ProhibitedEatingTime,Consciousness=@Consciousness,NutritionalDevelopment=@NutritionalDevelopment,Pregnancy=@Pregnancy,LooseDenture=@LooseDenture,DifficultyOpeningMouth=@DifficultyOpeningMouth,MouthOpeningDegree=@MouthOpeningDegree,AirwayAssessment=@AirwayAssessment,DrugAllergy=@DrugAllergy,HeartFunction=@HeartFunction,Hypertension=@Hypertension,AnesthesiaSurgeryHistory=@AnesthesiaSurgeryHistory,AnesthesiaSurgeryHistoryDetails=@AnesthesiaSurgeryHistoryDetails,CardiovascularSystem=@CardiovascularSystem,CardiovascularSystemDetails=@CardiovascularSystemDetails,RespiratorySystem=@RespiratorySystem,RespiratorySystemDetails=@RespiratorySystemDetails,EndocrineSystem=@EndocrineSystem,EndocrineSystemDetails=@EndocrineSystemDetails,ASAClassification=@ASAClassification,SedationAnalgesiaPlan=@SedationAnalgesiaPlan,OtherSpecialConditions=@OtherSpecialConditions,PatientOutcome=@PatientOutcome,PainScore=@PainScore,HighFallRisk=@HighFallRisk,Evaluator=@Evaluator,PostoperativeMonitoringDoctor=@PostoperativeMonitoringDoctor,StewardScoreDischarge=@StewardScoreDischarge,AssessmentTime=@AssessmentTime,IsValid=@IsValid,OperatorId=@OperatorId,OperatorTime=@OperatorTime,Remark=@Remark,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5 where Id=@Id"; + //从实体中取出值放入Command的参数列表 + cmd.Parameters.Add(new SqlParameter("@PatientId",operationRecordAnalgesia.PatientId.HasValue?(object)operationRecordAnalgesia.PatientId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ApplyId",operationRecordAnalgesia.ApplyId.HasValue?(object)operationRecordAnalgesia.ApplyId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperationRecordId",operationRecordAnalgesia.OperationRecordId.HasValue?(object)operationRecordAnalgesia.OperationRecordId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@ProhibitedDrinkingTime",operationRecordAnalgesia.ProhibitedDrinkingTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ProhibitedDrinkingTime)); + cmd.Parameters.Add(new SqlParameter("@ProhibitedEatingTime",operationRecordAnalgesia.ProhibitedEatingTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ProhibitedEatingTime)); + cmd.Parameters.Add(new SqlParameter("@Consciousness",operationRecordAnalgesia.Consciousness==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Consciousness)); + cmd.Parameters.Add(new SqlParameter("@NutritionalDevelopment",operationRecordAnalgesia.NutritionalDevelopment==null?(object)DBNull.Value:(object)operationRecordAnalgesia.NutritionalDevelopment)); + cmd.Parameters.Add(new SqlParameter("@Pregnancy",operationRecordAnalgesia.Pregnancy==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Pregnancy)); + cmd.Parameters.Add(new SqlParameter("@LooseDenture",operationRecordAnalgesia.LooseDenture==null?(object)DBNull.Value:(object)operationRecordAnalgesia.LooseDenture)); + cmd.Parameters.Add(new SqlParameter("@DifficultyOpeningMouth",operationRecordAnalgesia.DifficultyOpeningMouth==null?(object)DBNull.Value:(object)operationRecordAnalgesia.DifficultyOpeningMouth)); + cmd.Parameters.Add(new SqlParameter("@MouthOpeningDegree",operationRecordAnalgesia.MouthOpeningDegree==null?(object)DBNull.Value:(object)operationRecordAnalgesia.MouthOpeningDegree)); + cmd.Parameters.Add(new SqlParameter("@AirwayAssessment",operationRecordAnalgesia.AirwayAssessment==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AirwayAssessment)); + cmd.Parameters.Add(new SqlParameter("@DrugAllergy",operationRecordAnalgesia.DrugAllergy==null?(object)DBNull.Value:(object)operationRecordAnalgesia.DrugAllergy)); + cmd.Parameters.Add(new SqlParameter("@HeartFunction",operationRecordAnalgesia.HeartFunction==null?(object)DBNull.Value:(object)operationRecordAnalgesia.HeartFunction)); + cmd.Parameters.Add(new SqlParameter("@Hypertension",operationRecordAnalgesia.Hypertension==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Hypertension)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaSurgeryHistory",operationRecordAnalgesia.AnesthesiaSurgeryHistory==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AnesthesiaSurgeryHistory)); + cmd.Parameters.Add(new SqlParameter("@AnesthesiaSurgeryHistoryDetails",operationRecordAnalgesia.AnesthesiaSurgeryHistoryDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AnesthesiaSurgeryHistoryDetails)); + cmd.Parameters.Add(new SqlParameter("@CardiovascularSystem",operationRecordAnalgesia.CardiovascularSystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.CardiovascularSystem)); + cmd.Parameters.Add(new SqlParameter("@CardiovascularSystemDetails",operationRecordAnalgesia.CardiovascularSystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.CardiovascularSystemDetails)); + cmd.Parameters.Add(new SqlParameter("@RespiratorySystem",operationRecordAnalgesia.RespiratorySystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.RespiratorySystem)); + cmd.Parameters.Add(new SqlParameter("@RespiratorySystemDetails",operationRecordAnalgesia.RespiratorySystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.RespiratorySystemDetails)); + cmd.Parameters.Add(new SqlParameter("@EndocrineSystem",operationRecordAnalgesia.EndocrineSystem==null?(object)DBNull.Value:(object)operationRecordAnalgesia.EndocrineSystem)); + cmd.Parameters.Add(new SqlParameter("@EndocrineSystemDetails",operationRecordAnalgesia.EndocrineSystemDetails==null?(object)DBNull.Value:(object)operationRecordAnalgesia.EndocrineSystemDetails)); + cmd.Parameters.Add(new SqlParameter("@ASAClassification",operationRecordAnalgesia.ASAClassification==null?(object)DBNull.Value:(object)operationRecordAnalgesia.ASAClassification)); + cmd.Parameters.Add(new SqlParameter("@SedationAnalgesiaPlan",operationRecordAnalgesia.SedationAnalgesiaPlan==null?(object)DBNull.Value:(object)operationRecordAnalgesia.SedationAnalgesiaPlan)); + cmd.Parameters.Add(new SqlParameter("@OtherSpecialConditions",operationRecordAnalgesia.OtherSpecialConditions==null?(object)DBNull.Value:(object)operationRecordAnalgesia.OtherSpecialConditions)); + cmd.Parameters.Add(new SqlParameter("@PatientOutcome",operationRecordAnalgesia.PatientOutcome==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PatientOutcome)); + cmd.Parameters.Add(new SqlParameter("@PainScore",operationRecordAnalgesia.PainScore==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PainScore)); + cmd.Parameters.Add(new SqlParameter("@HighFallRisk",operationRecordAnalgesia.HighFallRisk==null?(object)DBNull.Value:(object)operationRecordAnalgesia.HighFallRisk)); + cmd.Parameters.Add(new SqlParameter("@Evaluator",operationRecordAnalgesia.Evaluator==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Evaluator)); + cmd.Parameters.Add(new SqlParameter("@PostoperativeMonitoringDoctor",operationRecordAnalgesia.PostoperativeMonitoringDoctor==null?(object)DBNull.Value:(object)operationRecordAnalgesia.PostoperativeMonitoringDoctor)); + cmd.Parameters.Add(new SqlParameter("@StewardScoreDischarge",operationRecordAnalgesia.StewardScoreDischarge==null?(object)DBNull.Value:(object)operationRecordAnalgesia.StewardScoreDischarge)); + cmd.Parameters.Add(new SqlParameter("@AssessmentTime",operationRecordAnalgesia.AssessmentTime==null?(object)DBNull.Value:(object)operationRecordAnalgesia.AssessmentTime)); + cmd.Parameters.Add(new SqlParameter("@IsValid",operationRecordAnalgesia.IsValid.HasValue?(object)operationRecordAnalgesia.IsValid.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorId",operationRecordAnalgesia.OperatorId.HasValue?(object)operationRecordAnalgesia.OperatorId.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@OperatorTime",operationRecordAnalgesia.OperatorTime.HasValue?(object)operationRecordAnalgesia.OperatorTime.Value:(object)DBNull.Value)); + cmd.Parameters.Add(new SqlParameter("@Remark",operationRecordAnalgesia.Remark==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Remark)); + cmd.Parameters.Add(new SqlParameter("@Extend1",operationRecordAnalgesia.Extend1==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend1)); + cmd.Parameters.Add(new SqlParameter("@Extend2",operationRecordAnalgesia.Extend2==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend2)); + cmd.Parameters.Add(new SqlParameter("@Extend3",operationRecordAnalgesia.Extend3==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend3)); + cmd.Parameters.Add(new SqlParameter("@Extend4",operationRecordAnalgesia.Extend4==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend4)); + cmd.Parameters.Add(new SqlParameter("@Extend5",operationRecordAnalgesia.Extend5==null?(object)DBNull.Value:(object)operationRecordAnalgesia.Extend5)); + cmd.Parameters.Add(new SqlParameter("@Id", operationRecordAnalgesia.Id)); + return cmd.ExecuteNonQuery(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(OperationRecordAnalgesia operationRecordAnalgesia) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteUpdateCommand(cmd, operationRecordAnalgesia); + } + } + } + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 实体类对象 + /// 影响的记录行数 + internal static int Update(Connection connection,OperationRecordAnalgesia operationRecordAnalgesia) + { + return ExcuteUpdateCommand(connection.Command, operationRecordAnalgesia); + } + /// + /// 执行更新命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int ExcuteUpdateCommand(SqlCommand cmd, string oql, ParameterList parameters) + { + //解析过滤部份Sql语句 + string updateString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordAnalgesiaMap()); + cmd.CommandText = "update OperationRecordAnalgesia set " + updateString; + cmd.Parameters.Clear(); + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return cmd.ExecuteNonQuery(); + } + + /// + /// 不使用事务的更新方法 + /// + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Update(string oql, ParameterList parameters) + { + using (SqlConnection conn = new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteUpdateCommand(cmd, oql, parameters); + } + } + } + + /// + /// 使用事务的更新方法 + /// + /// 实现共享Connection的对象 + /// 对象查询语句 + /// 参数列表 + /// 影响的记录行数 + internal static int Update(Connection connection, string oql, ParameterList parameters) + { + return ExcuteUpdateCommand(connection.Command, oql, parameters); + } + #endregion + + #region 查询实体集合 + /// + /// 执行Command获取对象列表 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体类对象列表 + internal static List ExcuteSelectCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth) + { + List operationRecordAnalgesiaList = new List(); + using (SqlDataReader dr = cmd.ExecuteReader()) + { + while (dr.Read()) + { + OperationRecordAnalgesia operationRecordAnalgesia = DataReaderToEntity(dr); + operationRecordAnalgesiaList.Add(operationRecordAnalgesia); + } + } + return operationRecordAnalgesiaList; + } + /// + /// 执行查询命令 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List ExcuteSelectCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordAnalgesiaMap()); + if (filterString != string.Empty) + { + if(filterString.Trim().ToLower().IndexOf("order ")!=0) + filterString = " where " + filterString; + } + cmd.Parameters.Clear(); + cmd.CommandText = "select * from OperationRecordAnalgesia " + filterString; + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth); + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 实体类对象集合 + internal static List Select() + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + cmd.CommandText = "select * from OperationRecordAnalgesia"; + return ExcuteSelectCommand(cmd, RecursiveType.Parent, 1); + } + } + } + /// + /// 根据对象查询语句查询实体集合 + /// + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(RecursiveType recursiveType, int recursiveDepth) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + cmd.CommandText = "select * from OperationRecordAnalgesia"; + return ExcuteSelectCommand(cmd, recursiveType, recursiveDepth); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 实体类对象集合 + internal static List Select(string oql, ParameterList parameters) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteSelectCommand(cmd, oql, parameters, RecursiveType.Parent, 1); + } + } + } + + /// + /// 根据对象查询语句查询实体集合 + /// + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteSelectCommand(cmd, oql, parameters, recursiveType, recursiveDepth); + } + } + } + + /// + /// 根据对象查询语句查询实体集合(启用事务) + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体类对象集合 + internal static List Select(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectCommand(connection.Command, oql, parameters,recursiveType, recursiveDepth); + } + #endregion + + #region 查询单个实体 + + /// + /// 递归查询单个实体 + /// + /// Command对象 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecordAnalgesia ExcuteSelectSingleCommand(SqlCommand cmd,RecursiveType recursiveType,int recursiveDepth) + { + OperationRecordAnalgesia operationRecordAnalgesia=null; + using (SqlDataReader dr = cmd.ExecuteReader()) + { + if(dr.Read()) + operationRecordAnalgesia = DataReaderToEntity(dr); + } + if(operationRecordAnalgesia==null) + return operationRecordAnalgesia; + return operationRecordAnalgesia; + } + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecordAnalgesia ExcuteSelectSingleCommand(SqlCommand cmd, string oql, ParameterList parameters,RecursiveType recursiveType,int recursiveDepth) + { + //解析过滤部份Sql语句 + string filterString = SyntaxAnalyzer.ParseSql(oql, new OperationRecordAnalgesiaMap()); + if(filterString!=string.Empty) + { + filterString=" where "+filterString; + } + cmd.CommandText = "select * from OperationRecordAnalgesia " + filterString; + cmd.Parameters.Clear(); + //添加参数 + if (parameters != null) + { + foreach (string key in parameters.Keys) + { + cmd.Parameters.Add(new SqlParameter(key, parameters[key])); + } + } + return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth); + } + + /// + /// 更据对象查询语句递归查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecordAnalgesia SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return ExcuteSelectSingleCommand(cmd, oql, parameters, recursiveType, recursiveDepth); + } + } + } + + /// + /// 更据对象查询语句查询单个实体 + /// + /// Command对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static OperationRecordAnalgesia SelectSingle(string oql, ParameterList parameters) + { + return SelectSingle(oql,parameters,RecursiveType.Parent,1); + } + + /// + /// 更据对象查询语句并启用事务查询单个实体 + /// + /// 连接对象 + /// 对象查询语句 + /// 参数列表 + /// 实体对象 + internal static OperationRecordAnalgesia SelectSingle(Connection connection, string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) + { + return ExcuteSelectSingleCommand(connection.Command, oql, parameters, recursiveType, recursiveDepth); + } + + /// + /// 更据主键值递归查询单个实体 + /// + /// Command对象 + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体对象 + internal static OperationRecordAnalgesia SelectSingle(SqlCommand cmd, int? id,RecursiveType recursiveType,int recursiveDepth) + { + cmd.Parameters.Clear(); + if(id.HasValue) + { + cmd.CommandText = "select * from OperationRecordAnalgesia where Id=@pk"; + cmd.Parameters.Add(new SqlParameter("@pk",id.Value)); + } + else + { + cmd.CommandText = "select * from OperationRecordAnalgesia where Id is null"; + } + return ExcuteSelectSingleCommand(cmd, recursiveType, recursiveDepth); + } + + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 实体类对象 + internal static OperationRecordAnalgesia SelectSingle(int? id) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return SelectSingle(cmd,id,RecursiveType.Parent,1); + } + } + } + /// + /// 按主键字段查询特定实体 + /// + /// 主键值 + /// 递归类型 + /// 递归深度 + /// 实体类对象 + internal static OperationRecordAnalgesia SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) + { + using(SqlConnection conn=new SqlConnection(Connection.ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + return SelectSingle(cmd,id, recursiveType, recursiveDepth); + } + } + } + + /// + /// 使用事务并按主键字段查询特定实体 + /// + /// 连接对象 + /// 主键值 + /// 实体类对象 + internal static OperationRecordAnalgesia SelectSingle(Connection connection,int? id, RecursiveType recursiveType, int recursiveDepth) + { + return SelectSingle(connection.Command, id, recursiveType, recursiveDepth); + } + #endregion + + + /// + /// 从DataReader中取出值生成实体对象 + /// + /// 查询对象 + /// 过滤条件字符串 + private static OperationRecordAnalgesia DataReaderToEntity(SqlDataReader dr) + { + OperationRecordAnalgesia entity = new OperationRecordAnalgesia (); + if(dr["Id"]!=System.DBNull.Value) + { + entity.Id=Convert.ToInt32(dr["Id"]); + } + if(dr["PatientId"]!=System.DBNull.Value) + { + entity.PatientId=Convert.ToInt32(dr["PatientId"]); + } + if(dr["ApplyId"]!=System.DBNull.Value) + { + entity.ApplyId=Convert.ToInt32(dr["ApplyId"]); + } + if(dr["OperationRecordId"]!=System.DBNull.Value) + { + entity.OperationRecordId=Convert.ToInt32(dr["OperationRecordId"]); + } + if(dr["ProhibitedDrinkingTime"]!=System.DBNull.Value) + { + entity.ProhibitedDrinkingTime=dr["ProhibitedDrinkingTime"].ToString(); + } + if(dr["ProhibitedEatingTime"]!=System.DBNull.Value) + { + entity.ProhibitedEatingTime=dr["ProhibitedEatingTime"].ToString(); + } + if(dr["Consciousness"]!=System.DBNull.Value) + { + entity.Consciousness=dr["Consciousness"].ToString(); + } + if(dr["NutritionalDevelopment"]!=System.DBNull.Value) + { + entity.NutritionalDevelopment=dr["NutritionalDevelopment"].ToString(); + } + if(dr["Pregnancy"]!=System.DBNull.Value) + { + entity.Pregnancy=dr["Pregnancy"].ToString(); + } + if(dr["LooseDenture"]!=System.DBNull.Value) + { + entity.LooseDenture=dr["LooseDenture"].ToString(); + } + if(dr["DifficultyOpeningMouth"]!=System.DBNull.Value) + { + entity.DifficultyOpeningMouth=dr["DifficultyOpeningMouth"].ToString(); + } + if(dr["MouthOpeningDegree"]!=System.DBNull.Value) + { + entity.MouthOpeningDegree=dr["MouthOpeningDegree"].ToString(); + } + if(dr["AirwayAssessment"]!=System.DBNull.Value) + { + entity.AirwayAssessment=dr["AirwayAssessment"].ToString(); + } + if(dr["DrugAllergy"]!=System.DBNull.Value) + { + entity.DrugAllergy=dr["DrugAllergy"].ToString(); + } + if(dr["HeartFunction"]!=System.DBNull.Value) + { + entity.HeartFunction=dr["HeartFunction"].ToString(); + } + if(dr["Hypertension"]!=System.DBNull.Value) + { + entity.Hypertension=dr["Hypertension"].ToString(); + } + if(dr["AnesthesiaSurgeryHistory"]!=System.DBNull.Value) + { + entity.AnesthesiaSurgeryHistory=dr["AnesthesiaSurgeryHistory"].ToString(); + } + if(dr["AnesthesiaSurgeryHistoryDetails"]!=System.DBNull.Value) + { + entity.AnesthesiaSurgeryHistoryDetails=dr["AnesthesiaSurgeryHistoryDetails"].ToString(); + } + if(dr["CardiovascularSystem"]!=System.DBNull.Value) + { + entity.CardiovascularSystem=dr["CardiovascularSystem"].ToString(); + } + if(dr["CardiovascularSystemDetails"]!=System.DBNull.Value) + { + entity.CardiovascularSystemDetails=dr["CardiovascularSystemDetails"].ToString(); + } + if(dr["RespiratorySystem"]!=System.DBNull.Value) + { + entity.RespiratorySystem=dr["RespiratorySystem"].ToString(); + } + if(dr["RespiratorySystemDetails"]!=System.DBNull.Value) + { + entity.RespiratorySystemDetails=dr["RespiratorySystemDetails"].ToString(); + } + if(dr["EndocrineSystem"]!=System.DBNull.Value) + { + entity.EndocrineSystem=dr["EndocrineSystem"].ToString(); + } + if(dr["EndocrineSystemDetails"]!=System.DBNull.Value) + { + entity.EndocrineSystemDetails=dr["EndocrineSystemDetails"].ToString(); + } + if(dr["ASAClassification"]!=System.DBNull.Value) + { + entity.ASAClassification=dr["ASAClassification"].ToString(); + } + if(dr["SedationAnalgesiaPlan"]!=System.DBNull.Value) + { + entity.SedationAnalgesiaPlan=dr["SedationAnalgesiaPlan"].ToString(); + } + if(dr["OtherSpecialConditions"]!=System.DBNull.Value) + { + entity.OtherSpecialConditions=dr["OtherSpecialConditions"].ToString(); + } + if(dr["PatientOutcome"]!=System.DBNull.Value) + { + entity.PatientOutcome=dr["PatientOutcome"].ToString(); + } + if(dr["PainScore"]!=System.DBNull.Value) + { + entity.PainScore=dr["PainScore"].ToString(); + } + if(dr["HighFallRisk"]!=System.DBNull.Value) + { + entity.HighFallRisk=dr["HighFallRisk"].ToString(); + } + if(dr["Evaluator"]!=System.DBNull.Value) + { + entity.Evaluator=dr["Evaluator"].ToString(); + } + if(dr["PostoperativeMonitoringDoctor"]!=System.DBNull.Value) + { + entity.PostoperativeMonitoringDoctor=dr["PostoperativeMonitoringDoctor"].ToString(); + } + if(dr["StewardScoreDischarge"]!=System.DBNull.Value) + { + entity.StewardScoreDischarge=dr["StewardScoreDischarge"].ToString(); + } + if(dr["AssessmentTime"]!=System.DBNull.Value) + { + entity.AssessmentTime=dr["AssessmentTime"].ToString(); + } + if(dr["IsValid"]!=System.DBNull.Value) + { + entity.IsValid=Convert.ToInt32(dr["IsValid"]); + } + if(dr["OperatorId"]!=System.DBNull.Value) + { + entity.OperatorId=Convert.ToInt32(dr["OperatorId"]); + } + if(dr["OperatorTime"]!=System.DBNull.Value) + { + entity.OperatorTime=Convert.ToDateTime(dr["OperatorTime"]); + } + if(dr["Remark"]!=System.DBNull.Value) + { + entity.Remark=dr["Remark"].ToString(); + } + if(dr["Extend1"]!=System.DBNull.Value) + { + entity.Extend1=dr["Extend1"].ToString(); + } + if(dr["Extend2"]!=System.DBNull.Value) + { + entity.Extend2=dr["Extend2"].ToString(); + } + if(dr["Extend3"]!=System.DBNull.Value) + { + entity.Extend3=dr["Extend3"].ToString(); + } + if(dr["Extend4"]!=System.DBNull.Value) + { + entity.Extend4=dr["Extend4"].ToString(); + } + if(dr["Extend5"]!=System.DBNull.Value) + { + entity.Extend5=dr["Extend5"].ToString(); + } + return entity; + } + } +} + diff --git a/AIMSEntity/DAL/Extension/DOperationRecord.cs b/AIMSEntity/DAL/Extension/DOperationRecord.cs index 0060de2..0c57403 100644 --- a/AIMSEntity/DAL/Extension/DOperationRecord.cs +++ b/AIMSEntity/DAL/Extension/DOperationRecord.cs @@ -83,6 +83,7 @@ namespace AIMSDAL HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecordInfo WHERE OperationRecordId=" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM PhysioData WHERE PatientId =" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecordInstrumentList WHERE OperationRecordId =" + RecorId); + HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecordAnalgesia WHERE OperationRecordId =" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM ApplianceRecord WHERE OperationRecordId =" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE id=" + RecorId); } @@ -93,6 +94,7 @@ namespace AIMSDAL HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactOutputLiquids WHERE OutputLiquidsTypeId=" + TypeId + " and PatientId=" + PatientId + ""); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM FactPersonDuty WHERE PatientId=" + PatientId + " and PersonDutyId=" + TypeId + ""); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecoverInInfo WHERE OperationRecordId =" + RecorId); + HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecordAnalgesia WHERE OperationRecordId =" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecoverOutInfo WHERE OperationRecordId =" + RecorId); HelperDB.DbHelperSQL.ExecNonQuery("DELETE FROM OperationRecord WHERE Id=" + RecorId + ""); } diff --git a/AIMSEntity/ObjectQuery/OperationRecordAnalgesiaMap.cs b/AIMSEntity/ObjectQuery/OperationRecordAnalgesiaMap.cs new file mode 100644 index 0000000..b31c2ee --- /dev/null +++ b/AIMSEntity/ObjectQuery/OperationRecordAnalgesiaMap.cs @@ -0,0 +1,76 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace AIMSObjectQuery +{ + internal partial class OperationRecordAnalgesiaMap:IMap + { + private Dictionary dictionary = new Dictionary(); + public OperationRecordAnalgesiaMap() + { + dictionary.Add("id", "Id"); + dictionary.Add("patientid", "PatientId"); + dictionary.Add("applyid", "ApplyId"); + dictionary.Add("operationrecordid", "OperationRecordId"); + dictionary.Add("prohibiteddrinkingtime", "ProhibitedDrinkingTime"); + dictionary.Add("prohibitedeatingtime", "ProhibitedEatingTime"); + dictionary.Add("consciousness", "Consciousness"); + dictionary.Add("nutritionaldevelopment", "NutritionalDevelopment"); + dictionary.Add("pregnancy", "Pregnancy"); + dictionary.Add("loosedenture", "LooseDenture"); + dictionary.Add("difficultyopeningmouth", "DifficultyOpeningMouth"); + dictionary.Add("mouthopeningdegree", "MouthOpeningDegree"); + dictionary.Add("airwayassessment", "AirwayAssessment"); + dictionary.Add("drugallergy", "DrugAllergy"); + dictionary.Add("heartfunction", "HeartFunction"); + dictionary.Add("hypertension", "Hypertension"); + dictionary.Add("anesthesiasurgeryhistory", "AnesthesiaSurgeryHistory"); + dictionary.Add("anesthesiasurgeryhistorydetails", "AnesthesiaSurgeryHistoryDetails"); + dictionary.Add("cardiovascularsystem", "CardiovascularSystem"); + dictionary.Add("cardiovascularsystemdetails", "CardiovascularSystemDetails"); + dictionary.Add("respiratorysystem", "RespiratorySystem"); + dictionary.Add("respiratorysystemdetails", "RespiratorySystemDetails"); + dictionary.Add("endocrinesystem", "EndocrineSystem"); + dictionary.Add("endocrinesystemdetails", "EndocrineSystemDetails"); + dictionary.Add("asaclassification", "ASAClassification"); + dictionary.Add("sedationanalgesiaplan", "SedationAnalgesiaPlan"); + dictionary.Add("otherspecialconditions", "OtherSpecialConditions"); + dictionary.Add("patientoutcome", "PatientOutcome"); + dictionary.Add("painscore", "PainScore"); + dictionary.Add("highfallrisk", "HighFallRisk"); + dictionary.Add("evaluator", "Evaluator"); + dictionary.Add("postoperativemonitoringdoctor", "PostoperativeMonitoringDoctor"); + dictionary.Add("stewardscoredischarge", "StewardScoreDischarge"); + dictionary.Add("assessmenttime", "AssessmentTime"); + dictionary.Add("isvalid", "IsValid"); + dictionary.Add("operatorid", "OperatorId"); + dictionary.Add("operatortime", "OperatorTime"); + dictionary.Add("remark", "Remark"); + dictionary.Add("extend1", "Extend1"); + dictionary.Add("extend2", "Extend2"); + dictionary.Add("extend3", "Extend3"); + dictionary.Add("extend4", "Extend4"); + dictionary.Add("extend5", "Extend5"); + } + + #region IMap 成员 + + public string this[string propertyName] + { + get + { + try + { + return dictionary[propertyName.ToLower()]; + } + catch (KeyNotFoundException) + { + throw new Exception(propertyName + "属性不存在"); + } + } + } + + #endregion + } +} diff --git a/DocumentManagement/DocumentEntity/EventCodeCompiler.cs b/DocumentManagement/DocumentEntity/EventCodeCompiler.cs index 703ed38..dafb666 100644 --- a/DocumentManagement/DocumentEntity/EventCodeCompiler.cs +++ b/DocumentManagement/DocumentEntity/EventCodeCompiler.cs @@ -25,11 +25,7 @@ namespace DocumentManagement //string strMouseClickEvent = string.Empty; - //string strContentChangedEvent = string.Empty; - private XTextInputFieldElement SelElement; - private string SelElementName; - private string SelElementValue; - public bool IsLoad = false; + //string strContentChangedEvent = string.Empty; public EventCodeCompiler(ref WriterControl myEditControl, string strMouseClickEvent, string strContentChangedEvent) { @@ -185,7 +181,7 @@ namespace DocumentManagement private void Eet_MouseDblClick(object eventSender, ElementMouseEventArgs args) { - if (eventSender is XTextImageElement && IsLoad == true) + if (eventSender is XTextImageElement) { frmSelectPersonDoc personDoc = new frmSelectPersonDoc(); personDoc.PersonType = (eventSender as XTextImageElement).Alt == "" ? "麻醉医生" : (eventSender as XTextImageElement).Alt; diff --git a/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs b/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs new file mode 100644 index 0000000..96a2a61 --- /dev/null +++ b/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs @@ -0,0 +1,525 @@ +using AIMSExtension; +using DevComponents.Editors.DateTimeAdv; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Windows.Forms; +using static System.Net.Mime.MediaTypeNames; + +namespace DrawGraph +{ + /// + /// 麻醉前访视单 + /// + public class AnalgesiaDataBottonManage : AreaManageBase + { + + private OperationRecord myOpeRecord = null; + public AnalgesiaDataBottonManage() { } + public AnalgesiaDataBottonManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) + { } + + public void init() + { + //自己要用的手术对象 + myOpeRecord = OpeRecord as OperationRecord; + } + #region 重写的事件 + /// + /// 鼠标点击画板 + /// + /// + /// + public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void KeyUp(ZedGraphControl sender, KeyEventArgs e) + { + } + + public override void editAr_Click(object sender, EventArgs e) + { + SelectDictText.Hidden(); + //传过来的数据是不是可编辑的 + AbleEditPackObj editPack = sender as AbleEditPackObj; + if (editPack == null) return; + //找到这个组件 + AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj; + if (aEdit1 == null) return; + + txt_DoubleClick(aEdit1.CControl, null); + } + + public SelectDictText aSyncSelectDict = null; + public override void Bind() + { + aSyncSelectDict = SelectDictText.CreateInstance(); + SelectDictText.SetValue += ASyncSelectDict_SetValue; + base.Bind(); + init(); + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + AbleEditPackObj ableEdit = pack as AbleEditPackObj; + + if (ableEdit != null) + { + ableEdit.IsVisible = true; + ableEdit.CControl.Click -= new EventHandler(txt_Click); + ableEdit.CControl.Click += new EventHandler(txt_Click); + if (ableEdit.ControlType == EControlType.DateTimePicker) + { + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else if (ableEdit.ControlType == EControlType.Directory) + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else if (ableEdit.ControlType == EControlType.CheckBox) + { + 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); + } + } + } + } + else 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); + } + } + } + } + else if (ableEdit.ControlType == EControlType.TextBox) + { + ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown); + ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); + ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus); + ableEdit.CControl.GotFocus += new EventHandler(txt_Focus); + ((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D; + + ableEdit.CControl.MouseWheel += new MouseEventHandler(numericUpDown1_MouseWheel); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else + { + + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + SetAbleEditView(ableEdit); + } + } + } + + + ////取消滚轮事件 + //void numericUpDown1_MouseWheel(object sender, MouseEventArgs e) + //{ + // base.MouseWheelParam(); + //} + + private void txt_Focus(object sender, EventArgs e) + { + TextBox control = (TextBox)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == "")) + control.Clear(); + } + private void text_keyDown(object sender, KeyEventArgs e) + { + ((TextBox)sender).Enabled = true; + if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V) + { + string val = Clipboard.GetText(); + val = val.Replace("\r", "").Replace("\n", ""); + Clipboard.SetText(val); + } + } + + /// + /// 在画完表单后,显示多选单选的默认项 + /// + public override void FollowUpMethod() + { + base.FollowUpMethod(); + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + AbleEditPackObj ableEdit = pack as AbleEditPackObj; + SetAbleEditView(ableEdit); + } + } + + public override void BindTempData() + { + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + pack.Draw(); + } + } + + /// + /// 公共验证方法 + /// + /// + public override bool Verification() + { + List editPack = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in editPack) + { + AbleEditPackObj ablePack = pack as AbleEditPackObj; + if (ablePack != null) + { + if (ablePack.ValidType == EValidType.IsRequired) + { + if (ablePack.PackValue.Trim() == "") + { + MessageBox.Show(pack.Descript + "不能为空"); + return false; + } + }; + if (ablePack.PackValue != "" && ablePack.ValidType == EValidType.IsNumber) + { + try + { + int.Parse(ablePack.PackValue); + } + catch (Exception) + { + MessageBox.Show(pack.Descript + "不能为空且必须是数值型"); + return false; + } + }; + if (ablePack.TextLength != 0) + { + if (ablePack.PackValue.Length >= ablePack.TextLength) + { + MessageBox.Show(ablePack.Descript + "长度不能超过" + ablePack.TextLength + "字"); + } + } + } + } + return true; + } + + #endregion 重写的事件结束 + + /// + /// 设置可编辑组件的显示样式 + /// + /// + private void SetAbleEditView(AbleEditPackObj ableEdit, bool isUpdate = false) + { + string span = ""; + double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 18)); + for (int i = 0; i < spanSum; i++) + { + if (ableEdit.IsHorizontal == ELineType.Horizontal) + { + span += " "; + } + else + { + + span += "\n"; + } + } + string text = "", value = ""; + if (ableEdit != null && ableEdit.CControl != 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; + } + } + break; + case EControlType.CheckBox: + 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; + } + } + value = value.TrimEnd(','); + break; + case EControlType.Directory: + value = ableEdit.PackValue; + text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + //设置属性的值 + template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value); + break; + default: + text = ableEdit.CControl.Text; + value = ableEdit.CControl.Text; + break; + } + + //设置属性的值 + template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, isUpdate); + //如果有逻辑区域,则区域进行更新。 + template.NotificationAreaBindingUpdate(template.ProjectName + "逻辑"); + } + } + + private void txt_DoubleClick(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + string DataSourceName = ableEdit.ClassDataSourceName; + try + { + string text = "", value = ""; + switch (ableEdit.ControlType) + { + case EControlType.DateTimePicker: + text = DateTime.Now.ToString(); + value = DateTime.Now.ToString(); + control.Text = text; + break; + case EControlType.Directory: + TYZD_Click(ableEdit, e, true); + break; + default: + text = ableEdit.CControl.Text; + value = ableEdit.CControl.Text; + break; + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + finally + { + template.ZedControl.Refresh(); + } + } + + private void txt_Click(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + string DataSourceName = ableEdit.ClassDataSourceName; + if (SelectDictText.dgvZd.Visible == true) + { + SelectDictText.Hidden(); + } + } + private void txt_Leave(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + try + { + if (ableEdit.ControlType == EControlType.RadioButtonList) + { + 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); + } + } + } + SetAbleEditView(ableEdit, true); + } + catch (Exception ex) + { + //写日志 + PublicMethod.WriteLog(ex); + } + finally + { + } + } + + //设置打印模式,组件不显示 + public override void setPrint(bool isVisible) + { + //预览状态时所可编辑组件的组件隐藏 + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack1 in ables) + { + AbleEditPackObj ableEdit = pack1 as AbleEditPackObj; + + if (ableEdit != null) + { + ableEdit.IsVisible = isVisible; + if (isVisible == true) + ableEdit.IsViewBoard = EIsBool.True; + else + ableEdit.IsViewBoard = EIsBool.False; + } + } + } + //通用字典分组窗体打开 + private void TYZD_Click(AbleEditPackObj sender, EventArgs e, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict(sender, e, ableEdit.ControlTitleText, isRadio); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + private void SelDict(AbleEditPackObj sender, EventArgs e, string _DictType, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + + if (myOpeRecord != null) + { + Control conl = sender.CControl; + if (conl is TextBox) + { + ((TextBox)conl).BorderStyle = BorderStyle.Fixed3D; + ((TextBox)conl).Focus(); + if (sender.PackValue != null && sender.PackValue.Trim() != "" && isRadio == false) + { + if (((TextBox)conl).Text.LastIndexOf(',') != sender.PackText.Length) + ((TextBox)conl).Text = ((TextBox)conl).Text + ","; + } + ((TextBox)conl).Select(((TextBox)conl).Text.Length, 1); + } + + aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + } + private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit) + { + aEdit.PackValue = Text; + aEdit.PackText = Text; + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); + aEdit.CControl.Leave -= new EventHandler(txt_Leave); + aEdit.CControl.Leave += new EventHandler(txt_Leave); + } + private void CControl_KeyUp(object sender, KeyEventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + if (e.KeyCode == Keys.Down) + { + if (SelectDictText.dgvZd.CurrentRow.Index + 1 != SelectDictText.dgvZd.Rows.Count - 1) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index + 1].Cells[1]; + } + } + else if (e.KeyCode == Keys.Up) + { + if (SelectDictText.dgvZd.CurrentRow.Index != 0) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index - 1].Cells[1]; + } + } + } + } + private void CControl_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar.ToString() == "\r") + { + if (SelectDictText.dgvZd.SelectedRows.Count > 0) + { + SelectDictText.SetContent(SelectDictText.dgvZd.SelectedRows[0].Index); + } + } + } + } +} \ No newline at end of file diff --git a/DrawGraph/AreaManage/AnalgesiaDataManage.cs b/DrawGraph/AreaManage/AnalgesiaDataManage.cs new file mode 100644 index 0000000..4002777 --- /dev/null +++ b/DrawGraph/AreaManage/AnalgesiaDataManage.cs @@ -0,0 +1,658 @@ +using AIMSExtension; +using DevComponents.Editors.DateTimeAdv; +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Windows.Forms; +using static System.Net.Mime.MediaTypeNames; + +namespace DrawGraph +{ + /// + /// 麻醉前访视单 + /// + public class AnalgesiaDataManage : AreaManageBase + { + + private OperationRecord myOpeRecord = null; + public AnalgesiaDataManage() { } + public AnalgesiaDataManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) + { } + + public void init() + { + //自己要用的手术对象 + myOpeRecord = OpeRecord as OperationRecord; + } + #region 重写的事件 + /// + /// 鼠标点击画板 + /// + /// + /// + public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) + { + } + public override void KeyUp(ZedGraphControl sender, KeyEventArgs e) + { + } + + public override void editAr_Click(object sender, EventArgs e) + { + SelectDictText.Hidden(); + //传过来的数据是不是可编辑的 + AbleEditPackObj editPack = sender as AbleEditPackObj; + if (editPack == null) return; + //找到这个组件 + AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj; + if (aEdit1 == null) return; + + txt_DoubleClick(aEdit1.CControl, null); + } + + //得到当前页数 + private void GetcurrentPage() + { + DateTime EndTime = OperationRecord.getOpeMaxTime(myOpeRecord); + EndTime = DateTime.Parse(EndTime.ToString("yyyy-MM-dd HH:mm")); + TimeSpan tsp = (TimeSpan)(EndTime - myOpeRecord.sharpBegin); + double db = tsp.TotalHours / 4; + if (db == ((int)tsp.TotalHours / 4)) + myOpeRecord.currentPage = (int)db; + else + myOpeRecord.currentPage = (int)db + 1; + if (myOpeRecord.currentPage == 0) myOpeRecord.currentPage = 1; + } + #region 初始化时间轴 + /// + /// 设置页面的开始时间和结束时间 + /// + /// 手术信息对象 + private void setPageTime(DateTime begin) + { + if (myOpeRecord.pageCount == 0) + { + myOpeRecord.pageCount = 1; + myOpeRecord.sharpBegin = getSharpTime(begin); + myOpeRecord.PageBegin = getPageBegin(begin, collectInterval, 120); + myOpeRecord.lastPageBegin = myOpeRecord.PageBegin.AddHours(120 / 60); + + if (myOpeRecord.phListPack != null) + { + Panel pan3 = myOpeRecord.phListPack.CControl as Panel; + if (pan3 != null) + { + pan3.Controls.Clear(); + } + } + } + } + /// + /// 根据采集间隔,确定页面时间跨度和页面开始时间 + /// + /// 给定时间(文本) + /// 采集间隔(分钟) + /// 页面时间跨度 + /// 页面显示的开始时间 + private DateTime getPageBegin(DateTime dt, double collectInterval,double timeSpan) + { + try + { + DateTime pageBegin = dt.Date.AddHours(dt.Hour); + int ci = (int)(collectInterval * 60); + if (ci <= 30) + { + if (dt.Minute >= 30) + { + pageBegin = pageBegin.AddMinutes(30); + } + timeSpan = 30; + } + else if (ci <= 60) + { + timeSpan = 60; + } + else + { + timeSpan = 120; + TimeSpan ts = pageBegin - myOpeRecord.sharpBegin; + int h = ts.Hours; + h /= 2; + pageBegin = myOpeRecord.sharpBegin.AddHours(h * 2); + } + return pageBegin; + } + catch (Exception exp) + { + throw exp; + } + } + /// + /// 获取系统的整点时刻 + /// + /// + private DateTime getSharpTime(DateTime dt) + { + int ci = (int)dt.Minute; + + if (ci >= 50) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:50:00")); + } + else if (ci >= 40) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:40:00")); + } + else if (ci >= 30) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); + } + else if (ci >= 20) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:20:00")); + } + else if (ci >= 10) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:10:00")); + } + else if (ci < 10) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00")); + } + //if (ci >= 30) + //{ + // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); + //} + //else if (ci < 30) + //{ + // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00")); + //} + return dt; + } + private void setXAxisTime(GraphPane myPane, DateTime begin, double pageSpan) + { + myPane.XAxis.Scale.Min = new XDate(begin); + myPane.X2Axis.Scale.Min = myPane.XAxis.Scale.Min; + myPane.XAxis.Scale.Max = new XDate(begin.AddMinutes(pageSpan)); + myPane.X2Axis.Scale.Max = myPane.XAxis.Scale.Max; + } + #endregion + + public SelectDictText aSyncSelectDict = null; + public override void Bind() + { + base.Bind(); + init(); + aSyncSelectDict = SelectDictText.CreateInstance(); + myOpeRecord.clearAddObj(ZedControl); + setPageTime(myOpeRecord.InRoomTime.Value); + setXAxisTime(ZedControl.GraphPane, myOpeRecord.PageBegin, 120); + GetcurrentPage(); + SelectDictText.SetValue += ASyncSelectDict_SetValue; + + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + AbleEditPackObj ableEdit = pack as AbleEditPackObj; + + if (ableEdit != null) + { + ableEdit.IsVisible = true; + ableEdit.CControl.Click -= new EventHandler(txt_Click); + ableEdit.CControl.Click += new EventHandler(txt_Click); + if (ableEdit.ControlType == EControlType.DateTimePicker) + { + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else if (ableEdit.ControlType == EControlType.Directory) + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else if (ableEdit.ControlType == EControlType.CheckBox) + { + 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); + } + } + } + } + else 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); + } + } + } + } + else if (ableEdit.ControlType == EControlType.TextBox) + { + ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown); + ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); + ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus); + ableEdit.CControl.GotFocus += new EventHandler(txt_Focus); + ((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D; + + ableEdit.CControl.MouseWheel += new MouseEventHandler(numericUpDown1_MouseWheel); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + else + { + + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + SetAbleEditView(ableEdit); + } + } + } + + + ////取消滚轮事件 + //void numericUpDown1_MouseWheel(object sender, MouseEventArgs e) + //{ + // base.MouseWheelParam(); + //} + + private void txt_Focus(object sender, EventArgs e) + { + TextBox control = (TextBox)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == "")) + control.Clear(); + } + private void text_keyDown(object sender, KeyEventArgs e) + { + ((TextBox)sender).Enabled = true; + if (e.Modifiers.CompareTo(Keys.Control) == 0 && e.KeyCode == Keys.V) + { + string val = Clipboard.GetText(); + val = val.Replace("\r", "").Replace("\n", ""); + Clipboard.SetText(val); + } + } + + /// + /// 在画完表单后,显示多选单选的默认项 + /// + public override void FollowUpMethod() + { + base.FollowUpMethod(); + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + AbleEditPackObj ableEdit = pack as AbleEditPackObj; + SetAbleEditView(ableEdit); + } + } + + public override void BindTempData() + { + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in ables) + { + pack.Draw(); + } + } + + /// + /// 公共验证方法 + /// + /// + public override bool Verification() + { + List editPack = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack in editPack) + { + AbleEditPackObj ablePack = pack as AbleEditPackObj; + if (ablePack != null) + { + if (ablePack.ValidType == EValidType.IsRequired) + { + if (ablePack.PackValue.Trim() == "") + { + MessageBox.Show(pack.Descript + "不能为空"); + return false; + } + }; + if (ablePack.PackValue != "" && ablePack.ValidType == EValidType.IsNumber) + { + try + { + int.Parse(ablePack.PackValue); + } + catch (Exception) + { + MessageBox.Show(pack.Descript + "不能为空且必须是数值型"); + return false; + } + }; + if (ablePack.TextLength != 0) + { + if (ablePack.PackValue.Length >= ablePack.TextLength) + { + MessageBox.Show(ablePack.Descript + "长度不能超过" + ablePack.TextLength + "字"); + } + } + } + } + return true; + } + + #endregion 重写的事件结束 + + /// + /// 设置可编辑组件的显示样式 + /// + /// + private void SetAbleEditView(AbleEditPackObj ableEdit, bool isUpdate = false) + { + string span = ""; + double spanSum = Math.Round((float)(ableEdit.OneUnitCount / 18)); + for (int i = 0; i < spanSum; i++) + { + if (ableEdit.IsHorizontal == ELineType.Horizontal) + { + span += " "; + } + else + { + + span += "\n"; + } + } + string text = "", value = ""; + if (ableEdit != null && ableEdit.CControl != 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; + } + } + break; + case EControlType.CheckBox: + 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; + } + } + value = value.TrimEnd(','); + break; + case EControlType.Directory: + value = ableEdit.PackValue; + text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + //设置属性的值 + template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value); + break; + default: + text = ableEdit.CControl.Text; + value = ableEdit.CControl.Text; + break; + } + + //设置属性的值 + template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value, isUpdate); + //如果有逻辑区域,则区域进行更新。 + template.NotificationAreaBindingUpdate(template.ProjectName + "逻辑"); + } + } + + private void txt_DoubleClick(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + string DataSourceName = ableEdit.ClassDataSourceName; + try + { + string text = "", value = ""; + switch (ableEdit.ControlType) + { + case EControlType.DateTimePicker: + text = DateTime.Now.ToString(); + value = DateTime.Now.ToString(); + control.Text = text; + break; + case EControlType.Directory: + TYZD_Click(ableEdit, e, true); + break; + default: + text = ableEdit.CControl.Text; + value = ableEdit.CControl.Text; + break; + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + finally + { + template.ZedControl.Refresh(); + } + } + + private void txt_Click(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + string DataSourceName = ableEdit.ClassDataSourceName; + if (SelectDictText.dgvZd.Visible == true) + { + SelectDictText.Hidden(); + } + } + private void txt_Leave(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj ableEdit = control.Tag as AbleEditPackObj; + if (ableEdit == null) return; + try + { + if (ableEdit.ControlType == EControlType.RadioButtonList) + { + 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); + } + } + } + SetAbleEditView(ableEdit, true); + } + catch (Exception ex) + { + //写日志 + PublicMethod.WriteLog(ex); + } + finally + { + } + } + + //设置打印模式,组件不显示 + public override void setPrint(bool isVisible) + { + //预览状态时所可编辑组件的组件隐藏 + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); + foreach (PackObjBase pack1 in ables) + { + AbleEditPackObj ableEdit = pack1 as AbleEditPackObj; + + if (ableEdit != null) + { + ableEdit.IsVisible = isVisible; + if (isVisible == true) + ableEdit.IsViewBoard = EIsBool.True; + else + ableEdit.IsViewBoard = EIsBool.False; + } + } + } + //通用字典分组窗体打开 + private void TYZD_Click(AbleEditPackObj sender, EventArgs e, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict(sender, e, ableEdit.ControlTitleText, isRadio); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + private void SelDict(AbleEditPackObj sender, EventArgs e, string _DictType, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + + if (myOpeRecord != null) + { + Control conl = sender.CControl; + if (conl is TextBox) + { + ((TextBox)conl).BorderStyle = BorderStyle.Fixed3D; + ((TextBox)conl).Focus(); + if (sender.PackValue != null && sender.PackValue.Trim() != "" && isRadio == false) + { + if (((TextBox)conl).Text.LastIndexOf(',') != sender.PackText.Length) + ((TextBox)conl).Text = ((TextBox)conl).Text + ","; + } + ((TextBox)conl).Select(((TextBox)conl).Text.Length, 1); + } + + aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } + } + private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit) + { + aEdit.PackValue = Text; + aEdit.PackText = Text; + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); + aEdit.CControl.Leave -= new EventHandler(txt_Leave); + aEdit.CControl.Leave += new EventHandler(txt_Leave); + } + private void CControl_KeyUp(object sender, KeyEventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + if (e.KeyCode == Keys.Down) + { + if (SelectDictText.dgvZd.CurrentRow.Index + 1 != SelectDictText.dgvZd.Rows.Count - 1) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index + 1].Cells[1]; + } + } + else if (e.KeyCode == Keys.Up) + { + if (SelectDictText.dgvZd.CurrentRow.Index != 0) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index - 1].Cells[1]; + } + } + } + } + private void CControl_KeyPress(object sender, KeyPressEventArgs e) + { + if (e.KeyChar.ToString() == "\r") + { + if (SelectDictText.dgvZd.SelectedRows.Count > 0) + { + SelectDictText.SetContent(SelectDictText.dgvZd.SelectedRows[0].Index); + } + } + } + } +} diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs index 92f21f6..7cfdcc0 100644 --- a/DrawGraph/AreaManage/DBManage.cs +++ b/DrawGraph/AreaManage/DBManage.cs @@ -17,7 +17,7 @@ namespace DrawGraph { case "人员": if (PersonType == "0") - { + { strSql = "SELECT top 20 p.Id,p.Name,p.No Code FROM Person p WHERE p.IsValid=1 AND p.PersonType ='医生' "; if (HelpCode != "") strSql += " AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' OR p.No LIKE '%" + HelpCode + "%')"; if (HelpCode == "" && OpeRecord.DepartmentId != null) strSql += " AND p.DepId='" + OpeRecord.DepartmentId + "' "; @@ -62,7 +62,7 @@ namespace DrawGraph case "麻醉方式": strSql = "SELECT 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 + ") "; - strSql += " order by UseRate asc"; + strSql += " order by UseRate asc"; break; case "手术体位": strSql = "SELECT top 30 p.Id,p.Name,p.Explain Code FROM OperationBodyPosition p WHERE p.IsValid=1 AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )"; @@ -72,12 +72,12 @@ namespace DrawGraph case "手术部位": strSql = "SELECT top 20 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 + ") "; - strSql += " order by PositionOrder asc"; + strSql += " order by PositionOrder asc"; break; default: strSql = "SELECT top 30 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 + ") "; - strSql += " order by p.[Order] asc"; + strSql += " order by p.[Order] asc"; break; } @@ -98,18 +98,22 @@ namespace DrawGraph { i += UpdateInstrumentList(items[2] + "='" + value + "' where Id= " + _operationRecord.InstrumentList.Id); } - if (items[1] == "OpeRecordInfo") + else if (items[1] == "OpeRecordInfo") { i += UpdateOperationRecordInfo(items[2] + "='" + value + "' where Id= " + _operationRecord.OpeRecordInfo.Id); } - if (items[1] == "OpeRecoverInInfo") + else if (items[1] == "OpeRecoverInInfo") { i += UpdateOperationRecoverInInfo(items[2] + "='" + value + "' where Id= " + _operationRecord.OpeRecoverInInfo.Id); } - if (items[1] == "OpeRecoverOutInfo") + else if (items[1] == "OpeRecoverOutInfo") { i += UpdateOperationRecoverOutInfo(items[2] + "='" + value + "' where Id= " + _operationRecord.OpeRecoverOutInfo.Id); } + else if (items[1] == "AnalgesiaRecord") + { + i += UpdateAnalgesiaRecord(items[2] + "='" + value + "' where Id= " + _operationRecord.AnalgesiaRecord.Id); + } } else { @@ -226,6 +230,11 @@ namespace DrawGraph string sqlStr = "update OperationRecoverOutInfo set " + sql; return DBHelper.ExecNonQuery(sqlStr); } + public static int UpdateAnalgesiaRecord(string sql) + { + string sqlStr = "update OperationRecordAnalgesia set " + sql; + return DBHelper.ExecNonQuery(sqlStr); + } public static int AddPerson(OperationRecord _operationRecord, string Persons, int PersonDutyId) { int i = 0; @@ -262,7 +271,7 @@ namespace DrawGraph public static int AddPerson(OperationRecord _operationRecord, List Persons, int PersonDutyId) { int i = 0; - if (Persons==null || Persons.Count<=0) + if (Persons == null || Persons.Count <= 0) { DeletePerson(_operationRecord.PatientId.Value, PersonDutyId); i++; @@ -270,7 +279,7 @@ namespace DrawGraph else { DeletePerson(_operationRecord.PatientId.Value, PersonDutyId); - i++; + i++; foreach (int PersonId in Persons) { StringBuilder strSql = new StringBuilder(); @@ -330,7 +339,7 @@ namespace DrawGraph public static int AddOperation(OperationRecord _operationRecord, List Operation) { int i = 0; - if (Operation==null || Operation.Count<=0) + if (Operation == null || Operation.Count <= 0) { DeleteOperation(_operationRecord.PatientId.Value); i++; @@ -338,8 +347,8 @@ namespace DrawGraph else { DeleteOperation(_operationRecord.PatientId.Value); - i++; - foreach (int OperationId in Operation ) + i++; + foreach (int OperationId in Operation) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into [FactOperationInfo]("); @@ -458,20 +467,20 @@ namespace DrawGraph } return i; } - public static int AddOperationPosition(OperationRecord _operationRecord, string OperationPositionId ) + public static int AddOperationPosition(OperationRecord _operationRecord, string OperationPositionId) { int i = 0; - if ( OperationPositionId.Trim() == "" || OperationPositionId== ",") + if (OperationPositionId.Trim() == "" || OperationPositionId == ",") { - DeleteOperationPosition (_operationRecord.PatientId.Value); + DeleteOperationPosition(_operationRecord.PatientId.Value); i++; } else { DeleteOperationPosition(_operationRecord.PatientId.Value); i++; - string[] Operationstr = OperationPositionId.Split(','); - foreach (string OperationPosition in Operationstr) + string[] Operationstr = OperationPositionId.Split(','); + foreach (string OperationPosition in Operationstr) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into [FactOperationPosition]("); @@ -480,7 +489,7 @@ namespace DrawGraph strSql.Append(" values ("); strSql.Append("" + _operationRecord.PatientId + ","); strSql.Append("" + _operationRecord.OperationApplyId + ","); - strSql.Append("" + OperationPosition + ","); + strSql.Append("" + OperationPosition + ","); strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',"); strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',"); strSql.Append("'" + DateTime.Now + "'"); @@ -490,19 +499,19 @@ namespace DrawGraph } return i; } - public static int AddOperationPosition(OperationRecord _operationRecord, List OperationPositionIds ) + public static int AddOperationPosition(OperationRecord _operationRecord, List OperationPositionIds) { int i = 0; - if ( OperationPositionIds==null || OperationPositionIds.Count<=0) + if (OperationPositionIds == null || OperationPositionIds.Count <= 0) { - DeleteOperationPosition (_operationRecord.PatientId.Value); + DeleteOperationPosition(_operationRecord.PatientId.Value); i++; } else { DeleteOperationPosition(_operationRecord.PatientId.Value); - i++; - foreach (int OperationPosition in OperationPositionIds ) + i++; + foreach (int OperationPosition in OperationPositionIds) { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into [FactOperationPosition]("); @@ -511,7 +520,7 @@ namespace DrawGraph strSql.Append(" values ("); strSql.Append("" + _operationRecord.PatientId + ","); strSql.Append("" + _operationRecord.OperationApplyId + ","); - strSql.Append("" + OperationPosition + ","); + strSql.Append("" + OperationPosition + ","); strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',"); strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',"); strSql.Append("'" + DateTime.Now + "'"); diff --git a/DrawGraph/AreaManage/IconManage.cs b/DrawGraph/AreaManage/IconManage.cs index 8b6393d..82a45d3 100644 --- a/DrawGraph/AreaManage/IconManage.cs +++ b/DrawGraph/AreaManage/IconManage.cs @@ -8,6 +8,7 @@ using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; +using System.Windows.Forms.Design; namespace DrawGraph { @@ -15,6 +16,7 @@ namespace DrawGraph { public RectangleFramePackObj IconPpack; public LinePackObj H5pack; + public TextPackObj Extend2; /// /// 当前手术对象 /// @@ -45,11 +47,11 @@ namespace DrawGraph eventendy = H5pack.RealEndY; } IconPpack = template.GetPackObjectOTag("IconManage_RectangleFramePackObj_2"); - if (IconPpack != null) + if (IconPpack != null) { eventy = IconPpack.RealY; eventendy = IconPpack.RealEndY; - eventendX = IconPpack.RealEndX + 0.02; + eventendX = IconPpack.RealEndX + 0.02; } LinePackObj line = template.GetPackObjectOTag("IconManage_LinePackObj_6"); if (line != null) @@ -186,6 +188,69 @@ namespace DrawGraph } } myOpeRecord.EventListstr = eventListstr; + TextPackObj packObj2 = template.GetPackObjectOTag("IconManage_TextPackObj_14_OperationRecord_AnalgesiaRecord_Extend2"); + if (packObj2 != null) + { + List AfterDrugsListstr = new List(); + foreach (var item in myOpeRecord.FactDrugList) + { + ListAddDrugs(AfterDrugsListstr, item); + } + if (AfterDrugsListstr.Count > 0) + { + packObj2.PackText = ""; + foreach (var item in AfterDrugsListstr) + { + packObj2.PackText += item + "\n"; + } + packObj2.PackValue = packObj2.PackText; + packObj2.Draw(); + } + } + TextPackObj packObj = template.GetPackObjectOTag("IconManage_TextPackObj_40_OperationRecord_AnalgesiaRecord_Extend3"); + if (packObj != null && eventListstr.Count > 1) + { + packObj.PackText = ""; + foreach (var item in eventListstr) + { + if (item != "【事件】") + packObj.PackText += ((item.Substring(1, item.Length - 1)) + "\n"); + } + packObj.PackValue = packObj.PackText; + packObj.Draw(); + } + } + private static void ListAddDrugs(List DrugListstr, FactDrug temp) + { + string dose = ""; + if (temp.Density != 0) + { + dose += ((double)temp.Density).ToString(); + if (temp.DensityUnit != null) + { + dose += temp.DensityUnit; + } + } + if (dose.Trim() != "") dose += " "; + if (temp.Velocity != 0) + { + dose += ((double)temp.Velocity).ToString(); + if (temp.VelocityUnit != null) + { + dose += temp.VelocityUnit; + } + } + if (dose.Trim() != "") dose += " "; + if (temp.Dosage != 0) + { + dose += ((double)temp.Dosage).ToString(); + if (temp.DosageUnit != null) + { + dose += temp.DosageUnit; + } + } + DrugListstr.Add(string.Format("{0}{1} {2} {3}{4}{5}", "", (temp.DrugBeginTime == temp.DrugEndTime) ? temp.DrugBeginTime.ToShortTimeString() : temp.DrugBeginTime.ToShortTimeString() + "->" + temp.DrugEndTime.ToShortTimeString(), temp.DrugName.Trim(), dose, "", temp.DrugChannel == null ? "" : " " + temp.DrugChannel.ToString())); + //DrugListstr.Append(" "); } #region 格式化字符串长度 /// diff --git a/DrawGraph/AreaManage/OperationRecord.cs b/DrawGraph/AreaManage/OperationRecord.cs index 66d29c0..8a46a94 100644 --- a/DrawGraph/AreaManage/OperationRecord.cs +++ b/DrawGraph/AreaManage/OperationRecord.cs @@ -385,6 +385,7 @@ namespace DrawGraph private int? id; private int? patientId; private int? operationApplyId; + private string opeDay; private DateTime? inRoomTime; private DateTime? outRoomTime; private DateTime? operationBeginTime; @@ -497,6 +498,15 @@ namespace DrawGraph set { inRoomTime = value; } } /// + /// 手术日期 + /// + [ClassAttributs(Description = "手术日期")] + public string OpeDay + { + get { return opeDay; } + set { opeDay = value; } + } + /// /// 出手术室时间 /// [ClassAttributs(Description = "出手术室时间")] @@ -1181,6 +1191,7 @@ namespace DrawGraph private OperationRecoverOutInfo opeRecoverOutInfo; private OperationRecordInstrumentList instrumentList; private OperationRecordInstrumentList instrumentList2; + private OperationRecordAnalgesia recordAnalgesia; public List EventListstr = new List(); public List DrugsListstr = new List(); @@ -1351,6 +1362,18 @@ namespace DrawGraph instrumentList = value; } } + [ClassAttributs(Description = "镇痛记录单类")] + public OperationRecordAnalgesia AnalgesiaRecord + { + get + { + return recordAnalgesia; + } + set + { + recordAnalgesia = value; + } + } [NoCreatControlAttributs] public OperationRecordInstrumentList InstrumentList2 { @@ -1387,6 +1410,7 @@ namespace DrawGraph OpeRecoverOutInfo = new OperationRecoverOutInfo(); InstrumentList = new OperationRecordInstrumentList(); InstrumentList2 = new OperationRecordInstrumentList(); + AnalgesiaRecord = new OperationRecordAnalgesia(); FactBloodGasAnalysisList = new List(); SelPhysioConfig = null; } diff --git a/DrawGraph/AreaManage/OperationRecordAnalgesia.cs b/DrawGraph/AreaManage/OperationRecordAnalgesia.cs new file mode 100644 index 0000000..dec6c6a --- /dev/null +++ b/DrawGraph/AreaManage/OperationRecordAnalgesia.cs @@ -0,0 +1,423 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +namespace DrawGraph +{ + [Serializable] + public partial class OperationRecordAnalgesia + { + private int? id; + private int? patientId; + private int? applyId; + private int? operationRecordId; + private string prohibitedDrinkingTime; + private string prohibitedEatingTime; + private string consciousness; + private string nutritionalDevelopment; + private string pregnancy; + private string looseDenture; + private string difficultyOpeningMouth; + private string mouthOpeningDegree; + private string airwayAssessment; + private string drugAllergy; + private string heartFunction; + private string hypertension; + private string anesthesiaSurgeryHistory; + private string anesthesiaSurgeryHistoryDetails; + private string cardiovascularSystem; + private string cardiovascularSystemDetails; + private string respiratorySystem; + private string respiratorySystemDetails; + private string endocrineSystem; + private string endocrineSystemDetails; + private string aSAClassification; + private string sedationAnalgesiaPlan; + private string otherSpecialConditions; + private string patientOutcome; + private string painScore; + private string highFallRisk; + private string evaluator; + private string postoperativeMonitoringDoctor; + private string stewardScoreDischarge; + private string assessmentTime; + private int? isValid; + private int? operatorId; + private DateTime? operatorTime; + private string remark; + private string extend1; + private string extend2; + private string extend3; + private string extend4; + private string extend5; + + + [NoCreatControlAttributs] + public int? Id + { + get{ return id; } + set{ id=value; } + } + [NoCreatControlAttributs] + public int? PatientId + { + get{ return patientId; } + set{ patientId=value; } + } + [NoCreatControlAttributs] + public int? ApplyId + { + get{ return applyId; } + set{ applyId=value; } + } + [NoCreatControlAttributs] + public int? OperationRecordId + { + get{ return operationRecordId; } + set{ operationRecordId=value; } + } + /// + /// 禁饮时间 + /// + [ClassAttributs(Description = "禁饮时间")] + public string ProhibitedDrinkingTime + { + get{ return prohibitedDrinkingTime; } + set{ prohibitedDrinkingTime=value; } + } + /// + /// 禁食时间 + /// + [ClassAttributs(Description = "禁食时间")] + public string ProhibitedEatingTime + { + get{ return prohibitedEatingTime; } + set{ prohibitedEatingTime=value; } + } + + /// + /// 意识 + /// + [ClassAttributs(Description = "意识")] + public string Consciousness + { + get{ return consciousness; } + set{ consciousness=value; } + } + /// + /// 营养发育 + /// + [ClassAttributs(Description = "营养发育")] + public string NutritionalDevelopment + { + get{ return nutritionalDevelopment; } + set{ nutritionalDevelopment=value; } + } + /// + /// 怀孕 + /// + [ClassAttributs(Description = "怀孕")] + public string Pregnancy + { + get{ return pregnancy; } + set{ pregnancy=value; } + } + /// + /// 义齿松动齿 + [ClassAttributs(Description = "义齿松动齿")] + /// + public string LooseDenture + { + get{ return looseDenture; } + set{ looseDenture=value; } + } + /// + /// 张口困难 + /// + [ClassAttributs(Description = "张口困难")] + public string DifficultyOpeningMouth + { + get{ return difficultyOpeningMouth; } + set{ difficultyOpeningMouth=value; } + } + /// + /// 张口度 + /// + [ClassAttributs(Description = "张口度")] + public string MouthOpeningDegree + { + get{ return mouthOpeningDegree; } + set{ mouthOpeningDegree=value; } + } + /// + /// 气道评级 + /// + [ClassAttributs(Description = "气道评级")] + public string AirwayAssessment + { + get{ return airwayAssessment; } + set{ airwayAssessment=value; } + } + /// + /// 药物过敏 + /// + [ClassAttributs(Description = "药物过敏")] + public string DrugAllergy + { + get{ return drugAllergy; } + set{ drugAllergy=value; } + } + /// + /// 心功能 + /// + [ClassAttributs(Description = "心功能")] + public string HeartFunction + { + get{ return heartFunction; } + set{ heartFunction=value; } + } + /// + /// 高血压 + /// + [ClassAttributs(Description = "高血压")] + public string Hypertension + { + get{ return hypertension; } + set{ hypertension=value; } + } + /// + /// 麻醉手术史 + /// + [ClassAttributs(Description = "麻醉手术史")] + public string AnesthesiaSurgeryHistory + { + get{ return anesthesiaSurgeryHistory; } + set{ anesthesiaSurgeryHistory=value; } + } + /// + /// 麻醉手术史内容 + /// + [ClassAttributs(Description = "麻醉手术史内容")] + public string AnesthesiaSurgeryHistoryDetails + { + get{ return anesthesiaSurgeryHistoryDetails; } + set{ anesthesiaSurgeryHistoryDetails=value; } + } + /// + /// 心血管系统 + /// + [ClassAttributs(Description = "心血管系统")] + public string CardiovascularSystem + { + get{ return cardiovascularSystem; } + set{ cardiovascularSystem=value; } + } + /// + /// 心血管系统内容 + /// + [ClassAttributs(Description = "心血管系统内容")] + public string CardiovascularSystemDetails + { + get{ return cardiovascularSystemDetails; } + set{ cardiovascularSystemDetails=value; } + } + /// + /// 呼吸系统 + /// + [ClassAttributs(Description = "呼吸系统")] + public string RespiratorySystem + { + get{ return respiratorySystem; } + set{ respiratorySystem=value; } + } + /// + /// 呼吸系统内容 + /// + [ClassAttributs(Description = "呼吸系统内容")] + public string RespiratorySystemDetails + { + get{ return respiratorySystemDetails; } + set{ respiratorySystemDetails=value; } + } + /// + /// 内分泌系统 + /// + [ClassAttributs(Description = "内分泌系统")] + public string EndocrineSystem + { + get{ return endocrineSystem; } + set{ endocrineSystem=value; } + } + /// + /// 内分泌系统内容 + /// + [ClassAttributs(Description = "内分泌系统内容")] + public string EndocrineSystemDetails + { + get{ return endocrineSystemDetails; } + set{ endocrineSystemDetails=value; } + } + /// + /// ASA分级 + /// + [ClassAttributs(Description = "ASA分级")] + public string ASAClassification + { + get{ return aSAClassification; } + set{ aSAClassification=value; } + } + /// + /// 镇静镇痛计划 + /// + [ClassAttributs(Description = "镇静镇痛计划")] + public string SedationAnalgesiaPlan + { + get{ return sedationAnalgesiaPlan; } + set{ sedationAnalgesiaPlan=value; } + } + /// + /// 其他特殊情况 + /// + [ClassAttributs(Description = "其他特殊情况")] + public string OtherSpecialConditions + { + get{ return otherSpecialConditions; } + set{ otherSpecialConditions=value; } + } + /// + /// 患者转归 + /// + [ClassAttributs(Description = "患者转归")] + public string PatientOutcome + { + get{ return patientOutcome; } + set{ patientOutcome=value; } + } + /// + /// 疼痛评分 + /// + [ClassAttributs(Description = "疼痛评分")] + public string PainScore + { + get{ return painScore; } + set{ painScore=value; } + } + /// + /// 高跌倒风险 + /// + [ClassAttributs(Description = "高跌倒风险")] + public string HighFallRisk + { + get{ return highFallRisk; } + set{ highFallRisk=value; } + } + /// + /// 评估者 + /// + [ClassAttributs(Description = "评估者")] + public string Evaluator + { + get{ return evaluator; } + set{ evaluator=value; } + } + /// + /// 术后监测医师 + /// + [ClassAttributs(Description = "术后监测医师")] + public string PostoperativeMonitoringDoctor + { + get{ return postoperativeMonitoringDoctor; } + set{ postoperativeMonitoringDoctor=value; } + } + /// + /// 出室Steward评分 + /// + [ClassAttributs(Description = "出室Steward评分")] + public string StewardScoreDischarge + { + get{ return stewardScoreDischarge; } + set{ stewardScoreDischarge=value; } + } + /// + /// 评估时间 + /// + [ClassAttributs(Description = "评估时间")] + public string AssessmentTime + { + get{ return assessmentTime; } + set{ assessmentTime=value; } + } + [NoCreatControlAttributs] + public int? IsValid + { + get{ return isValid; } + set{ isValid=value; } + } + [NoCreatControlAttributs] + public int? OperatorId + { + get{ return operatorId; } + set{ operatorId=value; } + } + [NoCreatControlAttributs] + public DateTime? OperatorTime + { + get{ return operatorTime; } + set{ operatorTime=value; } + } + /// + /// 备注 + /// + [ClassAttributs(Description = "备注")] + public string Remark + { + get{ return remark; } + set{ remark=value; } + } + /// + /// 扩展1 + /// + [ClassAttributs(Description = "扩展1")] + public string Extend1 + { + get{ return extend1; } + set{ extend1=value; } + } + /// + /// 扩展2 + /// + [ClassAttributs(Description = "扩展2")] + public string Extend2 + { + get{ return extend2; } + set{ extend2=value; } + } + /// + /// 扩展3 + /// + [ClassAttributs(Description = "扩展3")] + public string Extend3 + { + get{ return extend3; } + set{ extend3=value; } + } + /// + /// 扩展4 + /// + [ClassAttributs(Description = "扩展4")] + public string Extend4 + { + get{ return extend4; } + set{ extend4=value; } + } + /// + /// 扩展5 + /// + [ClassAttributs(Description = "扩展5")] + public string Extend5 + { + get{ return extend5; } + set{ extend5=value; } + } + } +} diff --git a/DrawGraph/AreaManage/PhysioDataManage.cs b/DrawGraph/AreaManage/PhysioDataManage.cs index 9020b46..11b90e2 100644 --- a/DrawGraph/AreaManage/PhysioDataManage.cs +++ b/DrawGraph/AreaManage/PhysioDataManage.cs @@ -606,10 +606,11 @@ namespace DrawGraph pp.ClearTagstr(ZedControl); pp.phListPack = phListPack; //如果模板管理不为空 - if (pack != null && rowNum < 5 && pp.ShowText == true) + if (pack != null && rowNum <= RowsCount && pp.ShowText == true) { double y = pack.RealY + getYPositionByListIndex(YRows, pack.RealY, pack.RealEndY, RowsCount); - ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f); + if (RowsCount != 1) + ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f); pp.YLocation = y + 0.002; YRows++; rowNum++; @@ -646,7 +647,7 @@ namespace DrawGraph pp.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.PageBegin, myOpeRecord.PageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); pp.ClearTagstr(ZedControl); - if (rowNum < 5 && pp.IsDefalultShow == true) + if (rowNum <= RowsCount && pp.IsDefalultShow == true) { double y = pack.RealY + getYPositionByListIndex(YRows, pack.RealY, pack.RealEndY, RowsCount); ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname + pp.Id, 5.5f); diff --git a/DrawGraph/DrawGraph.csproj b/DrawGraph/DrawGraph.csproj index 8a3a0f1..deb0217 100644 --- a/DrawGraph/DrawGraph.csproj +++ b/DrawGraph/DrawGraph.csproj @@ -56,6 +56,7 @@ + @@ -67,8 +68,10 @@ Form + + diff --git a/DrawGraphManagement/AIMS.xml b/DrawGraphManagement/AIMS.xml index 71c6330..7d66bdd 100644 --- a/DrawGraphManagement/AIMS.xml +++ b/DrawGraphManagement/AIMS.xml @@ -1,6 +1,6 @@  - Data Source=.;Initial Catalog=AIMSDB_DLSJZQZYYY;User ID=sa;Password=Test2020; + Data Source=.;Initial Catalog=AIMSDB_FJZPTFYY;User ID=sa;Password=Test2020; Data Source=.;Initial Catalog=AIMSDB_DATA;User ID=sa;Password=Test2020; Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.10.7)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=orcl2))));Persist Security Info=True;User ID=smview;Password=i39; diff --git a/DrawGraphManagement/Main.Designer.cs b/DrawGraphManagement/Main.Designer.cs index b351908..314f5c5 100644 --- a/DrawGraphManagement/Main.Designer.cs +++ b/DrawGraphManagement/Main.Designer.cs @@ -73,6 +73,7 @@ this.button11 = new System.Windows.Forms.Button(); this.myPanel1 = new DrawGraphManagement.MyPanel(); this.zedGraphMain = new DrawGraph.ZedGraphControl(); + this.button12 = new System.Windows.Forms.Button(); this.panel1.SuspendLayout(); this.panel4.SuspendLayout(); this.pnlManageList.SuspendLayout(); @@ -133,7 +134,7 @@ // // btnSave // - this.btnSave.Location = new System.Drawing.Point(929, 8); + this.btnSave.Location = new System.Drawing.Point(903, 7); this.btnSave.Name = "btnSave"; this.btnSave.Size = new System.Drawing.Size(75, 23); this.btnSave.TabIndex = 5; @@ -164,12 +165,14 @@ this.panel4.Controls.Add(this.button4); this.panel4.Controls.Add(this.button3); this.panel4.Controls.Add(this.txtFontSize); + this.panel4.Controls.Add(this.button11); this.panel4.Controls.Add(this.button1); this.panel4.Controls.Add(this.BtnBind); this.panel4.Controls.Add(this.label6); this.panel4.Controls.Add(this.textBox1); this.panel4.Controls.Add(this.button9); this.panel4.Controls.Add(this.button8); + this.panel4.Controls.Add(this.button12); this.panel4.Controls.Add(this.button7); this.panel4.Controls.Add(this.button6); this.panel4.Controls.Add(this.button10); @@ -236,7 +239,7 @@ // // BtnBind // - this.BtnBind.Location = new System.Drawing.Point(852, 8); + this.BtnBind.Location = new System.Drawing.Point(816, 7); this.BtnBind.Name = "BtnBind"; this.BtnBind.Size = new System.Drawing.Size(75, 23); this.BtnBind.TabIndex = 11; @@ -257,66 +260,66 @@ // this.textBox1.Location = new System.Drawing.Point(81, 9); this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(87, 21); + this.textBox1.Size = new System.Drawing.Size(59, 21); this.textBox1.TabIndex = 10; // // button9 // - this.button9.Location = new System.Drawing.Point(394, 8); + this.button9.Location = new System.Drawing.Point(323, 7); this.button9.Name = "button9"; - this.button9.Size = new System.Drawing.Size(130, 23); + this.button9.Size = new System.Drawing.Size(107, 23); this.button9.TabIndex = 6; - this.button9.Text = "加载麻醉记录单2背面"; + this.button9.Text = "麻醉记录单2背面"; this.button9.UseVisualStyleBackColor = true; this.button9.Click += new System.EventHandler(this.button9_Click); // // button8 // - this.button8.Location = new System.Drawing.Point(728, 8); + this.button8.Location = new System.Drawing.Point(614, 7); this.button8.Name = "button8"; - this.button8.Size = new System.Drawing.Size(122, 23); + this.button8.Size = new System.Drawing.Size(102, 23); this.button8.TabIndex = 6; - this.button8.Text = "加载器械清点单背面"; + this.button8.Text = "器械清点单背面"; this.button8.UseVisualStyleBackColor = true; this.button8.Click += new System.EventHandler(this.button8_Click); // // button7 // - this.button7.Location = new System.Drawing.Point(627, 8); + this.button7.Location = new System.Drawing.Point(527, 7); this.button7.Name = "button7"; - this.button7.Size = new System.Drawing.Size(99, 23); + this.button7.Size = new System.Drawing.Size(75, 23); this.button7.TabIndex = 6; - this.button7.Text = "加载器械清点单"; + this.button7.Text = "器械清点单"; this.button7.UseVisualStyleBackColor = true; this.button7.Click += new System.EventHandler(this.button7_Click); // // button6 // - this.button6.Location = new System.Drawing.Point(526, 8); + this.button6.Location = new System.Drawing.Point(442, 7); this.button6.Name = "button6"; - this.button6.Size = new System.Drawing.Size(99, 23); + this.button6.Size = new System.Drawing.Size(73, 23); this.button6.TabIndex = 6; - this.button6.Text = "加载恢复记录单"; + this.button6.Text = "恢复记录单"; this.button6.UseVisualStyleBackColor = true; this.button6.Click += new System.EventHandler(this.button6_Click); // // button10 // - this.button10.Location = new System.Drawing.Point(283, 8); + this.button10.Location = new System.Drawing.Point(231, 7); this.button10.Name = "button10"; - this.button10.Size = new System.Drawing.Size(109, 23); + this.button10.Size = new System.Drawing.Size(80, 23); this.button10.TabIndex = 6; - this.button10.Text = "加载麻醉记录单2"; + this.button10.Text = "麻醉记录单2"; this.button10.UseVisualStyleBackColor = true; this.button10.Click += new System.EventHandler(this.button10_Click); // // button2 // - this.button2.Location = new System.Drawing.Point(182, 8); + this.button2.Location = new System.Drawing.Point(146, 7); this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(99, 23); + this.button2.Size = new System.Drawing.Size(73, 23); this.button2.TabIndex = 6; - this.button2.Text = "加载麻醉记录单"; + this.button2.Text = "麻醉记录单"; this.button2.UseVisualStyleBackColor = true; this.button2.Click += new System.EventHandler(this.button2_Click); // @@ -420,7 +423,7 @@ "A3"}); this.cmbPageType.Location = new System.Drawing.Point(9, 183); this.cmbPageType.Name = "cmbPageType"; - this.cmbPageType.Size = new System.Drawing.Size(202, 20); + this.cmbPageType.Size = new System.Drawing.Size(148, 20); this.cmbPageType.TabIndex = 6; this.cmbPageType.Text = "A4"; this.cmbPageType.SelectedIndexChanged += new System.EventHandler(this.cmbPageType_SelectedIndexChanged); @@ -444,7 +447,7 @@ "竖向"}); this.cmbTypesetting.Location = new System.Drawing.Point(9, 136); this.cmbTypesetting.Name = "cmbTypesetting"; - this.cmbTypesetting.Size = new System.Drawing.Size(202, 20); + this.cmbTypesetting.Size = new System.Drawing.Size(148, 20); this.cmbTypesetting.TabIndex = 4; this.cmbTypesetting.Text = "竖向"; this.cmbTypesetting.SelectedValueChanged += new System.EventHandler(this.cmbTypesetting_SelectedValueChanged); @@ -462,7 +465,7 @@ // this.txtAreaY.Location = new System.Drawing.Point(9, 77); this.txtAreaY.Name = "txtAreaY"; - this.txtAreaY.Size = new System.Drawing.Size(202, 21); + this.txtAreaY.Size = new System.Drawing.Size(148, 21); this.txtAreaY.TabIndex = 3; // // label5 @@ -478,7 +481,7 @@ // this.txtAreaX.Location = new System.Drawing.Point(9, 23); this.txtAreaX.Name = "txtAreaX"; - this.txtAreaX.Size = new System.Drawing.Size(202, 21); + this.txtAreaX.Size = new System.Drawing.Size(148, 21); this.txtAreaX.TabIndex = 1; // // label4 @@ -492,7 +495,7 @@ // // button11 // - this.button11.Location = new System.Drawing.Point(1010, 12); + this.button11.Location = new System.Drawing.Point(990, 6); this.button11.Name = "button11"; this.button11.Size = new System.Drawing.Size(75, 23); this.button11.TabIndex = 12; @@ -530,6 +533,16 @@ this.zedGraphMain.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zedGraphMain_KeyUp); this.zedGraphMain.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zedGraphMain_MouseDoubleClick); // + // button12 + // + this.button12.Location = new System.Drawing.Point(728, 7); + this.button12.Name = "button12"; + this.button12.Size = new System.Drawing.Size(76, 23); + this.button12.TabIndex = 6; + this.button12.Text = "镇静记录单"; + this.button12.UseVisualStyleBackColor = true; + this.button12.Click += new System.EventHandler(this.button12_Click); + // // Main // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -539,7 +552,6 @@ this.Controls.Add(this.myPanel1); this.Controls.Add(this.panel3); this.Controls.Add(this.pnlManageList); - this.Controls.Add(this.button11); this.Controls.Add(this.panel1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Name = "Main"; @@ -604,5 +616,6 @@ private System.Windows.Forms.Button button9; private System.Windows.Forms.Button button10; private System.Windows.Forms.Button button11; + private System.Windows.Forms.Button button12; } } \ No newline at end of file diff --git a/DrawGraphManagement/Main.cs b/DrawGraphManagement/Main.cs index 3bc50cf..d3add9d 100644 --- a/DrawGraphManagement/Main.cs +++ b/DrawGraphManagement/Main.cs @@ -758,5 +758,61 @@ namespace DrawGraphManagement frmTemplateD frmTemplateD = new frmTemplateD(); frmTemplateD.Show(); } + + private void button12_Click(object sender, EventArgs e) + { + + if (templateManage != null) + { + templateManage.ControlClear(); + } + + try + { + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=60").ToString(); + if (jsonStr != null && jsonStr != "") + { + templateManage = JsonConvert.DeserializeObject(jsonStr); + templateManage.ZedControl = zedGraphMain; + templateManage.OpeRecord = operationRecor; + templateManage.Id = 60; + bool reVal = templateManage.Load(); + if (reVal) + { + AllRefresh(); + } + else + { + MessageBox.Show(templateManage.MsgStr); + } + AutoSizeF(); + + } + + //设置排版值 + if (templateManage.Typesetting == TypesettingEnum.Vertical) + { + cmbTypesetting.Text = "竖向"; + } + else + { + cmbTypesetting.Text = "横向"; + } + //设置纸张类型 + if (templateManage.PageType == PageTypeEnum.A4) + { + cmbPageType.Text = "A4"; + } + else + { + cmbPageType.Text = "A3"; + } + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + + } } }