From 8fa93ff14bd61012581a9136e5fa9be46555d74f Mon Sep 17 00:00:00 2001 From: leomon Date: Mon, 15 May 2023 15:12:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8D=AF=E5=93=81=E6=8B=96=E6=8B=BD=208?= =?UTF-8?q?=E9=97=B4=E6=B0=94=E9=81=93=E5=8E=8B=E6=B2=A1=E7=94=BB=20?= =?UTF-8?q?=E5=8A=A8=E6=80=81=E9=85=8D=E7=BD=AE=E6=9C=AF=E5=89=8D=E6=8E=92?= =?UTF-8?q?=E7=A8=8B=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F=20=E7=94=A8?= =?UTF-8?q?=E8=8D=AF=E7=95=8C=E9=9D=A2=E5=A2=9E=E5=8A=A0=E6=8C=81=E7=BB=AD?= =?UTF-8?q?=E6=97=B6=E9=95=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIMS/AIMS.csproj | 9 + .../frmAanesthesiaRecord.cs | 54 +- .../frmFactDrugNew.Designer.cs | 2647 +++++++++-------- AIMS/OperationAanesthesia/frmFactDrugNew.cs | 80 +- AIMS/OperationAanesthesia/frmFactDrugNew.resx | 14 +- AIMS/OperationFront/frmExportConfig2.cs | 149 + .../frmExportConfig2.designer.cs | 298 ++ AIMS/OperationFront/frmExportConfig2.resx | 129 + .../frmOperationSchedulePlan.cs | 189 +- .../frmOperationSchedulePlan.resx | 2 +- AIMS/OremrUserControl/ExportConfig.cs | 1 + AIMS/OremrUserControl/ucDocument.cs | 27 +- .../DocumentEntity/DocumentExtension.cs | 8 +- DrawGraph/AreaManage/BaseInfoBottomManage.cs | 2 +- DrawGraph/AreaManage/DrugsManage.cs | 116 +- DrawGraph/AreaManage/FactDrug.cs | 80 +- DrawGraph/AreaManage/SapManage.cs | 231 +- DrawGraph/AreaManage/TokenEditorManage.cs | 23 +- 18 files changed, 2543 insertions(+), 1516 deletions(-) create mode 100644 AIMS/OperationFront/frmExportConfig2.cs create mode 100644 AIMS/OperationFront/frmExportConfig2.designer.cs create mode 100644 AIMS/OperationFront/frmExportConfig2.resx diff --git a/AIMS/AIMS.csproj b/AIMS/AIMS.csproj index 7ba186f..d2fe09f 100644 --- a/AIMS/AIMS.csproj +++ b/AIMS/AIMS.csproj @@ -465,6 +465,12 @@ frmSelectPatientGoodsBill.cs + + Form + + + frmExportConfig2.cs + Form @@ -1050,6 +1056,9 @@ frmSelectPatientGoodsBill.cs + + frmExportConfig2.cs + frmOperationSchedulePlan.cs diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs b/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs index c8247e9..5f934ff 100644 --- a/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs +++ b/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs @@ -87,7 +87,7 @@ namespace AIMS.OperationAanesthesia btnChage.Visible = true; } //this.MaximizeBox = false; - this.MinimizeBox = false; + //this.MinimizeBox = false; LoadAnesRescue(); } @@ -235,22 +235,22 @@ namespace AIMS.OperationAanesthesia { ToolStrip toolbar = ctl as ToolStrip; toolbar.Items.RemoveAt(0); - ToolStrip tb = ctl as ToolStrip; + ToolStrip tb = ctl as ToolStrip; ToolStripButton settingBtn3 = new ToolStripButton(); settingBtn3.ToolTipText = "打印反面"; - settingBtn3.Text = "打印反面"; + settingBtn3.Text = "打印反面"; settingBtn3.Click += PageSetting_Click3; - tb.Items.Insert(0, settingBtn3); + tb.Items.Insert(0, settingBtn3); ToolStripButton settingBtn2 = new ToolStripButton(); settingBtn2.ToolTipText = "打印正面"; - settingBtn2.Text = "打印正面"; + settingBtn2.Text = "打印正面"; settingBtn2.Click += PageSetting_Click2; - tb.Items.Insert(0, settingBtn2); + tb.Items.Insert(0, settingBtn2); ToolStripButton settingBtn = new ToolStripButton(); settingBtn.ToolTipText = "打印全部"; - settingBtn.Text = "打印全部"; + settingBtn.Text = "打印全部"; settingBtn.Click += PageSetting_Click; - tb.Items.Insert(0, settingBtn); + tb.Items.Insert(0, settingBtn); } } pdg.PrintPreviewControl.Columns = 2; @@ -704,7 +704,7 @@ namespace AIMS.OperationAanesthesia { DrawGraph.FactEvents Inevent = null; DateTimeInput tb = obj as DateTimeInput; - if (_record.StateName == "手术中" || tb.Name.Equals( "txtCG") || tb.Name.Equals( "txtBG")) + if (_record.StateName == "手术中" || tb.Name.Equals("txtCG") || tb.Name.Equals("txtBG")) { DeleteEventTime("txtAnaesthesiaBegin", "麻醉开始", tb, ref Inevent); DeleteEventTime("txtOperationBegin", "手术开始", tb, ref Inevent); @@ -712,7 +712,7 @@ namespace AIMS.OperationAanesthesia DeleteEventTime("txtAnaesthesiaEnd", "麻醉完成", tb, ref Inevent); DeleteEventTime("txtCG", cmbCGType.Text, tb, ref Inevent); DeleteEventTime("txtBG", cmbBGType.Text, tb, ref Inevent); - } + } else { MessageBox.Show("选择的事件不可删除 只可修改!"); @@ -1525,25 +1525,27 @@ namespace AIMS.OperationAanesthesia } } - foreach (PhysioDataConfig addPP in _record.PhysioAnesConfigList) + if (LastAnesMonitorDataTime == null || dtTime > LastAnesMonitorDataTime.Value.AddMinutes(9)) { - string key = addPP.Name; - string value = addPP.Enname; - if (addPP.IsValid == false) continue; - if (value == null || value == "") continue; - if (_record.AnesthesiaBeginTime != null && InsertTime < _record.AnesthesiaBeginTime) continue; - if (LastAnesMonitorDataTime != null && dtTime < LastAnesMonitorDataTime.Value.AddMinutes(9)) continue; - LastAnesMonitorDataTime = dtTime; - - int minMinutes = -5; - DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1)); - if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) + foreach (PhysioDataConfig addPP in _record.PhysioAnesConfigList) { - foreach (DataRow dr in dtPhysioData.Rows) + string key = addPP.Name; + string value = addPP.Enname; + if (addPP.IsValid == false) continue; + if (value == null || value == "") continue; + if (_record.AnesthesiaBeginTime != null && InsertTime < _record.AnesthesiaBeginTime) continue; + LastAnesMonitorDataTime = dtTime; + + int minMinutes = -5; + DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1)); + if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) { - PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString()); - physioDatas.Add(pdTemp); - continue; + foreach (DataRow dr in dtPhysioData.Rows) + { + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString()); + physioDatas.Add(pdTemp); + continue; + } } } } diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs index 3948395..423d5c9 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs @@ -29,75 +29,34 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactDrugNew)); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); this.panel1 = new System.Windows.Forms.Panel(); this.panel5 = new System.Windows.Forms.Panel(); this.tabDrugs = new DevComponents.DotNetBar.SuperTabControl(); - this.superTabControlPanel5 = new DevComponents.DotNetBar.SuperTabControlPanel(); - this.dgvDrugsSZ = new DevComponents.DotNetBar.Controls.DataGridViewX(); - this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboEditBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn23 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn24 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewDateTimeInputColumn3 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewDateTimeInputColumn4 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.P2 = new DevComponents.DotNetBar.SuperTabItem(); - this.superTabControlPanel3 = new DevComponents.DotNetBar.SuperTabControlPanel(); - this.dgvDrugsYD = new DevComponents.DotNetBar.Controls.DataGridViewX(); - this.dataGridViewImageColumn3 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn14 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewDateTimeInputColumn7 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewDateTimeInputColumn8 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewComboBoxColumn15 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.P0 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel6 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.dgvDrugsSH = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); @@ -117,8 +76,12 @@ this.dataGridViewDateTimeInputColumn5 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewDateTimeInputColumn6 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.drugtimespan4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.P3 = new DevComponents.DotNetBar.SuperTabItem(); + this.superTabControlPanel5 = new DevComponents.DotNetBar.SuperTabControlPanel(); + this.dgvDrugsSZ = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.P2 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel4 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.dgvDrugsSQ = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.dataGridViewImageColumn5 = new System.Windows.Forms.DataGridViewImageColumn(); @@ -138,8 +101,31 @@ this.dataGridViewDateTimeInputColumn1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); this.dataGridViewTextBoxColumn43 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewDateTimeInputColumn2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.drugtimespan2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn44 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.P1 = new DevComponents.DotNetBar.SuperTabItem(); + this.superTabControlPanel3 = new DevComponents.DotNetBar.SuperTabControlPanel(); + this.dgvDrugsYD = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.dataGridViewImageColumn3 = new System.Windows.Forms.DataGridViewImageColumn(); + this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn18 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn19 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn20 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn21 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn22 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn23 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn14 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewDateTimeInputColumn7 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.dataGridViewTextBoxColumn24 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewDateTimeInputColumn8 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.drugtimespan1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn15 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.P0 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.panelleft = new System.Windows.Forms.Panel(); @@ -169,18 +155,37 @@ this.dgvDosage = new System.Windows.Forms.DataGridView(); this.Dosage = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); + this.dataGridViewImageColumn1 = new System.Windows.Forms.DataGridViewImageColumn(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboEditBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn23 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn24 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewDateTimeInputColumn3 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewDateTimeInputColumn4 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.drugtimespan3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.panel1.SuspendLayout(); this.panel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).BeginInit(); this.tabDrugs.SuspendLayout(); - this.superTabControlPanel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).BeginInit(); - this.superTabControlPanel3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).BeginInit(); this.superTabControlPanel6.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).BeginInit(); + this.superTabControlPanel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).BeginInit(); this.superTabControlPanel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSQ)).BeginInit(); + this.superTabControlPanel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).BeginInit(); this.panelleft.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).BeginInit(); this.panel2.SuspendLayout(); @@ -198,7 +203,7 @@ 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(1400, 677); + this.panel1.Size = new System.Drawing.Size(1484, 677); this.panel1.TabIndex = 2; // // panel5 @@ -207,7 +212,7 @@ this.panel5.Dock = System.Windows.Forms.DockStyle.Fill; this.panel5.Location = new System.Drawing.Point(330, 42); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(1070, 635); + this.panel5.Size = new System.Drawing.Size(1154, 635); this.panel5.TabIndex = 2; // // tabDrugs @@ -241,7 +246,7 @@ this.tabDrugs.ReorderTabsEnabled = true; this.tabDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold); this.tabDrugs.SelectedTabIndex = 0; - this.tabDrugs.Size = new System.Drawing.Size(1070, 635); + this.tabDrugs.Size = new System.Drawing.Size(1154, 635); this.tabDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F); this.tabDrugs.TabIndex = 464; this.tabDrugs.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] { @@ -252,13 +257,316 @@ this.tabDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue; this.tabDrugs.SelectedTabChanged += new System.EventHandler(this.tabDrugs_SelectedTabChanged); // + // superTabControlPanel6 + // + this.superTabControlPanel6.Controls.Add(this.dgvDrugsSH); + this.superTabControlPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel6.Location = new System.Drawing.Point(0, 31); + this.superTabControlPanel6.Name = "superTabControlPanel6"; + this.superTabControlPanel6.Size = new System.Drawing.Size(1154, 604); + this.superTabControlPanel6.TabIndex = 0; + this.superTabControlPanel6.TabItem = this.P3; + this.superTabControlPanel6.Visible = false; + // + // dgvDrugsSH + // + this.dgvDrugsSH.AllowUserToAddRows = false; + this.dgvDrugsSH.AllowUserToResizeColumns = false; + this.dgvDrugsSH.AllowUserToResizeRows = false; + dataGridViewCellStyle12.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle12; + this.dgvDrugsSH.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsSH.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle13; + this.dgvDrugsSH.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDrugsSH.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewImageColumn2, + this.dataGridViewTextBoxColumn9, + this.dataGridViewTextBoxColumn10, + this.dataGridViewTextBoxColumn11, + this.dataGridViewComboEditBoxColumn3, + this.dataGridViewComboBoxColumn5, + this.dataGridViewTextBoxColumn12, + this.dataGridViewComboBoxColumn6, + this.dataGridViewTextBoxColumn13, + this.dataGridViewComboBoxColumn7, + this.dataGridViewTextBoxColumn14, + this.dataGridViewComboBoxColumn8, + this.dataGridViewComboBoxColumn25, + this.dataGridViewComboBoxColumn26, + this.dataGridViewDateTimeInputColumn5, + this.dataGridViewTextBoxColumn15, + this.dataGridViewDateTimeInputColumn6, + this.drugtimespan4, + this.dataGridViewTextBoxColumn16}); + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle15.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle15.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle15; + this.dgvDrugsSH.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDrugsSH.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvDrugsSH.EnableHeadersVisualStyles = false; + this.dgvDrugsSH.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvDrugsSH.Location = new System.Drawing.Point(0, 0); + this.dgvDrugsSH.Margin = new System.Windows.Forms.Padding(0); + this.dgvDrugsSH.MultiSelect = false; + this.dgvDrugsSH.Name = "dgvDrugsSH"; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle16.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle16; + this.dgvDrugsSH.RowHeadersVisible = false; + this.dgvDrugsSH.RowTemplate.Height = 25; + this.dgvDrugsSH.ShowCellErrors = false; + this.dgvDrugsSH.ShowCellToolTips = false; + this.dgvDrugsSH.Size = new System.Drawing.Size(1154, 604); + this.dgvDrugsSH.TabIndex = 17; + this.dgvDrugsSH.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); + // + // dataGridViewImageColumn2 + // + this.dataGridViewImageColumn2.HeaderText = " "; + this.dataGridViewImageColumn2.Image = global::AIMS.Properties.Resources.SYSCRL; + this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2"; + this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewImageColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; + this.dataGridViewImageColumn2.Width = 30; + // + // dataGridViewTextBoxColumn9 + // + dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle14; + this.dataGridViewTextBoxColumn9.HeaderText = "组"; + this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; + this.dataGridViewTextBoxColumn9.Width = 30; + // + // dataGridViewTextBoxColumn10 + // + this.dataGridViewTextBoxColumn10.HeaderText = "类型"; + this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; + this.dataGridViewTextBoxColumn10.Visible = false; + this.dataGridViewTextBoxColumn10.Width = 60; + // + // dataGridViewTextBoxColumn11 + // + this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn11.HeaderText = "名称"; + this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; + this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboEditBoxColumn3 + // + this.dataGridViewComboEditBoxColumn3.HeaderText = "备注"; + this.dataGridViewComboEditBoxColumn3.Name = "dataGridViewComboEditBoxColumn3"; + this.dataGridViewComboEditBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboBoxColumn5 + // + this.dataGridViewComboBoxColumn5.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn5.HeaderText = "途径"; + this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5"; + this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn5.Width = 85; + // + // dataGridViewTextBoxColumn12 + // + this.dataGridViewTextBoxColumn12.HeaderText = "浓度"; + this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; + this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn12.Width = 45; + // + // dataGridViewComboBoxColumn6 + // + this.dataGridViewComboBoxColumn6.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn6.HeaderText = "浓度单位"; + this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6"; + this.dataGridViewComboBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn6.Width = 75; + // + // dataGridViewTextBoxColumn13 + // + this.dataGridViewTextBoxColumn13.HeaderText = "速度"; + this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; + this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn13.Width = 45; + // + // dataGridViewComboBoxColumn7 + // + this.dataGridViewComboBoxColumn7.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn7.HeaderText = "速度单位"; + this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7"; + this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn7.Width = 85; + // + // dataGridViewTextBoxColumn14 + // + this.dataGridViewTextBoxColumn14.HeaderText = "用量"; + this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; + this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn14.Width = 60; + // + // dataGridViewComboBoxColumn8 + // + this.dataGridViewComboBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn8.HeaderText = "单位"; + this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8"; + this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn8.Width = 60; + // + // dataGridViewComboBoxColumn25 + // + this.dataGridViewComboBoxColumn25.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn25.HeaderText = "血型"; + this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25"; + this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn25.Width = 45; + // + // dataGridViewComboBoxColumn26 + // + this.dataGridViewComboBoxColumn26.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn26.HeaderText = "加药方式"; + this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26"; + this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn26.Visible = false; + this.dataGridViewComboBoxColumn26.Width = 80; + // + // dataGridViewDateTimeInputColumn5 + // + this.dataGridViewDateTimeInputColumn5.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn5.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn5.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn5.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn5.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn5.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn5.HeaderText = "开始时间"; + this.dataGridViewDateTimeInputColumn5.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn5.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn5.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn5.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn5.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn5.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn5.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn5.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn5.Name = "dataGridViewDateTimeInputColumn5"; + this.dataGridViewDateTimeInputColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn5.Width = 80; + // + // dataGridViewTextBoxColumn15 + // + this.dataGridViewTextBoxColumn15.HeaderText = "持续"; + this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; + this.dataGridViewTextBoxColumn15.Width = 45; + // + // dataGridViewDateTimeInputColumn6 + // + this.dataGridViewDateTimeInputColumn6.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn6.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn6.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn6.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn6.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn6.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn6.HeaderText = "结束时间"; + this.dataGridViewDateTimeInputColumn6.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn6.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn6.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn6.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn6.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn6.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn6.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn6.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn6.Name = "dataGridViewDateTimeInputColumn6"; + this.dataGridViewDateTimeInputColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn6.Width = 80; + // + // drugtimespan4 + // + this.drugtimespan4.HeaderText = "时长"; + this.drugtimespan4.Name = "drugtimespan4"; + this.drugtimespan4.ReadOnly = true; + this.drugtimespan4.Width = 45; + // + // dataGridViewTextBoxColumn16 + // + this.dataGridViewTextBoxColumn16.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewTextBoxColumn16.HeaderText = "通路"; + this.dataGridViewTextBoxColumn16.Items.AddRange(new object[] { + "", + "1", + "2", + "3", + "4"}); + this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; + this.dataGridViewTextBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewTextBoxColumn16.Width = 45; + // + // P3 + // + this.P3.AttachedControl = this.superTabControlPanel6; + this.P3.GlobalItem = false; + this.P3.Name = "P3"; + this.P3.Text = "术后镇痛药"; + // // superTabControlPanel5 // this.superTabControlPanel5.Controls.Add(this.dgvDrugsSZ); this.superTabControlPanel5.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel5.Location = new System.Drawing.Point(0, 31); this.superTabControlPanel5.Name = "superTabControlPanel5"; - this.superTabControlPanel5.Size = new System.Drawing.Size(1070, 604); + this.superTabControlPanel5.Size = new System.Drawing.Size(1154, 604); this.superTabControlPanel5.TabIndex = 0; this.superTabControlPanel5.TabItem = this.P2; this.superTabControlPanel5.Visible = false; @@ -299,15 +607,16 @@ this.dataGridViewDateTimeInputColumn3, this.dataGridViewTextBoxColumn7, this.dataGridViewDateTimeInputColumn4, + this.drugtimespan3, this.dataGridViewTextBoxColumn8}); - dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvDrugsSZ.DefaultCellStyle = dataGridViewCellStyle4; + dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSZ.DefaultCellStyle = dataGridViewCellStyle5; this.dgvDrugsSZ.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvDrugsSZ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; this.dgvDrugsSZ.EnableHeadersVisualStyles = false; @@ -316,22 +625,955 @@ this.dgvDrugsSZ.Margin = new System.Windows.Forms.Padding(0); this.dgvDrugsSZ.MultiSelect = false; this.dgvDrugsSZ.Name = "dgvDrugsSZ"; - dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSZ.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSZ.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; this.dgvDrugsSZ.RowHeadersVisible = false; this.dgvDrugsSZ.RowTemplate.Height = 25; this.dgvDrugsSZ.ShowCellErrors = false; this.dgvDrugsSZ.ShowCellToolTips = false; - this.dgvDrugsSZ.Size = new System.Drawing.Size(1070, 604); + this.dgvDrugsSZ.Size = new System.Drawing.Size(1154, 604); this.dgvDrugsSZ.TabIndex = 16; this.dgvDrugsSZ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); // + // P2 + // + this.P2.AttachedControl = this.superTabControlPanel5; + this.P2.GlobalItem = false; + this.P2.Name = "P2"; + this.P2.Text = "术中用药"; + // + // superTabControlPanel4 + // + this.superTabControlPanel4.Controls.Add(this.dgvDrugsSQ); + this.superTabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel4.Location = new System.Drawing.Point(0, 31); + this.superTabControlPanel4.Name = "superTabControlPanel4"; + this.superTabControlPanel4.Size = new System.Drawing.Size(1154, 604); + this.superTabControlPanel4.TabIndex = 0; + this.superTabControlPanel4.TabItem = this.P1; + this.superTabControlPanel4.Visible = false; + // + // dgvDrugsSQ + // + this.dgvDrugsSQ.AllowUserToAddRows = false; + this.dgvDrugsSQ.AllowUserToResizeColumns = false; + this.dgvDrugsSQ.AllowUserToResizeRows = false; + dataGridViewCellStyle17.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17; + this.dgvDrugsSQ.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsSQ.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle18.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; + this.dgvDrugsSQ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDrugsSQ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewImageColumn5, + this.dataGridViewTextBoxColumn37, + this.dataGridViewTextBoxColumn38, + this.dataGridViewTextBoxColumn39, + this.dataGridViewComboEditBoxColumn1, + this.dataGridViewComboBoxColumn17, + this.dataGridViewTextBoxColumn40, + this.dataGridViewComboBoxColumn18, + this.dataGridViewTextBoxColumn41, + this.dataGridViewComboBoxColumn19, + this.dataGridViewTextBoxColumn42, + this.dataGridViewComboBoxColumn20, + this.dataGridViewComboBoxColumn21, + this.dataGridViewComboBoxColumn22, + this.dataGridViewDateTimeInputColumn1, + this.dataGridViewTextBoxColumn43, + this.dataGridViewDateTimeInputColumn2, + this.drugtimespan2, + this.dataGridViewTextBoxColumn44}); + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle20.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle20.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle20; + this.dgvDrugsSQ.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDrugsSQ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvDrugsSQ.EnableHeadersVisualStyles = false; + this.dgvDrugsSQ.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvDrugsSQ.Location = new System.Drawing.Point(0, 0); + this.dgvDrugsSQ.Margin = new System.Windows.Forms.Padding(0); + this.dgvDrugsSQ.MultiSelect = false; + this.dgvDrugsSQ.Name = "dgvDrugsSQ"; + dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle21.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle21; + this.dgvDrugsSQ.RowHeadersVisible = false; + this.dgvDrugsSQ.RowTemplate.Height = 25; + this.dgvDrugsSQ.ShowCellErrors = false; + this.dgvDrugsSQ.ShowCellToolTips = false; + this.dgvDrugsSQ.Size = new System.Drawing.Size(1154, 604); + this.dgvDrugsSQ.TabIndex = 16; + this.dgvDrugsSQ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); + // + // dataGridViewImageColumn5 + // + this.dataGridViewImageColumn5.HeaderText = " "; + this.dataGridViewImageColumn5.Image = global::AIMS.Properties.Resources.SYSCRL; + this.dataGridViewImageColumn5.Name = "dataGridViewImageColumn5"; + this.dataGridViewImageColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewImageColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; + this.dataGridViewImageColumn5.Width = 30; + // + // dataGridViewTextBoxColumn37 + // + dataGridViewCellStyle19.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle19; + this.dataGridViewTextBoxColumn37.HeaderText = "组"; + this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37"; + this.dataGridViewTextBoxColumn37.Width = 30; + // + // dataGridViewTextBoxColumn38 + // + this.dataGridViewTextBoxColumn38.HeaderText = "类型"; + this.dataGridViewTextBoxColumn38.Name = "dataGridViewTextBoxColumn38"; + this.dataGridViewTextBoxColumn38.Visible = false; + this.dataGridViewTextBoxColumn38.Width = 60; + // + // dataGridViewTextBoxColumn39 + // + this.dataGridViewTextBoxColumn39.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn39.HeaderText = "名称"; + this.dataGridViewTextBoxColumn39.Name = "dataGridViewTextBoxColumn39"; + this.dataGridViewTextBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboEditBoxColumn1 + // + this.dataGridViewComboEditBoxColumn1.HeaderText = "备注"; + this.dataGridViewComboEditBoxColumn1.Name = "dataGridViewComboEditBoxColumn1"; + this.dataGridViewComboEditBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboBoxColumn17 + // + this.dataGridViewComboBoxColumn17.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn17.HeaderText = "途径"; + this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17"; + this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn17.Width = 85; + // + // dataGridViewTextBoxColumn40 + // + this.dataGridViewTextBoxColumn40.HeaderText = "浓度"; + this.dataGridViewTextBoxColumn40.Name = "dataGridViewTextBoxColumn40"; + this.dataGridViewTextBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn40.Width = 45; + // + // dataGridViewComboBoxColumn18 + // + this.dataGridViewComboBoxColumn18.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn18.HeaderText = "浓度单位"; + this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18"; + this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn18.Width = 75; + // + // dataGridViewTextBoxColumn41 + // + this.dataGridViewTextBoxColumn41.HeaderText = "速度"; + this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41"; + this.dataGridViewTextBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn41.Width = 45; + // + // dataGridViewComboBoxColumn19 + // + this.dataGridViewComboBoxColumn19.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn19.HeaderText = "速度单位"; + this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19"; + this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn19.Width = 85; + // + // dataGridViewTextBoxColumn42 + // + this.dataGridViewTextBoxColumn42.HeaderText = "用量"; + this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42"; + this.dataGridViewTextBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn42.Width = 60; + // + // dataGridViewComboBoxColumn20 + // + this.dataGridViewComboBoxColumn20.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn20.HeaderText = "单位"; + this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20"; + this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn20.Width = 60; + // + // dataGridViewComboBoxColumn21 + // + this.dataGridViewComboBoxColumn21.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn21.HeaderText = "血型"; + this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21"; + this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn21.Width = 45; + // + // dataGridViewComboBoxColumn22 + // + this.dataGridViewComboBoxColumn22.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn22.HeaderText = "加药方式"; + this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22"; + this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn22.Visible = false; + this.dataGridViewComboBoxColumn22.Width = 80; + // + // dataGridViewDateTimeInputColumn1 + // + this.dataGridViewDateTimeInputColumn1.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn1.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn1.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn1.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn1.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn1.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn1.HeaderText = "开始时间"; + this.dataGridViewDateTimeInputColumn1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn1.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn1.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn1.Name = "dataGridViewDateTimeInputColumn1"; + this.dataGridViewDateTimeInputColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn1.Width = 80; + // + // dataGridViewTextBoxColumn43 + // + this.dataGridViewTextBoxColumn43.HeaderText = "持续"; + this.dataGridViewTextBoxColumn43.Name = "dataGridViewTextBoxColumn43"; + this.dataGridViewTextBoxColumn43.Width = 45; + // + // dataGridViewDateTimeInputColumn2 + // + this.dataGridViewDateTimeInputColumn2.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn2.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn2.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn2.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn2.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn2.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn2.HeaderText = "结束时间"; + this.dataGridViewDateTimeInputColumn2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn2.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn2.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn2.Name = "dataGridViewDateTimeInputColumn2"; + this.dataGridViewDateTimeInputColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn2.Width = 80; + // + // drugtimespan2 + // + this.drugtimespan2.HeaderText = "时长"; + this.drugtimespan2.Name = "drugtimespan2"; + this.drugtimespan2.ReadOnly = true; + this.drugtimespan2.Width = 45; + // + // dataGridViewTextBoxColumn44 + // + this.dataGridViewTextBoxColumn44.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewTextBoxColumn44.HeaderText = "通路"; + this.dataGridViewTextBoxColumn44.Items.AddRange(new object[] { + "", + "1", + "2", + "3", + "4"}); + this.dataGridViewTextBoxColumn44.Name = "dataGridViewTextBoxColumn44"; + this.dataGridViewTextBoxColumn44.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewTextBoxColumn44.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewTextBoxColumn44.Width = 45; + // + // P1 + // + this.P1.AttachedControl = this.superTabControlPanel4; + this.P1.GlobalItem = false; + this.P1.Name = "P1"; + this.P1.Text = "麻醉前用药"; + // + // superTabControlPanel3 + // + this.superTabControlPanel3.Controls.Add(this.dgvDrugsYD); + this.superTabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel3.Location = new System.Drawing.Point(0, 31); + this.superTabControlPanel3.Name = "superTabControlPanel3"; + this.superTabControlPanel3.Size = new System.Drawing.Size(1154, 604); + this.superTabControlPanel3.TabIndex = 0; + this.superTabControlPanel3.TabItem = this.P0; + // + // dgvDrugsYD + // + this.dgvDrugsYD.AllowUserToAddRows = false; + this.dgvDrugsYD.AllowUserToResizeColumns = false; + this.dgvDrugsYD.AllowUserToResizeRows = false; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsYD.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; + this.dgvDrugsYD.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsYD.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsYD.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; + this.dgvDrugsYD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDrugsYD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewImageColumn3, + this.dataGridViewTextBoxColumn17, + this.dataGridViewTextBoxColumn18, + this.dataGridViewTextBoxColumn19, + this.dataGridViewTextBoxColumn20, + this.dataGridViewComboBoxColumn9, + this.dataGridViewTextBoxColumn21, + this.dataGridViewComboBoxColumn10, + this.dataGridViewTextBoxColumn22, + this.dataGridViewComboBoxColumn11, + this.dataGridViewTextBoxColumn23, + this.dataGridViewComboBoxColumn12, + this.dataGridViewComboBoxColumn13, + this.dataGridViewComboBoxColumn14, + this.dataGridViewDateTimeInputColumn7, + this.dataGridViewTextBoxColumn24, + this.dataGridViewDateTimeInputColumn8, + this.drugtimespan1, + this.dataGridViewComboBoxColumn15}); + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle10.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsYD.DefaultCellStyle = dataGridViewCellStyle10; + this.dgvDrugsYD.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDrugsYD.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvDrugsYD.EnableHeadersVisualStyles = false; + this.dgvDrugsYD.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvDrugsYD.Location = new System.Drawing.Point(0, 0); + this.dgvDrugsYD.Margin = new System.Windows.Forms.Padding(0); + this.dgvDrugsYD.MultiSelect = false; + this.dgvDrugsYD.Name = "dgvDrugsYD"; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsYD.RowHeadersDefaultCellStyle = dataGridViewCellStyle11; + this.dgvDrugsYD.RowHeadersVisible = false; + this.dgvDrugsYD.RowTemplate.Height = 25; + this.dgvDrugsYD.ShowCellErrors = false; + this.dgvDrugsYD.ShowCellToolTips = false; + this.dgvDrugsYD.Size = new System.Drawing.Size(1154, 604); + this.dgvDrugsYD.TabIndex = 17; + this.dgvDrugsYD.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); + // + // dataGridViewImageColumn3 + // + this.dataGridViewImageColumn3.HeaderText = " "; + this.dataGridViewImageColumn3.Image = global::AIMS.Properties.Resources.SYSCRL; + this.dataGridViewImageColumn3.Name = "dataGridViewImageColumn3"; + this.dataGridViewImageColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewImageColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; + this.dataGridViewImageColumn3.Width = 30; + // + // dataGridViewTextBoxColumn17 + // + dataGridViewCellStyle9.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle9; + this.dataGridViewTextBoxColumn17.HeaderText = "组"; + this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; + this.dataGridViewTextBoxColumn17.Width = 30; + // + // dataGridViewTextBoxColumn18 + // + this.dataGridViewTextBoxColumn18.HeaderText = "类型"; + this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; + this.dataGridViewTextBoxColumn18.Visible = false; + this.dataGridViewTextBoxColumn18.Width = 60; + // + // dataGridViewTextBoxColumn19 + // + this.dataGridViewTextBoxColumn19.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn19.HeaderText = "名称"; + this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; + this.dataGridViewTextBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewTextBoxColumn20 + // + this.dataGridViewTextBoxColumn20.HeaderText = "备注"; + this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; + this.dataGridViewTextBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboBoxColumn9 + // + this.dataGridViewComboBoxColumn9.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn9.HeaderText = "途径"; + this.dataGridViewComboBoxColumn9.Name = "dataGridViewComboBoxColumn9"; + this.dataGridViewComboBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn9.Width = 85; + // + // dataGridViewTextBoxColumn21 + // + this.dataGridViewTextBoxColumn21.HeaderText = "浓度"; + this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; + this.dataGridViewTextBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn21.Width = 45; + // + // dataGridViewComboBoxColumn10 + // + this.dataGridViewComboBoxColumn10.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn10.HeaderText = "浓度单位"; + this.dataGridViewComboBoxColumn10.Name = "dataGridViewComboBoxColumn10"; + this.dataGridViewComboBoxColumn10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn10.Width = 75; + // + // dataGridViewTextBoxColumn22 + // + this.dataGridViewTextBoxColumn22.HeaderText = "速度"; + this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; + this.dataGridViewTextBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn22.Width = 45; + // + // dataGridViewComboBoxColumn11 + // + this.dataGridViewComboBoxColumn11.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn11.HeaderText = "速度单位"; + this.dataGridViewComboBoxColumn11.Name = "dataGridViewComboBoxColumn11"; + this.dataGridViewComboBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn11.Width = 85; + // + // dataGridViewTextBoxColumn23 + // + this.dataGridViewTextBoxColumn23.HeaderText = "用量"; + this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; + this.dataGridViewTextBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn23.Width = 60; + // + // dataGridViewComboBoxColumn12 + // + this.dataGridViewComboBoxColumn12.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn12.HeaderText = "单位"; + this.dataGridViewComboBoxColumn12.Name = "dataGridViewComboBoxColumn12"; + this.dataGridViewComboBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn12.Width = 60; + // + // dataGridViewComboBoxColumn13 + // + this.dataGridViewComboBoxColumn13.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn13.HeaderText = "血型"; + this.dataGridViewComboBoxColumn13.Name = "dataGridViewComboBoxColumn13"; + this.dataGridViewComboBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn13.Width = 45; + // + // dataGridViewComboBoxColumn14 + // + this.dataGridViewComboBoxColumn14.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn14.HeaderText = "加药方式"; + this.dataGridViewComboBoxColumn14.Name = "dataGridViewComboBoxColumn14"; + this.dataGridViewComboBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn14.Visible = false; + this.dataGridViewComboBoxColumn14.Width = 80; + // + // dataGridViewDateTimeInputColumn7 + // + this.dataGridViewDateTimeInputColumn7.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn7.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn7.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn7.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn7.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn7.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn7.HeaderText = "开始时间"; + this.dataGridViewDateTimeInputColumn7.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn7.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn7.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn7.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn7.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn7.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn7.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn7.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn7.Name = "dataGridViewDateTimeInputColumn7"; + this.dataGridViewDateTimeInputColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn7.Width = 80; + // + // dataGridViewTextBoxColumn24 + // + this.dataGridViewTextBoxColumn24.HeaderText = "持续"; + this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; + this.dataGridViewTextBoxColumn24.Width = 45; + // + // dataGridViewDateTimeInputColumn8 + // + this.dataGridViewDateTimeInputColumn8.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn8.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn8.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn8.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn8.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn8.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn8.HeaderText = "结束时间"; + this.dataGridViewDateTimeInputColumn8.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn8.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn8.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn8.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn8.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn8.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn8.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn8.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn8.Name = "dataGridViewDateTimeInputColumn8"; + this.dataGridViewDateTimeInputColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn8.Width = 80; + // + // drugtimespan1 + // + this.drugtimespan1.HeaderText = "时长"; + this.drugtimespan1.Name = "drugtimespan1"; + this.drugtimespan1.ReadOnly = true; + this.drugtimespan1.Width = 45; + // + // dataGridViewComboBoxColumn15 + // + this.dataGridViewComboBoxColumn15.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn15.HeaderText = "通路"; + this.dataGridViewComboBoxColumn15.Items.AddRange(new object[] { + "", + "1", + "2", + "3", + "4"}); + this.dataGridViewComboBoxColumn15.Name = "dataGridViewComboBoxColumn15"; + this.dataGridViewComboBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.False; + this.dataGridViewComboBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn15.Width = 45; + // + // P0 + // + this.P0.AttachedControl = this.superTabControlPanel3; + this.P0.GlobalItem = false; + this.P0.Name = "P0"; + this.P0.Text = "麻醉诱导用药"; + // + // superTabControlPanel1 + // + this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0); + this.superTabControlPanel1.Name = "superTabControlPanel1"; + this.superTabControlPanel1.Size = new System.Drawing.Size(1154, 635); + this.superTabControlPanel1.TabIndex = 0; + // + // superTabControlPanel2 + // + this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.superTabControlPanel2.Location = new System.Drawing.Point(0, 0); + this.superTabControlPanel2.Name = "superTabControlPanel2"; + this.superTabControlPanel2.Size = new System.Drawing.Size(1154, 635); + this.superTabControlPanel2.TabIndex = 0; + // + // panelleft + // + this.panelleft.Controls.Add(this.TabSelDrugs); + this.panelleft.Dock = System.Windows.Forms.DockStyle.Left; + this.panelleft.Location = new System.Drawing.Point(0, 42); + this.panelleft.Name = "panelleft"; + this.panelleft.Size = new System.Drawing.Size(330, 635); + this.panelleft.TabIndex = 1; + // + // TabSelDrugs + // + // + // + // + // + // + // + this.TabSelDrugs.ControlBox.CloseBox.Name = ""; + // + // + // + this.TabSelDrugs.ControlBox.MenuBox.Name = ""; + this.TabSelDrugs.ControlBox.Name = ""; + this.TabSelDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.TabSelDrugs.ControlBox.MenuBox, + this.TabSelDrugs.ControlBox.CloseBox}); + this.TabSelDrugs.Dock = System.Windows.Forms.DockStyle.Fill; + this.TabSelDrugs.Location = new System.Drawing.Point(0, 0); + this.TabSelDrugs.Name = "TabSelDrugs"; + this.TabSelDrugs.ReorderTabsEnabled = true; + this.TabSelDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold); + this.TabSelDrugs.SelectedTabIndex = 0; + this.TabSelDrugs.Size = new System.Drawing.Size(330, 635); + this.TabSelDrugs.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Left; + this.TabSelDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.TabSelDrugs.TabIndex = 0; + this.TabSelDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue; + this.TabSelDrugs.Text = "常用药品"; + // + // panel2 + // + this.panel2.BackColor = System.Drawing.SystemColors.Control; + this.panel2.Controls.Add(this.btnTypeManager); + this.panel2.Controls.Add(this.buttonX1); + 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(1484, 42); + this.panel2.TabIndex = 0; + // + // btnTypeManager + // + this.btnTypeManager.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnTypeManager.Location = new System.Drawing.Point(732, 7); + this.btnTypeManager.Name = "btnTypeManager"; + this.btnTypeManager.Size = new System.Drawing.Size(132, 30); + this.btnTypeManager.TabIndex = 11; + this.btnTypeManager.Text = "药品类别维护"; + this.btnTypeManager.Visible = false; + this.btnTypeManager.Click += new System.EventHandler(this.btnTypeManager_Click); + // + // buttonX1 + // + this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX1.Location = new System.Drawing.Point(879, 7); + this.buttonX1.Name = "buttonX1"; + this.buttonX1.Size = new System.Drawing.Size(94, 30); + this.buttonX1.TabIndex = 9; + this.buttonX1.Text = "分类显示"; + this.buttonX1.Visible = false; + this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); + // + // btnDelete + // + this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnDelete.Location = new System.Drawing.Point(980, 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(1072, 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); + // + // superTabItem2 + // + this.superTabItem2.GlobalItem = false; + this.superTabItem2.Name = "superTabItem2"; + this.superTabItem2.Text = "superTabItem2"; + // + // superTabItem3 + // + this.superTabItem3.GlobalItem = false; + this.superTabItem3.Name = "superTabItem3"; + this.superTabItem3.Text = "superTabItem3"; + // + // superTabItem4 + // + this.superTabItem4.GlobalItem = false; + this.superTabItem4.Name = "superTabItem4"; + this.superTabItem4.Text = "superTabItem4"; + // + // dgvYP + // + this.dgvYP.AllowUserToAddRows = false; + this.dgvYP.AllowUserToDeleteRows = false; + this.dgvYP.BackgroundColor = System.Drawing.Color.White; + dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle22.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; + this.dgvYP.ColumnHeadersHeight = 30; + this.dgvYP.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.id, + this.Code, + this.TypeId, + this.TypeName, + this.DrugName, + this.HCode, + this.Norm, + this.DOSEPER, + this.DoseUnit, + this.Factroy, + this.Channel, + this.Remark}); + dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle23.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvYP.DefaultCellStyle = dataGridViewCellStyle23; + this.dgvYP.EnableHeadersVisualStyles = false; + this.dgvYP.Location = new System.Drawing.Point(208, 203); + this.dgvYP.Name = "dgvYP"; + this.dgvYP.ReadOnly = true; + this.dgvYP.RowHeadersVisible = false; + this.dgvYP.RowTemplate.Height = 30; + this.dgvYP.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvYP.Size = new System.Drawing.Size(793, 210); + this.dgvYP.TabIndex = 17; + this.dgvYP.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvYP_CellClick); + this.dgvYP.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvYP_KeyDown); + this.dgvYP.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvYP_KeyPress); + this.dgvYP.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvYP_PreviewKeyDown); + // + // id + // + this.id.DataPropertyName = "Id"; + this.id.HeaderText = "id"; + this.id.Name = "id"; + this.id.ReadOnly = true; + this.id.Visible = false; + // + // Code + // + this.Code.DataPropertyName = "Code"; + this.Code.HeaderText = "Code"; + this.Code.Name = "Code"; + this.Code.ReadOnly = true; + this.Code.Visible = false; + // + // TypeId + // + this.TypeId.DataPropertyName = "TypeId"; + this.TypeId.HeaderText = "TypeId"; + this.TypeId.Name = "TypeId"; + this.TypeId.ReadOnly = true; + this.TypeId.Visible = false; + // + // TypeName + // + this.TypeName.DataPropertyName = "TypeName"; + this.TypeName.HeaderText = "药品类型"; + this.TypeName.Name = "TypeName"; + this.TypeName.ReadOnly = true; + this.TypeName.Visible = false; + // + // DrugName + // + this.DrugName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.DrugName.DataPropertyName = "Name"; + this.DrugName.HeaderText = "药品名称"; + this.DrugName.Name = "DrugName"; + this.DrugName.ReadOnly = true; + // + // HCode + // + this.HCode.DataPropertyName = "HCode"; + this.HCode.HeaderText = "HCode"; + this.HCode.Name = "HCode"; + this.HCode.ReadOnly = true; + this.HCode.Visible = false; + // + // Norm + // + this.Norm.DataPropertyName = "Stand"; + this.Norm.HeaderText = "规格"; + this.Norm.Name = "Norm"; + this.Norm.ReadOnly = true; + this.Norm.Width = 210; + // + // DOSEPER + // + this.DOSEPER.DataPropertyName = "Dosage"; + this.DOSEPER.HeaderText = "剂量"; + this.DOSEPER.Name = "DOSEPER"; + this.DOSEPER.ReadOnly = true; + this.DOSEPER.Visible = false; + this.DOSEPER.Width = 60; + // + // DoseUnit + // + this.DoseUnit.DataPropertyName = "DosageUnit"; + this.DoseUnit.HeaderText = "单位"; + this.DoseUnit.Name = "DoseUnit"; + this.DoseUnit.ReadOnly = true; + this.DoseUnit.Width = 50; + // + // Factroy + // + this.Factroy.DataPropertyName = "Factory"; + this.Factroy.HeaderText = "厂家"; + this.Factroy.Name = "Factroy"; + this.Factroy.ReadOnly = true; + this.Factroy.Width = 200; + // + // Channel + // + this.Channel.DataPropertyName = "Channel"; + this.Channel.HeaderText = "途径"; + this.Channel.Name = "Channel"; + this.Channel.ReadOnly = true; + this.Channel.Visible = false; + // + // Remark + // + this.Remark.DataPropertyName = "Remark"; + this.Remark.HeaderText = "备注"; + this.Remark.Name = "Remark"; + this.Remark.ReadOnly = true; + this.Remark.Visible = false; + // + // dgvDosage + // + this.dgvDosage.AllowUserToAddRows = false; + this.dgvDosage.AllowUserToDeleteRows = false; + this.dgvDosage.BackgroundColor = System.Drawing.Color.White; + this.dgvDosage.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; + dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle24.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle24.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDosage.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle24; + this.dgvDosage.ColumnHeadersHeight = 30; + this.dgvDosage.ColumnHeadersVisible = false; + this.dgvDosage.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Dosage}); + this.dgvDosage.EnableHeadersVisualStyles = false; + this.dgvDosage.Location = new System.Drawing.Point(317, 148); + this.dgvDosage.Name = "dgvDosage"; + this.dgvDosage.ReadOnly = true; + this.dgvDosage.RowHeadersVisible = false; + this.dgvDosage.RowTemplate.Height = 30; + this.dgvDosage.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvDosage.Size = new System.Drawing.Size(60, 90); + this.dgvDosage.TabIndex = 18; + this.dgvDosage.Visible = false; + this.dgvDosage.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDosage_CellClick); + this.dgvDosage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvDosage_KeyDown); + this.dgvDosage.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvDosage_KeyPress); + this.dgvDosage.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvDosage_PreviewKeyDown); + // + // Dosage + // + this.Dosage.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.Dosage.HeaderText = "剂量"; + this.Dosage.Name = "Dosage"; + this.Dosage.ReadOnly = true; + // + // imageList1 + // + this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); + this.imageList1.TransparentColor = System.Drawing.Color.Transparent; + this.imageList1.Images.SetKeyName(0, "插入列.png"); + this.imageList1.Images.SetKeyName(1, "未插入列 .png"); + // // dataGridViewImageColumn1 // this.dataGridViewImageColumn1.HeaderText = " "; @@ -525,6 +1767,15 @@ this.dataGridViewDateTimeInputColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; this.dataGridViewDateTimeInputColumn4.Width = 80; // + // drugtimespan3 + // + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F); + this.drugtimespan3.DefaultCellStyle = dataGridViewCellStyle4; + this.drugtimespan3.HeaderText = "时长"; + this.drugtimespan3.Name = "drugtimespan3"; + this.drugtimespan3.ReadOnly = true; + this.drugtimespan3.Width = 45; + // // dataGridViewTextBoxColumn8 // this.dataGridViewTextBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; @@ -532,1225 +1783,13 @@ this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewTextBoxColumn8.Width = 50; - // - // P2 - // - this.P2.AttachedControl = this.superTabControlPanel5; - this.P2.GlobalItem = false; - this.P2.Name = "P2"; - this.P2.Text = "术中用药"; - // - // superTabControlPanel3 - // - this.superTabControlPanel3.Controls.Add(this.dgvDrugsYD); - this.superTabControlPanel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.superTabControlPanel3.Location = new System.Drawing.Point(0, 31); - this.superTabControlPanel3.Name = "superTabControlPanel3"; - this.superTabControlPanel3.Size = new System.Drawing.Size(1070, 604); - this.superTabControlPanel3.TabIndex = 0; - this.superTabControlPanel3.TabItem = this.P0; - // - // dgvDrugsYD - // - this.dgvDrugsYD.AllowUserToAddRows = false; - this.dgvDrugsYD.AllowUserToResizeColumns = false; - this.dgvDrugsYD.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsYD.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.dgvDrugsYD.BackgroundColor = System.Drawing.Color.White; - this.dgvDrugsYD.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsYD.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.dgvDrugsYD.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvDrugsYD.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewImageColumn3, - this.dataGridViewTextBoxColumn17, - this.dataGridViewTextBoxColumn18, - this.dataGridViewTextBoxColumn19, - this.dataGridViewTextBoxColumn20, - this.dataGridViewComboBoxColumn9, - this.dataGridViewTextBoxColumn21, - this.dataGridViewComboBoxColumn10, - this.dataGridViewTextBoxColumn22, - this.dataGridViewComboBoxColumn11, - this.dataGridViewTextBoxColumn23, - this.dataGridViewComboBoxColumn12, - this.dataGridViewComboBoxColumn13, - this.dataGridViewComboBoxColumn14, - this.dataGridViewDateTimeInputColumn7, - this.dataGridViewTextBoxColumn24, - this.dataGridViewDateTimeInputColumn8, - this.dataGridViewComboBoxColumn15}); - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvDrugsYD.DefaultCellStyle = dataGridViewCellStyle9; - this.dgvDrugsYD.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvDrugsYD.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvDrugsYD.EnableHeadersVisualStyles = false; - this.dgvDrugsYD.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); - this.dgvDrugsYD.Location = new System.Drawing.Point(0, 0); - this.dgvDrugsYD.Margin = new System.Windows.Forms.Padding(0); - this.dgvDrugsYD.MultiSelect = false; - this.dgvDrugsYD.Name = "dgvDrugsYD"; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsYD.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; - this.dgvDrugsYD.RowHeadersVisible = false; - this.dgvDrugsYD.RowTemplate.Height = 25; - this.dgvDrugsYD.ShowCellErrors = false; - this.dgvDrugsYD.ShowCellToolTips = false; - this.dgvDrugsYD.Size = new System.Drawing.Size(1070, 604); - this.dgvDrugsYD.TabIndex = 17; - this.dgvDrugsYD.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); - // - // dataGridViewImageColumn3 - // - this.dataGridViewImageColumn3.HeaderText = " "; - this.dataGridViewImageColumn3.Image = global::AIMS.Properties.Resources.SYSCRL; - this.dataGridViewImageColumn3.Name = "dataGridViewImageColumn3"; - this.dataGridViewImageColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewImageColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; - this.dataGridViewImageColumn3.Width = 30; - // - // dataGridViewTextBoxColumn17 - // - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle8; - this.dataGridViewTextBoxColumn17.HeaderText = "组"; - this.dataGridViewTextBoxColumn17.Name = "dataGridViewTextBoxColumn17"; - this.dataGridViewTextBoxColumn17.Width = 30; - // - // dataGridViewTextBoxColumn18 - // - this.dataGridViewTextBoxColumn18.HeaderText = "类型"; - this.dataGridViewTextBoxColumn18.Name = "dataGridViewTextBoxColumn18"; - this.dataGridViewTextBoxColumn18.Visible = false; - this.dataGridViewTextBoxColumn18.Width = 60; - // - // dataGridViewTextBoxColumn19 - // - this.dataGridViewTextBoxColumn19.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn19.HeaderText = "名称"; - this.dataGridViewTextBoxColumn19.Name = "dataGridViewTextBoxColumn19"; - this.dataGridViewTextBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewTextBoxColumn20 - // - this.dataGridViewTextBoxColumn20.HeaderText = "备注"; - this.dataGridViewTextBoxColumn20.Name = "dataGridViewTextBoxColumn20"; - this.dataGridViewTextBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboBoxColumn9 - // - this.dataGridViewComboBoxColumn9.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn9.HeaderText = "途径"; - this.dataGridViewComboBoxColumn9.Name = "dataGridViewComboBoxColumn9"; - this.dataGridViewComboBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn9.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn9.Width = 85; - // - // dataGridViewTextBoxColumn21 - // - this.dataGridViewTextBoxColumn21.HeaderText = "浓度"; - this.dataGridViewTextBoxColumn21.Name = "dataGridViewTextBoxColumn21"; - this.dataGridViewTextBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn21.Width = 45; - // - // dataGridViewComboBoxColumn10 - // - this.dataGridViewComboBoxColumn10.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn10.HeaderText = "浓度单位"; - this.dataGridViewComboBoxColumn10.Name = "dataGridViewComboBoxColumn10"; - this.dataGridViewComboBoxColumn10.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn10.Width = 75; - // - // dataGridViewTextBoxColumn22 - // - this.dataGridViewTextBoxColumn22.HeaderText = "速度"; - this.dataGridViewTextBoxColumn22.Name = "dataGridViewTextBoxColumn22"; - this.dataGridViewTextBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn22.Width = 45; - // - // dataGridViewComboBoxColumn11 - // - this.dataGridViewComboBoxColumn11.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn11.HeaderText = "速度单位"; - this.dataGridViewComboBoxColumn11.Name = "dataGridViewComboBoxColumn11"; - this.dataGridViewComboBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn11.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn11.Width = 85; - // - // dataGridViewTextBoxColumn23 - // - this.dataGridViewTextBoxColumn23.HeaderText = "用量"; - this.dataGridViewTextBoxColumn23.Name = "dataGridViewTextBoxColumn23"; - this.dataGridViewTextBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn23.Width = 60; - // - // dataGridViewComboBoxColumn12 - // - this.dataGridViewComboBoxColumn12.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn12.HeaderText = "单位"; - this.dataGridViewComboBoxColumn12.Name = "dataGridViewComboBoxColumn12"; - this.dataGridViewComboBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn12.Width = 60; - // - // dataGridViewComboBoxColumn13 - // - this.dataGridViewComboBoxColumn13.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn13.HeaderText = "血型"; - this.dataGridViewComboBoxColumn13.Name = "dataGridViewComboBoxColumn13"; - this.dataGridViewComboBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn13.Width = 45; - // - // dataGridViewComboBoxColumn14 - // - this.dataGridViewComboBoxColumn14.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn14.HeaderText = "加药方式"; - this.dataGridViewComboBoxColumn14.Name = "dataGridViewComboBoxColumn14"; - this.dataGridViewComboBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn14.Visible = false; - this.dataGridViewComboBoxColumn14.Width = 80; - // - // dataGridViewDateTimeInputColumn7 - // - this.dataGridViewDateTimeInputColumn7.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn7.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn7.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn7.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn7.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn7.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn7.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn7.HeaderText = "开始时间"; - this.dataGridViewDateTimeInputColumn7.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn7.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn7.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn7.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn7.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn7.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn7.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn7.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn7.Name = "dataGridViewDateTimeInputColumn7"; - this.dataGridViewDateTimeInputColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn7.Width = 80; - // - // dataGridViewTextBoxColumn24 - // - this.dataGridViewTextBoxColumn24.HeaderText = "持续"; - this.dataGridViewTextBoxColumn24.Name = "dataGridViewTextBoxColumn24"; - this.dataGridViewTextBoxColumn24.Width = 45; - // - // dataGridViewDateTimeInputColumn8 - // - this.dataGridViewDateTimeInputColumn8.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn8.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn8.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn8.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn8.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn8.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn8.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn8.HeaderText = "结束时间"; - this.dataGridViewDateTimeInputColumn8.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn8.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn8.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn8.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn8.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn8.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn8.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn8.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn8.Name = "dataGridViewDateTimeInputColumn8"; - this.dataGridViewDateTimeInputColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn8.Width = 80; - // - // dataGridViewComboBoxColumn15 - // - this.dataGridViewComboBoxColumn15.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn15.HeaderText = "通路"; - this.dataGridViewComboBoxColumn15.Items.AddRange(new object[] { - "", - "1", - "2", - "3", - "4"}); - this.dataGridViewComboBoxColumn15.Name = "dataGridViewComboBoxColumn15"; - this.dataGridViewComboBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewComboBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn15.Width = 50; - // - // P0 - // - this.P0.AttachedControl = this.superTabControlPanel3; - this.P0.GlobalItem = false; - this.P0.Name = "P0"; - this.P0.Text = "麻醉诱导用药"; - // - // superTabControlPanel6 - // - this.superTabControlPanel6.Controls.Add(this.dgvDrugsSH); - this.superTabControlPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.superTabControlPanel6.Location = new System.Drawing.Point(0, 31); - this.superTabControlPanel6.Name = "superTabControlPanel6"; - this.superTabControlPanel6.Size = new System.Drawing.Size(1070, 604); - this.superTabControlPanel6.TabIndex = 0; - this.superTabControlPanel6.TabItem = this.P3; - this.superTabControlPanel6.Visible = false; - // - // dgvDrugsSH - // - this.dgvDrugsSH.AllowUserToAddRows = false; - this.dgvDrugsSH.AllowUserToResizeColumns = false; - this.dgvDrugsSH.AllowUserToResizeRows = false; - dataGridViewCellStyle11.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; - this.dgvDrugsSH.BackgroundColor = System.Drawing.Color.White; - this.dgvDrugsSH.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; - this.dgvDrugsSH.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvDrugsSH.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewImageColumn2, - this.dataGridViewTextBoxColumn9, - this.dataGridViewTextBoxColumn10, - this.dataGridViewTextBoxColumn11, - this.dataGridViewComboEditBoxColumn3, - this.dataGridViewComboBoxColumn5, - this.dataGridViewTextBoxColumn12, - this.dataGridViewComboBoxColumn6, - this.dataGridViewTextBoxColumn13, - this.dataGridViewComboBoxColumn7, - this.dataGridViewTextBoxColumn14, - this.dataGridViewComboBoxColumn8, - this.dataGridViewComboBoxColumn25, - this.dataGridViewComboBoxColumn26, - this.dataGridViewDateTimeInputColumn5, - this.dataGridViewTextBoxColumn15, - this.dataGridViewDateTimeInputColumn6, - this.dataGridViewTextBoxColumn16}); - dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle14.ForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle14.SelectionForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle14; - this.dgvDrugsSH.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvDrugsSH.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvDrugsSH.EnableHeadersVisualStyles = false; - this.dgvDrugsSH.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); - this.dgvDrugsSH.Location = new System.Drawing.Point(0, 0); - this.dgvDrugsSH.Margin = new System.Windows.Forms.Padding(0); - this.dgvDrugsSH.MultiSelect = false; - this.dgvDrugsSH.Name = "dgvDrugsSH"; - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; - this.dgvDrugsSH.RowHeadersVisible = false; - this.dgvDrugsSH.RowTemplate.Height = 25; - this.dgvDrugsSH.ShowCellErrors = false; - this.dgvDrugsSH.ShowCellToolTips = false; - this.dgvDrugsSH.Size = new System.Drawing.Size(1070, 604); - this.dgvDrugsSH.TabIndex = 17; - this.dgvDrugsSH.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); - // - // dataGridViewImageColumn2 - // - this.dataGridViewImageColumn2.HeaderText = " "; - this.dataGridViewImageColumn2.Image = global::AIMS.Properties.Resources.SYSCRL; - this.dataGridViewImageColumn2.Name = "dataGridViewImageColumn2"; - this.dataGridViewImageColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewImageColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; - this.dataGridViewImageColumn2.Width = 30; - // - // dataGridViewTextBoxColumn9 - // - dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle13; - this.dataGridViewTextBoxColumn9.HeaderText = "组"; - this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; - this.dataGridViewTextBoxColumn9.Width = 30; - // - // dataGridViewTextBoxColumn10 - // - this.dataGridViewTextBoxColumn10.HeaderText = "类型"; - this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; - this.dataGridViewTextBoxColumn10.Visible = false; - this.dataGridViewTextBoxColumn10.Width = 60; - // - // dataGridViewTextBoxColumn11 - // - this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn11.HeaderText = "名称"; - this.dataGridViewTextBoxColumn11.Name = "dataGridViewTextBoxColumn11"; - this.dataGridViewTextBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboEditBoxColumn3 - // - this.dataGridViewComboEditBoxColumn3.HeaderText = "备注"; - this.dataGridViewComboEditBoxColumn3.Name = "dataGridViewComboEditBoxColumn3"; - this.dataGridViewComboEditBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboBoxColumn5 - // - this.dataGridViewComboBoxColumn5.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn5.HeaderText = "途径"; - this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5"; - this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn5.Width = 85; - // - // dataGridViewTextBoxColumn12 - // - this.dataGridViewTextBoxColumn12.HeaderText = "浓度"; - this.dataGridViewTextBoxColumn12.Name = "dataGridViewTextBoxColumn12"; - this.dataGridViewTextBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn12.Width = 45; - // - // dataGridViewComboBoxColumn6 - // - this.dataGridViewComboBoxColumn6.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn6.HeaderText = "浓度单位"; - this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6"; - this.dataGridViewComboBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn6.Width = 75; - // - // dataGridViewTextBoxColumn13 - // - this.dataGridViewTextBoxColumn13.HeaderText = "速度"; - this.dataGridViewTextBoxColumn13.Name = "dataGridViewTextBoxColumn13"; - this.dataGridViewTextBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn13.Width = 45; - // - // dataGridViewComboBoxColumn7 - // - this.dataGridViewComboBoxColumn7.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn7.HeaderText = "速度单位"; - this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7"; - this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn7.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn7.Width = 85; - // - // dataGridViewTextBoxColumn14 - // - this.dataGridViewTextBoxColumn14.HeaderText = "用量"; - this.dataGridViewTextBoxColumn14.Name = "dataGridViewTextBoxColumn14"; - this.dataGridViewTextBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn14.Width = 60; - // - // dataGridViewComboBoxColumn8 - // - this.dataGridViewComboBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn8.HeaderText = "单位"; - this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8"; - this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn8.Width = 60; - // - // dataGridViewComboBoxColumn25 - // - this.dataGridViewComboBoxColumn25.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn25.HeaderText = "血型"; - this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25"; - this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn25.Width = 45; - // - // dataGridViewComboBoxColumn26 - // - this.dataGridViewComboBoxColumn26.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn26.HeaderText = "加药方式"; - this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26"; - this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn26.Visible = false; - this.dataGridViewComboBoxColumn26.Width = 80; - // - // dataGridViewDateTimeInputColumn5 - // - this.dataGridViewDateTimeInputColumn5.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn5.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn5.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn5.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn5.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn5.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn5.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn5.HeaderText = "开始时间"; - this.dataGridViewDateTimeInputColumn5.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn5.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn5.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn5.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn5.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn5.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn5.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn5.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn5.Name = "dataGridViewDateTimeInputColumn5"; - this.dataGridViewDateTimeInputColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn5.Width = 80; - // - // dataGridViewTextBoxColumn15 - // - this.dataGridViewTextBoxColumn15.HeaderText = "持续"; - this.dataGridViewTextBoxColumn15.Name = "dataGridViewTextBoxColumn15"; - this.dataGridViewTextBoxColumn15.Width = 45; - // - // dataGridViewDateTimeInputColumn6 - // - this.dataGridViewDateTimeInputColumn6.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn6.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn6.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn6.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn6.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn6.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn6.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn6.HeaderText = "结束时间"; - this.dataGridViewDateTimeInputColumn6.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn6.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn6.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn6.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn6.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn6.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn6.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn6.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn6.Name = "dataGridViewDateTimeInputColumn6"; - this.dataGridViewDateTimeInputColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn6.Width = 80; - // - // dataGridViewTextBoxColumn16 - // - this.dataGridViewTextBoxColumn16.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewTextBoxColumn16.HeaderText = "通路"; - this.dataGridViewTextBoxColumn16.Items.AddRange(new object[] { - "", - "1", - "2", - "3", - "4"}); - this.dataGridViewTextBoxColumn16.Name = "dataGridViewTextBoxColumn16"; - this.dataGridViewTextBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewTextBoxColumn16.Width = 50; - // - // P3 - // - this.P3.AttachedControl = this.superTabControlPanel6; - this.P3.GlobalItem = false; - this.P3.Name = "P3"; - this.P3.Text = "术后镇痛药"; - // - // superTabControlPanel4 - // - this.superTabControlPanel4.Controls.Add(this.dgvDrugsSQ); - this.superTabControlPanel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.superTabControlPanel4.Location = new System.Drawing.Point(0, 31); - this.superTabControlPanel4.Name = "superTabControlPanel4"; - this.superTabControlPanel4.Size = new System.Drawing.Size(1070, 604); - this.superTabControlPanel4.TabIndex = 0; - this.superTabControlPanel4.TabItem = this.P1; - this.superTabControlPanel4.Visible = false; - // - // dgvDrugsSQ - // - this.dgvDrugsSQ.AllowUserToAddRows = false; - this.dgvDrugsSQ.AllowUserToResizeColumns = false; - this.dgvDrugsSQ.AllowUserToResizeRows = false; - dataGridViewCellStyle16.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16; - this.dgvDrugsSQ.BackgroundColor = System.Drawing.Color.White; - this.dgvDrugsSQ.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17; - this.dgvDrugsSQ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvDrugsSQ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewImageColumn5, - this.dataGridViewTextBoxColumn37, - this.dataGridViewTextBoxColumn38, - this.dataGridViewTextBoxColumn39, - this.dataGridViewComboEditBoxColumn1, - this.dataGridViewComboBoxColumn17, - this.dataGridViewTextBoxColumn40, - this.dataGridViewComboBoxColumn18, - this.dataGridViewTextBoxColumn41, - this.dataGridViewComboBoxColumn19, - this.dataGridViewTextBoxColumn42, - this.dataGridViewComboBoxColumn20, - this.dataGridViewComboBoxColumn21, - this.dataGridViewComboBoxColumn22, - this.dataGridViewDateTimeInputColumn1, - this.dataGridViewTextBoxColumn43, - this.dataGridViewDateTimeInputColumn2, - this.dataGridViewTextBoxColumn44}); - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle19.ForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.Color.Black; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle19; - this.dgvDrugsSQ.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvDrugsSQ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvDrugsSQ.EnableHeadersVisualStyles = false; - this.dgvDrugsSQ.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); - this.dgvDrugsSQ.Location = new System.Drawing.Point(0, 0); - this.dgvDrugsSQ.Margin = new System.Windows.Forms.Padding(0); - this.dgvDrugsSQ.MultiSelect = false; - this.dgvDrugsSQ.Name = "dgvDrugsSQ"; - dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle20.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle20; - this.dgvDrugsSQ.RowHeadersVisible = false; - this.dgvDrugsSQ.RowTemplate.Height = 25; - this.dgvDrugsSQ.ShowCellErrors = false; - this.dgvDrugsSQ.ShowCellToolTips = false; - this.dgvDrugsSQ.Size = new System.Drawing.Size(1070, 604); - this.dgvDrugsSQ.TabIndex = 16; - this.dgvDrugsSQ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); - // - // dataGridViewImageColumn5 - // - this.dataGridViewImageColumn5.HeaderText = " "; - this.dataGridViewImageColumn5.Image = global::AIMS.Properties.Resources.SYSCRL; - this.dataGridViewImageColumn5.Name = "dataGridViewImageColumn5"; - this.dataGridViewImageColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewImageColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; - this.dataGridViewImageColumn5.Width = 30; - // - // dataGridViewTextBoxColumn37 - // - dataGridViewCellStyle18.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle18; - this.dataGridViewTextBoxColumn37.HeaderText = "组"; - this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37"; - this.dataGridViewTextBoxColumn37.Width = 30; - // - // dataGridViewTextBoxColumn38 - // - this.dataGridViewTextBoxColumn38.HeaderText = "类型"; - this.dataGridViewTextBoxColumn38.Name = "dataGridViewTextBoxColumn38"; - this.dataGridViewTextBoxColumn38.Visible = false; - this.dataGridViewTextBoxColumn38.Width = 60; - // - // dataGridViewTextBoxColumn39 - // - this.dataGridViewTextBoxColumn39.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn39.HeaderText = "名称"; - this.dataGridViewTextBoxColumn39.Name = "dataGridViewTextBoxColumn39"; - this.dataGridViewTextBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboEditBoxColumn1 - // - this.dataGridViewComboEditBoxColumn1.HeaderText = "备注"; - this.dataGridViewComboEditBoxColumn1.Name = "dataGridViewComboEditBoxColumn1"; - this.dataGridViewComboEditBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboBoxColumn17 - // - this.dataGridViewComboBoxColumn17.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn17.HeaderText = "途径"; - this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17"; - this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn17.Width = 85; - // - // dataGridViewTextBoxColumn40 - // - this.dataGridViewTextBoxColumn40.HeaderText = "浓度"; - this.dataGridViewTextBoxColumn40.Name = "dataGridViewTextBoxColumn40"; - this.dataGridViewTextBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn40.Width = 45; - // - // dataGridViewComboBoxColumn18 - // - this.dataGridViewComboBoxColumn18.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn18.HeaderText = "浓度单位"; - this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18"; - this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn18.Width = 75; - // - // dataGridViewTextBoxColumn41 - // - this.dataGridViewTextBoxColumn41.HeaderText = "速度"; - this.dataGridViewTextBoxColumn41.Name = "dataGridViewTextBoxColumn41"; - this.dataGridViewTextBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn41.Width = 45; - // - // dataGridViewComboBoxColumn19 - // - this.dataGridViewComboBoxColumn19.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn19.HeaderText = "速度单位"; - this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19"; - this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn19.Width = 85; - // - // dataGridViewTextBoxColumn42 - // - this.dataGridViewTextBoxColumn42.HeaderText = "用量"; - this.dataGridViewTextBoxColumn42.Name = "dataGridViewTextBoxColumn42"; - this.dataGridViewTextBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn42.Width = 60; - // - // dataGridViewComboBoxColumn20 - // - this.dataGridViewComboBoxColumn20.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn20.HeaderText = "单位"; - this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20"; - this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn20.Width = 60; - // - // dataGridViewComboBoxColumn21 - // - this.dataGridViewComboBoxColumn21.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn21.HeaderText = "血型"; - this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21"; - this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn21.Width = 45; - // - // dataGridViewComboBoxColumn22 - // - this.dataGridViewComboBoxColumn22.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn22.HeaderText = "加药方式"; - this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22"; - this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn22.Visible = false; - this.dataGridViewComboBoxColumn22.Width = 80; - // - // dataGridViewDateTimeInputColumn1 - // - this.dataGridViewDateTimeInputColumn1.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn1.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn1.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn1.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn1.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn1.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn1.HeaderText = "开始时间"; - this.dataGridViewDateTimeInputColumn1.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn1.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn1.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn1.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn1.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn1.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn1.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn1.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn1.Name = "dataGridViewDateTimeInputColumn1"; - this.dataGridViewDateTimeInputColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn1.Width = 80; - // - // dataGridViewTextBoxColumn43 - // - this.dataGridViewTextBoxColumn43.HeaderText = "持续"; - this.dataGridViewTextBoxColumn43.Name = "dataGridViewTextBoxColumn43"; - this.dataGridViewTextBoxColumn43.Width = 45; - // - // dataGridViewDateTimeInputColumn2 - // - this.dataGridViewDateTimeInputColumn2.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn2.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn2.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn2.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn2.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn2.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn2.HeaderText = "结束时间"; - this.dataGridViewDateTimeInputColumn2.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn2.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn2.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn2.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn2.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn2.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn2.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn2.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn2.Name = "dataGridViewDateTimeInputColumn2"; - this.dataGridViewDateTimeInputColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn2.Width = 80; - // - // dataGridViewTextBoxColumn44 - // - this.dataGridViewTextBoxColumn44.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewTextBoxColumn44.HeaderText = "通路"; - this.dataGridViewTextBoxColumn44.Items.AddRange(new object[] { - "", - "1", - "2", - "3", - "4"}); - this.dataGridViewTextBoxColumn44.Name = "dataGridViewTextBoxColumn44"; - this.dataGridViewTextBoxColumn44.Resizable = System.Windows.Forms.DataGridViewTriState.False; - this.dataGridViewTextBoxColumn44.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewTextBoxColumn44.Width = 50; - // - // P1 - // - this.P1.AttachedControl = this.superTabControlPanel4; - this.P1.GlobalItem = false; - this.P1.Name = "P1"; - this.P1.Text = "麻醉前用药"; - // - // superTabControlPanel1 - // - this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; - this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0); - this.superTabControlPanel1.Name = "superTabControlPanel1"; - this.superTabControlPanel1.Size = new System.Drawing.Size(1070, 635); - this.superTabControlPanel1.TabIndex = 0; - // - // superTabControlPanel2 - // - this.superTabControlPanel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.superTabControlPanel2.Location = new System.Drawing.Point(0, 0); - this.superTabControlPanel2.Name = "superTabControlPanel2"; - this.superTabControlPanel2.Size = new System.Drawing.Size(1070, 635); - this.superTabControlPanel2.TabIndex = 0; - // - // panelleft - // - this.panelleft.Controls.Add(this.TabSelDrugs); - this.panelleft.Dock = System.Windows.Forms.DockStyle.Left; - this.panelleft.Location = new System.Drawing.Point(0, 42); - this.panelleft.Name = "panelleft"; - this.panelleft.Size = new System.Drawing.Size(330, 635); - this.panelleft.TabIndex = 1; - // - // TabSelDrugs - // - // - // - // - // - // - // - this.TabSelDrugs.ControlBox.CloseBox.Name = ""; - // - // - // - this.TabSelDrugs.ControlBox.MenuBox.Name = ""; - this.TabSelDrugs.ControlBox.Name = ""; - this.TabSelDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { - this.TabSelDrugs.ControlBox.MenuBox, - this.TabSelDrugs.ControlBox.CloseBox}); - this.TabSelDrugs.Dock = System.Windows.Forms.DockStyle.Fill; - this.TabSelDrugs.Location = new System.Drawing.Point(0, 0); - this.TabSelDrugs.Name = "TabSelDrugs"; - this.TabSelDrugs.ReorderTabsEnabled = true; - this.TabSelDrugs.SelectedTabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold); - this.TabSelDrugs.SelectedTabIndex = 0; - this.TabSelDrugs.Size = new System.Drawing.Size(330, 635); - this.TabSelDrugs.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Left; - this.TabSelDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.TabSelDrugs.TabIndex = 0; - this.TabSelDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue; - this.TabSelDrugs.Text = "常用药品"; - // - // panel2 - // - this.panel2.BackColor = System.Drawing.SystemColors.Control; - this.panel2.Controls.Add(this.btnTypeManager); - this.panel2.Controls.Add(this.buttonX1); - 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(1400, 42); - this.panel2.TabIndex = 0; - // - // btnTypeManager - // - this.btnTypeManager.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnTypeManager.Location = new System.Drawing.Point(732, 7); - this.btnTypeManager.Name = "btnTypeManager"; - this.btnTypeManager.Size = new System.Drawing.Size(132, 30); - this.btnTypeManager.TabIndex = 11; - this.btnTypeManager.Text = "药品类别维护"; - this.btnTypeManager.Visible = false; - this.btnTypeManager.Click += new System.EventHandler(this.btnTypeManager_Click); - // - // buttonX1 - // - this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.buttonX1.Location = new System.Drawing.Point(879, 7); - this.buttonX1.Name = "buttonX1"; - this.buttonX1.Size = new System.Drawing.Size(94, 30); - this.buttonX1.TabIndex = 9; - this.buttonX1.Text = "分类显示"; - this.buttonX1.Visible = false; - this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); - // - // btnDelete - // - this.btnDelete.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnDelete.Location = new System.Drawing.Point(980, 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(1072, 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); - // - // superTabItem2 - // - this.superTabItem2.GlobalItem = false; - this.superTabItem2.Name = "superTabItem2"; - this.superTabItem2.Text = "superTabItem2"; - // - // superTabItem3 - // - this.superTabItem3.GlobalItem = false; - this.superTabItem3.Name = "superTabItem3"; - this.superTabItem3.Text = "superTabItem3"; - // - // superTabItem4 - // - this.superTabItem4.GlobalItem = false; - this.superTabItem4.Name = "superTabItem4"; - this.superTabItem4.Text = "superTabItem4"; - // - // dgvYP - // - this.dgvYP.AllowUserToAddRows = false; - this.dgvYP.AllowUserToDeleteRows = false; - this.dgvYP.BackgroundColor = System.Drawing.Color.White; - dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle21.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle21.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle21; - this.dgvYP.ColumnHeadersHeight = 30; - this.dgvYP.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.id, - this.Code, - this.TypeId, - this.TypeName, - this.DrugName, - this.HCode, - this.Norm, - this.DOSEPER, - this.DoseUnit, - this.Factroy, - this.Channel, - this.Remark}); - dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle22.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvYP.DefaultCellStyle = dataGridViewCellStyle22; - this.dgvYP.EnableHeadersVisualStyles = false; - this.dgvYP.Location = new System.Drawing.Point(208, 203); - this.dgvYP.Name = "dgvYP"; - this.dgvYP.ReadOnly = true; - this.dgvYP.RowHeadersVisible = false; - this.dgvYP.RowTemplate.Height = 30; - this.dgvYP.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvYP.Size = new System.Drawing.Size(793, 210); - this.dgvYP.TabIndex = 17; - this.dgvYP.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvYP_CellClick); - this.dgvYP.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvYP_KeyDown); - this.dgvYP.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvYP_KeyPress); - this.dgvYP.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvYP_PreviewKeyDown); - // - // id - // - this.id.DataPropertyName = "Id"; - this.id.HeaderText = "id"; - this.id.Name = "id"; - this.id.ReadOnly = true; - this.id.Visible = false; - // - // Code - // - this.Code.DataPropertyName = "Code"; - this.Code.HeaderText = "Code"; - this.Code.Name = "Code"; - this.Code.ReadOnly = true; - this.Code.Visible = false; - // - // TypeId - // - this.TypeId.DataPropertyName = "TypeId"; - this.TypeId.HeaderText = "TypeId"; - this.TypeId.Name = "TypeId"; - this.TypeId.ReadOnly = true; - this.TypeId.Visible = false; - // - // TypeName - // - this.TypeName.DataPropertyName = "TypeName"; - this.TypeName.HeaderText = "药品类型"; - this.TypeName.Name = "TypeName"; - this.TypeName.ReadOnly = true; - this.TypeName.Visible = false; - // - // DrugName - // - this.DrugName.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.DrugName.DataPropertyName = "Name"; - this.DrugName.HeaderText = "药品名称"; - this.DrugName.Name = "DrugName"; - this.DrugName.ReadOnly = true; - // - // HCode - // - this.HCode.DataPropertyName = "HCode"; - this.HCode.HeaderText = "HCode"; - this.HCode.Name = "HCode"; - this.HCode.ReadOnly = true; - this.HCode.Visible = false; - // - // Norm - // - this.Norm.DataPropertyName = "Stand"; - this.Norm.HeaderText = "规格"; - this.Norm.Name = "Norm"; - this.Norm.ReadOnly = true; - this.Norm.Width = 210; - // - // DOSEPER - // - this.DOSEPER.DataPropertyName = "Dosage"; - this.DOSEPER.HeaderText = "剂量"; - this.DOSEPER.Name = "DOSEPER"; - this.DOSEPER.ReadOnly = true; - this.DOSEPER.Visible = false; - this.DOSEPER.Width = 60; - // - // DoseUnit - // - this.DoseUnit.DataPropertyName = "DosageUnit"; - this.DoseUnit.HeaderText = "单位"; - this.DoseUnit.Name = "DoseUnit"; - this.DoseUnit.ReadOnly = true; - this.DoseUnit.Width = 50; - // - // Factroy - // - this.Factroy.DataPropertyName = "Factory"; - this.Factroy.HeaderText = "厂家"; - this.Factroy.Name = "Factroy"; - this.Factroy.ReadOnly = true; - this.Factroy.Width = 200; - // - // Channel - // - this.Channel.DataPropertyName = "Channel"; - this.Channel.HeaderText = "途径"; - this.Channel.Name = "Channel"; - this.Channel.ReadOnly = true; - this.Channel.Visible = false; - // - // Remark - // - this.Remark.DataPropertyName = "Remark"; - this.Remark.HeaderText = "备注"; - this.Remark.Name = "Remark"; - this.Remark.ReadOnly = true; - this.Remark.Visible = false; - // - // dgvDosage - // - this.dgvDosage.AllowUserToAddRows = false; - this.dgvDosage.AllowUserToDeleteRows = false; - this.dgvDosage.BackgroundColor = System.Drawing.Color.White; - this.dgvDosage.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; - dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle23.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle23.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDosage.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23; - this.dgvDosage.ColumnHeadersHeight = 30; - this.dgvDosage.ColumnHeadersVisible = false; - this.dgvDosage.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.Dosage}); - this.dgvDosage.EnableHeadersVisualStyles = false; - this.dgvDosage.Location = new System.Drawing.Point(317, 148); - this.dgvDosage.Name = "dgvDosage"; - this.dgvDosage.ReadOnly = true; - this.dgvDosage.RowHeadersVisible = false; - this.dgvDosage.RowTemplate.Height = 30; - this.dgvDosage.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvDosage.Size = new System.Drawing.Size(60, 90); - this.dgvDosage.TabIndex = 18; - this.dgvDosage.Visible = false; - this.dgvDosage.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvDosage_CellClick); - this.dgvDosage.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dgvDosage_KeyDown); - this.dgvDosage.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.dgvDosage_KeyPress); - this.dgvDosage.PreviewKeyDown += new System.Windows.Forms.PreviewKeyDownEventHandler(this.dgvDosage_PreviewKeyDown); - // - // Dosage - // - this.Dosage.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.Dosage.HeaderText = "剂量"; - this.Dosage.Name = "Dosage"; - this.Dosage.ReadOnly = true; - // - // imageList1 - // - this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream"))); - this.imageList1.TransparentColor = System.Drawing.Color.Transparent; - this.imageList1.Images.SetKeyName(0, "插入列.png"); - this.imageList1.Images.SetKeyName(1, "未插入列 .png"); + this.dataGridViewTextBoxColumn8.Width = 45; // // frmFactDrugNew // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.AutoScroll = true; - this.ClientSize = new System.Drawing.Size(1400, 677); + this.ClientSize = new System.Drawing.Size(1484, 677); this.Controls.Add(this.dgvDosage); this.Controls.Add(this.dgvYP); this.Controls.Add(this.panel1); @@ -1769,14 +1808,14 @@ this.panel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).EndInit(); this.tabDrugs.ResumeLayout(false); - this.superTabControlPanel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).EndInit(); - this.superTabControlPanel3.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).EndInit(); this.superTabControlPanel6.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).EndInit(); + this.superTabControlPanel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).EndInit(); this.superTabControlPanel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSQ)).EndInit(); + this.superTabControlPanel3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).EndInit(); this.panelleft.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).EndInit(); this.panel2.ResumeLayout(false); @@ -1829,6 +1868,9 @@ private System.Windows.Forms.DataGridViewTextBoxColumn Factroy; private System.Windows.Forms.DataGridViewTextBoxColumn Channel; private System.Windows.Forms.DataGridViewTextBoxColumn Remark; + private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel3; + private DevComponents.DotNetBar.Controls.DataGridViewX dgvDrugsYD; + private DevComponents.DotNetBar.SuperTabItem P0; private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn2; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn9; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn10; @@ -1846,6 +1888,7 @@ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn5; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn15; private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn6; + private System.Windows.Forms.DataGridViewTextBoxColumn drugtimespan4; private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn16; private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn5; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn37; @@ -1864,9 +1907,8 @@ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn43; private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn2; + private System.Windows.Forms.DataGridViewTextBoxColumn drugtimespan2; private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn44; - private DevComponents.DotNetBar.SuperTabControlPanel superTabControlPanel3; - private DevComponents.DotNetBar.Controls.DataGridViewX dgvDrugsYD; private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn17; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn18; @@ -1884,8 +1926,8 @@ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn7; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn8; + private System.Windows.Forms.DataGridViewTextBoxColumn drugtimespan1; private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn15; - private DevComponents.DotNetBar.SuperTabItem P0; private System.Windows.Forms.DataGridViewImageColumn dataGridViewImageColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; @@ -1903,6 +1945,7 @@ private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn3; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn4; + private System.Windows.Forms.DataGridViewTextBoxColumn drugtimespan3; private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewTextBoxColumn8; } } \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.cs index af840ba..0fc7503 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.cs +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.cs @@ -495,9 +495,10 @@ namespace AIMS.PublicUI.UI } if (item.DrugEndTime.ToString("yyyy-MM-dd HH:mm") != item.DrugBeginTime.ToString("yyyy-MM-dd HH:mm")) { - _dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间 + _dataGridView.Rows[index].Cells[16].Value = Convert.ToDateTime(item.DrugEndTime);//结束时间 + _dataGridView.Rows[index].Cells[17].Value = Math.Round(item.DrugEndTime.Subtract(item.DrugBeginTime).TotalMinutes, 0) + "分";//结束时间 } - _dataGridView.Rows[index].Cells[17].Value = item.Access; + _dataGridView.Rows[index].Cells[18].Value = item.Access; } private void dgvDrugs_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) @@ -694,6 +695,7 @@ namespace AIMS.PublicUI.UI { _dataGridView.CurrentCell.Value = ""; _dataGridView.CurrentRow.Cells[16].Value = null;//结束时间 + _dataGridView.CurrentRow.Cells[17].Value = null;//结束时间 btnSave.Focus(); } } @@ -712,64 +714,18 @@ namespace AIMS.PublicUI.UI begindate = DateTime.Now; } _dataGridView.CurrentCell.Value = begindate; + + } + double min = Math.Round(DateTime.Parse(_dataGridView.CurrentCell.Value.ToString()).Subtract(DateTime.Parse(_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString())).TotalMinutes, 0); + if (min > 0) + { + _dataGridView.CurrentRow.Cells[17].Value = min + "分";//结束时间 } btnSave.Focus(); } } } } - private bool ValidTimeTxt(string dgvTimeTxt, ref string message) - { - bool k = true; - if (dgvTimeTxt == "") - { - return k; - } - if (!dgvTimeTxt.Contains("-") || !dgvTimeTxt.Contains(":") || !dgvTimeTxt.Contains(" ")) - { - return false; - } - if (dgvTimeTxt.IndexOf("-") < 1 || dgvTimeTxt.IndexOf(":") < 1 || dgvTimeTxt.IndexOf(" ") < 1) - { - return false; - } - try - { - string[] ym = dgvTimeTxt.Split(' '); - string[] sym = ym[0].Split('-'); - string[] hm = ym[1].Split(':'); - int month = Convert.ToInt16(sym[0]); - int day = Convert.ToInt16(sym[1]); - int hh = Convert.ToInt16(hm[0]); - int mm = Convert.ToInt16(hm[1]); - if (month > 12 || month < 0) - { - k = false; - message = "请填写正确的月份(1-12)"; - } - if (day > 31 || day < 0) - { - k = false; - message = "请填写正确的日期(1-31)"; - } - if (hh > 23 || hh < 0) - { - k = false; - message = "请填写正确的小时(0-23)"; - } - if (mm > 59 || hh < 0) - { - k = false; - message = "请填写正确的小时(0-59)"; - } - } - catch - { - k = false; - } - return k; - } - private void dgvDrugs_CellValueChanged(object sender, DataGridViewCellEventArgs e) { if (_dataGridView == null) return; @@ -785,6 +741,18 @@ namespace AIMS.PublicUI.UI if (_dataGridView.CurrentCell == null || _dataGridView.CurrentRow.Cells[6].EditedFormattedValue.ToString() == "") return; if (_dataGridView.CurrentRow.Cells[7].EditedFormattedValue.ToString() == "") _dataGridView.CurrentRow.Cells[7].Value = "%"; } + else if (e.ColumnIndex == 14 || e.ColumnIndex == 16) + { + if (_dataGridView.CurrentRow == null) return; + if (_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString() != "" && _dataGridView.CurrentRow.Cells[16].EditedFormattedValue.ToString() != "")//持续 + { + double min = Math.Round(DateTime.Parse(_dataGridView.CurrentRow.Cells[16].EditedFormattedValue.ToString()).Subtract(DateTime.Parse(_dataGridView.CurrentRow.Cells[14].EditedFormattedValue.ToString())).TotalMinutes, 0); + if (min > 0) + { + _dataGridView.CurrentRow.Cells[17].Value = min + "分";//结束时间 + } + } + } } /// /// 当前单元格内容发生改变时,将改变提交 @@ -1033,8 +1001,8 @@ namespace AIMS.PublicUI.UI drugsR.OperatorName = PublicMethod.OperatorName; drugsR.OperateDate = DateTime.Now; drugsR.DrugTypeId = DrugTypeId; - if (dr.Cells[17].Value != null) - drugsR.Access = dr.Cells[17].Value.ToString(); + if (dr.Cells[18].Value != null) + drugsR.Access = dr.Cells[18].Value.ToString(); else drugsR.Access = ""; diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.resx b/AIMS/OperationAanesthesia/frmFactDrugNew.resx index dab8ba2..215fb47 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.resx +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.resx @@ -117,6 +117,18 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + + + True + + + True + + + True + 132, 17 @@ -137,7 +149,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAa - CAAAAk1TRnQBSQFMAgEBAgEAAagBBgGoAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ + CAAAAk1TRnQBSQFMAgEBAgEAAcABBgHAAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A diff --git a/AIMS/OperationFront/frmExportConfig2.cs b/AIMS/OperationFront/frmExportConfig2.cs new file mode 100644 index 0000000..109bdec --- /dev/null +++ b/AIMS/OperationFront/frmExportConfig2.cs @@ -0,0 +1,149 @@ +using AIMSBLL; +using AIMSExtension; +using AIMSModel; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.Windows.Forms; + +namespace AIMS.OperationAfter.UI +{ + public partial class frmExportConfig2 : Form + { + public SysConfig exportConfig; + public DataGridView _dgv; + public string DataGridViewPath; + public string SysName; + + private frmExportConfig2() + { + InitializeComponent(); + this.FormBorderStyle = FormBorderStyle.FixedSingle; + } + + public frmExportConfig2(DataGridView dgv, SysConfig _exportConfig, string dataGridViewPath, string name) + { + InitializeComponent(); + this._dgv = dgv; + this.exportConfig = _exportConfig; + DataGridViewPath = dataGridViewPath; + SysName = name; + } + + private void frmSelGridColusView_Load(object sender, EventArgs e) + { + if (_dgv == null) return; + LoadSettingSource(_dgv); + if (exportConfig != null) + { + if (exportConfig.Value != null) + { + ExportConfig dataGridViewSetting = JsonConvert.DeserializeObject(exportConfig.Value); + txtName.Text = dataGridViewSetting.Title; + txtFontSize.Value = dataGridViewSetting.FontSize; + + foreach (DataGridViewRow column in dataGridView2.Rows) + { + foreach (var item in dataGridViewSetting.Exports) + { + if (column.Cells[0].Value.ToString() == item.Name) + { + column.Cells["widthDataGridViewTextBoxColumn"].Value = item.Width; + column.Cells["visibleDataGridViewCheckBoxColumn"].Value = item.IsVisible; + column.Cells["columnorder"].Value = item.ColumnOrder; + } + } + } + } + } + else + { + exportConfig = new SysConfig(); + txtName.Text = Name; + txtFontSize.Value = 6; + } + } + + private void LoadSettingSource(DataGridView dgv) + { + int _lineNumber = 0; + foreach (DataGridViewColumn dataGridViewColumn in dgv.Columns) + { + DataGridViewRow drc = new DataGridViewRow(); + drc.CreateCells(dataGridView2); + drc.Cells[0].Value = dataGridViewColumn.Name; + drc.Cells[1].Value = dataGridViewColumn.HeaderText; + drc.Cells[2].Value = dataGridViewColumn.MinimumWidth; + drc.Cells[3].Value = dataGridViewColumn.ReadOnly; + drc.Cells[4].Value = dataGridViewColumn.Visible; + drc.Cells[5].Value = dataGridViewColumn.Width; + drc.Cells[6].Value = dataGridViewColumn.Index; + dataGridView2.Rows.Insert(_lineNumber, drc); + _lineNumber++; + } + } + + private void tsbCancel_Click(object sender, EventArgs e) + { + this.Close(); + } + + private void tsbSave_Click(object sender, EventArgs e) + { + EndEdit(); + exportConfig.Name = txtName.Text; + exportConfig.Note = DataGridViewPath; + ExportConfig dgvSetting = CreateDataGridViewSetting(dataGridView2); + dgvSetting.FontSize =int.Parse( txtFontSize.Value.ToString()); + string ss = JsonConvert.SerializeObject(dgvSetting); + exportConfig.Value = ss; + exportConfig.IsValid = 1; + exportConfig.OperatorNo = PublicMethod.OperatorNo; + exportConfig.OperatorName = PublicMethod.OperatorName; + exportConfig.OperateDate = DateTime.Now; + exportConfig.Extend1 = PublicMethod.RoleId.ToString(); + + if (exportConfig.Id != null && exportConfig.Id.Value > 0) + { + BSysConfig.Update(exportConfig); + } + else + { + exportConfig.Id = BSysConfig.Insert(exportConfig); + } + DialogResult = DialogResult.OK; + Close(); + } + private ExportConfig CreateDataGridViewSetting(DataGridView dataGridView) + { + ExportConfig dataGridViewSetting = new ExportConfig(); + dataGridViewSetting.Title = txtName.Text; + dataGridViewSetting.Path = DataGridViewPath; + dataGridViewSetting.FontSize = int.Parse(txtFontSize.Value.ToString()); + dataGridViewSetting.Landscape = false; + dataGridViewSetting.Exports = new List(); + foreach (DataGridViewRow column in dataGridView.Rows) + { + ExportItem export = new ExportItem(); + export.Name = column.Cells["dataPropertyNameDataGridViewTextBoxColumn"].Value.ToString(); + export.Text = column.Cells["headerTextDataGridViewTextBoxColumn"].Value.ToString(); + export.PrintName = column.Cells["headerTextDataGridViewTextBoxColumn"].Value.ToString(); + export.Width = int.Parse(column.Cells["widthDataGridViewTextBoxColumn"].Value.ToString()); + export.IsVisible = bool.Parse(column.Cells["visibleDataGridViewCheckBoxColumn"].Value.ToString()); + export.IsPrint = true; + export.PrintWidth = 8; + export.PrintSize = 8; + export.ColumnOrder = int.Parse(column.Cells["columnorder"].Value.ToString()); + + dataGridViewSetting.Exports.Add(export); + } + return dataGridViewSetting; + } + + private void EndEdit() + { + this.Validate(); + } + + } +} diff --git a/AIMS/OperationFront/frmExportConfig2.designer.cs b/AIMS/OperationFront/frmExportConfig2.designer.cs new file mode 100644 index 0000000..fd0f325 --- /dev/null +++ b/AIMS/OperationFront/frmExportConfig2.designer.cs @@ -0,0 +1,298 @@ +namespace AIMS.OperationAfter.UI +{ + partial class frmExportConfig2 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); + this.toolStrip1 = new System.Windows.Forms.ToolStrip(); + this.tsbCancel = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.tsbSave = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.gbDataGridViewSetting = new System.Windows.Forms.GroupBox(); + this.labelX1 = new DevComponents.DotNetBar.LabelX(); + this.txtName = new System.Windows.Forms.NumericUpDown(); + this.txtFontSize = new System.Windows.Forms.NumericUpDown(); + this.labelX2 = new DevComponents.DotNetBar.LabelX(); + this.dataGridView2 = new System.Windows.Forms.DataGridView(); + this.dataPropertyNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.headerTextDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.minimumWidthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.readOnlyDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.visibleDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.widthDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.columnorder = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.toolStrip1.SuspendLayout(); + this.gbDataGridViewSetting.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.txtName)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtFontSize)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit(); + this.SuspendLayout(); + // + // toolStrip1 + // + this.toolStrip1.BackColor = System.Drawing.Color.AliceBlue; + this.toolStrip1.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.toolStrip1.ImageScalingSize = new System.Drawing.Size(30, 30); + this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.tsbCancel, + this.toolStripSeparator3, + this.tsbSave, + this.toolStripSeparator1}); + this.toolStrip1.Location = new System.Drawing.Point(0, 0); + this.toolStrip1.Name = "toolStrip1"; + this.toolStrip1.Size = new System.Drawing.Size(913, 27); + this.toolStrip1.TabIndex = 438; + this.toolStrip1.Text = "toolStrip1"; + // + // tsbCancel + // + this.tsbCancel.ImageTransparentColor = System.Drawing.Color.Transparent; + this.tsbCancel.Name = "tsbCancel"; + this.tsbCancel.Size = new System.Drawing.Size(60, 24); + this.tsbCancel.Text = "取消(&C)"; + this.tsbCancel.Click += new System.EventHandler(this.tsbCancel_Click); + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(6, 27); + // + // tsbSave + // + this.tsbSave.ImageTransparentColor = System.Drawing.Color.Transparent; + this.tsbSave.Name = "tsbSave"; + this.tsbSave.Size = new System.Drawing.Size(59, 24); + this.tsbSave.Text = "保存(&S)"; + this.tsbSave.ToolTipText = "保存"; + this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click); + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 27); + // + // gbDataGridViewSetting + // + this.gbDataGridViewSetting.BackColor = System.Drawing.Color.AliceBlue; + this.gbDataGridViewSetting.Controls.Add(this.labelX1); + this.gbDataGridViewSetting.Controls.Add(this.txtName); + this.gbDataGridViewSetting.Controls.Add(this.txtFontSize); + this.gbDataGridViewSetting.Controls.Add(this.labelX2); + this.gbDataGridViewSetting.Dock = System.Windows.Forms.DockStyle.Top; + this.gbDataGridViewSetting.Location = new System.Drawing.Point(0, 27); + this.gbDataGridViewSetting.Name = "gbDataGridViewSetting"; + this.gbDataGridViewSetting.Size = new System.Drawing.Size(913, 74); + this.gbDataGridViewSetting.TabIndex = 445; + this.gbDataGridViewSetting.TabStop = false; + this.gbDataGridViewSetting.Text = "设置"; + // + // labelX1 + // + // + // + // + this.labelX1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX1.Location = new System.Drawing.Point(21, 28); + this.labelX1.Name = "labelX1"; + this.labelX1.Size = new System.Drawing.Size(75, 23); + this.labelX1.TabIndex = 3; + this.labelX1.Text = "左侧宽度"; + // + // txtName + // + this.txtName.Location = new System.Drawing.Point(102, 25); + this.txtName.Maximum = new decimal(new int[] { + 600, + 0, + 0, + 0}); + this.txtName.Minimum = new decimal(new int[] { + 200, + 0, + 0, + 0}); + this.txtName.Name = "txtName"; + this.txtName.Size = new System.Drawing.Size(69, 26); + this.txtName.TabIndex = 2; + this.txtName.Value = new decimal(new int[] { + 320, + 0, + 0, + 0}); + // + // txtFontSize + // + this.txtFontSize.Location = new System.Drawing.Point(341, 25); + this.txtFontSize.Maximum = new decimal(new int[] { + 7, + 0, + 0, + 0}); + this.txtFontSize.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.txtFontSize.Name = "txtFontSize"; + this.txtFontSize.Size = new System.Drawing.Size(69, 26); + this.txtFontSize.TabIndex = 2; + this.txtFontSize.Value = new decimal(new int[] { + 6, + 0, + 0, + 0}); + // + // labelX2 + // + // + // + // + this.labelX2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.labelX2.Location = new System.Drawing.Point(221, 28); + this.labelX2.Name = "labelX2"; + this.labelX2.Size = new System.Drawing.Size(126, 23); + this.labelX2.TabIndex = 0; + this.labelX2.Text = "手术间一行数量"; + // + // dataGridView2 + // + this.dataGridView2.AllowUserToAddRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); + this.dataGridView2.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.dataGridView2.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dataGridView2.BackgroundColor = System.Drawing.Color.White; + this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridView2.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataPropertyNameDataGridViewTextBoxColumn, + this.headerTextDataGridViewTextBoxColumn, + this.minimumWidthDataGridViewTextBoxColumn, + this.readOnlyDataGridViewCheckBoxColumn, + this.visibleDataGridViewCheckBoxColumn, + this.widthDataGridViewTextBoxColumn, + this.columnorder}); + this.dataGridView2.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridView2.Location = new System.Drawing.Point(0, 101); + this.dataGridView2.Name = "dataGridView2"; + this.dataGridView2.RowHeadersVisible = false; + this.dataGridView2.RowTemplate.Height = 23; + this.dataGridView2.Size = new System.Drawing.Size(913, 343); + this.dataGridView2.TabIndex = 440; + // + // dataPropertyNameDataGridViewTextBoxColumn + // + this.dataPropertyNameDataGridViewTextBoxColumn.DataPropertyName = "Name"; + this.dataPropertyNameDataGridViewTextBoxColumn.HeaderText = "数据源名称"; + this.dataPropertyNameDataGridViewTextBoxColumn.Name = "dataPropertyNameDataGridViewTextBoxColumn"; + this.dataPropertyNameDataGridViewTextBoxColumn.Visible = false; + // + // headerTextDataGridViewTextBoxColumn + // + this.headerTextDataGridViewTextBoxColumn.DataPropertyName = "HeaderText"; + this.headerTextDataGridViewTextBoxColumn.HeaderText = "标题"; + this.headerTextDataGridViewTextBoxColumn.Name = "headerTextDataGridViewTextBoxColumn"; + // + // minimumWidthDataGridViewTextBoxColumn + // + this.minimumWidthDataGridViewTextBoxColumn.DataPropertyName = "MinimumWidth"; + this.minimumWidthDataGridViewTextBoxColumn.HeaderText = "最小宽度"; + this.minimumWidthDataGridViewTextBoxColumn.Name = "minimumWidthDataGridViewTextBoxColumn"; + this.minimumWidthDataGridViewTextBoxColumn.Visible = false; + // + // readOnlyDataGridViewCheckBoxColumn + // + this.readOnlyDataGridViewCheckBoxColumn.DataPropertyName = "ReadOnly"; + this.readOnlyDataGridViewCheckBoxColumn.HeaderText = "只读"; + this.readOnlyDataGridViewCheckBoxColumn.Name = "readOnlyDataGridViewCheckBoxColumn"; + this.readOnlyDataGridViewCheckBoxColumn.Visible = false; + // + // visibleDataGridViewCheckBoxColumn + // + this.visibleDataGridViewCheckBoxColumn.DataPropertyName = "Visible"; + this.visibleDataGridViewCheckBoxColumn.HeaderText = "是否可见"; + this.visibleDataGridViewCheckBoxColumn.Name = "visibleDataGridViewCheckBoxColumn"; + // + // widthDataGridViewTextBoxColumn + // + this.widthDataGridViewTextBoxColumn.DataPropertyName = "Width"; + this.widthDataGridViewTextBoxColumn.HeaderText = "宽度"; + this.widthDataGridViewTextBoxColumn.Name = "widthDataGridViewTextBoxColumn"; + // + // columnorder + // + this.columnorder.HeaderText = "排列顺序"; + this.columnorder.Name = "columnorder"; + // + // frmExportConfig2 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(913, 444); + this.Controls.Add(this.dataGridView2); + this.Controls.Add(this.gbDataGridViewSetting); + this.Controls.Add(this.toolStrip1); + this.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "frmExportConfig2"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; + this.Text = "导出设置"; + this.Load += new System.EventHandler(this.frmSelGridColusView_Load); + this.toolStrip1.ResumeLayout(false); + this.toolStrip1.PerformLayout(); + this.gbDataGridViewSetting.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.txtName)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.txtFontSize)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.ToolStrip toolStrip1; + private System.Windows.Forms.GroupBox gbDataGridViewSetting; + public System.Windows.Forms.ToolStripButton tsbSave; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; + public System.Windows.Forms.DataGridView dataGridView2; + private System.Windows.Forms.ToolStripButton tsbCancel; + private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; + public System.Windows.Forms.NumericUpDown txtFontSize; + private DevComponents.DotNetBar.LabelX labelX2; + private DevComponents.DotNetBar.LabelX labelX1; + public System.Windows.Forms.NumericUpDown txtName; + private System.Windows.Forms.DataGridViewTextBoxColumn dataPropertyNameDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn headerTextDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn minimumWidthDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewCheckBoxColumn readOnlyDataGridViewCheckBoxColumn; + private System.Windows.Forms.DataGridViewCheckBoxColumn visibleDataGridViewCheckBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn widthDataGridViewTextBoxColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn columnorder; + } +} \ No newline at end of file diff --git a/AIMS/OperationFront/frmExportConfig2.resx b/AIMS/OperationFront/frmExportConfig2.resx new file mode 100644 index 0000000..6421333 --- /dev/null +++ b/AIMS/OperationFront/frmExportConfig2.resx @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + + 15, 7 + + + True + + + 32 + + \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.cs b/AIMS/OperationFront/frmOperationSchedulePlan.cs index e61de96..7992263 100644 --- a/AIMS/OperationFront/frmOperationSchedulePlan.cs +++ b/AIMS/OperationFront/frmOperationSchedulePlan.cs @@ -1,3 +1,4 @@ +using AIMS.OperationAfter.UI; using AIMS.OremrUserControl; using AIMSBLL; using AIMSExtension; @@ -6,6 +7,7 @@ using DevComponents.DotNetBar; using DevComponents.DotNetBar.Controls; using DevComponents.DotNetBar.SuperGrid; using HelperDB; +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel; @@ -13,6 +15,7 @@ using System.Data; using System.Diagnostics; using System.Drawing; using System.Linq; +using System.Text; using System.Windows.Forms; namespace AIMS.OperationFront.UI @@ -210,6 +213,21 @@ namespace AIMS.OperationFront.UI private ToolStripMenuItem ȡųͨToolStripMenuItem; private Label label3; private GridColumn gridColumn2; + private ToolStrip toolStrip1; + private ToolStripButton tsbNewOperationApply; + private ToolStripButton tsbModifyOperationApply; + private ToolStripButton tsbCancelOperationApply; + private ToolStripSeparator toolStripSeparator4; + private ToolStripButton btnpass; + private ToolStripSeparator toolStripSeparator3; + private ToolStripButton btnPlan; + private ToolStripSeparator toolStripSeparator2; + private ToolStripButton btnDataCente; + private ToolStripButton button3; + private ComboBoxEx CboOperationSite; + private Label labelSite; + private ToolStripSeparator toolStripSeparator1; + private ToolStripButton tspSetting; private DataGridViewCheckBoxColumn Column1; private DataGridViewTextBoxColumn Id; private DataGridViewTextBoxColumn Index; @@ -225,19 +243,6 @@ namespace AIMS.OperationFront.UI private DataGridViewTextBoxColumn Diagnose; private DataGridViewTextBoxColumn OperationType; private DataGridViewTextBoxColumn Contagion; - private ToolStrip toolStrip1; - private ToolStripButton tsbNewOperationApply; - private ToolStripButton tsbModifyOperationApply; - private ToolStripButton tsbCancelOperationApply; - private ToolStripSeparator toolStripSeparator4; - private ToolStripButton btnpass; - private ToolStripSeparator toolStripSeparator3; - private ToolStripButton btnPlan; - private ToolStripSeparator toolStripSeparator2; - private ToolStripButton btnDataCente; - private ToolStripButton button3; - private ComboBoxEx CboOperationSite; - private Label labelSite; private DevComponents.Editors.DateTimeAdv.DateTimeInput dtpSearchTime; /// @@ -499,6 +504,8 @@ namespace AIMS.OperationFront.UI this.button3 = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.btnDataCente = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.tspSetting = new System.Windows.Forms.ToolStripButton(); this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components); this.ȡųͨToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.tcOperationRoomsPage = new System.Windows.Forms.Panel(); @@ -656,7 +663,7 @@ namespace AIMS.OperationFront.UI this.navigationPane1.Name = "navigationPane1"; this.navigationPane1.NavigationBarHeight = 190; this.navigationPane1.Padding = new System.Windows.Forms.Padding(1); - this.navigationPane1.Size = new System.Drawing.Size(297, 737); + this.navigationPane1.Size = new System.Drawing.Size(320, 737); this.navigationPane1.Style = DevComponents.DotNetBar.eDotNetBarStyle.Office2013; this.navigationPane1.TabIndex = 0; // @@ -694,7 +701,7 @@ namespace AIMS.OperationFront.UI this.navigationPanePanel1.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel1.Name = "navigationPanePanel1"; this.navigationPanePanel1.ParentItem = this.buttonItem1; - this.navigationPanePanel1.Size = new System.Drawing.Size(295, 545); + this.navigationPanePanel1.Size = new System.Drawing.Size(318, 545); this.navigationPanePanel1.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel1.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel1.Style.BackColor2.Color = System.Drawing.Color.DodgerBlue; @@ -720,7 +727,7 @@ namespace AIMS.OperationFront.UI this.groupBoxsel.Margin = new System.Windows.Forms.Padding(0); this.groupBoxsel.Name = "groupBoxsel"; this.groupBoxsel.Padding = new System.Windows.Forms.Padding(0); - this.groupBoxsel.Size = new System.Drawing.Size(295, 545); + this.groupBoxsel.Size = new System.Drawing.Size(318, 545); this.groupBoxsel.TabIndex = 459; this.groupBoxsel.TabStop = false; this.groupBoxsel.Text = "ǰ"; @@ -782,7 +789,7 @@ namespace AIMS.OperationFront.UI this.dgvApplyOrDoctor.RowHeadersVisible = false; this.dgvApplyOrDoctor.RowTemplate.Height = 23; this.dgvApplyOrDoctor.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvApplyOrDoctor.Size = new System.Drawing.Size(295, 456); + this.dgvApplyOrDoctor.Size = new System.Drawing.Size(318, 456); this.dgvApplyOrDoctor.TabIndex = 74; this.dgvApplyOrDoctor.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellClick); this.dgvApplyOrDoctor.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvApplyOrDoctor_CellDoubleClick); @@ -790,7 +797,7 @@ namespace AIMS.OperationFront.UI // // Column1 // - this.Column1.HeaderText = ""; + this.Column1.HeaderText = " "; this.Column1.Name = "Column1"; this.Column1.ReadOnly = true; this.Column1.TrueValue = "1"; @@ -945,7 +952,7 @@ namespace AIMS.OperationFront.UI this.panel3.Dock = System.Windows.Forms.DockStyle.Top; this.panel3.Location = new System.Drawing.Point(0, 18); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(295, 71); + this.panel3.Size = new System.Drawing.Size(318, 71); this.panel3.TabIndex = 2; // // labelWeek @@ -1070,7 +1077,7 @@ namespace AIMS.OperationFront.UI this.navigationPanePanel4.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel4.Name = "navigationPanePanel4"; this.navigationPanePanel4.ParentItem = this.buttonInstrumentNurse; - this.navigationPanePanel4.Size = new System.Drawing.Size(295, 545); + this.navigationPanePanel4.Size = new System.Drawing.Size(318, 545); this.navigationPanePanel4.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel4.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel4.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; @@ -1098,7 +1105,7 @@ namespace AIMS.OperationFront.UI this.groupBox2.Margin = new System.Windows.Forms.Padding(0); this.groupBox2.Name = "groupBox2"; this.groupBox2.Padding = new System.Windows.Forms.Padding(0); - this.groupBox2.Size = new System.Drawing.Size(295, 545); + this.groupBox2.Size = new System.Drawing.Size(318, 545); this.groupBox2.TabIndex = 461; this.groupBox2.TabStop = false; this.groupBox2.Text = "ϴֻʿ"; @@ -1158,7 +1165,7 @@ namespace AIMS.OperationFront.UI this.dgvInstrumentNurse.RowHeadersVisible = false; this.dgvInstrumentNurse.RowTemplate.Height = 23; this.dgvInstrumentNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvInstrumentNurse.Size = new System.Drawing.Size(295, 450); + this.dgvInstrumentNurse.Size = new System.Drawing.Size(318, 450); this.dgvInstrumentNurse.TabIndex = 4; this.dgvInstrumentNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); // @@ -1286,7 +1293,7 @@ namespace AIMS.OperationFront.UI this.panel4.Dock = System.Windows.Forms.DockStyle.Top; this.panel4.Location = new System.Drawing.Point(0, 18); this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(295, 77); + this.panel4.Size = new System.Drawing.Size(318, 77); this.panel4.TabIndex = 2; // // buttonX4 @@ -1411,7 +1418,7 @@ namespace AIMS.OperationFront.UI this.navigationPanePanel5.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel5.Name = "navigationPanePanel5"; this.navigationPanePanel5.ParentItem = this.buttonItemTourNurse; - this.navigationPanePanel5.Size = new System.Drawing.Size(295, 545); + this.navigationPanePanel5.Size = new System.Drawing.Size(318, 545); this.navigationPanePanel5.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel5.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel5.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; @@ -1439,7 +1446,7 @@ namespace AIMS.OperationFront.UI this.v.Margin = new System.Windows.Forms.Padding(0); this.v.Name = "v"; this.v.Padding = new System.Windows.Forms.Padding(0); - this.v.Size = new System.Drawing.Size(295, 545); + this.v.Size = new System.Drawing.Size(318, 545); this.v.TabIndex = 461; this.v.TabStop = false; this.v.Text = "Ѳػʿ"; @@ -1499,7 +1506,7 @@ namespace AIMS.OperationFront.UI this.dgvTourNurse.RowHeadersVisible = false; this.dgvTourNurse.RowTemplate.Height = 23; this.dgvTourNurse.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvTourNurse.Size = new System.Drawing.Size(295, 450); + this.dgvTourNurse.Size = new System.Drawing.Size(318, 450); this.dgvTourNurse.TabIndex = 4; this.dgvTourNurse.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); // @@ -1627,7 +1634,7 @@ namespace AIMS.OperationFront.UI this.panel5.Dock = System.Windows.Forms.DockStyle.Top; this.panel5.Location = new System.Drawing.Point(0, 18); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(295, 77); + this.panel5.Size = new System.Drawing.Size(318, 77); this.panel5.TabIndex = 2; // // buttonX5 @@ -1752,7 +1759,7 @@ namespace AIMS.OperationFront.UI this.navigationPanePanel2.Margin = new System.Windows.Forms.Padding(0); this.navigationPanePanel2.Name = "navigationPanePanel2"; this.navigationPanePanel2.ParentItem = this.buttonItemAnas; - this.navigationPanePanel2.Size = new System.Drawing.Size(295, 545); + this.navigationPanePanel2.Size = new System.Drawing.Size(318, 545); this.navigationPanePanel2.Style.Alignment = System.Drawing.StringAlignment.Center; this.navigationPanePanel2.Style.BackColor1.ColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground; this.navigationPanePanel2.Style.BackgroundImagePosition = DevComponents.DotNetBar.eBackgroundImagePosition.Tile; @@ -1778,7 +1785,7 @@ namespace AIMS.OperationFront.UI this.groupBox1.Margin = new System.Windows.Forms.Padding(0); this.groupBox1.Name = "groupBox1"; this.groupBox1.Padding = new System.Windows.Forms.Padding(0); - this.groupBox1.Size = new System.Drawing.Size(295, 545); + this.groupBox1.Size = new System.Drawing.Size(318, 545); this.groupBox1.TabIndex = 460; this.groupBox1.TabStop = false; this.groupBox1.Text = "ҽʦ"; @@ -1838,7 +1845,7 @@ namespace AIMS.OperationFront.UI this.dgvWorkers.RowHeadersVisible = false; this.dgvWorkers.RowTemplate.Height = 23; this.dgvWorkers.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvWorkers.Size = new System.Drawing.Size(295, 453); + this.dgvWorkers.Size = new System.Drawing.Size(318, 453); this.dgvWorkers.TabIndex = 3; this.dgvWorkers.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvWorkers_CellDoubleClick); // @@ -1966,7 +1973,7 @@ namespace AIMS.OperationFront.UI this.panel2.Dock = System.Windows.Forms.DockStyle.Top; this.panel2.Location = new System.Drawing.Point(0, 18); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(295, 74); + this.panel2.Size = new System.Drawing.Size(318, 74); this.panel2.TabIndex = 2; // // buttonX3 @@ -2116,7 +2123,7 @@ namespace AIMS.OperationFront.UI this.panlemian.Dock = System.Windows.Forms.DockStyle.Fill; this.panlemian.Location = new System.Drawing.Point(0, 0); this.panlemian.Name = "panlemian"; - this.panlemian.Size = new System.Drawing.Size(1051, 277); + this.panlemian.Size = new System.Drawing.Size(1028, 277); this.panlemian.TabIndex = 465; // // label15 @@ -2196,8 +2203,8 @@ namespace AIMS.OperationFront.UI // // dgvDetail // - this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + this.dgvDetail.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.dgvDetail.BackColor = System.Drawing.SystemColors.Control; this.dgvDetail.ContextMenuStrip = this.ctsThisRoom; @@ -2236,7 +2243,7 @@ namespace AIMS.OperationFront.UI this.dgvDetail.PrimaryGrid.RowHeaderWidth = 30; this.dgvDetail.PrimaryGrid.SelectionGranularity = DevComponents.DotNetBar.SuperGrid.SelectionGranularity.RowWithCellHighlight; this.dgvDetail.PrimaryGrid.UseAlternateRowStyle = true; - this.dgvDetail.Size = new System.Drawing.Size(991, 201); + this.dgvDetail.Size = new System.Drawing.Size(968, 201); this.dgvDetail.SizingStyle = DevComponents.DotNetBar.SuperGrid.Style.StyleType.Selected; this.dgvDetail.TabIndex = 1; this.dgvDetail.Text = "superGridControl1"; @@ -2419,7 +2426,7 @@ namespace AIMS.OperationFront.UI this.panel1.Dock = System.Windows.Forms.DockStyle.Top; this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1051, 48); + this.panel1.Size = new System.Drawing.Size(1028, 48); this.panel1.TabIndex = 0; // // CboOperationSite @@ -2430,11 +2437,11 @@ namespace AIMS.OperationFront.UI this.CboOperationSite.Font = new System.Drawing.Font("΢ź", 10F); this.CboOperationSite.FormattingEnabled = true; this.CboOperationSite.ItemHeight = 19; - this.CboOperationSite.Location = new System.Drawing.Point(908, 11); + this.CboOperationSite.Location = new System.Drawing.Point(885, 11); this.CboOperationSite.Name = "CboOperationSite"; this.CboOperationSite.Size = new System.Drawing.Size(115, 25); this.CboOperationSite.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.CboOperationSite.TabIndex = 505; + this.CboOperationSite.TabIndex = 505; // // labelSite // @@ -2442,7 +2449,7 @@ namespace AIMS.OperationFront.UI this.labelSite.AutoSize = true; this.labelSite.BackColor = System.Drawing.Color.AliceBlue; this.labelSite.Font = new System.Drawing.Font("΢ź", 10.5F); - this.labelSite.Location = new System.Drawing.Point(842, 13); + this.labelSite.Location = new System.Drawing.Point(819, 13); this.labelSite.Name = "labelSite"; this.labelSite.Size = new System.Drawing.Size(65, 20); this.labelSite.TabIndex = 506; @@ -2455,7 +2462,7 @@ namespace AIMS.OperationFront.UI this.lblcount.AutoSize = true; this.lblcount.BackColor = System.Drawing.Color.AliceBlue; this.lblcount.Font = new System.Drawing.Font("΢ź", 15F); - this.lblcount.Location = new System.Drawing.Point(575, 8); + this.lblcount.Location = new System.Drawing.Point(606, 8); this.lblcount.Name = "lblcount"; this.lblcount.Size = new System.Drawing.Size(45, 27); this.lblcount.TabIndex = 501; @@ -2477,10 +2484,12 @@ namespace AIMS.OperationFront.UI this.btnPlan, this.button3, this.toolStripSeparator2, - this.btnDataCente}); + this.btnDataCente, + this.toolStripSeparator1, + this.tspSetting}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(1051, 49); + this.toolStrip1.Size = new System.Drawing.Size(1028, 49); this.toolStrip1.TabIndex = 504; this.toolStrip1.Text = "toolStrip1"; // @@ -2576,6 +2585,22 @@ namespace AIMS.OperationFront.UI this.btnDataCente.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.btnDataCente.Click += new System.EventHandler(this.btnDataCente_Click); // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 49); + // + // tspSetting + // + this.tspSetting.Font = new System.Drawing.Font("΢ź", 9F); + this.tspSetting.Image = global::AIMS.Properties.Resources.ͼ_; + this.tspSetting.ImageTransparentColor = System.Drawing.Color.Magenta; + this.tspSetting.Name = "tspSetting"; + this.tspSetting.Size = new System.Drawing.Size(68, 46); + this.tspSetting.Text = " ʾ"; + this.tspSetting.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; + this.tspSetting.Click += new System.EventHandler(this.tspSetting_Click); + // // contextMenuStrip1 // this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -2596,7 +2621,7 @@ namespace AIMS.OperationFront.UI this.tcOperationRoomsPage.Dock = System.Windows.Forms.DockStyle.Fill; this.tcOperationRoomsPage.Location = new System.Drawing.Point(0, 0); this.tcOperationRoomsPage.Name = "tcOperationRoomsPage"; - this.tcOperationRoomsPage.Size = new System.Drawing.Size(1051, 405); + this.tcOperationRoomsPage.Size = new System.Drawing.Size(1028, 405); this.tcOperationRoomsPage.TabIndex = 5; // // tabScheduling @@ -2633,7 +2658,7 @@ namespace AIMS.OperationFront.UI this.tabScheduling.ReorderTabsEnabled = true; this.tabScheduling.SelectedTabFont = new System.Drawing.Font("", 9F, System.Drawing.FontStyle.Bold); this.tabScheduling.SelectedTabIndex = 0; - this.tabScheduling.Size = new System.Drawing.Size(1051, 405); + this.tabScheduling.Size = new System.Drawing.Size(1028, 405); this.tabScheduling.TabAlignment = DevComponents.DotNetBar.eTabStripAlignment.Bottom; this.tabScheduling.TabFont = new System.Drawing.Font("΢ź", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.tabScheduling.TabIndex = 1; @@ -2656,7 +2681,7 @@ namespace AIMS.OperationFront.UI this.superTabControlPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.superTabControlPanel1.Location = new System.Drawing.Point(0, 0); this.superTabControlPanel1.Name = "superTabControlPanel1"; - this.superTabControlPanel1.Size = new System.Drawing.Size(1051, 377); + this.superTabControlPanel1.Size = new System.Drawing.Size(1028, 377); this.superTabControlPanel1.TabIndex = 1; this.superTabControlPanel1.TabItem = this.superTabItem1; // @@ -2666,7 +2691,7 @@ namespace AIMS.OperationFront.UI this.tcOperationRoomsPage1.Dock = System.Windows.Forms.DockStyle.Fill; this.tcOperationRoomsPage1.Location = new System.Drawing.Point(0, 0); this.tcOperationRoomsPage1.Name = "tcOperationRoomsPage1"; - this.tcOperationRoomsPage1.Size = new System.Drawing.Size(1051, 377); + this.tcOperationRoomsPage1.Size = new System.Drawing.Size(1028, 377); this.tcOperationRoomsPage1.TabIndex = 0; this.tcOperationRoomsPage1.Resize += new System.EventHandler(this.tcOperationRoomsPage1_Resize); // @@ -2867,7 +2892,7 @@ namespace AIMS.OperationFront.UI // this.spcMain.Panel2.Controls.Add(this.spcLeft); this.spcMain.Size = new System.Drawing.Size(1358, 737); - this.spcMain.SplitterDistance = 297; + this.spcMain.SplitterDistance = 320; this.spcMain.SplitterWidth = 8; this.spcMain.TabIndex = 466; // @@ -2885,7 +2910,7 @@ namespace AIMS.OperationFront.UI // spcLeft.Panel2 // this.spcLeft.Panel2.Controls.Add(this.rtbLog); - this.spcLeft.Size = new System.Drawing.Size(1053, 737); + this.spcLeft.Size = new System.Drawing.Size(1030, 737); this.spcLeft.SplitterDistance = 690; this.spcLeft.SplitterWidth = 6; this.spcLeft.TabIndex = 466; @@ -2905,7 +2930,7 @@ namespace AIMS.OperationFront.UI // spcUP.Panel2 // this.spcUP.Panel2.Controls.Add(this.tcOperationRoomsPage); - this.spcUP.Size = new System.Drawing.Size(1053, 690); + this.spcUP.Size = new System.Drawing.Size(1030, 690); this.spcUP.SplitterDistance = 279; this.spcUP.TabIndex = 466; // @@ -2925,7 +2950,7 @@ namespace AIMS.OperationFront.UI "il\\fcharset134 \\\'cb\\\'ce\\\'cc\\\'e5;}}\r\n{\\*\\generator Riched20 10.0.22621}\\viewkind4" + "\\uc1 \r\n\\pard\\f0\\fs18\\lang2052\\par\r\n}\r\n"; this.rtbLog.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical; - this.rtbLog.Size = new System.Drawing.Size(1053, 41); + this.rtbLog.Size = new System.Drawing.Size(1030, 41); this.rtbLog.TabIndex = 0; // // dataGridViewTextBoxColumn3 @@ -3517,9 +3542,12 @@ namespace AIMS.OperationFront.UI string outMsg = ""; int _rowColumnOfPage = 0; public int OpeCount = 0; + public int RoomCount = 5; public List SSSDept; public List MZKDept; public DataTable NowPatientDataTable; + public SysConfig exportConfig; + public string DataGridViewPath = ""; public frmOperationSchedulePlan() { try @@ -3553,6 +3581,10 @@ namespace AIMS.OperationFront.UI dgvInstrumentNurse.BackgroundColor = SystemColors.Control; dgvTourNurse.BackgroundColor = SystemColors.Control; + DataGridViewPath = GetControlPath(dgvApplyOrDoctor); + exportConfig = BSysConfig.SelectSingle(" Note='" + DataGridViewPath + "' ", null, RecursiveType.None, 0);// + if (exportConfig != null) + ConfigDataGridView(exportConfig); } catch (Exception ex) { @@ -3670,7 +3702,7 @@ namespace AIMS.OperationFront.UI SelectPanel.Controls.Clear(); } ucOpeRooms = new List(); - int width = (SelectPanel.Width - 30) / 5; + int width = (SelectPanel.Width - 30) / RoomCount; int row = 0; int column = 0; for (int i = 0; i < selOperationRooms.Rooms.Count; i++) @@ -3680,10 +3712,10 @@ namespace AIMS.OperationFront.UI ucOpeRoom.Height = 135; ucOpeRoom.dgvDetail = dgvDetail; - if (row != i / 5) + if (row != i / RoomCount) { column = 0; - row = i / 5; + row = i / RoomCount; } ucOpeRoom.Location = new Point(column * (ucOpeRoom.Width + LeftRightMargin) + LeftRightMargin, @@ -3706,7 +3738,7 @@ namespace AIMS.OperationFront.UI if (i != 0) tabScheduling.Tabs[i].Visible = false; } - _rowColumnOfPage = 15; + _rowColumnOfPage = RoomCount*3; List rooms = operationRooms; int allpage = 0; @@ -4842,6 +4874,53 @@ namespace AIMS.OperationFront.UI ControlExtension.SetOperationSite(CboOperationSite); FirstLoad(); btnSearchOperation_Click(null, null); - } + } + + private void tspSetting_Click(object sender, EventArgs e) + { + frmExportConfig2 formDataGridViewConfig = new frmExportConfig2(dgvApplyOrDoctor, exportConfig, DataGridViewPath, this.Text); + if (formDataGridViewConfig.ShowDialog() == DialogResult.OK) + { + exportConfig = formDataGridViewConfig.exportConfig; + ConfigDataGridView(formDataGridViewConfig.exportConfig); + } + } + private void ConfigDataGridView(SysConfig exportConfig) + { + try + { + spcMain.SplitterDistance = int.Parse(exportConfig.Name); + ExportConfig dataGridViewSetting = JsonConvert.DeserializeObject(exportConfig.Value); + RoomCount = dataGridViewSetting.FontSize; + foreach (DataGridViewColumn column in dgvApplyOrDoctor.Columns) + { + foreach (var item in dataGridViewSetting.Exports) + { + if (column.Name == item.Name) + { + column.Visible = item.IsVisible; + column.Width = item.Width; + column.DisplayIndex = item.ColumnOrder; + } + } + } + } + catch (Exception ex) + { + PublicMethod.WriteLog(ex); + } + } + + private static string GetControlPath(Control control) + { + StringBuilder controlPathStringBuilder = new StringBuilder(); + controlPathStringBuilder.Append(control.Name); + while (control.Parent != null) + { + control = control.Parent; + controlPathStringBuilder.Append("." + control.Name); + } + return controlPathStringBuilder.ToString(); + } } } \ No newline at end of file diff --git a/AIMS/OperationFront/frmOperationSchedulePlan.resx b/AIMS/OperationFront/frmOperationSchedulePlan.resx index bcf4445..d108dc6 100644 --- a/AIMS/OperationFront/frmOperationSchedulePlan.resx +++ b/AIMS/OperationFront/frmOperationSchedulePlan.resx @@ -251,7 +251,7 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAD+ - CAAAAk1TRnQBSQFMAgEBAgEAARwBFAEcARQBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo + CAAAAk1TRnQBSQFMAgEBAgEAATQBFAE0ARQBEAEAARABAAT/AQkBAAj/AUIBTQE2AQQGAAE2AQQCAAEo AwABQAMAARADAAEBAQABCAYAAQQYAAGAAgABgAMAAoABAAGAAwABgAEAAYABAAKAAgADwAEAAcAB3AHA AQAB8AHKAaYBAAEzBQABMwEAATMBAAEzAQACMwIAAxYBAAMcAQADIgEAAykBAANVAQADTQEAA0IBAAM5 AQABgAF8Af8BAAJQAf8BAAGTAQAB1gEAAf8B7AHMAQABxgHWAe8BAAHWAucBAAGQAakBrQIAAf8BMwMA diff --git a/AIMS/OremrUserControl/ExportConfig.cs b/AIMS/OremrUserControl/ExportConfig.cs index 0a05be5..61b722c 100644 --- a/AIMS/OremrUserControl/ExportConfig.cs +++ b/AIMS/OremrUserControl/ExportConfig.cs @@ -26,5 +26,6 @@ namespace AIMS public int PrintWidth { get; set; } public int PrintSize { get; set; } public string PrintName { get; set; } + public int ColumnOrder { get; set; } } } diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs index 11e49be..5c72a6e 100644 --- a/AIMS/OremrUserControl/ucDocument.cs +++ b/AIMS/OremrUserControl/ucDocument.cs @@ -6,6 +6,7 @@ using DCSoft.Writer.Dom; using DocumentManagement; using DrawGraph; using System; +using System.Collections.Generic; using System.Data; using System.Linq; using System.Reflection; @@ -85,7 +86,7 @@ namespace AIMS.OremrUserControl myEditControl.Document.Options.SecurityOptions.ShowPermissionTip = true; //文档事件 myEditControl.DocumentContentChanged += new WriterEventHandler(myEditControl_DocumentContentChanged); - myEditControl.AfterExecuteCommand += new DCSoft.Writer.Commands.WriterCommandEventHandler(myEditControl_AfterExecuteCommand); + myEditControl.AfterExecuteCommand += new DCSoft.Writer.Commands.WriterCommandEventHandler(myEditControl_AfterExecuteCommand); if (DModel.Id > 0) @@ -107,11 +108,14 @@ namespace AIMS.OremrUserControl { var name = dr[i].ItemArray[0].ToString(); var value = dr[i].ItemArray[1].ToString(); - XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); + List elements = query.Where(x => x.FieldSettings.ListSource.SourceName == value).ToList(); PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); - if (element != null && info != null) + if (elements != null && info != null) { - element.Text = info.GetValue(Patient, null).ToString(); + foreach (var element in elements) + { + element.Text = info.GetValue(Patient, null).ToString(); + } } } } @@ -142,11 +146,14 @@ namespace AIMS.OremrUserControl { var name = dr[i].ItemArray[0].ToString(); var value = dr[i].ItemArray[1].ToString(); - XTextInputFieldElement element = query.Where(x => x.FieldSettings.ListSource.SourceName == value).FirstOrDefault(); + List elements = query.Where(x => x.FieldSettings.ListSource.SourceName == value).ToList(); PropertyInfo info = p.Where(px => px.Name == name).FirstOrDefault(); - if (element != null && info != null) + if (elements != null && info != null) { - element.Text = info.GetValue(Patient, null).ToString(); + foreach (var element in elements) + { + element.Text = info.GetValue(Patient, null).ToString(); + } } } @@ -348,7 +355,7 @@ namespace AIMS.OremrUserControl ClearT(); } myEditControl.Document.Modified = false; - DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document,ref Patient); + DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document, ref Patient); new frmMessageBox().Show(); } @@ -528,10 +535,10 @@ namespace AIMS.OremrUserControl element.Text = info.GetValue(Patient.LisResult, null).ToString(); } } - } + } } } - + private void tsbCheckout_Click(object sender, EventArgs e) { if (tsbCheckout.Text == " 查看痕迹") diff --git a/DocumentManagement/DocumentEntity/DocumentExtension.cs b/DocumentManagement/DocumentEntity/DocumentExtension.cs index c5b2bb5..f635485 100644 --- a/DocumentManagement/DocumentEntity/DocumentExtension.cs +++ b/DocumentManagement/DocumentEntity/DocumentExtension.cs @@ -272,7 +272,7 @@ namespace DocumentManagement var diagnose = Document.Fields.ToArray().Where(x => x.ID == "field69").FirstOrDefault(); if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName) { - AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text)); + AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text)); Patient.ApplyDiagnoseInfoName = diagnose.Text; } } @@ -285,6 +285,12 @@ namespace DocumentManagement { AddAnaesthesiaMethod(Patient, asa.FormulaValue); } + var diagnose = Document.Fields.ToArray().Where(x => x.ID == "KB20180604142254986").FirstOrDefault(); + if (diagnose != null && diagnose.Text != "" && diagnose.Text != Patient.ApplyDiagnoseInfoName) + { + AddApplyDiagnose(Patient, GetDiagnoseId(diagnose.Text)); + Patient.ApplyDiagnoseInfoName = diagnose.Text; + } } } catch (Exception ex) diff --git a/DrawGraph/AreaManage/BaseInfoBottomManage.cs b/DrawGraph/AreaManage/BaseInfoBottomManage.cs index 00843ed..f374901 100644 --- a/DrawGraph/AreaManage/BaseInfoBottomManage.cs +++ b/DrawGraph/AreaManage/BaseInfoBottomManage.cs @@ -174,7 +174,7 @@ namespace DrawGraph break; case "OperationRecord.TourNurse": Worker_Click(aEdit1, e, 3); - break; + break; case "OperationRecord.Operation": //手术名称 ope_Click(aEdit1, e); break; diff --git a/DrawGraph/AreaManage/DrugsManage.cs b/DrawGraph/AreaManage/DrugsManage.cs index 0da46af..b8f8417 100644 --- a/DrawGraph/AreaManage/DrugsManage.cs +++ b/DrawGraph/AreaManage/DrugsManage.cs @@ -24,6 +24,7 @@ namespace DrawGraph /// 当前手术对象 /// private OperationRecord myOpeRecord = null; + private TipBox aSyncTip = null; #region 初始化药品区域 public DrugsManage() @@ -56,12 +57,116 @@ namespace DrawGraph /// public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) { + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") + //{ + //触发可编辑区域的事件 + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height)); + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width)); + ZedGraphControl sender1 = sender as ZedGraphControl; + + PointF mousePt = new PointF(e.X, e.Y); + GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left) + { + DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); + List record = new List(); + double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.isEqual(y, BeginTime, addDragRowHeight)) + { + dsr.IsSelected = true; + break; + } + } + } } public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) { + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") + //{ + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(sender.Width)); + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(sender.Height)); + double yP = 18 / Convert.ToDouble(sender.Height); + string viewStr = ""; + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange) + { + DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); + double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.isEqual(y, BeginTime, addDragRowHeight) || dsr.IsSelected) + { + //isDrug = true; + viewStr = dsr.DrugName + ":" + dsr.Dosage + dsr.DosageUnit; + if (dsr.DrugBeginTime != null) + viewStr += "\n开始时间:" + dsr.DrugBeginTime.ToString("yyyy-MM-dd HH:mm"); + if (dsr.DrugEndTime != null && dsr.DrugEndTime != dsr.DrugBeginTime) + viewStr += "\n结束时间:" + dsr.DrugEndTime.ToString("yyyy-MM-dd HH:mm"); + + aSyncTip.ViewStr = viewStr; + aSyncTip.Show(x, y + yP); + + //因为被选中进行托动 + if (dsr.IsSelected) + { + aSyncTip.ViewStr = viewStr; + aSyncTip.Show(x, y + yP); + TimeSpan ts = BeginTime - DateTime.Parse(dsr.DrugBeginTime.ToString()); + double totalMinutes = ts.TotalMinutes; + if (dsr.DrugEndTime != null) + { + dsr.DrugEndTime = dsr.DrugEndTime.AddMinutes(totalMinutes); + } + dsr.DrugBeginTime = BeginTime; + dsr.ReDraw(sender); + } + ZedControl.Refresh(); + break; + } + } + } + //} } public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) { + if (OpeRecord == null) return; + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") + //{ + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height)); + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width)); + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left) + { + //把移动药品强制保存 + if (myOpeRecord != null && myOpeRecord.FactDrugList != null) + { + DateTime currentTime = reDrugsTime(sender as ZedGraphControl, e); + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.IsSelected) + { + dsr.IsSelected = false; + int reValue = FactDrug.UpdateEntity(dsr); + if (reValue > 0) + { + reDrawDrug(); + } + else + { + ZedControl.Refresh(); + } + break; + } + } + } + } + //} } public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) { @@ -130,6 +235,7 @@ namespace DrawGraph #region 绑定区域数据 public override void Bind() { + aSyncTip = TipBox.CreateInstance("async"); init(); DrawDrug(); } @@ -243,8 +349,8 @@ namespace DrawGraph for (int i = 0; i < _FactDrugList.Count; i++) { FactDrug temp = _FactDrugList[i]; - if (temp.GiveDrugType == "麻醉前用药" || temp.GiveDrugType == "术后镇痛药" || temp.DrugChannel == "备用" || temp.DrugChannel == "配药" || temp.Access == "下") continue;//|| temp.GiveDrugType == "麻醉诱导用药" - //子药不画 + if (temp.GiveDrugType == "麻醉前用药" || temp.GiveDrugType == "术后镇痛药" || temp.DrugChannel == "备用" || temp.DrugChannel == "配药" || temp.Access == "下") continue;//|| temp.GiveDrugType == "麻醉诱导用药" + //子药不画 if (temp.ParentId > 0) continue; bool isEqual = false; @@ -263,7 +369,7 @@ namespace DrawGraph for (int j = 0; j < i; j++) { FactDrug addDrug1 = _FactDrugList[j]; - if (addDrug1.GiveDrugType == "麻醉前用药" || addDrug1.GiveDrugType == "术后镇痛药" || addDrug1.DrugChannel == "备用" || addDrug1.DrugChannel == "配药") continue;//|| addDrug1.GiveDrugType == "麻醉诱导用药" + if (addDrug1.GiveDrugType == "麻醉前用药" || addDrug1.GiveDrugType == "术后镇痛药" || addDrug1.DrugChannel == "备用" || addDrug1.DrugChannel == "配药") continue;//|| addDrug1.GiveDrugType == "麻醉诱导用药" if (addDrug1.ChildFactDrugList == null) addDrug1.ChildFactDrugList = new List(); //如果加药品ID相同并且加加药ID不同,则认为加了同一种加药 if (addDrug1.Equal(temp) && temp.ParentId == 0 && addDrug1.ParentId == 0 && addDrug1.ChildFactDrugList.Count == 0 && temp.ChildFactDrugList.Count == 0) @@ -540,8 +646,8 @@ namespace DrawGraph double[] y; double[] y2; - double yTemp = ZedControl.Height * lines.RealEndY + 80; - PointF mousePt = new PointF(e.X, float.Parse(yTemp.ToString())); + //double yTemp = ZedControl.Height * lines.RealEndY + 80; + PointF mousePt = new PointF(e.X, 1000); ZedGraphControl sender1 = sender as ZedGraphControl; GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); diff --git a/DrawGraph/AreaManage/FactDrug.cs b/DrawGraph/AreaManage/FactDrug.cs index c2edbee..e09a62a 100644 --- a/DrawGraph/AreaManage/FactDrug.cs +++ b/DrawGraph/AreaManage/FactDrug.cs @@ -1,5 +1,7 @@ -using System; +using HelperDB; +using System; using System.Collections.Generic; +using System.Data.SqlClient; using System.Diagnostics.Eventing.Reader; using System.Drawing; using System.Linq; @@ -140,6 +142,28 @@ namespace DrawGraph return reValue; } + public bool isEqual(double y, DateTime time, double lineHeight) + { + bool reValue = false; + if ((y > nowY && y < nowY + lineHeight)) + { + if (DrugBeginTime == DrugEndTime) + { + if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0) && DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString()).AddMinutes(10)) < 0) + { + reValue = true; + } + } + else + { + if ((DateTime.Compare(time, DateTime.Parse(DrugBeginTime.ToString())) > 0 && DateTime.Compare(time, DateTime.Parse(DrugEndTime.ToString())) < 0)) + { + reValue = true; + } + } + } + return reValue; + } /// @@ -166,6 +190,14 @@ namespace DrawGraph paintAdd(y); } + public void ReDraw(ZedGraphControl zgc) + { + //擦掉加药的图例 + clearAddObjPic(zgc); + //再重新画上去新的位置 + paintAdd(nowY); + + } /// /// 画添加药品线,底部加加药次数和备注信息 /// @@ -271,6 +303,52 @@ namespace DrawGraph ZUtil.DrawText(DrName, x1, y, zgcAnas, TextPrefix.DN + this.DrugName + this.Id.ToString(), Color.Black, 6f); } } + + public static int UpdateEntity(FactDrug factDrug) + { + using (SqlConnection conn = new SqlConnection(DBHelper._ConnectionString)) + { + conn.Open(); + using (SqlCommand cmd = conn.CreateCommand()) + { + cmd.CommandText = "update FactDrug set PatientId=@PatientId,DrugTypeId=@DrugTypeId,DrugId=@DrugId,DrugBeginTime=@DrugBeginTime,DrugEndTime=@DrugEndTime,Dosage=@Dosage,DosageUnit=@DosageUnit,DrugChannel=@DrugChannel,GiveDrugType=@GiveDrugType,IsContinue=@IsContinue,Remark=@Remark,OperatorNo=@OperatorNo,OperatorName=@OperatorName,OperateDate=@OperateDate,Density=@Density,DensityUnit=@DensityUnit,Velocity=@Velocity,VelocityUnit=@VelocityUnit,BloodType=@BloodType,ParentId=@ParentId,DrugName=@DrugName,Access=@Access where Id=@Id"; + //从实体中取出值放入Command的参数列表,BatchNo=@BatchNo,PaySelf=@PaySelf,TestFlag=@TestFlag,LimitFlag=@LimitFlag,Extend1=@Extend1,Extend2=@Extend2,Extend3=@Extend3,Extend4=@Extend4,Extend5=@Extend5 + cmd.Parameters.Add(new SqlParameter("@PatientId", factDrug.PatientId)); + cmd.Parameters.Add(new SqlParameter("@DrugTypeId", factDrug.DrugTypeId)); + cmd.Parameters.Add(new SqlParameter("@DrugId", factDrug.DrugId)); + cmd.Parameters.Add(new SqlParameter("@DrugBeginTime", factDrug.DrugBeginTime)); + cmd.Parameters.Add(new SqlParameter("@DrugEndTime", factDrug.DrugEndTime)); + cmd.Parameters.Add(new SqlParameter("@Dosage", factDrug.Dosage)); + cmd.Parameters.Add(new SqlParameter("@DosageUnit", factDrug.DosageUnit)); + cmd.Parameters.Add(new SqlParameter("@DrugChannel", factDrug.DrugChannel)); + cmd.Parameters.Add(new SqlParameter("@GiveDrugType", factDrug.GiveDrugType)); + cmd.Parameters.Add(new SqlParameter("@IsContinue", factDrug.IsContinue)); + cmd.Parameters.Add(new SqlParameter("@Remark", factDrug.Remark)); + cmd.Parameters.Add(new SqlParameter("@OperatorNo", factDrug.OperatorNo)); + cmd.Parameters.Add(new SqlParameter("@OperatorName", factDrug.OperatorName)); + cmd.Parameters.Add(new SqlParameter("@OperateDate", factDrug.OperateDate)); + cmd.Parameters.Add(new SqlParameter("@Density", factDrug.Density)); + cmd.Parameters.Add(new SqlParameter("@DensityUnit", factDrug.DensityUnit)); + cmd.Parameters.Add(new SqlParameter("@Velocity", factDrug.Velocity)); + cmd.Parameters.Add(new SqlParameter("@VelocityUnit", factDrug.VelocityUnit)); + cmd.Parameters.Add(new SqlParameter("@BloodType", factDrug.BloodType)); + cmd.Parameters.Add(new SqlParameter("@ParentId", factDrug.ParentId)); + cmd.Parameters.Add(new SqlParameter("@DrugName", factDrug.DrugName)); + cmd.Parameters.Add(new SqlParameter("@Access", factDrug.Access)); + //cmd.Parameters.Add(new SqlParameter("@BatchNo", factDrug.BatchNo)); + //cmd.Parameters.Add(new SqlParameter("@PaySelf", factDrug.PaySelf)); + //cmd.Parameters.Add(new SqlParameter("@TestFlag", factDrug.TestFlag)); + //cmd.Parameters.Add(new SqlParameter("@LimitFlag", factDrug.LimitFlag)); + //cmd.Parameters.Add(new SqlParameter("@Extend1", factDrug.Extend1)); + //cmd.Parameters.Add(new SqlParameter("@Extend2", factDrug.Extend2)); + //cmd.Parameters.Add(new SqlParameter("@Extend3", factDrug.Extend3)); + //cmd.Parameters.Add(new SqlParameter("@Extend4", factDrug.Extend4)); + //cmd.Parameters.Add(new SqlParameter("@Extend5", factDrug.Extend5)); + cmd.Parameters.Add(new SqlParameter("@Id", factDrug.Id)); + return cmd.ExecuteNonQuery(); + } + } + } } /// diff --git a/DrawGraph/AreaManage/SapManage.cs b/DrawGraph/AreaManage/SapManage.cs index d8c86f4..0e051ce 100644 --- a/DrawGraph/AreaManage/SapManage.cs +++ b/DrawGraph/AreaManage/SapManage.cs @@ -21,6 +21,7 @@ namespace DrawGraph public LinePackObj H3pack; public LinePackObj H5pack; public int RowsCount; + private TipBox aSyncTip = null; /// /// 当前手术对象 /// @@ -58,6 +59,7 @@ namespace DrawGraph #endregion #region 重写的事件 + /// /// 鼠标点击画板 /// @@ -65,16 +67,116 @@ namespace DrawGraph /// public override void MouseDown(ZedGraphControl sender, MouseEventArgs e) { - //if (e.Button == System.Windows.Forms.MouseButtons.Left) + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") //{ - // MessageBox.Show(this.GetType().Name + "is Click Left Button"); - //} + //触发可编辑区域的事件 + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height)); + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width)); + ZedGraphControl sender1 = sender as ZedGraphControl; + + PointF mousePt = new PointF(e.X, e.Y); + GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left) + { + DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); + List record = new List(); + double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.isEqual(y, BeginTime, addDragRowHeight)) + { + dsr.IsSelected = true; + break; + } + } + } } public override void MouseMove(ZedGraphControl sender, MouseEventArgs e) { + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") + //{ + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(sender.Width)); + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(sender.Height)); + double yP = 18 / Convert.ToDouble(sender.Height); + string viewStr = ""; + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange) + { + DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); + double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.isEqual(y, BeginTime, addDragRowHeight) || dsr.IsSelected) + { + //isDrug = true; + viewStr = dsr.DrugName + ":" + dsr.Dosage + dsr.DosageUnit; + if (dsr.DrugBeginTime != null) + viewStr += "\n开始时间:" + dsr.DrugBeginTime.ToString("yyyy-MM-dd HH:mm"); + if (dsr.DrugEndTime != null && dsr.DrugEndTime != dsr.DrugBeginTime) + viewStr += "\n结束时间:" + dsr.DrugEndTime.ToString("yyyy-MM-dd HH:mm"); + + aSyncTip.ViewStr = viewStr; + aSyncTip.Show(x, y + yP); + + //因为被选中进行托动 + if (dsr.IsSelected) + { + aSyncTip.ViewStr = viewStr; + aSyncTip.Show(x, y + yP); + TimeSpan ts = BeginTime - DateTime.Parse(dsr.DrugBeginTime.ToString()); + double totalMinutes = ts.TotalMinutes; + if (dsr.DrugEndTime != null) + { + dsr.DrugEndTime = dsr.DrugEndTime.AddMinutes(totalMinutes); + } + dsr.DrugBeginTime = BeginTime; + dsr.ReDraw(sender); + } + ZedControl.Refresh(); + break; + } + } + } + //} } public override void MouseUp(ZedGraphControl sender, MouseEventArgs e) { + if (OpeRecord == null) return; + //if (ConfigSource.sysypyd != null && ConfigSource.sysypyd.Value.ToString() == "1") + //{ + double y = Convert.ToDouble(Convert.ToDouble(e.Y) / Convert.ToDouble(ZedControl.Height)); + double x = Convert.ToDouble(Convert.ToDouble(e.X) / Convert.ToDouble(ZedControl.Width)); + + bool isDrugRange = isAddDrugRange(sender, x, y); + if (isDrugRange && e.Button == System.Windows.Forms.MouseButtons.Left) + { + //把移动药品强制保存 + if (myOpeRecord != null && myOpeRecord.FactDrugList != null) + { + DateTime currentTime = reDrugsTime(sender as ZedGraphControl, e); + foreach (FactDrug dsr in myOpeRecord.FactDrugList) + { + if (dsr.IsSelected) + { + dsr.IsSelected = false; + int reValue = FactDrug.UpdateEntity(dsr); + if (reValue > 0) + { + reDrawDrug(); + } + else + { + ZedControl.Refresh(); + } + break; + } + } + } + } + //} } public override void MouseDoubleClick(ZedGraphControl sender, MouseEventArgs e) { @@ -95,7 +197,6 @@ namespace DrawGraph DateTime BeginTime = reDrugsTime(sender as ZedGraphControl, e); List record = new List(); double addDragRowHeight = (lines.RealEndY - lines.RealY) / RowsCount; - foreach (FactDrug dsr in myOpeRecord.FactDrugList) { if (dsr.isEqualRow(y, BeginTime, addDragRowHeight)) @@ -105,56 +206,35 @@ namespace DrawGraph } if (record.Count > 0) { - myOpeRecord.SpeedyDrugsMethod(record); + List records = new List(); + foreach (var fact in record) + { + if (fact.ParentId == 0) + { + records.Add(fact); + foreach (var item in myOpeRecord.FactDrugList) + { + if (item.ParentId == fact.Id) + { + records.Add(item); + } + } + } + else + { + foreach (var item in myOpeRecord.FactDrugList) + { + if (item.Id == fact.ParentId || item.ParentId == fact.ParentId) + { + records.Add(item); + } + } + } + } + if (records.Count > 0) + myOpeRecord.SpeedyDrugsMethod(records); } } - - } - } - /// - /// 返回是否进入加药范围 - /// - /// - /// - private bool isAddDrugRange(ZedGraphControl sender, double x, double y) - { - bool reValue = false; - if (y > lines.RealY && y < lines.RealEndY) - { - if (x > H3pack.RealX && x < lines.RealEndX) - { - reValue = true; - } - } - return reValue; - } - private DateTime reDrugsTime(ZedGraphControl sender, MouseEventArgs e) - { - try - { - double x, x2; - double[] y; - double[] y2; - - double yTemp = ZedControl.Height * lines.RealEndY + 80; - PointF mousePt = new PointF(e.X, float.Parse(yTemp.ToString())); - - ZedGraphControl sender1 = sender as ZedGraphControl; - GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); - if (pane != null) - { - pane.ReverseTransform(mousePt, out x, out x2, out y, out y2); - XDate xd = new XDate(x); - return xd.DateTime; - } - else - { - return DateTime.Now; - } - } - catch (Exception) - { - return DateTime.Now; } } public override void KeyUp(ZedGraphControl sender, KeyEventArgs e) @@ -165,6 +245,7 @@ namespace DrawGraph #region 绑定区域数据 public override void Bind() { + aSyncTip = TipBox.CreateInstance("async"); init(); DrawDrug(); } @@ -415,6 +496,52 @@ namespace DrawGraph } return isSap; } + /// + /// 返回是否进入加药范围 + /// + /// + /// + private bool isAddDrugRange(ZedGraphControl sender, double x, double y) + { + bool reValue = false; + if (y > lines.RealY && y < lines.RealEndY) + { + if (x > H3pack.RealX && x < lines.RealEndX) + { + reValue = true; + } + } + return reValue; + } + private DateTime reDrugsTime(ZedGraphControl sender, MouseEventArgs e) + { + try + { + double x, x2; + double[] y; + double[] y2; + + //double yTemp = ZedControl.Height * lines.RealEndY + 80; + PointF mousePt = new PointF(e.X, 1000); + + ZedGraphControl sender1 = sender as ZedGraphControl; + GraphPane pane = sender1.MasterPane.FindChartRect(mousePt); + if (pane != null) + { + pane.ReverseTransform(mousePt, out x, out x2, out y, out y2); + XDate xd = new XDate(x); + return xd.DateTime; + } + else + { + return DateTime.Now; + } + } + catch (Exception) + { + return DateTime.Now; + } + } #endregion #region 当前区域公用事件方法 diff --git a/DrawGraph/AreaManage/TokenEditorManage.cs b/DrawGraph/AreaManage/TokenEditorManage.cs index abf2141..ee5eeb5 100644 --- a/DrawGraph/AreaManage/TokenEditorManage.cs +++ b/DrawGraph/AreaManage/TokenEditorManage.cs @@ -47,6 +47,12 @@ namespace DrawGraph DataTable dt = DBManage.GetDictDataTable(OpeRecord, txt.Text, aEdit.ControlTitleText, PersonType, (IsSearch == true ? aEdit.PackValue : "")); tokenEditor.Tokens.Clear(); + //for (int i = tokenEditor.Tokens.Count - 1; i >= 0; i--) + //{ + // tokenEditor.Tokens.Remove(tokenEditor.Tokens[i]); + //} + //DevComponents.DotNetBar.Controls.EditToken edit1 = new DevComponents.DotNetBar.Controls.EditToken("", "无"); + //tokenEditor.Tokens.Add(edit1); foreach (DataRow item in dt.Rows) { DevComponents.DotNetBar.Controls.EditToken edit = new DevComponents.DotNetBar.Controls.EditToken(item["Id"].ToString(), item["Name"].ToString()); @@ -112,12 +118,19 @@ namespace DrawGraph public static string GetWorkerTags(string text, string value) { string result = ""; - string sql = string.Format("select Name from Person where Id = '{0}'", value); - object dt = DBHelper.ExecuteScalar(sql); - if (dt != null) + try { - string name = dt.ToString(); - result = text.Replace(name, "");//.Replace(",", ",") + string sql = string.Format("select Name from Person where Id = '{0}'", value); + object dt = DBHelper.ExecuteScalar(sql); + if (dt != null) + { + string name = dt.ToString(); + result = text.Replace(name, "");//.Replace(",", ",") + } + } + catch (System.Exception) + { + result = ""; } return result; }