diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index 1b5d116..45f454a 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -279,6 +279,12 @@ frmQualityControlViewParent.cs + + Form + + + frmAnasRecordBill2.cs + Form @@ -1001,6 +1007,10 @@ frmQualityControlViewParent.cs + + frmAnasRecordBill2.cs + Designer + frmAnasRecordInstrument.cs Designer diff --git a/AIMS/AIMS.xml b/AIMS/AIMS.xml index 4da87c0..2946a41 100644 --- a/AIMS/AIMS.xml +++ b/AIMS/AIMS.xml @@ -1,6 +1,5 @@  - Data Source=.;Initial Catalog=AIMSDB_SXTLYY;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/OperationDoing/AnasRecordBill/DrawAnasReordBill.cs b/AIMS/OperationDoing/AnasRecordBill/DrawAnasReordBill.cs index c07abb1..fb0e413 100644 --- a/AIMS/OperationDoing/AnasRecordBill/DrawAnasReordBill.cs +++ b/AIMS/OperationDoing/AnasRecordBill/DrawAnasReordBill.cs @@ -114,7 +114,7 @@ namespace AIMS.OperationDoing.AnasRecordBill } } - public static void IniDrawAnasReordBill4(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage , ref TemplateManage templateManage2) + public static void IniDrawAnasReordBill4(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage, ref TemplateManage templateManage2) { try { @@ -134,19 +134,19 @@ namespace AIMS.OperationDoing.AnasRecordBill templateManage.ZedControl.Width = templateManage.ZedControl.Parent.Width - 54; templateManage.ZedControl.Height = (templateManage.ZedControl.Parent.Width - 54) / 8 * 11; - + TextPackObj janCePack = templateManage.GetPackObjectOTag("BaseInfoTopManage_TextPackObj_2"); int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * janCePack.RealY); templateManage.LocationY = LocationY; templateManage.SetPYL(); templateManage.ZedControl.AxisChange(); - templateManage.ZedControl.Refresh(); + templateManage.ZedControl.Refresh(); } else { MessageBox.Show(templateManage.MsgStr); } - } + } } catch (Exception ex) { @@ -164,25 +164,107 @@ namespace AIMS.OperationDoing.AnasRecordBill bool reVal = templateManage2.Load(); if (reVal) { - templateManage2.DrawArea(); + templateManage2.DrawArea(); templateManage2.ZedControl.Width = templateManage2.ZedControl.Parent.Width - 54; - templateManage2.ZedControl.Height = (templateManage2.ZedControl.Parent.Width - 54) / 8 * 11; + templateManage2.ZedControl.Height = (templateManage2.ZedControl.Parent.Width - 54) / 8 * 11; templateManage2.LocationY = 0; templateManage2.SetPYL(); templateManage2.ZedControl.AxisChange(); - templateManage2.ZedControl.Refresh(); + templateManage2.ZedControl.Refresh(); } else { MessageBox.Show(templateManage2.MsgStr); } - } + } } catch (Exception ex) { MessageBox.Show(ex.Message); } } + public static void IniDrawAnasReordBill5(OperationRecord _record, ZedGraphControl Zgc, ZedGraphControl Zgc2, ref TemplateManage templateManage, ref TemplateManage templateManage2) + { + try + { + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=40").ToString(); + if (jsonStr != null && jsonStr != "") + { + templateManage = JsonConvert.DeserializeObject(jsonStr); + templateManage.OpeRecord = BOperationRecord.getRecord(_record, -1, 1); + templateManage.ZedControl = Zgc; + templateManage.Id = 40; + bool reVal = templateManage.Load(); + if (reVal) + { + templateManage.DrawArea(); + DrawGraph.Util.DrawText(AIMSExtension.PublicMethod.GetHospitalName(), 0.385, 0.018, Zgc, DrawGraph.Util.Font16); + DrawGraph.Util.DrawText(" 麻醉记录单", 0.4, 0.04, Zgc, DrawGraph.Util.Font16); + + #region 设置界面自适应 + //在此处可随时设置板子的属性 + templateManage.ZedControl.Width = templateManage.ZedControl.Parent.Width - 54; + templateManage.ZedControl.Height = (templateManage.ZedControl.Parent.Width - 54) / 8 * 11; + + + TextPackObj janCePack = templateManage.GetPackObjectOTag("BaseInfoTopManage_TextPackObj_2"); + int LocationY = Convert.ToInt32(templateManage.ZedControl.Height * janCePack.RealY); + 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); + } + + try + { + string jsonStr = DBHelper.ExecuteScalar("SELECT [JsonDate] FROM [dbo].[OperationRecordTemplate] where id=50").ToString(); + if (jsonStr != null && jsonStr != "") + { + templateManage2 = JsonConvert.DeserializeObject(jsonStr); + templateManage2.ZedControl = Zgc2; + templateManage2.Id = 50; + templateManage2.OpeRecord = BOperationRecord.getRecord(_record, -1, 2); + bool reVal = templateManage2.Load(); + if (reVal) + { + templateManage2.DrawArea(); + templateManage2.ZedControl.Width = templateManage.ZedControl.Width; + templateManage2.ZedControl.Height = templateManage.ZedControl.Height; + templateManage2.LocationY = 0; + templateManage2.SetPYL(); + templateManage2.ZedControl.AxisChange(); + templateManage2.ZedControl.Refresh(); + } + else + { + MessageBox.Show(templateManage2.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/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs index 2551817..6d30e73 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill.cs @@ -896,6 +896,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { PublicUI.UI.frmFactOutputLiquidsNew frmFactOutputLiquids = new PublicUI.UI.frmFactOutputLiquidsNew(); frmFactOutputLiquids._record = _record; + frmFactOutputLiquids.zgcAnaesRecord = zgcAnaesRecord; frmFactOutputLiquids.OutputLiquidTypeId = RecoverId; // 事件类型 1 麻醉单事件 2 麻醉恢复单 frmFactOutputLiquids.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); frmFactOutputLiquids.ShowDialog(); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs new file mode 100644 index 0000000..1b6a2e3 --- /dev/null +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs @@ -0,0 +1,2140 @@ +namespace AIMS.OperationDoing.AnasRecordBill.UI +{ + partial class frmAnasRecordBill2 + { + /// + /// 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(frmAnasRecordBill2)); + 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.btnBloodGasAnalysis = 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.btnqxqd = 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.superTabMain = new DevComponents.DotNetBar.SuperTabControl(); + this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel(); + this.panelExZKZB = new DevComponents.DotNetBar.PanelEx(); + this.spTabQXQDD = new DevComponents.DotNetBar.SuperTabItem(); + this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel(); + this.panelExBLSJ = new DevComponents.DotNetBar.PanelEx(); + this.spTabBM = new DevComponents.DotNetBar.SuperTabItem(); + this.panel7 = new System.Windows.Forms.Panel(); + this.panel21 = 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.panel8 = new AIMS.PublicUI.UI.DrawPanel(); + this.circularProgress1 = new DevComponents.DotNetBar.Controls.CircularProgress(); + this.zgcAnaesRecord = new DrawGraph.ZedGraphControl(); + this.panel82 = new AIMS.PublicUI.UI.DrawPanel(); + this.circularProgress2 = new DevComponents.DotNetBar.Controls.CircularProgress(); + this.zgcAnaesRecord2 = new DrawGraph.ZedGraphControl(); + 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.panel3.SuspendLayout(); + this.panel14.SuspendLayout(); + this.panel4.SuspendLayout(); + this.panel1.SuspendLayout(); + this.panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.superTabMain)).BeginInit(); + this.superTabMain.SuspendLayout(); + this.superTabControlPanel1.SuspendLayout(); + this.panelExZKZB.SuspendLayout(); + this.superTabControlPanel2.SuspendLayout(); + this.panelExBLSJ.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.panel8.SuspendLayout(); + this.panel82.SuspendLayout(); + 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(2082, 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, 1032); + 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.btnBloodGasAnalysis); + 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, 1032); + 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.Top; + 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, 550); + 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, 500); + 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, 450); + 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, 400); + 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, 350); + 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); + // + // btnBloodGasAnalysis + // + this.btnBloodGasAnalysis.BackColor = System.Drawing.Color.Transparent; + this.btnBloodGasAnalysis.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnBloodGasAnalysis.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnBloodGasAnalysis.Dock = System.Windows.Forms.DockStyle.Top; + this.btnBloodGasAnalysis.FlatAppearance.BorderSize = 0; + this.btnBloodGasAnalysis.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnBloodGasAnalysis.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnBloodGasAnalysis.ForeColor = System.Drawing.Color.DimGray; + this.btnBloodGasAnalysis.Image = global::AIMS.Properties.Resources.血气分析; + this.btnBloodGasAnalysis.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnBloodGasAnalysis.Location = new System.Drawing.Point(0, 300); + this.btnBloodGasAnalysis.Name = "btnBloodGasAnalysis"; + this.btnBloodGasAnalysis.Size = new System.Drawing.Size(160, 50); + this.btnBloodGasAnalysis.TabIndex = 8; + this.btnBloodGasAnalysis.Text = " 血气分析"; + this.btnBloodGasAnalysis.UseVisualStyleBackColor = false; + this.btnBloodGasAnalysis.Click += new System.EventHandler(this.btnBloodGasAnalysis_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 = 9; + this.button6.Text = " 质控指标"; + this.button6.UseVisualStyleBackColor = false; + this.button6.Click += new System.EventHandler(this.button6_Click); + // + // 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.btnqxqd); + 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(1922, 10); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(160, 1032); + 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, 632); + 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); + // + // btnqxqd + // + this.btnqxqd.BackColor = System.Drawing.Color.Transparent; + this.btnqxqd.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; + this.btnqxqd.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnqxqd.Dock = System.Windows.Forms.DockStyle.Bottom; + this.btnqxqd.FlatAppearance.BorderSize = 0; + this.btnqxqd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnqxqd.Font = new System.Drawing.Font("微软雅黑", 11F); + this.btnqxqd.ForeColor = System.Drawing.Color.DimGray; + this.btnqxqd.Image = global::AIMS.Properties.Resources.麻药管理; + this.btnqxqd.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.btnqxqd.Location = new System.Drawing.Point(0, 682); + this.btnqxqd.Name = "btnqxqd"; + this.btnqxqd.Size = new System.Drawing.Size(160, 50); + this.btnqxqd.TabIndex = 31; + this.btnqxqd.Text = " 器械清点单"; + this.btnqxqd.UseVisualStyleBackColor = false; + this.btnqxqd.Click += new System.EventHandler(this.btnqxqd_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, 732); + 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, 782); + 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.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, 832); + 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, 882); + 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, 932); + 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.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, 982); + 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.Click += new System.EventHandler(this.btnsbwh_Click); + // + // lblSpo2 + // + this.lblSpo2.AutoSize = true; + this.lblSpo2.Font = new System.Drawing.Font("微软雅黑", 23F); + this.lblSpo2.ForeColor = System.Drawing.Color.Teal; + this.lblSpo2.Location = new System.Drawing.Point(63, 399); + this.lblSpo2.Name = "lblSpo2"; + this.lblSpo2.Size = new System.Drawing.Size(43, 40); + this.lblSpo2.TabIndex = 9; + this.lblSpo2.Text = "--"; + // + // lblRESP + // + this.lblRESP.AutoSize = true; + this.lblRESP.Font = new System.Drawing.Font("微软雅黑", 23F); + this.lblRESP.ForeColor = System.Drawing.Color.Teal; + this.lblRESP.Location = new System.Drawing.Point(63, 308); + this.lblRESP.Name = "lblRESP"; + this.lblRESP.Size = new System.Drawing.Size(43, 40); + this.lblRESP.TabIndex = 7; + this.lblRESP.Text = "--"; + // + // lblDia + // + this.lblDia.AutoSize = true; + this.lblDia.Font = new System.Drawing.Font("微软雅黑", 23F); + this.lblDia.ForeColor = System.Drawing.Color.Teal; + this.lblDia.Location = new System.Drawing.Point(43, 217); + this.lblDia.Name = "lblDia"; + this.lblDia.Size = new System.Drawing.Size(82, 40); + this.lblDia.TabIndex = 5; + this.lblDia.Text = "--/--"; + // + // lblPR + // + this.lblPR.AutoSize = true; + this.lblPR.Font = new System.Drawing.Font("微软雅黑", 23F); + this.lblPR.ForeColor = System.Drawing.Color.Teal; + this.lblPR.Location = new System.Drawing.Point(63, 126); + this.lblPR.Name = "lblPR"; + this.lblPR.Size = new System.Drawing.Size(43, 40); + this.lblPR.TabIndex = 3; + this.lblPR.Text = "--"; + // + // lblHR + // + this.lblHR.AutoSize = true; + this.lblHR.Font = new System.Drawing.Font("微软雅黑", 23F); + this.lblHR.ForeColor = System.Drawing.Color.Teal; + this.lblHR.Location = new System.Drawing.Point(63, 35); + this.lblHR.Name = "lblHR"; + this.lblHR.Size = new System.Drawing.Size(43, 40); + 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, 376); + 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, 285); + 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, 194); + 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(49, 441); + 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, 350); + 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, 259); + 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, 168); + 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, 77); + 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, 103); + 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(2082, 1042); + 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.superTabMain); + 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(1762, 1032); + this.panel5.TabIndex = 4; + // + // superTabMain + // + // + // + // + // + // + // + this.superTabMain.ControlBox.CloseBox.Name = ""; + // + // + // + this.superTabMain.ControlBox.MenuBox.Name = ""; + this.superTabMain.ControlBox.Name = ""; + this.superTabMain.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.superTabMain.ControlBox.MenuBox, + this.superTabMain.ControlBox.CloseBox}); + this.superTabMain.Controls.Add(this.superTabControlPanel1); + this.superTabMain.Controls.Add(this.superTabControlPanel2); + this.superTabMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabMain.Location = new System.Drawing.Point(0, 58); + this.superTabMain.Name = "superTabMain"; + this.superTabMain.ReorderTabsEnabled = true; + this.superTabMain.SelectedTabFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold); + this.superTabMain.SelectedTabIndex = 0; + this.superTabMain.Size = new System.Drawing.Size(1760, 932); + this.superTabMain.TabFont = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.superTabMain.TabIndex = 14; + this.superTabMain.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.spTabQXQDD, + this.spTabBM}); + // + // superTabControlPanel1 + // + this.superTabControlPanel1.Controls.Add(this.panelExZKZB); + this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel1.Location = new System.Drawing.Point(0, 28); + this.superTabControlPanel1.Name = "superTabControlPanel1"; + this.superTabControlPanel1.Size = new System.Drawing.Size(1760, 904); + this.superTabControlPanel1.TabIndex = 1; + this.superTabControlPanel1.TabItem = this.spTabQXQDD; + // + // panelExZKZB + // + this.panelExZKZB.CanvasColor = System.Drawing.SystemColors.Control; + this.panelExZKZB.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelExZKZB.Controls.Add(this.panel8); + this.panelExZKZB.DisabledBackColor = System.Drawing.Color.Empty; + this.panelExZKZB.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelExZKZB.Location = new System.Drawing.Point(0, 0); + this.panelExZKZB.Name = "panelExZKZB"; + this.panelExZKZB.Size = new System.Drawing.Size(1760, 904); + this.panelExZKZB.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelExZKZB.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelExZKZB.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelExZKZB.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelExZKZB.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelExZKZB.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelExZKZB.Style.GradientAngle = 90; + this.panelExZKZB.TabIndex = 0; + // + // spTabQXQDD + // + this.spTabQXQDD.AttachedControl = this.superTabControlPanel1; + this.spTabQXQDD.GlobalItem = false; + this.spTabQXQDD.Name = "spTabQXQDD"; + this.spTabQXQDD.Text = "麻醉记录单正面"; + // + // superTabControlPanel2 + // + this.superTabControlPanel2.Controls.Add(this.panelExBLSJ); + this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel2.Location = new System.Drawing.Point(0, 28); + this.superTabControlPanel2.Name = "superTabControlPanel2"; + this.superTabControlPanel2.Size = new System.Drawing.Size(1760, 904); + this.superTabControlPanel2.TabIndex = 0; + this.superTabControlPanel2.TabItem = this.spTabBM; + // + // panelExBLSJ + // + this.panelExBLSJ.CanvasColor = System.Drawing.SystemColors.Control; + this.panelExBLSJ.ColorSchemeStyle = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.panelExBLSJ.Controls.Add(this.panel82); + this.panelExBLSJ.DisabledBackColor = System.Drawing.Color.Empty; + this.panelExBLSJ.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelExBLSJ.Location = new System.Drawing.Point(0, 0); + this.panelExBLSJ.Name = "panelExBLSJ"; + this.panelExBLSJ.Size = new System.Drawing.Size(1760, 904); + this.panelExBLSJ.Style.Alignment = System.Drawing.StringAlignment.Center; + this.panelExBLSJ.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground; + this.panelExBLSJ.Style.BackColor2.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2; + this.panelExBLSJ.Style.Border = DevComponents.DotNetBar.eBorderType.SingleLine; + this.panelExBLSJ.Style.BorderColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBorder; + this.panelExBLSJ.Style.ForeColor.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelText; + this.panelExBLSJ.Style.GradientAngle = 90; + this.panelExBLSJ.TabIndex = 0; + // + // spTabBM + // + this.spTabBM.AttachedControl = this.superTabControlPanel2; + this.spTabBM.GlobalItem = false; + this.spTabBM.Name = "spTabBM"; + this.spTabBM.Text = "麻醉记录单背面"; + // + // 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, 990); + this.panel7.Name = "panel7"; + this.panel7.Size = new System.Drawing.Size(1760, 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(1406, 0); + this.panel21.Name = "panel21"; + this.panel21.Size = new System.Drawing.Size(354, 40); + this.panel21.TabIndex = 10; + // + // 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.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.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.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(1760, 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(1159, 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(511, 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(835, 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(997, 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(349, 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(187, 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(673, 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(25, 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; + // + // 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, 0); + this.panel8.Name = "panel8"; + this.panel8.Size = new System.Drawing.Size(1760, 904); + this.panel8.TabIndex = 2; + 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); + // + // panel82 + // + this.panel82.AutoScroll = true; + this.panel82.BackColor = System.Drawing.Color.White; + this.panel82.Controls.Add(this.circularProgress2); + this.panel82.Controls.Add(this.zgcAnaesRecord2); + this.panel82.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel82.Location = new System.Drawing.Point(0, 0); + this.panel82.Name = "panel82"; + this.panel82.Size = new System.Drawing.Size(1760, 904); + this.panel82.TabIndex = 3; + this.panel82.Scroll += new System.Windows.Forms.ScrollEventHandler(this.panel82_Scroll); + // + // circularProgress2 + // + this.circularProgress2.AnimationSpeed = 50; + // + // + // + this.circularProgress2.BackgroundStyle.BackgroundImageAlpha = ((byte)(0)); + this.circularProgress2.BackgroundStyle.BackgroundImagePosition = DevComponents.DotNetBar.eStyleBackgroundImage.Zoom; + this.circularProgress2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.circularProgress2.FocusCuesEnabled = false; + this.circularProgress2.Font = new System.Drawing.Font("微软雅黑", 9F); + this.circularProgress2.Location = new System.Drawing.Point(678, 354); + this.circularProgress2.Margin = new System.Windows.Forms.Padding(4); + this.circularProgress2.Name = "circularProgress2"; + this.circularProgress2.ProgressColor = System.Drawing.Color.DodgerBlue; + this.circularProgress2.Size = new System.Drawing.Size(389, 239); + this.circularProgress2.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP; + this.circularProgress2.TabIndex = 6; + this.circularProgress2.Value = 100; + // + // zgcAnaesRecord2 + // + this.zgcAnaesRecord2.Location = new System.Drawing.Point(416, 41); + this.zgcAnaesRecord2.Name = "zgcAnaesRecord2"; + this.zgcAnaesRecord2.ScrollGrace = 0D; + this.zgcAnaesRecord2.ScrollMaxX = 0D; + this.zgcAnaesRecord2.ScrollMaxY = 0D; + this.zgcAnaesRecord2.ScrollMaxY2 = 0D; + this.zgcAnaesRecord2.ScrollMinX = 0D; + this.zgcAnaesRecord2.ScrollMinY = 0D; + this.zgcAnaesRecord2.ScrollMinY2 = 0D; + this.zgcAnaesRecord2.Size = new System.Drawing.Size(800, 1000); + this.zgcAnaesRecord2.TabIndex = 0; + this.zgcAnaesRecord2.Visible = false; + this.zgcAnaesRecord2.ContextMenuBuilder += new DrawGraph.ZedGraphControl.ContextMenuBuilderEventHandler(this.zgcAnaesRecord2_ContextMenuBuilder); + this.zgcAnaesRecord2.MouseDownEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseDownEvent); + this.zgcAnaesRecord2.MouseUpEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseUpEvent); + this.zgcAnaesRecord2.MouseMoveEvent += new DrawGraph.ZedGraphControl.ZedMouseEventHandler(this.zgcAnaesRecord2_MouseMoveEvent); + this.zgcAnaesRecord2.KeyUp += new System.Windows.Forms.KeyEventHandler(this.zgcAnaesRecord2_KeyUp); + this.zgcAnaesRecord2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.zgcAnaesRecord2_MouseDoubleClick); + // + // 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.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.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.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.btnUpPage.Click += new System.EventHandler(this.btnUpPage_Click); + // + // frmAnasRecordBill2 + // + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; + this.ClientSize = new System.Drawing.Size(2082, 1042); + this.Controls.Add(this.panel1); + this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); + this.Name = "frmAnasRecordBill2"; + 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.panel3.ResumeLayout(false); + this.panel14.ResumeLayout(false); + this.panel4.ResumeLayout(false); + this.panel4.PerformLayout(); + this.panel1.ResumeLayout(false); + this.panel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.superTabMain)).EndInit(); + this.superTabMain.ResumeLayout(false); + this.superTabControlPanel1.ResumeLayout(false); + this.panelExZKZB.ResumeLayout(false); + this.superTabControlPanel2.ResumeLayout(false); + this.panelExBLSJ.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.panel8.ResumeLayout(false); + this.panel82.ResumeLayout(false); + 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 PublicUI.UI.DrawPanel panel8; + 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 button6; + private System.Windows.Forms.Button btnBloodGasAnalysis; + private System.Windows.Forms.Button btnOutputLiquids; + private DrawGraph.ZedGraphControl zgcAnaesRecord; + private System.Windows.Forms.Button button8; + private System.Windows.Forms.Button button7; + private System.Windows.Forms.Button btnCancelIn; + private System.Windows.Forms.Button btnCancelOperation; + public DevComponents.DotNetBar.Controls.CircularProgress circularProgress1; + 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 DevComponents.DotNetBar.SuperTabControl superTabMain; + private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel1; + private DevComponents.DotNetBar.PanelEx panelExZKZB; + private DevComponents.DotNetBar.SuperTabItem spTabQXQDD; + private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel2; + private DevComponents.DotNetBar.PanelEx panelExBLSJ; + private DevComponents.DotNetBar.SuperTabItem spTabBM; + private PublicUI.UI.DrawPanel panel82; + public DevComponents.DotNetBar.Controls.CircularProgress circularProgress2; + private DrawGraph.ZedGraphControl zgcAnaesRecord2; + 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 btnqxqd; + 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; + } +} \ No newline at end of file diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs new file mode 100644 index 0000000..25746a2 --- /dev/null +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs @@ -0,0 +1,2084 @@ +using AIMS.DocManager; +using AIMS.OperationFront.UI; +using AIMS.OremrUserControl; +using AIMS.PublicUI.UI; +using AIMSBLL; +using AIMSExtension; +using AIMSModel; +using DevComponents.Editors.DateTimeAdv; +using DrawGraph; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Drawing.Printing; +using System.IO; +using System.Linq; +using System.Reflection; +using System.Windows.Forms; + +namespace AIMS.OperationDoing.AnasRecordBill.UI +{ + public partial class frmAnasRecordBill2 : Form + { + #region 初始化 + public OperationRecord _record; + public TemplateManage templateManage; + public TemplateManage templateManage2; + 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 frmAnasRecordBill2() + { + 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 + //AIMSExtension.PublicMethod.SetLocalDateTime(); + } + + private void frmAnasRecordBill2_Load(object sender, EventArgs e) + { + //系统演示 收费功能 + if (PublicMethod.OperatorNo == "admin") + { + btnChage.Visible = true; + } + + 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); + + 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 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; + //if (pdg!=null) + //{ + //m_startPrintPage = pdg.pa + //m_endPrintPage = pDoc.PrinterSettings.ToPage; + //} + 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; + } + } + } + + private void plPrintBrowse_Click(object sender, EventArgs e) + { + if (_record == null || _record.Id == 0) return; + if (txtOutRoom.Focused) + { + zgcAnaesRecord.Focus(); + } + 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.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 + { + while (_record.currentPage != _record.pageCount) + { + PrintDocPane(e, zgcAnaesRecord, templateManage, true); + btnNextPage_Click(null, null); + } + PrintDocPane(e, zgcAnaesRecord, templateManage, true); + } + PrintDocPane(e, zgcAnaesRecord2, templateManage2, false); + + } + + private void PrintDocPane(PrintPageEventArgs e, ZedGraphControl zedGraph, TemplateManage template, bool InitChart) + { + if (InitChart == false) + 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.addPhysioList) + { + if (pp.showStyle == "显示数值") + { + pp.IsValid = false; + ///重新设置曲线属性 + pp.reSetCurveSpo2(); + } + } + TipBox.Hidden(); + Panel panel = zedGraph.Parent as Panel; + panel.VerticalScroll.Value = 0; + + 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.addPhysioList) + { + if (pp.showStyle == "显示数值") + { + pp.IsValid = true; + ///重新设置曲线属性 + pp.reSetCurveSpo2(); + } + } + if (InitChart == false) + foreach (AreaManageBase area in template.ManageList) + { + area.setPrint(true); + } + } + + private void plPrint_Click(object sender, EventArgs e) + { + if (_record == null || _record.Id == 0) return; + if (txtOutRoom.Focused) + { + zgcAnaesRecord.Focus(); + } + 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(); + } + + count = 0; + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp, ""); + } + } + + #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(); + } + } + } + /// + /// 特殊事件触发时设置图片 + /// + /// 显示时间的控件 + 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(); + } + } + } + /// + /// 特殊事件触发时设置图片 + /// + /// 显示时间的控件 + 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(); + } + } + /// + /// 判断控件对应的事件 删除事件 + /// + /// 事件对应的控件名称 + /// 事件名称 + /// 控件 + 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.麻醉开始; + } + if (Inevent != null && Inevent.EventName == "手术开始") + { + _record.OperationBeginTime = null; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始; + } + if (Inevent != null && Inevent.EventName == "手术结束") + { + _record.OperationEndTime = null; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束; + } + if (Inevent != null && Inevent.EventName == "麻醉完成") + { + _record.AnesthesiaEndTime = null; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; + } + if (Inevent != null && Inevent.EventName == cmbCGType.Text) + { + _record.InCGType = ""; + _record.InCGTime = null; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管; + } + if (Inevent != null && Inevent.EventName == "拔管") + { + _record.OutCGTime = null; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管; + } + + if (Inevent != null) + { + BOperationRecord.Update("OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,OutRoomTime=@OutRoom where Id=@id", new AIMSModel.ParameterList("@OperationBegin", _record.OperationBeginTime.HasValue ? (object)_record.OperationBeginTime.Value : (object)DBNull.Value, "@OperationEnd", _record.OperationEndTime.HasValue ? (object)_record.OperationEndTime.Value : (object)DBNull.Value, "@OutRoom", _record.OutRoomTime.HasValue ? (object)_record.OutRoomTime.Value : (object)DBNull.Value, "@id", _record.Id)); + } + } + } + /// + /// 判断控件对应的事件 插入事件 + /// + /// 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 == "请填写手术不良事件!") + // btnAdverseFactEvents_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; + } + if (Inevent != null && Inevent.EventName == "麻醉开始" && _record.AnesthesiaBeginTime != Inevent.EventBeginTime) + { + _record.AnesthesiaBeginTime = Inevent.EventBeginTime; + this.picAnesBegin.BackgroundImage = global::AIMS.Properties.Resources.麻醉开始_select; + } + if (Inevent != null && Inevent.EventName == "手术开始" && _record.OperationBeginTime != Inevent.EventBeginTime) + { + _record.OperationBeginTime = Inevent.EventBeginTime; + this.picOpeBegin.BackgroundImage = global::AIMS.Properties.Resources.手术开始_select; + } + if (Inevent != null && Inevent.EventName == cmbCGType.Text && _record.InCGTime != Inevent.EventBeginTime) + { + _record.InCGType = cmbCGType.Text; + _record.InCGTime = Inevent.EventBeginTime; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管_select; + } + if (Inevent != null && Inevent.EventName == "拔管" && _record.OutCGTime != Inevent.EventBeginTime) + { + _record.OutCGTime = Inevent.EventBeginTime; + this.picBG.BackgroundImage = global::AIMS.Properties.Resources.拔管_select; + } + if (Inevent != null && Inevent.EventName == "手术结束" && _record.OperationEndTime != Inevent.EventBeginTime) + { + _record.OperationEndTime = Inevent.EventBeginTime; + this.picOpeEnd.BackgroundImage = global::AIMS.Properties.Resources.手术结束_select; + } + if (Inevent != null && Inevent.EventName == "麻醉完成" && _record.AnesthesiaEndTime != Inevent.EventBeginTime) + { + _record.AnesthesiaEndTime = Inevent.EventBeginTime; + this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束_select; + } + if (Inevent != null && Inevent.EventName == "出室" && _record.OutRoomTime != Inevent.EventBeginTime) + { + _record.OutRoomTime = Inevent.EventBeginTime; + this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室_select; + } + if (Inevent != null) + { + BOperationRecord.Update("InRoomTime=@InRoom,AnesthesiaBeginTime=@AnesthesiaBeginTime,OperationBeginTime=@OperationBegin,OperationEndTime=@OperationEnd,AnesthesiaEndTime=@AnesthesiaEndTime,OutRoomTime=@OutRoom where Id=@id ", new AIMSModel.ParameterList("@InRoom", _record.InRoomTime.HasValue ? (object)_record.InRoomTime.Value : (object)DateTime.Now, "@AnesthesiaBeginTime", _record.AnesthesiaBeginTime.HasValue ? (object)_record.AnesthesiaBeginTime.Value : (object)DBNull.Value, "@OperationBegin", _record.OperationBeginTime.HasValue ? (object)_record.OperationBeginTime.Value : (object)DBNull.Value, "@OperationEnd", _record.OperationEndTime.HasValue ? (object)_record.OperationEndTime.Value : (object)DBNull.Value, "@AnesthesiaEndTime", _record.AnesthesiaEndTime.HasValue ? (object)_record.AnesthesiaEndTime.Value : (object)DBNull.Value, "@OutRoom", _record.OutRoomTime.HasValue ? (object)_record.OutRoomTime.Value : (object)DBNull.Value, "@id", _record.Id)); + } + } + } + /// + /// 修改事件时间 + /// + /// + /// + 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) + { + templateManage.SetPYL(); + } + private void panel82_Scroll(object sender, ScrollEventArgs e) + { + templateManage2.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; + } + 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; + } + public DateTime getOpeMaxTime(OperationRecord myOpeRecord) + { + try + { + DateTime dts = BOperationRecord.lastMaxOperationDate(myOpeRecord.Id.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) + { + OperationDoing.AnasRecordBill.UI.frmSelectPatientNew frmSelectPatient = new UI.frmSelectPatientNew(); + frmSelectPatient.isMainOpen = true; + 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; + circularProgress2.IsRunning = true; + circularProgress2.Visible = true; + zgcAnaesRecord.Visible = false; + zgcAnaesRecord2.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; + DrawAnasReordBill.IniDrawAnasReordBill5(_record, zgcAnaesRecord, zgcAnaesRecord2, ref templateManage, ref templateManage2); + StartTimer(); + } + catch + { + HelperDB.DbHelperSQL.RollbackTrans(); + } + } + else if (PatientId > 0 && State == AIMSExtension.EditState.EDIT) + { + _record = new OperationRecord(); + btnSelectPatient.Enabled = false; //清空记录点并重新加载 + ClearTimeText(); + if (templateManage != null) + { + templateManage.ControlClear(); + } + if (templateManage2 != null) + { + templateManage2.ControlClear(); + } + DrawAnasReordBill.IniDrawAnasReordBill5(_record, zgcAnaesRecord, zgcAnaesRecord2, ref templateManage, ref templateManage2); + StartTimer(); + } + else if (PatientId > 0 && State == AIMSExtension.EditState.BROWSE) + { + _record = new OperationRecord(); + btnSelectPatient.Enabled = true; + btnCancelOperation.Enabled = false; + btnCancelIn.Enabled = false; + ClearTimeText(); + if (templateManage != null) + { + templateManage.ControlClear(); + } + if (templateManage2 != null) + { + templateManage2.ControlClear(); + } + DrawAnasReordBill.IniDrawAnasReordBill5(_record, zgcAnaesRecord, zgcAnaesRecord2, ref templateManage, ref templateManage2); + + StartTimer(); + } + plRefresh_Click(null, null); + if (_record.MedicalRecord != null && _record.MedicalRecord != "") + { + btnOperationInfo.Enabled = false; + btnOutputLiquids.Enabled = false; + btnDrug.Enabled = false; + btnAddEvents.Enabled = false; + button6.Enabled = false; + btnBloodGasAnalysis.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; + circularProgress2.IsRunning = false; + circularProgress2.Visible = false; + zgcAnaesRecord2.Visible = true; + + } + + private void btnOperationInfo_Click(object sender, EventArgs e) + { + if (PatientId != 0) + { + AIMS.OperationDoing.AnasRecordBill.UI.frmOperationInfoNew frmOperationInfo = new frmOperationInfoNew(); + 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.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); + 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 += ReferEventDrugs; + frmFactEventsNew.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + 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.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); + frmFactOutputLiquids.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + private void button6_Click(object sender, EventArgs e) + { + frmAnaseDataQualityRecord frmAnaseDataQuality = new frmAnaseDataQualityRecord(); + frmAnaseDataQuality._record = _record; + frmAnaseDataQuality.ShowDialog(); + } + void frmFactEventsNew_FormClosed(object sender, FormClosedEventArgs e) + { + plRefresh_Click(null, null); + } + private void btnCancelOperation_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, 11); + //BOperationRecord.DeleteOperationRecordData(PatientId, RecoverId); + BOperationRecord.UpdateState(PatientId, 1, 5); + HelperDB.DbHelperSQL.CommitTrans(); + + //ClearData(); + 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.FormClosed += new FormClosedEventHandler(frmFactEventsNew_FormClosed); + frmTemplateObj.InRoomTime = _record.InRoomTime.Value; + frmTemplateObj.PatientId = PatientId; + frmTemplateObj.TypeId = 1; + frmTemplateObj.ShowDialog(); + + } + 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 frmDocument = new frmDocument(patient); + frmDocument.StartPosition = FormStartPosition.CenterScreen; + frmDocument.WindowState = FormWindowState.Maximized; + frmDocument.ShowDialog(); + } + void toolStripMenuItem2_Click(object sender, EventArgs e) + { + frmPhysiosSetting frm = new frmPhysiosSetting(); + frm.ConfigParam += new frmPhysiosSetting.ConfigParamHandler(templateManage.frmInstance_ConfigParam); + frm._record = _record; + 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 += new FormClosedEventHandler(frmFactEventsNew_FormClosed); + frmFactBloodGasAnalysis.ShowDialog(); + } + else + { + MessageBox.Show("请选择患者"); + } + } + private void reDrawAnalysis() + { + try + { + //图表的对象 + TextPackObj janCePack = templateManage.GetPackObjectOTag("PhysioDataManage_TextPackObj_17"); + LinePackObj H5pack = templateManage.GetPackObjectOTag("IconManage_LinePackObj_5"); + RectangleFramePackObj IconPpack = templateManage.GetPackObjectOTag("IconManage_RectangleFramePackObj_2"); + 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, IconPpack.RealY, _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(bool isOpen) + { + if (State == AIMSExtension.EditState.BROWSE || _record.StateName != "手术中" || NowRoom == null || isReadOnly == true) return; + //if (!PublicMethod.RoleId.Operator.RoleRef.Name.Contains("麻醉") && PublicMethod.Operator.Id != _record.OperatorId + // && _record.OperatorId != 1 && PublicMethod.Operator.Name != "系统管理员") return; + if (_record.OutRoomTime != null && DateTime.Now >= _record.OutRoomTime) return; + DateTime dtTime = DateTime.Now; + + double span = ((TimeSpan)(dtTime - _record.InRoomTime.Value)).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 + { + //bool isNowRoom = isOpeRoom(); + //if (isNowRoom == false) + //{ + // return; + //} + + 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.addPhysioList) + { + string key = addPP.Name; + string value = addPP.Enname; + if (addPP.IsValid == false) continue; + //if (addPP.StopCollect == true) continue; + if (key == "机控呼吸") 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) + { + try + { + 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 = new PhysioData(); + pdTemp.RecordTime = dtTime; + pdTemp.Value = Double.Parse(dr["ParamValue"].ToString()); + pdTemp.YAisx = addPP.YAisx; + pdTemp.PhysioDataConfigId = addPP.Id; + pdTemp.PatientId = _record.Id.Value; + physioDatas.Add(pdTemp); + continue; + } + catch (Exception) + { + continue; + } + } + } + } + + //有有创清空无创 + foreach (var pdTemp in physioDatas) + { + if (pdTemp.PhysioDataConfigId == 7) + { + foreach (var temp in physioDatas) + { + if (temp.PhysioDataConfigId == 5) + { + temp.Value = 0; + } + } + } + if (pdTemp.PhysioDataConfigId == 8) + { + foreach (var temp in physioDatas) + { + if (temp.PhysioDataConfigId == 6) + { + temp.Value = 0; + } + } + } + } + + foreach (var pdTemp in physioDatas) + { + if (pdTemp.Value < 1) continue; + PhysioDataConfig addPP = _record.addPhysioList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList()[0]; + addPP.AddOrDelItem(pdTemp, 5); + date++; + } + + if (dtTime > _record.lastPageBegin && ((TimeSpan)(dtTime - _record.lastPageBegin)).TotalHours < 24 && date > 0) + { + _record.currentPage++; + btnNextPage_Click(null, null); + } + + } + catch (Exception) + { + //getPhysioData_Click(null, null); + } + } + + public string szy;//舒张压 + public string ssy;//收缩压 + public DateTime? LastRespMonitorDataTime; + private void timerGetTextCollectorData_Tick(object sender, EventArgs e) + { + try + { + if (((TimeSpan)(DateTime.Now - _record.lastPageBegin)).TotalHours > 24 || NowRoom == null) return; + timerGetCollectorData_Tick(false); + 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); + foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties()) + { + bool iswar = false; + foreach (PhysioDataConfig keyValuePair in _record.addPhysioList) + { + if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper()) + { + try + { + object paramValue = p.GetValue(nowPhysioData, null); + if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") + { + double value = Double.Parse(paramValue.ToString()); + value = Convert.ToInt32(value); + if (value < keyValuePair.WarningLowLimit || value > keyValuePair.WarningHighLimit) + { + iswar = true; + } + + if (keyValuePair.Name == "心率") + { + lblHR.Text = value <= 0 ? "- -" : value.ToString(); + if (iswar == true) lblHR.ForeColor = Color.Red; else lblHR.ForeColor = Color.Green; + } + if (keyValuePair.Name == "自主呼吸") + { + lblRESP.Text = value <= 0 ? "- -" : value.ToString(); + if (iswar == true) lblRESP.ForeColor = Color.Red; else lblRESP.ForeColor = Color.Green; + } + if (keyValuePair.Name == "氧饱和度") + { + lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); + if (iswar == true) lblSpo2.ForeColor = Color.Red; else lblSpo2.ForeColor = Color.Green; + } + if (keyValuePair.Name == "脉率") + { + lblPR.Text = value <= 0 ? "- -" : value.ToString(); + if (iswar == true) lblPR.ForeColor = Color.Red; else lblPR.ForeColor = Color.Green; + } + if (keyValuePair.Name == "无创舒张压") + { + szy = value <= 0 ? "" : value.ToString(); + if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; + } + if (keyValuePair.Name == "无创收缩压") + { + ssy = value <= 0 ? "" : value.ToString(); + if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; + } + if (keyValuePair.Name == "有创舒张压") + { + szy = value <= 0 ? "" : value.ToString(); + if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; + } + if (keyValuePair.Name == "有创收缩压") + { + ssy = value <= 0 ? "" : value.ToString(); + if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; + } + break; + } + } + catch (Exception) + { + //PublicMethod.WriteLog(ex); + } + } + } + } + string szyssy = ssy + "/" + szy; + lblDia.Text = szyssy == "/" ? "--/--" : szyssy; + } + else + { + lblHR.Text = "- -"; + lblRESP.Text = "- -"; + lblSpo2.Text = "- -"; + lblPR.Text = "- -"; + lblDia.Text = "--/--"; + lblHR.ForeColor = Color.Green; + lblRESP.ForeColor = Color.Green; + lblSpo2.ForeColor = Color.Green; + lblPR.ForeColor = Color.Green; + lblDia.ForeColor = Color.Green; + } + } + + public bool isCgtime(string key, DateTime time) + { + bool b = false; + try + { + if (key == "自主呼吸") + { + if (_record.InCGTime != null && _record.OutCGTime != null) + { + if (time > _record.InCGTime && time < _record.OutCGTime) + b = true; + } + if (_record.InCGTime != null && _record.OutCGTime == null) + { + if (time > _record.InCGTime) + b = true; + } + } + else + { + b = false; + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + 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) + { + timerGetTextCollectorData.Enabled = false; + timerGetTextCollectorData.Stop(); + } + } + + public void StarttimerGetTextCollectorData() + { + if (timerGetTextCollectorData == null) return; + timerGetTextCollectorData.Start(); + } + + #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); + } + } + //public ucStripMenuItem menuItem = new ucStripMenuItem(); + private void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState) + { + + + //if (PatientId == 0) return; + //menuStrip.Width = 1; + //menuItem.Visible = true; + //menuItem.Location = mousePt; + //menuItem.BringToFront(); + //if (menuItem.isAdd == false) + //{ + // menuItem.isAdd = true; + // zgcAnaesRecord.Controls.Add(menuItem); + //} + + //添加自定义的新菜单 + 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); + + if (NowRoom != null) + { + ToolStripMenuItem ModifyRoom = new ToolStripMenuItem(); + ModifyRoom.Text = "切换手术间"; + ModifyRoom.Click += ModifyRoom_Click; + menuStrip.Items.Add(ModifyRoom); + } + + ToolStripMenuItem btnSyatemPhysion = new ToolStripMenuItem(); + btnSyatemPhysion.Name = "btnSyatemPhysion"; + btnSyatemPhysion.Tag = "btnSyatemPhysion"; + btnSyatemPhysion.Text = "修改痕迹"; + btnSyatemPhysion.Click += new EventHandler(btnSyatemPhysion_Click); + menuStrip.Items.Add(btnSyatemPhysion); + + ToolStripMenuItem mnuAddDrug = new ToolStripMenuItem(); + mnuAddDrug.Name = "add_medicine"; + mnuAddDrug.Tag = "add_medicine"; + mnuAddDrug.Text = "批量编辑生命体征"; + mnuAddDrug.Click += ((s, er) => + { + frmAnasRecordHistory frm = new frmAnasRecordHistory(_record); + frm.ShowDialog(); + }); + menuStrip.Items.Add(mnuAddDrug); + } + + /// + /// 生命体征修改痕迹 + /// + /// + /// + 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)); + 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) + { + //没有IP判断 + DataTable dtPhysioData = BOperationRecord.getPhysioDataByIp(NowRoom.Ip, _record.Id.Value, _record.InRoomTime.Value, getOpeMaxTime(_record), 5); + + //同步未画点数据 + DrawFillPhysioData(dtPhysioData); + + templateManage.Bind("PhysioDataManage"); + 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.addPhysioList) + { + 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())) + { + PhysioData pdTemp = new PhysioData(); + pdTemp.RecordTime = DateTime.Parse(dr["InsertTime"].ToString()); + pdTemp.Value = Double.Parse(dr["ParamValue"].ToString()); + pdTemp.YAisx = addPP.YAisx; + pdTemp.PhysioDataConfigId = addPP.Id; + pdTemp.PatientId = _record.Id.Value; + addPP.AddItemByTime(pdTemp); + } + } + } + } + } + private void clearSelectCouve_Click(Object sender, EventArgs e) + { + templateManage.ClearSelectCouve(); + } + + + private void zgcAnaesRecord2_KeyUp(object sender, KeyEventArgs e) + { + if (templateManage2 != null) + { + ZedGraphControl send = sender as ZedGraphControl; + templateManage2.zedControl_KeyUp(send, e); + } + } + + private bool zgcAnaesRecord2_MouseDownEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage2 != null && isReadOnly == false) + { + SelectWorkerValue.Hidden(); + SelectDictValue.Hidden(); + templateManage2.zedControl_MouseDownEvent(sender, e); + + } + return default(bool); + } + + private bool zgcAnaesRecord2_MouseUpEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage2 != null && isReadOnly == false) + { + templateManage2.zedControl_MouseUpEvent(sender, e); + } + return default(bool); + } + + private bool zgcAnaesRecord2_MouseMoveEvent(ZedGraphControl sender, MouseEventArgs e) + { + if (templateManage2 != null) + { + templateManage2.zedControl_MouseMoveEvent(sender, e); + } + return default(bool); + } + + private void zgcAnaesRecord2_MouseDoubleClick(object sender, MouseEventArgs e) + { + if (templateManage2 != null && isReadOnly == false) + { + ZedGraphControl send = sender as ZedGraphControl; + templateManage2.zedControl_MouseDoubleClick(send, e); + } + } + //public ucStripMenuItem menuItem = new ucStripMenuItem(); + private void zgcAnaesRecord2_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState) + { + + } + 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() + { + if (PatientId != 0) + { + templateManage.OpeRecord = BOperationRecord.getRecord(_record, PatientId, RecoverId); + templateManage2.OpeRecord = templateManage.OpeRecord; + templateManage.BindOperationRecordValueAll(templateManage.OpeRecord); + templateManage2.BindOperationRecordValueAll(templateManage2.OpeRecord); + reDrawEvent(); + reDrawAnalysis(); + templateManage.Bind(); + templateManage2.Bind(); + + zgcAnaesRecord.Refresh(); + zgcAnaesRecord2.Refresh(); + } + } + + 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.InCGTime != null) + { + cmbCGType.Text = _record.InCGType; + txtCG.CustomFormat = "MM-dd HH:mm"; + txtCG.Tag = _record.InCGTime.Value; + txtCG.Value = _record.InCGTime.Value; + this.picCG.BackgroundImage = global::AIMS.Properties.Resources.置管_select; + } + if (_record.OutCGTime != null) + { + txtBG.CustomFormat = "MM-dd HH:mm"; + txtBG.Tag = _record.OutCGTime.Value; + txtBG.Value = _record.OutCGTime.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(); + } + } + public void ReferEventDrugs() + { + if (txtInRoom.Value != _record.InRoomTime) + { + _record.pageCount = 0; + ReviewEvent(); + } + else + { + plRefresh_Click(null, null); + } + } + 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; + string anaesName = DBManage.GetDictionaryValuesById(_record.AnaesthesiaMethodId, "麻醉方式"); + + if (_record.AnaesthesiaMethodId == null || _record.AnaesthesiaMethodId.ToString().Trim() == "") + { + message = "请添加麻醉方式!"; + isTrue = false; + } + + if (anaesName.Contains("全身麻醉")) + { + if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0) + { + message = "请填写麻醉质量质控指标"; + isTrue = false; + } + + if (_record.OpeRecordInfo.StewardNumber == null || _record.OpeRecordInfo.StewardNumber.ToString().Trim() == "") + { + message = "请与手术信息选择患者Steward评分!"; + isTrue = false; + } + if (_record.OpeRecordInfo.Whereabouts == null || _record.OpeRecordInfo.Whereabouts.ToString().Trim() == "") + { + message = "请与手术信息选择患者去向!"; + isTrue = false; + } + + if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") + if (_record.ASALevel == null || _record.ASALevel == null) + { + message = "请添写ASA分级!"; + isTrue = false; + } + + if (_record.OperationDoctor == null || _record.OperationDoctor.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, ""); + } + + } + #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) + { + MessageBox.Show("未连接到服务器 请联系管理员或稍后再试!", "系统提示"); + } + private void btnqxqd_Click(object sender, EventArgs e) + { + if (PatientId != 0 && _record.Id != 0) + { + frmGoodsBillRecord frm = new frmGoodsBillRecord(); + frm._record = _record; + frm.Show(); + frm.Focus(); + frm.BringToFront(); + } + } + private void btnChage_Click(object sender, EventArgs e) + { + frmChargRecordPrint frmchargRecord = new frmChargRecordPrint(_record); + frmchargRecord.TemplateType = "麻醉"; + frmchargRecord.Show(); + frmchargRecord.BringToFront(); + } + #endregion + + } +} diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.resx b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.resx new file mode 100644 index 0000000..35348c8 --- /dev/null +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.resx @@ -0,0 +1,411 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 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/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.Designer.cs index 5a71939..858eb1a 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.Designer.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.Designer.cs @@ -36,15 +36,6 @@ namespace AIMS.PublicUI.UI System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactOutputLiquidsNew)); this.panel1 = new System.Windows.Forms.Panel(); this.dgvOutput = new DevComponents.DotNetBar.Controls.DataGridViewX(); - this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OutputName = new AIMS.PublicUI.UI.DataGridViewComboEditTipBoxColumn(); - this.Dose = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.DoseUnit = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.BeginTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.Continue = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EndTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.panel3 = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.btnDelete = new DevComponents.DotNetBar.ButtonX(); this.btnSave = new DevComponents.DotNetBar.ButtonX(); @@ -54,6 +45,14 @@ namespace AIMS.PublicUI.UI this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.calendarColumn1 = new AIMS.OremrUserControl.CalendarColumn(); this.calendarColumn2 = new AIMS.OremrUserControl.CalendarColumn(); + this.TypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OutputName = new AIMS.PublicUI.UI.DataGridViewComboEditTipBoxColumn(); + this.Dose = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.DoseUnit = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.BeginTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.Continue = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.EndTime = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvOutput)).BeginInit(); this.panel2.SuspendLayout(); @@ -62,13 +61,12 @@ namespace AIMS.PublicUI.UI // panel1 // this.panel1.Controls.Add(this.dgvOutput); - this.panel1.Controls.Add(this.panel3); this.panel1.Controls.Add(this.panel2); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(864, 471); + this.panel1.Size = new System.Drawing.Size(1035, 421); this.panel1.TabIndex = 1; // // dgvOutput @@ -112,13 +110,84 @@ namespace AIMS.PublicUI.UI this.dgvOutput.RowTemplate.Height = 23; this.dgvOutput.ShowCellErrors = false; this.dgvOutput.ShowCellToolTips = false; - this.dgvOutput.Size = new System.Drawing.Size(864, 419); + this.dgvOutput.Size = new System.Drawing.Size(1035, 379); this.dgvOutput.TabIndex = 3; this.dgvOutput.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvOutput_CellClick); this.dgvOutput.CurrentCellDirtyStateChanged += new System.EventHandler(this.dgvDrugs_CurrentCellDirtyStateChanged); this.dgvOutput.EditingControlShowing += new System.Windows.Forms.DataGridViewEditingControlShowingEventHandler(this.dgvOutput_EditingControlShowing); this.dgvOutput.RowsAdded += new System.Windows.Forms.DataGridViewRowsAddedEventHandler(this.dgvEvents_RowsAdded); // + // panel2 + // + this.panel2.BackColor = System.Drawing.Color.Transparent; + this.panel2.Controls.Add(this.btnDelete); + this.panel2.Controls.Add(this.btnSave); + 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(1035, 42); + this.panel2.TabIndex = 0; + // + // btnDelete + // + this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDelete.Location = new System.Drawing.Point(674, 7); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(86, 30); + this.btnDelete.TabIndex = 2; + this.btnDelete.Text = "删除"; + this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); + // + // btnSave + // + this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnSave.Location = new System.Drawing.Point(766, 7); + this.btnSave.Name = "btnSave"; + this.btnSave.Size = new System.Drawing.Size(86, 30); + this.btnSave.TabIndex = 1; + this.btnSave.Text = "保存"; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.HeaderText = "类型"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.Visible = false; + this.dataGridViewTextBoxColumn1.Width = 60; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.HeaderText = "计量"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.HeaderText = "持续"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.Width = 60; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.HeaderText = "备注"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.Width = 250; + // + // calendarColumn1 + // + this.calendarColumn1.HeaderText = "开始时间"; + this.calendarColumn1.Name = "calendarColumn1"; + this.calendarColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.calendarColumn1.ShowUpDown = false; + this.calendarColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // + // calendarColumn2 + // + this.calendarColumn2.HeaderText = "结束时间"; + this.calendarColumn2.Name = "calendarColumn2"; + this.calendarColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.calendarColumn2.ShowUpDown = false; + this.calendarColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + // // TypeName // this.TypeName.HeaderText = "类型"; @@ -184,13 +253,11 @@ namespace AIMS.PublicUI.UI this.BeginTime.MonthCalendar.Visible = false; this.BeginTime.Name = "BeginTime"; this.BeginTime.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.BeginTime.Visible = false; // // Continue // this.Continue.HeaderText = "持续"; this.Continue.Name = "Continue"; - this.Continue.Visible = false; this.Continue.Width = 60; // // EndTime @@ -228,7 +295,6 @@ namespace AIMS.PublicUI.UI this.EndTime.MonthCalendar.Visible = false; this.EndTime.Name = "EndTime"; this.EndTime.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.EndTime.Visible = false; // // Remark // @@ -236,91 +302,11 @@ namespace AIMS.PublicUI.UI this.Remark.Name = "Remark"; this.Remark.Width = 400; // - // panel3 - // - this.panel3.BackColor = System.Drawing.Color.PaleTurquoise; - this.panel3.Dock = System.Windows.Forms.DockStyle.Bottom; - this.panel3.Location = new System.Drawing.Point(0, 461); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(864, 10); - this.panel3.TabIndex = 1; - // - // panel2 - // - this.panel2.BackColor = System.Drawing.Color.Transparent; - this.panel2.Controls.Add(this.btnDelete); - this.panel2.Controls.Add(this.btnSave); - 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(864, 42); - this.panel2.TabIndex = 0; - // - // btnDelete - // - this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnDelete.Location = new System.Drawing.Point(674, 7); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(86, 30); - this.btnDelete.TabIndex = 2; - this.btnDelete.Text = "删除"; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); - // - // btnSave - // - this.btnSave.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnSave.Location = new System.Drawing.Point(766, 7); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(86, 30); - this.btnSave.TabIndex = 1; - this.btnSave.Text = "保存"; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // dataGridViewTextBoxColumn1 - // - this.dataGridViewTextBoxColumn1.HeaderText = "类型"; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.Visible = false; - this.dataGridViewTextBoxColumn1.Width = 60; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.HeaderText = "计量"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.HeaderText = "持续"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.Width = 60; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.HeaderText = "备注"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.Width = 250; - // - // calendarColumn1 - // - this.calendarColumn1.HeaderText = "开始时间"; - this.calendarColumn1.Name = "calendarColumn1"; - this.calendarColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.calendarColumn1.ShowUpDown = false; - this.calendarColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // - // calendarColumn2 - // - this.calendarColumn2.HeaderText = "结束时间"; - this.calendarColumn2.Name = "calendarColumn2"; - this.calendarColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.calendarColumn2.ShowUpDown = false; - this.calendarColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - // // frmFactOutputLiquidsNew // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(864, 471); + this.ClientSize = new System.Drawing.Size(1035, 421); this.Controls.Add(this.panel1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.MaximizeBox = false; @@ -351,7 +337,6 @@ namespace AIMS.PublicUI.UI private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn3; private CalendarColumn calendarColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn4; - private System.Windows.Forms.Panel panel3; private System.Windows.Forms.DataGridViewTextBoxColumn TypeName; private DataGridViewComboEditTipBoxColumn OutputName; private System.Windows.Forms.DataGridViewTextBoxColumn Dose; diff --git a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.cs index 0ca2f0b..12d2884 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmFactOutputLiquidsNew.cs @@ -79,8 +79,7 @@ namespace AIMS.PublicUI.UI if (list.Count > 0) { foreach (FactOutputLiquids item in list) - { - #region 加载数据时判断是否有常用出量并显示 20160816 GZ + { bool k = false; foreach (DataGridViewRow row in dgvOutput.Rows) { @@ -122,8 +121,7 @@ namespace AIMS.PublicUI.UI } } } - if (k) continue; - #endregion + if (k) continue; int index = this.dgvOutput.Rows.Add(); this.dgvOutput.Rows[index].Tag = item.Id; this.dgvOutput.Rows[index].Cells["Remark"].Value = item.Remark; @@ -290,7 +288,7 @@ namespace AIMS.PublicUI.UI FactOutputLiquids er = _record.FactOutputLiquidsList.Where(b => b.Id == id).ToList()[0]; //er.IsValid = 0; BFactOutputLiquids.Delete(er); - //er.clearAddObj(zgcAnaesRecord); + er.clearAddObj(zgcAnaesRecord); _record.FactOutputLiquidsList.Remove(er); dgvOutput.Rows.Remove(dgvOutput.CurrentRow); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs index c5df46e..13a5606 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs @@ -175,7 +175,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { if (State == "开始手术") { - AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill(); + AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2(); frmAnasRecord.PatientId = PatientId; frmAnasRecord.ApplyId = applyId; frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId); @@ -195,7 +195,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } else { - AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill(); + AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2(); frmAnasRecord.PatientId = PatientId; frmAnasRecord.ApplyId = applyId; frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(RoomId); @@ -272,7 +272,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI BOperationRecord.DeleteEvent(PatientId, 8); HelperDB.DbHelperSQL.CommitTrans(); - AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill frmAnasRecord = new frmAnasRecordBill(); + AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord = new frmAnasRecordBill2(); frmAnasRecord.PatientId = PatientId; frmAnasRecord.ApplyId = applyId; frmAnasRecord.NowRoom = AIMSBLL.BOperationRoom.SelectSingle(int.Parse(uc.Tag.ToString())); diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs index 8c614d9..a7359a1 100644 --- a/AIMSEntity/BLL/Extension/BOperationRecord.cs +++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs @@ -32,7 +32,7 @@ namespace AIMSBLL if (OperationFrontdt.Rows.Count > 0) { _record.DepartmentId = int.Parse(OperationFrontdt.Rows[0]["DepartmentId"].ToString()); - _record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString() + " " + OperationFrontdt.Rows[0]["SickBed"].ToString(); + _record.ApplyDepartmentName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString();// + " " + OperationFrontdt.Rows[0]["SickBed"].ToString(); _record.ApplyDepName = OperationFrontdt.Rows[0]["ApplyDepName"].ToString(); _record.EndemicArea = OperationFrontdt.Rows[0]["Illdistrict"].ToString(); _record.Bed = OperationFrontdt.Rows[0]["SickBed"].ToString(); diff --git a/DrawGraph/AreaManage/BaseInfoBottomManage.cs b/DrawGraph/AreaManage/BaseInfoBottomManage.cs index af8037a..4840396 100644 --- a/DrawGraph/AreaManage/BaseInfoBottomManage.cs +++ b/DrawGraph/AreaManage/BaseInfoBottomManage.cs @@ -135,14 +135,20 @@ namespace DrawGraph case "OperationRecord.Assistant1": Worker_Click(aEdit1, e, 0); break; + case "OperationRecord.AnaesthesiaMethodName": + Anaes_Click(aEdit1, e); + break; + case "OperationRecord.OperationSiteId": //手术体位 + TYZD_Click(aEdit1, e); + break; case "OperationRecord.TourNurse": Worker_Click(aEdit1, e, 3); break; case "OperationRecord.Operation": //手术名称 ope_Click(aEdit1, e); break; - case "OperationRecord.AnesthesiaDoctorAssistant": - Worker_Click(aEdit1, e, 0); + case "OperationRecord.OrtherDoctorId": + Worker_Click(aEdit1, e, 3); break; //default: // //在此处写日志 @@ -267,6 +273,39 @@ namespace DrawGraph AIMSExtension.PublicMethod.WriteLog(ex); } } + private void Anaes_Click(AbleEditPackObj sender, EventArgs e) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict(sender, e, ableEdit.ControlTitleText); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + //通用字典分组窗体打开 + 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); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } private void SelDict(AbleEditPackObj sender, EventArgs e, string _DictType) { diff --git a/DrawGraph/AreaManage/BaseInfoTopManage.cs b/DrawGraph/AreaManage/BaseInfoTopManage.cs index cf8339b..a5cc8f2 100644 --- a/DrawGraph/AreaManage/BaseInfoTopManage.cs +++ b/DrawGraph/AreaManage/BaseInfoTopManage.cs @@ -65,7 +65,7 @@ namespace DrawGraph if (myOpeRecord.InRoomTime != null) { template.SetObjValue(myOpeRecord, "OperationRecord.InRoomTime", myOpeRecord.InRoomTime.Value.ToString("yyyy-MM-dd"), myOpeRecord.InRoomTime.ToString()); - } + } if (myOpeRecord.currentPage != 0) { template.SetObjValue(myOpeRecord, "OperationRecord.currentPage", myOpeRecord.currentPage.ToString(), myOpeRecord.currentPage.ToString()); @@ -74,6 +74,7 @@ namespace DrawGraph { template.SetObjValue(myOpeRecord, "OperationRecord.pageCount", myOpeRecord.pageCount.ToString(), myOpeRecord.pageCount.ToString()); } + SetBMI(); #endregion List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) @@ -82,6 +83,23 @@ namespace DrawGraph SetAbleEditView(ableEdit); } } + + public void SetBMI(bool IsUpdate = false) + { + if (myOpeRecord.Height != null && myOpeRecord.Height != "" && myOpeRecord.Weight != null && myOpeRecord.Weight != "" && myOpeRecord.Weight != "卧床") + { + double hei = double.Parse(myOpeRecord.Height) / 100; + double wei = double.Parse(myOpeRecord.Weight); + double BMI = wei / hei / hei; + myOpeRecord.BMI = Math.Floor(BMI).ToString(); + template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); + } + else + { + myOpeRecord.BMI = ""; + template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); + } + } /// /// 设置可编辑组件的显示样式 /// @@ -296,7 +314,7 @@ namespace DrawGraph conl.DoubleClick += Conl_DoubleClick; break; case "OperationRecord.BloodType": //血型 - TYZD_Click(aEdit1, e); + TYZD_Click(aEdit1, e); break; case "OperationRecord.Applydiagnose": //手术诊断 opeDisease_Click(aEdit1, e); @@ -522,6 +540,10 @@ namespace DrawGraph ableEdit.IsVisible = !ableEdit.IsVisible; template.SetObjValue(OpeRecord, DataSourceName, text, value, true); ((TextBox)control).BorderStyle = BorderStyle.None; + if (DataSourceName == "OperationRecord.Height" || DataSourceName == "OperationRecord.Weight") + { + SetBMI(true); + } } } catch (Exception ex) diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs index 898f0f5..4831200 100644 --- a/DrawGraph/AreaManage/DBManage.cs +++ b/DrawGraph/AreaManage/DBManage.cs @@ -102,66 +102,66 @@ namespace DrawGraph //} //else //{ - if (items[1] == "OperationDoctor") - { - i += AddPerson(_operationRecord, _operationRecord.OperationDoctor, 1); - } - else if (items[1] == "Assistant1") - { - i += AddPerson(_operationRecord, _operationRecord.Assistant1, 2); - } - else if (items[1] == "Assistant2") - { - i += AddPerson(_operationRecord, _operationRecord.Assistant2, 3); - } - else if (items[1] == "Assistant3") - { - i += AddPerson(_operationRecord, _operationRecord.Assistant3, 4); - } - else if (items[1] == "AnesthesiaDoctor") - { - i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctor, 5); - } - else if (items[1] == "InstrumentNurse") - { - i += AddPerson(_operationRecord, _operationRecord.InstrumentNurse, 6); - } - else if (items[1] == "TourNurse") - { - i += AddPerson(_operationRecord, _operationRecord.TourNurse, 7); - } - ////else if (items[1] == "AnesthesiaDoctorAssistant") - ////{ - //// i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctorAssistant, 11); - ////} - else if (items[1] == "Operation") - { - i += AddOperation(_operationRecord, _operationRecord.Operation); - } - else if (items[1] == "Applyoperation") - { - i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation); - } - else if (items[1] == "Applydiagnose") - { - i += AddApplyDiagnose(_operationRecord, _operationRecord.Applydiagnose); - } - else if (items[1] == "AnaesthesiaMethodId") - { - i += AddAnaesthesiaMethod(_operationRecord, _operationRecord.AnaesthesiaMethodId); - } - else if (items[1] == "OperationSiteId") - { - i += AddOperationSite(_operationRecord, _operationRecord.OperationSiteId); - } - else if (items[1] == "Height" || items[1] == "Weight") - { - i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.Id); - } - else - { - i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id); - } + if (items[1] == "OperationDoctor") + { + i += AddPerson(_operationRecord, _operationRecord.OperationDoctor, 1); + } + else if (items[1] == "Assistant1") + { + i += AddPerson(_operationRecord, _operationRecord.Assistant1, 2); + } + else if (items[1] == "Assistant2") + { + i += AddPerson(_operationRecord, _operationRecord.Assistant2, 3); + } + else if (items[1] == "Assistant3") + { + i += AddPerson(_operationRecord, _operationRecord.Assistant3, 4); + } + else if (items[1] == "AnesthesiaDoctor") + { + i += AddPerson(_operationRecord, _operationRecord.AnesthesiaDoctor, 5); + } + else if (items[1] == "InstrumentNurse") + { + i += AddPerson(_operationRecord, _operationRecord.InstrumentNurse, 6); + } + else if (items[1] == "TourNurse") + { + i += AddPerson(_operationRecord, _operationRecord.TourNurse, 7); + } + else if (items[1] == "OrtherDoctorId") + { + i += AddPerson(_operationRecord, _operationRecord.OrtherDoctorId, 11); + } + else if (items[1] == "Operation") + { + i += AddOperation(_operationRecord, _operationRecord.Operation); + } + else if (items[1] == "Applyoperation") + { + i += AddApplyOperation(_operationRecord, _operationRecord.Applyoperation); + } + else if (items[1] == "Applydiagnose") + { + i += AddApplyDiagnose(_operationRecord, _operationRecord.Applydiagnose); + } + else if (items[1] == "AnaesthesiaMethodId") + { + i += AddAnaesthesiaMethod(_operationRecord, _operationRecord.AnaesthesiaMethodId); + } + else if (items[1] == "OperationSiteId") + { + i += AddOperationSite(_operationRecord, _operationRecord.OperationSiteId); + } + else if (items[1] == "Height" || items[1] == "Weight") + { + i += UpdatePatient(items[1] + "='" + value + "' where Id= " + _operationRecord.PatientId); + } + else + { + i += Update(items[1] + "='" + value + "' where Id= " + _operationRecord.Id); + } //} } catch (Exception) diff --git a/DrawGraph/AreaManage/DrugsManage.cs b/DrawGraph/AreaManage/DrugsManage.cs index 4c0e24d..45a7cea 100644 --- a/DrawGraph/AreaManage/DrugsManage.cs +++ b/DrawGraph/AreaManage/DrugsManage.cs @@ -15,8 +15,8 @@ namespace DrawGraph { /// /// 药品区域 - /// - public RectangleFramePackObj drugPpack; + /// + public RectangleFramePackObj OutputManagePpack; public LinePackObj H3pack; public LinePackObj H5pack; public LinesPackObj lines; @@ -46,7 +46,7 @@ namespace DrawGraph RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep); H3pack = template.GetPackObjectOTag("DrugsManage_LinePackObj_6"); H5pack = template.GetPackObjectOTag("DrugsManage_LinePackObj_9"); - drugPpack = template.GetPackObjectOTag("DrugsManage_RectangleFramePackObj_2"); + OutputManagePpack = template.GetPackObjectOTag("OutputManage_RectangleFramePackObj_10"); } #endregion @@ -118,7 +118,7 @@ namespace DrawGraph //y的高度//主要高度 double drugsy = 0; //加药最后位置 - double maxDrugsy = drugPpack.RealY + getYPositionByListIndex(RowsCount - 1, drugPpack.RealY, drugPpack.RealEndY, RowsCount); + double maxDrugsy = lines.RealY + getYPositionByListIndex(RowsCount - 1, lines.RealY, lines.RealEndY, RowsCount); //持续加药当前时间 DateTime curTimeTemp = OperationRecord.getOpeMaxTime(myOpeRecord); @@ -176,8 +176,8 @@ namespace DrawGraph if (!isSapDrugs(temp)) { //以行号返回具休的位置 - drugsy = drugPpack.RealY + getYPositionByListIndex(rowDrugsIndex, drugPpack.RealY, drugPpack.RealEndY, RowsCount); - if (temp.DrugName == "氧气") drugsy = drugPpack.RealY; + drugsy = lines.RealY + getYPositionByListIndex(rowDrugsIndex, lines.RealY, lines.RealEndY, RowsCount); + if (temp.DrugName == "氧气") drugsy = lines.RealY; SetDrug(temp, curTimeTemp, drugsy); temp.ChildFactDrugList = new List(); temp.ChildFactDrugList = _FactDrugList.Where(a => a.ParentId == temp.Id).ToList(); @@ -244,7 +244,7 @@ namespace DrawGraph { foreach (FactDrug sItem in temp.ChildFactDrugList) { - drugsy = drugPpack.RealY + getYPositionByListIndex(rowDrugsIndex, drugPpack.RealY, drugPpack.RealEndY, RowsCount); + drugsy = lines.RealY + getYPositionByListIndex(rowDrugsIndex, lines.RealY, lines.RealEndY, RowsCount); SetDrug(sItem, curTimeTemp, drugsy); if (drugsy <= maxDrugsy) { @@ -298,7 +298,7 @@ namespace DrawGraph } private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp) { - double height = getYPositionByListIndex(1, drugPpack.RealY, drugPpack.RealEndY, RowsCount) / 2; + double height = getYPositionByListIndex(1, lines.RealY, lines.RealEndY, RowsCount) / 2; //double x = H3pack.RealX + 0.003f; ZUtil.DrawLine(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red); ZUtil.DrawLine(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red); @@ -308,7 +308,7 @@ namespace DrawGraph { if (temp.IsContinue == 1 && temp.DrugBeginTime == temp.DrugEndTime) temp.End = curTimeTemp; temp.EqualDose = null; - temp.setAnasArr(ZedControl, H5pack.RealX, drugPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); + temp.setAnasArr(ZedControl, H5pack.RealX, lines.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); temp.nowY = y; } private static void ListAddDrugs(List DrugListstr, int i, FactDrug temp) @@ -323,18 +323,7 @@ namespace DrawGraph DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (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(" "); } - //private static void ListAddDrugs(List DrugListstr, FactDrug temp) - //{ - // string dose = ""; - // if (dose.Trim() != "") dose += " "; - // dose += ((double)temp.Dosage).ToString(); - // if (temp.DosageUnit != null) - // { - // dose += temp.DosageUnit; - // } - // DrugListstr.Add(string.Format("{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(" "); - //} + private bool isSapDrugs(FactDrug record) { bool isSap = false; @@ -357,6 +346,7 @@ namespace DrawGraph private void DrawDrugSapDose() { + if (OutputManagePpack != null) return; double x = template.GetPackObjectOTag("RemarkManage_LinePackObj_9").RealX; RectangleFramePackObj remarkPpack = template.GetPackObjectOTag("RemarkManage_RectangleFramePackObj_2"); float fontsize = 7f; diff --git a/DrawGraph/AreaManage/FactOutputLiquids.cs b/DrawGraph/AreaManage/FactOutputLiquids.cs index b40a7ac..776cb19 100644 --- a/DrawGraph/AreaManage/FactOutputLiquids.cs +++ b/DrawGraph/AreaManage/FactOutputLiquids.cs @@ -1,16 +1,18 @@ using System; using System.Collections.Generic; +using System.Drawing; using System.Linq; using System.Text; namespace DrawGraph { - public class FactOutputLiquids + public class FactOutputLiquids : EventObj { private int _id; private int _patientid; private int _outputliquidstypeid; private int _outputliquidsid; + private int _outputliquidsName; private DateTime _begintime; private DateTime _endtime; private decimal _dosage; @@ -122,5 +124,174 @@ namespace DrawGraph set { _operatedate = value; } get { return _operatedate; } } + public double nowY { get; set; } + public string EqualDose { get; set; } + + public bool Equal(object drug1) + { + try + { + if ((this.DosageUnit == ((FactOutputLiquids)drug1).DosageUnit) && (this.OutputLiquidsName == ((FactOutputLiquids)drug1).OutputLiquidsName)) + { + return true; + } + return false; + } + catch (Exception) + { + return false; + } + } + + public override void clearAddObj(ZedGraphControl zgc) + { + //if (zgcAnas == null || zgcAnas != zgc) + zgcAnas = zgc; + clearAddObjPic(zgc); + clearDNDTDD(zgc); + delAddObj(this.OutputLiquidsName + this.OutputLiquidsId); + } + private void clearAddObjPic(ZedGraphControl zgc) + { + //if (zgcAnas == null || zgcAnas != zgc) + zgcAnas = zgc; + delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString() + "spicle"); + delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString()); + delAddArrows(TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString()); + delLineObj("A" + TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString()); + delLineObj("B" + TextPrefix.AR + this.OutputLiquidsName + this.Id.ToString()); + } + public override void clearDNAndDT(ZedGraphControl zgc) + { + //if (zgcAnas == null) + zgcAnas = zgc; + delAddObj(TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString()); + //delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(this.OutputLiquidsName + this.OutputLiquidsId); + + } + + + /// + /// 画一条加药记录 + /// + /// 高度 + /// 总量 + public override void drawText(double x, double y) + { + if (zgcAnas == null) return; + clearAddObj(zgcAnas); + //画添加药品线,底部加加药次数和备注 + this.nowY = y; + paintAdd(y); + //写加药的左边与右信息 + drawAddText(x, y); + } + + /// + /// 画添加药品线,底部加加药次数和备注信息 + /// + /// + /// + public void paintAdd(double y) + { + string tagName = this.OutputLiquidsName + this.Id.ToString(); + string DoseStr = ""; + if (Dosage != 0) + DoseStr = (((double)this.Dosage).ToString()); + string RemarkStr = this.Remark;// + string s = ""; + if ((EqualDose == null || EqualDose == "")) + { + if (Dosage != 0) + EqualDose = ((double)Dosage).ToString(); + } + DateTime dt = EndTime; + DateTime drugDt = this.BeginTime; + + bool isContinued = false; + if (IsContinue == 1 && BeginTime == EndTime) + { + dt = End; + isContinued = true; + } + if (EndTime != null && BeginTime != null && BeginTime != EndTime) + { + TimeSpan tsp = EndTime - BeginTime; + if (tsp.TotalMinutes >= 10) + { + drugDt = BeginTime.AddMinutes(tsp.TotalMinutes / 2 - 3); + } + } + if (((TimeSpan)(pageEnd - this.BeginTime)).TotalMinutes <= 2) + { + if (EqualDose == null) + { + if (s.Trim() != "") + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + " " + RemarkStr, 5f, isContinued); + else + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, DoseStr + " " + RemarkStr, 5f, isContinued); + } + else + { + if (s.Trim() != "") + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + "(" + EqualDose + ")" + RemarkStr, 5f, isContinued); + else + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, EqualDose + " " + RemarkStr, 5f, isContinued); + } + } + else + { + if (EqualDose == null) + { + if (s.Trim() != "") + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + " " + RemarkStr, 6f, isContinued); + else + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, DoseStr + " " + RemarkStr, 6f, isContinued); + } + else + { + if (s.Trim() != "") + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, s + "(" + EqualDose + ")" + RemarkStr, 5.5f, isContinued); + else + drawDoseObj(y, tagName, this.BeginTime, dt, drugDt, EqualDose + " " + RemarkStr, 5.5f, isContinued); + } + } + } + + /// + /// 写加药的左边与右信息 + /// + /// 高度 + /// 总量 + public void drawAddText(double x, double y) + { + //左边写药名 + TextObj text = (TextObj)zgcAnas.MasterPane.GraphObjList[TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString()]; + if (text == null) + { + double x1 = x;// 0.05f; + string DrName = this.OutputLiquidsName.Trim(); + + //if (this.Remark != null && this.Remark != "") DrName += "(" + this.Remark + ")"; + if (this.DosageUnit != null && this.DosageUnit != "") DrName += "(" + this.DosageUnit + ")"; + ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString(), Color.Black, 5.75f); + } + } + public void clearDNDTDD(ZedGraphControl zgc) + { + //if (zgcAnas == null || zgcAnas != zgc) + zgcAnas = zgc; + delAddObj(TextPrefix.DN + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DT + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DU + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(TextPrefix.DD + this.OutputLiquidsName + this.Id.ToString()); + delAddObj(this.OutputLiquidsName + this.OutputLiquidsId); + + } } } diff --git a/DrawGraph/AreaManage/IconManage.cs b/DrawGraph/AreaManage/IconManage.cs index 580e0d2..507394c 100644 --- a/DrawGraph/AreaManage/IconManage.cs +++ b/DrawGraph/AreaManage/IconManage.cs @@ -39,6 +39,18 @@ namespace DrawGraph { H5pack = template.GetPackObjectOTag("IconManage_LinePackObj_5"); IconPpack = template.GetPackObjectOTag("IconManage_RectangleFramePackObj_2"); + if (IconPpack != null) + { + eventy = IconPpack.RealY; + eventendy = IconPpack.RealEndY; + } + LinePackObj line = template.GetPackObjectOTag("IconManage_LinePackObj_6"); + if (line != null) + { + eventy = line.RealY; + eventendy = line.RealEndY; + eventendX = line.RealEndX+ 0.02; + } } #region 重写的事件 @@ -91,6 +103,9 @@ namespace DrawGraph } } + double eventy; + double eventendy; + double eventendX; /// /// 重新画事件文本 /// @@ -98,11 +113,10 @@ namespace DrawGraph { //画在第几行 int rowIndex = 0; - double eventy = IconPpack.RealY;// EndChartY; DateTime? drawDatetime = null; FactEvents drawEvent = null; string LastNumber = ""; - double span = getYPositionByListIndex(1, IconPpack.RealY, IconPpack.RealEndY, 2); + double span = getYPositionByListIndex(1, eventy, eventendy, 2); List eventListstr = new List(); eventListstr.Add("【事件】"); //myOpeRecord.FactEventsList.Sort(new FactEventsComparer()); @@ -123,10 +137,10 @@ namespace DrawGraph else { eventListstr.Add(string.Format("{0}{1}->{2} {3} {4}{5}", getNumber(i), temp.EventBeginTime.Value.ToShortTimeString(), temp.EventEndTime.Value.ToShortTimeString(), temp.EventName, "", temp.Remark == null ? "" : temp.Remark.ToString())); - } + } //设置事件对象的相应属性,只达到了基本解耦,封装有限,有待完善 - temp.setAnasArr(ZedControl, H5pack.RealX, IconPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); + temp.setAnasArr(ZedControl, H5pack.RealX, eventendX , myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); try { //循环XML文件,文件中的内容是只画图不写字的事件对旬 @@ -135,8 +149,8 @@ namespace DrawGraph if (dr.Length > 0) { temp.clearDNAndDT(ZedControl); - string tagName = dr[0]["imgPath"].ToString(); - temp.drawIMG(ZedControl, tagName, IconPpack.RealY, 0.013); + string tagName = dr[0]["imgPath"].ToString(); + temp.drawIMG(ZedControl, tagName, eventy, 0.013); } else { @@ -156,9 +170,8 @@ namespace DrawGraph drawEvent = temp; drawDatetime = temp.EventBeginTime.Value; } - eventy = IconPpack.RealY + span; //画图上的序号 - temp.drawNumber(ZedControl, drawNumber, eventy - 0.001, DValue, Color.DarkBlue); + temp.drawNumber(ZedControl, drawNumber, eventy + span - 0.001, DValue, Color.DarkBlue); } rowIndex++; } @@ -166,7 +179,7 @@ namespace DrawGraph { PublicMethod.WriteLog(exp, ""); } - } + } myOpeRecord.EventListstr = eventListstr; } #region 格式化字符串长度 diff --git a/DrawGraph/AreaManage/OperationRecordNew.cs b/DrawGraph/AreaManage/OperationRecordNew.cs deleted file mode 100644 index 323ce52..0000000 --- a/DrawGraph/AreaManage/OperationRecordNew.cs +++ /dev/null @@ -1,1265 +0,0 @@ -using HelperDB; -using System; -using System.Collections; -using System.Collections.Generic; -using System.Data; -using System.Xml.Serialization; - -namespace DrawGraph -{ - [Serializable] - public partial class OperationRecordNew : EventObj - { - //患者信息 - private string hISPatientId; - private string inHospitalNo; - private string medicalHistoryNo; - private int? departmentId; - private string name; - private string sex; - private DateTime? birthDay; - private string height; - private string weight; - private string identity; - private string bloodType; - private string rHBloodType; - private string fareType; - private string endemicArea; - private string bed; - private string contacts; - private string contactsPhone; - private string isFasting; - private string age; - - //申请信息 - private string patientType; - private int? applyDepartmentId; - private string applyDepartmentName; - private string applyDepName; - private string applydiagnose; - private string applydiagnoseRemark; - private string applyoperation; - private string applyOperationRemark; - private string operationPriority; - public DateTime PlanOperationTime; - - //术中信息 - private int? id; - private int? patientId; - private int? operationApplyId; - private int? recoverId; - private string diagnose; - private string operation; - private int? operationLevelId; - private string operationCutId; - private string operationSiteId; - private string operationPositionId; - private string anaesthesiaMethodId; - private string contagion; - private int? isReturnOperation; - private int? isPlanReturnOperation; - private int? isNotPlanReturnOperation; - private string operationDoctor; - private string assistant1; - private string assistant2; - private string assistant3; - private string anesthesiaDoctor; - private string anesthesiaDoctorSucceed; - private DateTime? anesthesiaDoctorSucceedTime; - private string instrumentNurse; - private string instrumentNurseSucceed; - private DateTime? instrumentNurseSucceedTime; - private string tourNurse; - private string tourNurseSucceed; - private DateTime? tourNurseSucceedTime; - private string extracorporealCirculation; - private string intern; - private string other; - private int? operationRoomId; - private int? tableIndex; - private DateTime? inRoomTime; - private DateTime? outRoomTime; - private DateTime? operationBeginTime; - private DateTime? operationEndTime; - private DateTime? anesthesiaBeginTime; - private DateTime? anesthesiaEndTime; - private string state; - private string cancelReason; - private string aSALevel; - private int? nYIIA; - private string operationAnalgesiaMode; - private string specialCase; - private int? fasting; - private int? takeMedicine; - private int? parentId; - private string whereabouts; - private int? pACUBedId; - private int? printCount; - private int? isStatement; - private int? operatorId; - private DateTime? operatorTime; - private string remark; - private Decimal? allSapDose; - private Decimal? allOutputLiquidsDose; - private int? anesthesiaDoctorTimeMinute; - private int? anesthesiaDoctorSucceedTimeMinute; - private int? instrumentNurseTimeMinute; - private int? instrumentNurseSucceedTimeMinute; - private int? tourNurseTimeMinute; - private int? tourNurseSucceedTimeMinute; - private string analgesiaModeMessage; - private string oPerationRemark; - private string diagnoseRemark; - private string anesthesiaDoctorAssistant; - private string spareOne; - private string spareTwo; - private string spareThree; - private string spareFour; - private string spareFive; - private string spareSix; - private string spareSeven; - private string spareEight; - private string spareNine; - private string spareTen; - - private List factEventsList; - private List factDrugList; - private List factOutputLiquidsList; - private List factBloodGasAnalysisList; - private List anaseDataQualityRecordList; - private OperationRecordInfo opeRecordInfo; - private OperationRecoverInInfo opeRecoverInInfo; - private OperationRecoverOutInfo opeRecoverOutInfo; - private OperationRecordInstrumentList instrumentList; - - public List EventListstr = new List(); - public List DrugsListstr = new List(); - public List AfterDrugsListstr = new List(); - public List FluidListstr = new List(); - public List PunctureAndIntubatio; - [NoCreatControlAttributs] - public List addPhysioList; - - [ClassAttributs(Description = "是否只读")] - public bool IsReadOnly = false; - [ClassAttributs(Description = "绘图开始时间")] - public DateTime sharpBegin; - [ClassAttributs(Description = "页开始时间")] - public DateTime pageBegin; - [ClassAttributs(Description = "页结束时间")] - public DateTime lastPageBegin; - [ClassAttributs(Description = "入CG时间")] - public DateTime? InCGTime; - [ClassAttributs(Description = "出CG时间")] - public DateTime? OutCGTime; - [NoCreatControlAttributs] - public string InCGType; - [NoCreatControlAttributs] - public string MedicalRecord; - - [NoCreatControlAttributs] - public DataTable PhysioParamList; - - [ClassAttributs(Description = "选中范围的对象")] - [NoCreatControlAttributs] - public SelectedAreaObj SAreaObj - { - get { return SelectedAreaObj.GetInstance(); } - } - - [ClassAttributs(Description = "总页数")] - public int currentPage { get; set; } - [ClassAttributs(Description = "当前页数")] - public int pageCount { get; set; } - - [ClassAttributs(Description = "手术记录编号,自增")] - /// - /// 编号,自增 - /// - public int? Id - { - get { return id; } - set { id = value; } - } - [ClassAttributs(Description = "患者编号")] - /// - /// 患者编号 - /// - public int? PatientId - { - get { return patientId; } - set { patientId = value; } - } - [NoCreatControlAttributs] - /// - /// 是否是恢复室 1不是 2是 - /// - public int? RecoverId - { - get { return recoverId; } - set { recoverId = value; } - } - [ClassAttributs(Description = "手术申请编号")] - /// - /// 手术申请编号 - /// - public int? OperationApplyId - { - get { return operationApplyId; } - set { operationApplyId = value; } - } - [ClassAttributs(Description = "手术诊断")] - /// - /// 手术诊断,保存诊断Id,可多选,逗号分隔 - /// - public string Diagnose - { - get { return diagnose; } - set { diagnose = value; } - } - [ClassAttributs(Description = "手术名称")] - /// - /// 手术名称,保存手术Id,可多选,逗号分隔 - /// - public string Operation - { - get { return operation; } - set { operation = value; } - } - [ClassAttributs(Description = "手术分级编号")] - /// - /// 手术分级编号 - /// - public int? OperationLevelId - { - get { return operationLevelId; } - set { operationLevelId = value; } - } - [ClassAttributs(Description = "手术切口分类")] - /// - /// 手术切口分类,保存手术切口分类Id,可多选,逗号分隔 - /// - public string OperationCutId - { - get { return operationCutId; } - set { operationCutId = value; } - } - [ClassAttributs(Description = "手术体位")] - /// - /// 手术体位,保存手术体位Id,可多选,逗号分隔 - /// - public string OperationSiteId - { - get { return operationSiteId; } - set { operationSiteId = value; } - } - [ClassAttributs(Description = "手术部位")] - /// - /// 手术部位,保存手术部位Id,可多选,逗号分隔 - /// - public string OperationPositionId - { - get { return operationPositionId; } - set { operationPositionId = value; } - } - [ClassAttributs(Description = "麻醉方式")] - /// - /// 麻醉方式,保存麻醉Id,可多选,逗号分隔 - /// - public string AnaesthesiaMethodId - { - get { return anaesthesiaMethodId; } - set { anaesthesiaMethodId = value; } - } - [ClassAttributs(Description = "传染病")] - /// - /// 传染病 - /// - public string Contagion - { - get { return contagion; } - set { contagion = value; } - } - [ClassAttributs(Description = "是否重返再手术")] - /// - /// 是否重返再手术 - /// - public int? IsReturnOperation - { - get { return isReturnOperation; } - set { isReturnOperation = value; } - } - [ClassAttributs(Description = "计划再次手术")] - /// - /// 计划再次手术 - /// - public int? IsPlanReturnOperation - { - get { return isPlanReturnOperation; } - set { isPlanReturnOperation = value; } - } - [ClassAttributs(Description = "非计划再次手术")] - /// - /// 非计划再次手术 - /// - public int? IsNotPlanReturnOperation - { - get { return isNotPlanReturnOperation; } - set { isNotPlanReturnOperation = value; } - } - [ClassAttributs(Description = "手术医生")] - /// - /// 手术医生,保存手术医生Id,可多选,逗号分隔 - /// - public string OperationDoctor - { - get { return operationDoctor; } - set { operationDoctor = value; } - } - [ClassAttributs(Description = "助理1")] - /// - /// 助理1,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant1 - { - get { return assistant1; } - set { assistant1 = value; } - } - [ClassAttributs(Description = "助理2")] - /// - /// 助理2,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant2 - { - get { return assistant2; } - set { assistant2 = value; } - } - [ClassAttributs(Description = "助理3")] - /// - /// 助理3,保存手术助理医生Id,可多选,逗号分隔 - /// - public string Assistant3 - { - get { return assistant3; } - set { assistant3 = value; } - } - [ClassAttributs(Description = "麻醉医生")] - /// - /// 麻醉医生,保存麻醉医生Id,可多选,逗号分隔 - /// - public string AnesthesiaDoctor - { - get { return anesthesiaDoctor; } - set { anesthesiaDoctor = value; } - } - [ClassAttributs(Description = "麻醉接台医生")] - /// - /// 麻醉接台医生,保存麻醉接台医生Id,可多选,逗号分隔 - /// - public string AnesthesiaDoctorSucceed - { - get { return anesthesiaDoctorSucceed; } - set { anesthesiaDoctorSucceed = value; } - } - [ClassAttributs(Description = "麻醉师接台时间")] - /// - /// 麻醉师接台时间 - /// - public DateTime? AnesthesiaDoctorSucceedTime - { - get { return anesthesiaDoctorSucceedTime; } - set { anesthesiaDoctorSucceedTime = value; } - } - [ClassAttributs(Description = "器械护士")] - /// - /// 器械护士,保存器械护士Id,可多选,逗号分隔 - /// - public string InstrumentNurse - { - get { return instrumentNurse; } - set { instrumentNurse = value; } - } - [ClassAttributs(Description = "器械接台护士")] - /// - /// 器械接台护士,保存器械接台护士Id,可多选,逗号分隔 - /// - public string InstrumentNurseSucceed - { - get { return instrumentNurseSucceed; } - set { instrumentNurseSucceed = value; } - } - [ClassAttributs(Description = "洗手护士接台时间")] - /// - /// 洗手护士接台时间 - /// - public DateTime? InstrumentNurseSucceedTime - { - get { return instrumentNurseSucceedTime; } - set { instrumentNurseSucceedTime = value; } - } - [ClassAttributs(Description = "巡回护士")] - /// - /// 巡回护士,保存巡回护士Id,可多选,逗号分隔 - /// - public string TourNurse - { - get { return tourNurse; } - set { tourNurse = value; } - } - [ClassAttributs(Description = "巡回接台护士")] - /// - /// 巡回接台护士,保存巡回接台护士Id,可多选,逗号分隔 - /// - public string TourNurseSucceed - { - get { return tourNurseSucceed; } - set { tourNurseSucceed = value; } - } - [ClassAttributs(Description = "巡回护士接台时间")] - /// - /// 巡回护士接台时间 - /// - public DateTime? TourNurseSucceedTime - { - get { return tourNurseSucceedTime; } - set { tourNurseSucceedTime = value; } - } - [ClassAttributs(Description = "麻醉医生签字")] - public string ExtracorporealCirculation - { - get { return extracorporealCirculation; } - set { extracorporealCirculation = value; } - } - [ClassAttributs(Description = "实习生")] - /// - /// 实习生 - /// - public string Intern - { - get { return intern; } - set { intern = value; } - } - [ClassAttributs(Description = "其他人员")] - /// - /// 其他人员 - /// - public string Other - { - get { return other; } - set { other = value; } - } - [ClassAttributs(Description = "手术间编号")] - /// - /// 手术间编号 - /// - public int? OperationRoomId - { - get { return operationRoomId; } - set { operationRoomId = value; } - } - [ClassAttributs(Description = "手术台次")] - /// - /// 手术台次 - /// - public int? TableIndex - { - get { return tableIndex; } - set { tableIndex = value; } - } - [ClassAttributs(Description = "入手术室时间")] - /// - /// 入手术室时间 - /// - public DateTime? InRoomTime - { - get { return inRoomTime; } - set { inRoomTime = value; } - } - [ClassAttributs(Description = "出手术室时间")] - /// - /// 出手术室时间 - /// - public DateTime? OutRoomTime - { - get { return outRoomTime; } - set { outRoomTime = value; } - } - [ClassAttributs(Description = "手术开始时间")] - /// - /// 手术开始时间 - /// - public DateTime? OperationBeginTime - { - get { return operationBeginTime; } - set { operationBeginTime = value; } - } - [ClassAttributs(Description = "手术结束时间")] - /// - /// 手术结束时间 - /// - public DateTime? OperationEndTime - { - get { return operationEndTime; } - set { operationEndTime = value; } - } - [ClassAttributs(Description = "麻醉开始时间")] - /// - /// 麻醉开始时间 - /// - public DateTime? AnesthesiaBeginTime - { - get { return anesthesiaBeginTime; } - set { anesthesiaBeginTime = value; } - } - [ClassAttributs(Description = "麻醉结束时间")] - /// - /// 麻醉结束时间 - /// - public DateTime? AnesthesiaEndTime - { - get { return anesthesiaEndTime; } - set { anesthesiaEndTime = value; } - } - [ClassAttributs(Description = "手术状态")] - /// - /// 手术状态 - ///1、术中 2、结束 - /// - public string State - { - get { return state; } - set { state = value; } - } - [ClassAttributs(Description = "取消手术原因")] - /// - /// 取消手术原因 - /// - public string CancelReason - { - get { return cancelReason; } - set { cancelReason = value; } - } - [ClassAttributs(Description = "ASA分级")] - /// - /// ASA分级 - /// - public string ASALevel - { - get { return aSALevel; } - set { aSALevel = value; } - } - [ClassAttributs(Description = "心功能分级")] - /// - /// 心功能分级 - /// - public int? NYIIA - { - get { return nYIIA; } - set { nYIIA = value; } - } - [ClassAttributs(Description = "术后镇痛方式")] - /// - /// 术后镇痛方式,保存镇痛方式Id,可多选,逗号分隔 - /// - public string OperationAnalgesiaMode - { - get { return operationAnalgesiaMode; } - set { operationAnalgesiaMode = value; } - } - [ClassAttributs(Description = "特殊情况")] - /// - /// 特殊情况 - /// - public string SpecialCase - { - get { return specialCase; } - set { specialCase = value; } - } - [ClassAttributs(Description = "术前8小时禁食")] - /// - /// 术前8小时禁食 - /// - public int? Fasting - { - get { return fasting; } - set { fasting = value; } - } - [ClassAttributs(Description = "术晨用一小口水")] - /// - /// 术晨用一小口水(5ml)服用抗高压药物。 - /// - public int? TakeMedicine - { - get { return takeMedicine; } - set { takeMedicine = value; } - } - [ClassAttributs(Description = "保存手术记录编号")] - /// - /// 保存手术记录编号,该值如不为0,表示该记录为术后恢复记录(PACU) - /// - public int? ParentId - { - get { return parentId; } - set { parentId = value; } - } - [ClassAttributs(Description = "术后去向")] - /// - /// 术后去向 - /// - public string Whereabouts - { - get { return whereabouts; } - set { whereabouts = value; } - } - - [ClassAttributs(Description = "PACU床位")] - /// - /// - /// - public int? PACUBedId - { - get { return pACUBedId; } - set { pACUBedId = value; } - } - - [ClassAttributs(Description = "麻醉单打印次数")] - /// - /// 麻醉单打印次数 - /// - public int? PrintCount - { - get { return printCount; } - set { printCount = value; } - } - [ClassAttributs(Description = "是否结单")] - /// - /// 是否结单 - /// - public int? IsStatement - { - get { return isStatement; } - set { isStatement = value; } - } - [ClassAttributs(Description = "操作员")] - /// - /// 操作员 - /// - public int? OperatorId - { - get { return operatorId; } - set { operatorId = value; } - } - [ClassAttributs(Description = "操作时间")] - /// - /// 操作时间 - /// - public DateTime? OperatorTime - { - get { return operatorTime; } - set { operatorTime = value; } - } - [ClassAttributs(Description = "备注")] - /// - /// 备注 - /// - public string Remark - { - get { return remark; } - set { remark = value; } - } - [ClassAttributs(Description = "总出量")] - /// - /// 总出量 - /// - public Decimal? AllOutputLiquidsDose - { - get { return allOutputLiquidsDose; } - set { allOutputLiquidsDose = value; } - } - [ClassAttributs(Description = "总液量")] - /// - /// 总液量 - /// - public Decimal? AllSapDose - { - get { return allSapDose; } - set { allSapDose = value; } - } - [ClassAttributs(Description = "麻醉医生时间")] - /// - /// 麻醉医生时间(分钟) - /// - public int? AnesthesiaDoctorTimeMinute - { - get { return anesthesiaDoctorTimeMinute; } - set { anesthesiaDoctorTimeMinute = value; } - } - [ClassAttributs(Description = "麻醉接台时间")] - /// - /// 麻醉接台时间(分钟) - /// - public int? AnesthesiaDoctorSucceedTimeMinute - { - get { return anesthesiaDoctorSucceedTimeMinute; } - set { anesthesiaDoctorSucceedTimeMinute = value; } - } - [ClassAttributs(Description = "器械护士时间")] - /// - /// 器械护士时间(分钟) - /// - public int? InstrumentNurseTimeMinute - { - get { return instrumentNurseTimeMinute; } - set { instrumentNurseTimeMinute = value; } - } - [ClassAttributs(Description = "器械护士接台时间")] - /// - /// 器械护士接台时间(分钟) - /// - public int? InstrumentNurseSucceedTimeMinute - { - get { return instrumentNurseSucceedTimeMinute; } - set { instrumentNurseSucceedTimeMinute = value; } - } - [ClassAttributs(Description = "巡回护士时间")] - /// - /// 巡回护士时间(分钟) - /// - public int? TourNurseTimeMinute - { - get { return tourNurseTimeMinute; } - set { tourNurseTimeMinute = value; } - } - [ClassAttributs(Description = "阵痛信息")] - /// - /// 阵痛信息 RBT - /// - public string AnalgesiaModeMessage - { - get { return analgesiaModeMessage; } - set { analgesiaModeMessage = value; } - } - [ClassAttributs(Description = "手术备注")] - /// - /// 手术备注 - /// - public string OPerationRemark - { - get { return oPerationRemark; } - set { oPerationRemark = value; } - } - [ClassAttributs(Description = "诊断备注")] - /// - /// 诊断备注 - /// - public string DiagnoseRemark - { - get { return diagnoseRemark; } - set { diagnoseRemark = value; } - } - - public string beforeDrugs; - [ClassAttributs(Description = "麻醉前用药")] - public string BeforeDrugs - { - get { return beforeDrugs; } - set { beforeDrugs = value; } - } - - public string analgesiaDrug; - [ClassAttributs(Description = "镇痛用药")] - public string AnalgesiaDrug - { - get { return analgesiaDrug; } - set { analgesiaDrug = value; } - } - - [ClassAttributs(Description = "麻醉助手")] - /// - /// - /// - public string AnesthesiaDoctorAssistant - { - get { return anesthesiaDoctorAssistant; } - set { anesthesiaDoctorAssistant = value; } - } - - [ClassAttributs(Description = "备用字段1")] - public string SpareOne - { - get { return spareOne; } - set { spareOne = value; } - } - [ClassAttributs(Description = "备用字段2")] - public string SpareTwo - { - get { return spareTwo; } - set { spareTwo = value; } - } - [ClassAttributs(Description = "备用字段3")] - public string SpareThree - { - get { return spareThree; } - set { spareThree = value; } - } - [ClassAttributs(Description = "备用字段4")] - public string SpareFour - { - get { return spareFour; } - set { spareFour = value; } - } - [ClassAttributs(Description = "备用字段5")] - public string SpareFive - { - get { return spareFive; } - set { spareFive = value; } - } - [ClassAttributs(Description = "备用字段6")] - public string SpareSix - { - get { return spareSix; } - set { spareSix = value; } - } - [ClassAttributs(Description = "备用字段7")] - public string SpareSeven - { - get { return spareSeven; } - set { spareSeven = value; } - } - [ClassAttributs(Description = "备用字段8")] - public string SpareEight - { - get { return spareEight; } - set { spareEight = value; } - } - [ClassAttributs(Description = "备用字段9")] - public string SpareNine - { - get { return spareNine; } - set { spareNine = value; } - } - [ClassAttributs(Description = "备用字段10")] - public string SpareTen - { - get { return spareTen; } - set { spareTen = value; } - } - - - [ClassAttributs(Description = "HIS编号")] - public string HISPatientId - { - get { return hISPatientId; } - set { hISPatientId = value; } - } - - [ClassAttributs(Description = "住院号")] - public string InHospitalNo - { - get { return inHospitalNo; } - set { inHospitalNo = value; } - } - - [ClassAttributs(Description = "病历号")] - public string MedicalHistoryNo - { - get { return medicalHistoryNo; } - set { medicalHistoryNo = value; } - } - - [ClassAttributs(Description = "科室编号")] - public int? DepartmentId - { - get { return departmentId; } - set { departmentId = value; } - } - - [ClassAttributs(Description = "患者姓名")] - public string Name - { - get { return name; } - set { name = value; } - } - - [ClassAttributs(Description = "性别")] - public string Sex - { - get { return sex; } - set { sex = value; } - } - - [ClassAttributs(Description = "出生日期")] - public DateTime? BirthDay - { - get { return birthDay; } - set { birthDay = value; } - } - [ClassAttributs(Description = "年龄")] - public string Age - { - get { return age; } - set { age = value; } - } - - [ClassAttributs(Description = "身高,单位cm")] - public string Height - { - get { return height; } - set { height = value; } - } - - [ClassAttributs(Description = "体重,单位kg")] - public string Weight - { - get { return weight; } - set { weight = value; } - } - - [ClassAttributs(Description = "身份证号码")] - public string Identity - { - get { return identity; } - set { identity = value; } - } - - [ClassAttributs(Description = "血型")] - public string BloodType - { - get { return bloodType; } - set { bloodType = value; } - } - - [ClassAttributs(Description = "RH血型")] - public string RHBloodType - { - get { return rHBloodType; } - set { rHBloodType = value; } - } - - [ClassAttributs(Description = "医保类别")] - public string FareType - { - get { return fareType; } - set { fareType = value; } - } - - [ClassAttributs(Description = "病区")] - public string EndemicArea - { - get { return endemicArea; } - set { endemicArea = value; } - } - - [ClassAttributs(Description = "病区床位")] - public string Bed - { - get { return bed; } - set { bed = value; } - } - - [ClassAttributs(Description = "联系人")] - public string Contacts - { - get { return contacts; } - set { contacts = value; } - } - - [ClassAttributs(Description = "联系人电话")] - public string ContactsPhone - { - get { return contactsPhone; } - set { contactsPhone = value; } - } - [ClassAttributs(Description = "是否禁食")] - public string IsFasting - { - get { return isFasting; } - set { isFasting = value; } - } - - - [ClassAttributs(Description = "住院门诊类型")] - public string PatientType - { - get { return patientType; } - set { patientType = value; } - } - [NoCreatControlAttributs] - public int? ApplyDepartmentId - { - get { return applyDepartmentId; } - set { applyDepartmentId = value; } - } - [ClassAttributs(Description = "申请科室")] - public string ApplyDepartmentName - { - get { return applyDepartmentName; } - set { applyDepartmentName = value; } - } - [ClassAttributs(Description = "申请科室2")] - public string ApplyDepName - { - get { return applyDepName; } - set { applyDepName = value; } - } - [ClassAttributs(Description = "术前诊断")] - public string Applydiagnose - { - get { return applydiagnose; } - set { applydiagnose = value; } - } - [ClassAttributs(Description = "术前诊断备注")] - public string ApplydiagnoseRemark - { - get { return applydiagnoseRemark; } - set { applydiagnoseRemark = value; } - } - [ClassAttributs(Description = "术前手术")] - public string Applyoperation - { - get { return applyoperation; } - set { applyoperation = value; } - } - [ClassAttributs(Description = "术前手术备注")] - public string ApplyOperationRemark - { - get { return applyOperationRemark; } - set { applyOperationRemark = value; } - } - [ClassAttributs(Description = "择期急诊")] - public string OperationPriority - { - get { return operationPriority; } - set { operationPriority = value; } - } - - - [NoCreatControlAttributs] - public List FactEventsList - { - get - { - return factEventsList; - } - set - { - factEventsList = value; - } - } - - - [NoCreatControlAttributs] - public List FactDrugList - { - get - { - return factDrugList; - } - set - { - factDrugList = value; - } - } - - - [NoCreatControlAttributs] - public List FactOutputLiquidsList - { - get - { - return factOutputLiquidsList; - } - set - { - factOutputLiquidsList = value; - } - } - - [NoCreatControlAttributs] - public List FactBloodGasAnalysisList - { - get - { - return factBloodGasAnalysisList; - } - set - { - factBloodGasAnalysisList = value; - } - } - - [NoCreatControlAttributs] - public List AnaseDataQualityRecordList - { - get - { - return anaseDataQualityRecordList; - } - set - { - anaseDataQualityRecordList = value; - } - } - [ClassAttributs(Description = "麻醉信息类")] - public OperationRecordInfo OpeRecordInfo - { - get - { - return opeRecordInfo; - } - set - { - opeRecordInfo = value; - } - } - [ClassAttributs(Description = "入恢复信息类")] - public OperationRecoverInInfo OpeRecoverInInfo - { - get - { - return opeRecoverInInfo; - } - set - { - opeRecoverInInfo = value; - } - } - [ClassAttributs(Description = "出恢复信息类")] - public OperationRecoverOutInfo OpeRecoverOutInfo - { - get - { - return opeRecoverOutInfo; - } - set - { - opeRecoverOutInfo = value; - } - } - [ClassAttributs(Description = "器械清点单类")] - public OperationRecordInstrumentList InstrumentList - { - get - { - return instrumentList; - } - set - { - instrumentList = value; - } - } - - public OperationRecordNew() - { - iniAddList(); - - SetDefaultValue(); - } - /// - /// 初始化各种对象列表 - /// - public void iniAddList() - { - PhysioParamList = AddOtherPhysioParamList(); - FactEventsList = new List(); - FactDrugList = new List(); - FactOutputLiquidsList = new List(); - AnaseDataQualityRecordList = new List(); - addPhysioList = new List(); - OpeRecordInfo = new OperationRecordInfo(); - OpeRecoverInInfo = new OperationRecoverInInfo(); - OpeRecoverOutInfo = new OperationRecoverOutInfo(); - InstrumentList = new OperationRecordInstrumentList(); - FactBloodGasAnalysisList = new List(); - } - - private void SetDefaultValue() - { - EventListstr = new List(); - DrugsListstr = new List(); - FluidListstr = new List(); - PunctureAndIntubatio = new List(); - BeforeDrugs = ""; - AnalgesiaDrug = ""; - } - /// - /// 清除各种对象数据 - /// - /// - public void ClearEventstr(ZedGraphControl zgc) - { - if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; - for (int i = 0; i <= 67; i++) - { - delAddObj("RemarkRow" + i); - delAddObj("PunctureAndIntubatio" + i); - } - delAddObj("allOutputLiquidsDose"); - delAddObj("allOutputLiquidsDoseDate"); - delAddObj("allSapDose"); - delAddObj("allSapDosedate"); - } - - public void ClearDrugsDose(ZedGraphControl zgc) - { - if (zgcAnas == null || zgcAnas != zgc) zgcAnas = zgc; - delAddObj("allDrugDose"); - delAddObj("allOutDose"); - delAddObj("allqtDrugDose"); - for (int i = 1; i <= 19; i++) - { - delAddObj("Out" + i); - } - } - - public DataTable AddOtherPhysioParamList() - { - string strSql = "SELECT pc.Id, pc.Name, pc.Color, pc.imgPath, pc.HighLimit, pc.LowLimit,pc.IsValid" + - " FROM PhysioDataConfig pc WHERE pc.NAME IN ('入室','麻醉开始','手术开始','手术结束','麻醉完成','出室','插管','拔管')"; - DataTable dt = HelperDB.DbHelperSQL.GetDataTable(strSql); - return dt; - } - public static DateTime getOpeMaxTime(OperationRecordNew myOpeRecord) - { - try - { - DateTime dts = lastMaxOperationDate(myOpeRecord.patientId.Value); - DateTime nowDate = DateTime.Now; - TimeSpan tsp = nowDate - dts; - if (tsp.TotalHours <= 12 && tsp.TotalDays <= 1 && dts < nowDate)//&& IsReview == false - { - dts = nowDate; - } - if (dts.ToString("yyyy-MM-dd HH:mm") == myOpeRecord.pageBegin.AddMinutes(240).ToString("yyyy-MM-dd HH:mm")) - { - dts = myOpeRecord.pageBegin.AddMinutes(240); - } - if (myOpeRecord.OutRoomTime != null) - { - DateTime outRoomTime = DateTime.Parse(myOpeRecord.OutRoomTime.ToString()); - if (DateTime.Compare(dts, outRoomTime) > 0) - { - dts = outRoomTime; - } - } - return dts; - } - catch (Exception) - { - return DateTime.Now; - } - } - /// - /// 得到手术的最大时间点 - /// - /// - /// - public static DateTime lastMaxOperationDate(int PatientId) - { - string sqlStr = "select top 1 * from (SELECT s.PatientId , s.EventEndTime etime FROM FactEvents s WHERE s.PatientId = " + PatientId + " union all SELECT s.PatientId , s.DrugEndTime FROM[dbo].[FactDrug] s WHERE s.PatientId = " + PatientId + " ) a order by a.etime desc"; - DataTable dt = DBHelper.GetDataTable(sqlStr); - return DateTime.Parse(dt.Rows[0][1].ToString()); - } - - } -} diff --git a/DrawGraph/AreaManage/OutputManage.cs b/DrawGraph/AreaManage/OutputManage.cs new file mode 100644 index 0000000..e962f2f --- /dev/null +++ b/DrawGraph/AreaManage/OutputManage.cs @@ -0,0 +1,255 @@ +using Newtonsoft.Json; +using AIMSExtension; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace DrawGraph +{ + + [Serializable, JsonObject(MemberSerialization.OptOut)] + public class OutputManage : AreaManageBase + { + /// + /// 药品区域 + /// + public RectangleFramePackObj sapPpack; + public LinesPackObj lines ; + public LinePackObj H3pack; + public LinePackObj H5pack; + public int RowsCount; + /// + /// 当前手术对象 + /// + private OperationRecord myOpeRecord = null; + public List DrugsListstr = new List(); + + + #region 初始化液体区域 + public OutputManage() + { + init(); + } + public OutputManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) + { + init(); + } + + public void init() + { + //自己要用的手术对象 + myOpeRecord = OpeRecord as OperationRecord; + } + + /// + /// 初始画的后置方法 + /// + public override void FollowUpMethod() + { + H3pack = template.GetPackObjectOTag("OutputManage_LinePackObj_11"); + H5pack = template.GetPackObjectOTag("OutputManage_LinePackObj_5"); + sapPpack = template.GetPackObjectOTag("OutputManage_RectangleFramePackObj_10"); + lines = template.GetPackObjectOTag("OutputManage_LinesPackObj_15"); + RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep); + } + #endregion + + #region 重写的事件 + /// + /// 鼠标点击画板 + /// + /// + /// + public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) + { + //if (e.Button == System.Windows.Forms.MouseButtons.Left) + //{ + // MessageBox.Show(this.GetType().Name + "is Click Left Button"); + //} + } + 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) + { + } + #endregion 重写的事件结束 + + #region 绑定区域数据 + public override void Bind() + { + init(); + DrawOutput(); + } + + /// + /// 画加药 + /// + private void DrawOutput() + { + try + { + foreach (FactOutputLiquids temp in myOpeRecord.FactOutputLiquidsList) + { + temp.clearAddObj(ZedControl); + } + reDrawDrug(); + } + catch (Exception exp) + { + PublicMethod.WriteLog(exp); + } + } + + /// + /// 重新画加药文本 + /// + private void reDrawDrug() + { + try + { + //画在第几行 + int rowDrugsIndex = 0; + //y的高度//主要高度 + double drugsy = 0; + //加药最后位置 + double maxDrugsy = sapPpack.RealEndY; + + //持续加药当前时间 + DateTime curTimeTemp = OperationRecord.getOpeMaxTime(myOpeRecord); + DateTime serverTime = DateTime.Now; + if (curTimeTemp > serverTime) curTimeTemp = serverTime; + //超出的药画备注 镇痛药备注 + List DrugListstr = new List(); + DrugListstr.Add("【出量】"); + myOpeRecord.BeforeDrugs = ""; + myOpeRecord.AnalgesiaDrug = ""; + //当前时间段加药集合 + myOpeRecord.FactOutputLiquidsList.ForEach(drug => + { + if (drug.IsContinue == 1 && drug.BeginTime == drug.EndTime) drug.End = curTimeTemp; + else if (drug.EndTime != null) drug.End = drug.EndTime; + }); + List _FactOutputLiquidsList = myOpeRecord.FactOutputLiquidsList.Where(s => IfInTimeExist(s.BeginTime, s.End) == true).ToList(); + //加药按加药时间排序 + //_FactOutputLiquidsList.Sort(new FactOutputLiquidsComparer()); + + for (int i = 0; i < _FactOutputLiquidsList.Count; i++) + { + FactOutputLiquids temp = _FactOutputLiquidsList[i]; + bool isEqual = false; + bool isChildEqual = false; + + //以行号返回具休的位置 + drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount); + SetDrug(temp, curTimeTemp, drugsy); + + //判断是否重复的 主药或组药 + for (int j = 0; j < i; j++) + { + FactOutputLiquids addDrug1 = _FactOutputLiquidsList[j]; + //如果加药品ID相同并且加加药ID不同,则认为加了同一种加药 + if (addDrug1.Equal(temp) ) + { + addDrug1.clearDNAndDT(ZedControl); + //因为相同则取得相同对象的Y,为当前的对象的高度 + drugsy = addDrug1.nowY; + isEqual = true; + continue; + } + } + if (isChildEqual == true) continue; + if (drugsy <= maxDrugsy) + { + temp.drawText(H3pack.RealX + 0.006f, drugsy); + if (isEqual == false) + rowDrugsIndex++; + } + else + ListAddDrugs(DrugListstr, i, temp); + } + + } + catch (Exception ex) + { + throw ex; + } + } + private void SetDrug(FactOutputLiquids temp, DateTime curTimeTemp, double y) + { + if (temp.IsContinue == 1 && temp.BeginTime == temp.EndTime) temp.End = curTimeTemp; + temp.EqualDose = null; + temp.setAnasArr(ZedControl, H5pack.RealX, sapPpack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); + temp.nowY = y; + } + private static void ListAddDrugs(List DrugListstr, int i, FactOutputLiquids temp) + { + string dose = ""; + if (dose.Trim() != "") dose += " "; + dose += ((double)temp.Dosage).ToString(); + if (temp.DosageUnit != null) + { + dose += temp.DosageUnit; + } + DrugListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", i + 1, (temp.BeginTime == temp.EndTime) ? temp.BeginTime.ToShortTimeString() : temp.BeginTime.ToShortTimeString() + "->" + temp.EndTime.ToShortTimeString(), temp.OutputLiquidsName.Trim(), dose, "","")); + //DrugListstr.Append(" "); + } + #endregion + + #region 当前区域公用事件方法 + private bool IfInTimeExist(DateTime Begin, DateTime End) + { + DateTime lastime = myOpeRecord.lastPageBegin.AddSeconds(59); + bool b = false; + if (End == null) + { + if (Begin > myOpeRecord.pageBegin && Begin < lastime) + { + b = true; + } + } + else + { + if (Begin >= myOpeRecord.pageBegin && Begin <= lastime) + { + b = true; + } + else if (End >= myOpeRecord.pageBegin && End <= lastime) + { + b = true; + } + else if (Begin < myOpeRecord.pageBegin && End > lastime) + { + b = true; + } + } + return b; + } + /// + /// 根据顶部加药序号,确定数值生命体征的纵向位置(以1为单位) + /// + /// + /// + public double getYPositionByListIndex(double index, double yTop, double yBottom, int rowCount) + { + double heightT = ZedControl.Height * (yBottom - yTop); + double setpTemp = heightT / rowCount; + //求一格在实际高度中的百分比 + double bfb = (setpTemp / heightT); + //两线之间度*百分比得到一格的百分比高度 + double ygBFB = (yBottom - yTop) * bfb; + double y = ygBFB * index; + return y; + } + #endregion + } +} \ No newline at end of file diff --git a/DrawGraph/AreaManage/PhysioDataManage.cs b/DrawGraph/AreaManage/PhysioDataManage.cs index 276078d..15b476c 100644 --- a/DrawGraph/AreaManage/PhysioDataManage.cs +++ b/DrawGraph/AreaManage/PhysioDataManage.cs @@ -90,7 +90,7 @@ namespace DrawGraph if (axis != null) { DateTime dt = DateTime.Now.AddMinutes(-DateTime.Now.Minute).AddMinutes(15).AddSeconds(-DateTime.Now.Second).AddMilliseconds(-DateTime.Now.Millisecond); - axis.BeginTime = dt; + axis.BeginTime = dt; } } } @@ -191,7 +191,7 @@ namespace DrawGraph curPhysioParam.onClick(e); appTemp.IsClick = true; curPhysioParam = appTemp; - curPhysioParam.PatientId = myOpeRecord.Id.Value; + curPhysioParam.PatientId = myOpeRecord.Id.Value; curPhysioParam.onClick(e); } } @@ -498,7 +498,7 @@ namespace DrawGraph myOpeRecord.SAreaObj.StartPD.RecordTime, myOpeRecord.SAreaObj.EndPd.RecordTime, startValue, endValue); - frm.selparameters = selparameters; + frm.selparameters = selparameters; frm.FormClosed += (a, b) => { if (frm.isDelete == true) @@ -538,18 +538,13 @@ namespace DrawGraph { init(); //if (myOpeRecord.addPhysioList.Count == 0) - iniHashCurveList(myOpeRecord.addPhysioList); + InitPhysioDataConfigList(myOpeRecord.addPhysioList); //悬浮tip初始化 aSyncTip = TipBox.CreateInstance("async"); aSyncTip.setAnasArr(ZedControl, chartPack.RealX, chartPack.RealEndX, myOpeRecord.pageBegin, myOpeRecord.pageBegin.AddMinutes(EVERY_PAGE_TIME_SPAN)); DrawPhysioData(); - AbleEditPackObj ableEdit = template.GetPackObjectOTag("PhysioDataManageGoodsBill_AbleEditPackObj_61myOpeRecord_AnesthesiaDoctorAssistant"); - if (ableEdit != null) - { - ableEdit.IsVisible = false; - } } /// @@ -613,7 +608,7 @@ namespace DrawGraph /// 将坐标数值对加到相应的曲线上,从而初始化曲线Chart /// /// - private void iniHashCurveList(List addPhysioList) + private void InitPhysioDataConfigList(List addPhysioList) { try { @@ -622,7 +617,8 @@ namespace DrawGraph addPhysioList.Clear(); ZedControl.GraphPane.CurveList.Clear(); //监测区域里的第1根竖线,显示数值时用 - LinePackObj pack = template.GetPackObjectOTag("MonitorManage_LinePackObj_4"); + LinesPackObj pack = template.GetPackObjectOTag("MonitorManage_LinesPackObj_9"); + int RowsCount = Convert.ToInt32(pack.XPageSpan / pack.XMajorGridStep); //加载生命体征图标 IList dt = PhysioDataConfig.GetAllList(); @@ -662,9 +658,8 @@ namespace DrawGraph { if (pp.showStyle.Equals("显示数值")) { - double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, 7); - ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f); - //ZUtil.DrawText(pp.Unit, pack.RealX + 0.05f, y, ZedControl, "PP" + pp.Enname, 4f); + double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, RowsCount ); + ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f); pp.showValue = y + 0.002; showvalue++; } @@ -724,8 +719,9 @@ namespace DrawGraph //解决办法:重新定义,使XML操作对象发生变化。 int showvalue = 0; //监测区域里的第1根竖线,显示数值时用 - LinePackObj pack = template.GetPackObjectOTag("MonitorManage_LinePackObj_4"); + LinesPackObj pack = template.GetPackObjectOTag("MonitorManage_LinesPackObj_9"); + int RowsCount = Convert.ToInt32(pack.XPageSpan / pack.XMajorGridStep); foreach (var pp in myOpeRecord.addPhysioList) { string[] str = pp.Color.Split('.'); @@ -762,7 +758,7 @@ namespace DrawGraph //如果模板管理不为空 if (pack != null) { - double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, 5); + double y = pack.RealY + getYPositionByListIndex(showvalue, pack.RealY, pack.RealEndY, RowsCount); ZUtil.DrawText(pp.Name, pack.RealX, y, ZedControl, "PP" + pp.Enname, 5.5f); pp.showValue = y + 0.002; showvalue++; @@ -873,7 +869,7 @@ namespace DrawGraph pdNew.YAisx = physioParam.YAisx; pdNew.PhysioDataConfigId = physioParam.Id; pdNew.PatientId = myOpeRecord.Id.Value; - pdNew.IsClick = true; + pdNew.IsClick = true; pdNews.Add(pdNew); if (y[1].ToString() != "") @@ -885,7 +881,7 @@ namespace DrawGraph pdNewY2.YAisx = physioParam.YAisx; pdNewY2.PhysioDataConfigId = physioParam.Id; pdNewY2.PatientId = myOpeRecord.Id.Value; - pdNewY2.IsClick = true; + pdNewY2.IsClick = true; pdNews.Add(pdNewY2); } if (y[0].ToString() != "") @@ -897,7 +893,7 @@ namespace DrawGraph pdNewY2.YAisx = physioParam.YAisx; pdNewY2.PhysioDataConfigId = physioParam.Id; pdNewY2.PatientId = myOpeRecord.Id.Value; - pdNewY2.IsClick = true; + pdNewY2.IsClick = true; pdNews.Add(pdNewY2); } diff --git a/DrawGraph/AreaManage/RemarkManage.cs b/DrawGraph/AreaManage/RemarkManage.cs index b0f666a..f7d3640 100644 --- a/DrawGraph/AreaManage/RemarkManage.cs +++ b/DrawGraph/AreaManage/RemarkManage.cs @@ -11,6 +11,7 @@ namespace DrawGraph public class RemarkManage : AreaManageBase { public RectangleFramePackObj remarkPpack; + public RectangleFramePackObj OutputManagePpack; public LinePackObj H3pack; public LinePackObj H4pack; public LinePackObj H5pack; @@ -41,6 +42,7 @@ namespace DrawGraph H5pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_8"); H6pack = template.GetPackObjectOTag("RemarkManage_LinePackObj_9"); remarkPpack = template.GetPackObjectOTag("RemarkManage_RectangleFramePackObj_2"); + OutputManagePpack = template.GetPackObjectOTag("OutputManage_RectangleFramePackObj_10"); } #endregion @@ -364,6 +366,11 @@ namespace DrawGraph x = H5pack.RealX; remarkRow = 0; } + else if (AllRemarkRow == (remarkRowscount * 3) && OutputManagePpack != null) + { + x = H6pack.RealX; + remarkRow = 0; + } } #endregion diff --git a/DrawGraph/AreaManage/SapManage.cs b/DrawGraph/AreaManage/SapManage.cs index d79dc89..2e08b99 100644 --- a/DrawGraph/AreaManage/SapManage.cs +++ b/DrawGraph/AreaManage/SapManage.cs @@ -17,8 +17,10 @@ namespace DrawGraph /// 药品区域 /// public RectangleFramePackObj sapPpack; + public LinesPackObj lines; public LinePackObj H3pack; public LinePackObj H5pack; + public int RowsCount; /// /// 当前手术对象 /// @@ -50,6 +52,8 @@ namespace DrawGraph H3pack = template.GetPackObjectOTag("SapManage_LinePackObj_3"); H5pack = template.GetPackObjectOTag("SapManage_LinePackObj_5"); sapPpack = template.GetPackObjectOTag("SapManage_RectangleFramePackObj_2"); + lines = template.GetPackObjectOTag("SapManage_LinesPackObj_7"); + RowsCount = Convert.ToInt32(lines.XPageSpan / lines.XMajorGridStep); } #endregion @@ -153,7 +157,7 @@ namespace DrawGraph if (isSapDrugs(temp)) { //以行号返回具休的位置 - drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, 7); + drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount); SetDrug(temp, curTimeTemp, drugsy); temp.ChildFactDrugList = new List(); temp.ChildFactDrugList = _FactDrugList.Where(a => a.ParentId == temp.Id).ToList(); @@ -219,7 +223,7 @@ namespace DrawGraph { foreach (FactDrug sItem in temp.ChildFactDrugList) { - drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, 7); + drugsy = sapPpack.RealY + getYPositionByListIndex(rowDrugsIndex, sapPpack.RealY, sapPpack.RealEndY, RowsCount); SetDrug(sItem, curTimeTemp, drugsy); if (drugsy <= maxDrugsy) { @@ -270,7 +274,7 @@ namespace DrawGraph } private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp) { - double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, 7) / 2; + double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, RowsCount) / 2; //double x = H3pack.RealX + 0.003f; ZUtil.DrawLine(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red); ZUtil.DrawLine(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red); diff --git a/DrawGraph/DrawGraph.csproj b/DrawGraph/DrawGraph.csproj index 0bec243..f6bd765 100644 --- a/DrawGraph/DrawGraph.csproj +++ b/DrawGraph/DrawGraph.csproj @@ -67,7 +67,7 @@ Form - +