diff --git a/AIMS/DocManager/frmDocument3.cs b/AIMS/DocManager/frmDocument3.cs index 1f94baa..03c6308 100644 --- a/AIMS/DocManager/frmDocument3.cs +++ b/AIMS/DocManager/frmDocument3.cs @@ -421,8 +421,8 @@ namespace AIMS.OperationAfter.UI doc.CloseP += new ucDocument.CloseParent(CloseTab); doc.Parent = c; doc.Dock = DockStyle.Fill; - doc.Show(); - doc.tsbSaveAndPrint_Click(null, null); + doc.Show(); + doc.myEditControl.ExecuteCommand("FilePrint", false, null); } } diff --git a/AIMS/FormMainManage.cs b/AIMS/FormMainManage.cs index e8c953d..7b80ce5 100644 --- a/AIMS/FormMainManage.cs +++ b/AIMS/FormMainManage.cs @@ -160,6 +160,8 @@ namespace AIMS sideNavItem.Symbol = "\uf15b"; if (menuSec.Name == "»Ö¸´¼Ç¼") sideNavItem.Symbol = "\uf15c"; + if (menuSec.Name == "ÓÕµ¼¼Ç¼") + sideNavItem.Symbol = "\uf044"; if (menuSec.Name == "ÕòÍ´¼Ç¼") sideNavItem.Symbol = "\uf044"; if (menuSec.Name == "¸´ËռǼ") diff --git a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs index f0ccbb0..320b907 100644 --- a/AIMS/OperationAanesthesia/DrawAnasReordBill.cs +++ b/AIMS/OperationAanesthesia/DrawAnasReordBill.cs @@ -27,8 +27,8 @@ namespace AIMS.OperationAanesthesia if (reVal) { templateManage.DrawArea(); - DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.355, 0.053, Zgc, DrawGraph.ZUtil.Font18); - DrawGraph.ZUtil.DrawText("麻醉å¤è‹å®¤è®°å½•å•", 0.39, 0.08, Zgc, DrawGraph.ZUtil.Font18); + //DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.355, 0.053, Zgc, DrawGraph.ZUtil.Font18); + //DrawGraph.ZUtil.DrawText("麻醉å¤è‹å®¤è®°å½•å•", 0.39, 0.08, Zgc, DrawGraph.ZUtil.Font18); #region 设置界é¢è‡ªé€‚应 //在此处å¯éšæ—¶è®¾ç½®æ¿å­çš„属性 @@ -115,8 +115,8 @@ namespace AIMS.OperationAanesthesia if (reVal) { templateManage.DrawArea(); - DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.018, Zgc, DrawGraph.ZUtil.Font16); - DrawGraph.ZUtil.DrawText(" 麻 醉 è®° 录", 0.42, 0.04, Zgc, DrawGraph.ZUtil.Font14); + //DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.018, Zgc, DrawGraph.ZUtil.Font16); + //DrawGraph.ZUtil.DrawText(" 麻 醉 è®° 录", 0.42, 0.04, Zgc, DrawGraph.ZUtil.Font14); #region 设置界é¢è‡ªé€‚应 //在此处å¯éšæ—¶è®¾ç½®æ¿å­çš„属性 @@ -162,8 +162,8 @@ namespace AIMS.OperationAanesthesia if (reVal) { templateManage2.DrawArea(); - DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.038, Zgc2, DrawGraph.ZUtil.Font16); - DrawGraph.ZUtil.DrawText(" 麻 醉 è®° 录", 0.42, 0.065, Zgc2, DrawGraph.ZUtil.Font14); + //DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.038, Zgc2, DrawGraph.ZUtil.Font16); + //DrawGraph.ZUtil.DrawText(" 麻 醉 è®° 录", 0.42, 0.065, Zgc2, DrawGraph.ZUtil.Font14); templateManage2.ZedControl.Width = templateManage.ZedControl.Width; templateManage2.ZedControl.Height = templateManage.ZedControl.Height; int LocationY = Convert.ToInt32(templateManage2.ZedControl.Height * 0.065); @@ -199,8 +199,8 @@ namespace AIMS.OperationAanesthesia if (reVal) { templateManage.DrawArea(); - DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.028, Zgc, DrawGraph.ZUtil.Font16); - DrawGraph.ZUtil.DrawText("镇é™é•‡ç—›è¯„ä¼°ã€è®°å½•å•", 0.36, 0.055, Zgc, DrawGraph.ZUtil.Font14); + //DrawGraph.ZUtil.DrawText(AIMSExtension.PublicMethod.HospitalName, 0.385, 0.028, Zgc, DrawGraph.ZUtil.Font16); + //DrawGraph.ZUtil.DrawText("镇é™é•‡ç—›è¯„ä¼°ã€è®°å½•å•", 0.36, 0.055, Zgc, DrawGraph.ZUtil.Font14); #region 设置界é¢è‡ªé€‚应 //在此处å¯éšæ—¶è®¾ç½®æ¿å­çš„属性 diff --git a/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs b/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs index 1a9289b..9e0ec9b 100644 --- a/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs +++ b/AIMS/OperationAanesthesia/frmAanesthesiaRecord.cs @@ -1444,6 +1444,26 @@ namespace AIMS.OperationAanesthesia } } + foreach (PhysioDataConfig addPP in _record.PhysioAnesConfigList) + { + string key = addPP.Name; + string value = addPP.Enname; + if (addPP.IsValid == false) continue; + if (value == null || value == "") continue; + + int minMinutes = -5; + DataTable dtPhysioData = BOperationRecord.getPhysioDataByTimeName(NowRoom.Ip, value, InsertTime.AddMinutes(minMinutes), InsertTime.AddSeconds(1)); + if (dtPhysioData != null && dtPhysioData.Rows.Count > 0) + { + foreach (DataRow dr in dtPhysioData.Rows) + { + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, dtTime, dr["ParamValue"].ToString()); + physioDatas.Add(pdTemp); + continue; + } + } + } + //有有创清空无创 foreach (var pdTemp in physioDatas) { @@ -1472,9 +1492,16 @@ namespace AIMS.OperationAanesthesia foreach (var pdTemp in physioDatas) { if (pdTemp.Value < 0) continue; - PhysioDataConfig addPP = _record.PhysioConfigList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList()[0]; - addPP.AddPointItem(pdTemp); - date++; + List addPP = _record.PhysioConfigList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList(); + if (addPP == null || addPP.Count == 0) + { + addPP = _record.PhysioAnesConfigList.Where(a => pdTemp.PhysioDataConfigId == a.Id).ToList(); + } + if (addPP != null && addPP.Count > 0) + { + addPP[0].AddPointItem(pdTemp); + date++; + } } if (dtTime > _record.lastPageBegin && ((TimeSpan)(dtTime - _record.lastPageBegin)).TotalHours < 24 && date > 0) @@ -1824,19 +1851,19 @@ namespace AIMS.OperationAanesthesia } } } - //foreach (var addPP in _record.PhysioAnesConfigList) - //{ - // if (addPP.IsValid == false) continue; - // foreach (DataRow dr in dtPhysioData.Rows) - // { - // if (dr["ParameterName"] != null && dr["ParameterName"].ToString() != "" && dr["ParameterName"].ToString().Equals(addPP.Id.ToString())) - // { - // DateTime RecordTime = DateTime.Parse(dr["InsertTime"].ToString()); - // PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, RecordTime, dr["ParamValue"].ToString()); - // addPP.AddPointItem(pdTemp); - // } - // } - //} + foreach (var addPP in _record.PhysioAnesConfigList) + { + if (addPP.IsValid == false) continue; + foreach (DataRow dr in dtPhysioData.Rows) + { + if (dr["ParameterName"] != null && dr["ParameterName"].ToString() != "" && dr["ParameterName"].ToString().Equals(addPP.Id.ToString())) + { + DateTime RecordTime = DateTime.Parse(dr["InsertTime"].ToString()); + PhysioData pdTemp = PhysioDataConfig.newPhysioData(addPP, _record.Id.Value, RecordTime, dr["ParamValue"].ToString()); + addPP.AddPointItem(pdTemp); + } + } + } } } private void UpdatePhysioDataResp() diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs index ff7fdef..1f556f7 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.Designer.cs @@ -29,37 +29,117 @@ private void InitializeComponent() { this.components = new System.ComponentModel.Container(); - 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 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 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 dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmFactDrugNew)); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = 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.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.superTabControlPanel4 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.dgvDrugsSQ = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.dataGridViewImageColumn5 = new System.Windows.Forms.DataGridViewImageColumn(); + this.dataGridViewTextBoxColumn37 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn38 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn39 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboEditBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn17 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn40 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn18 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn19 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn20 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn21 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewDateTimeInputColumn1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.dataGridViewTextBoxColumn43 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewDateTimeInputColumn2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.dataGridViewTextBoxColumn44 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.P1 = new DevComponents.DotNetBar.SuperTabItem(); - this.superTabControlPanel5 = new DevComponents.DotNetBar.SuperTabControlPanel(); - this.dgvDrugsSZ = new DevComponents.DotNetBar.Controls.DataGridViewX(); - this.P2 = new DevComponents.DotNetBar.SuperTabItem(); this.superTabControlPanel6 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.dgvDrugsSH = new DevComponents.DotNetBar.Controls.DataGridViewX(); + this.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); + this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboEditBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewComboBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn25 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn26 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewDateTimeInputColumn5 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewDateTimeInputColumn6 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); + 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.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.superTabControlPanel1 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.superTabControlPanel2 = new DevComponents.DotNetBar.SuperTabControlPanel(); this.panelleft = new System.Windows.Forms.Panel(); @@ -89,70 +169,18 @@ this.dgvDosage = new System.Windows.Forms.DataGridView(); this.Dosage = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.imageList1 = new System.Windows.Forms.ImageList(this.components); - this.dataGridViewImageColumn5 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn37 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn38 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn39 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboEditBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn17 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn40 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn18 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn41 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn19 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn42 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn20 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn21 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn22 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewDateTimeInputColumn1 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn43 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewDateTimeInputColumn2 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn44 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - 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.dataGridViewImageColumn2 = new System.Windows.Forms.DataGridViewImageColumn(); - this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboEditBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewTextBoxColumn14 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewComboBoxColumn8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn25 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewComboBoxColumn26 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.dataGridViewDateTimeInputColumn5 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewDateTimeInputColumn6 = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.panel1.SuspendLayout(); this.panel5.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).BeginInit(); this.tabDrugs.SuspendLayout(); + this.superTabControlPanel3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).BeginInit(); this.superTabControlPanel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSQ)).BeginInit(); - this.superTabControlPanel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).BeginInit(); this.superTabControlPanel6.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).BeginInit(); + this.superTabControlPanel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).BeginInit(); this.panelleft.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).BeginInit(); this.panel2.SuspendLayout(); @@ -200,6 +228,7 @@ this.tabDrugs.ControlBox.SubItems.AddRange(new DevComponents.DotNetBar.BaseItem[] { this.tabDrugs.ControlBox.MenuBox, this.tabDrugs.ControlBox.CloseBox}); + this.tabDrugs.Controls.Add(this.superTabControlPanel3); this.tabDrugs.Controls.Add(this.superTabControlPanel6); this.tabDrugs.Controls.Add(this.superTabControlPanel5); this.tabDrugs.Controls.Add(this.superTabControlPanel4); @@ -216,12 +245,307 @@ this.tabDrugs.TabFont = new System.Drawing.Font("微软雅黑", 10.5F); this.tabDrugs.TabIndex = 464; this.tabDrugs.Tabs.AddRange(new DevComponents.DotNetBar.BaseItem[] { + this.P0, this.P1, this.P2, this.P3}); this.tabDrugs.TabStyle = DevComponents.DotNetBar.eSuperTabStyle.Office2010BackstageBlue; this.tabDrugs.SelectedTabChanged += new System.EventHandler(this.tabDrugs_SelectedTabChanged); // + // 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; + dataGridViewCellStyle24.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsYD.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle24; + this.dgvDrugsYD.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsYD.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle25.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle25.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle25.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle25.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle25.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle25.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle25.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsYD.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle25; + 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}); + dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle27.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle27.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle27.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsYD.DefaultCellStyle = dataGridViewCellStyle27; + 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"; + dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle28.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsYD.RowHeadersDefaultCellStyle = dataGridViewCellStyle28; + 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 + // + dataGridViewCellStyle26.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn17.DefaultCellStyle = dataGridViewCellStyle26; + 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 = "麻醉诱导用è¯"; + // // superTabControlPanel4 // this.superTabControlPanel4.Controls.Add(this.dgvDrugsSQ); @@ -238,18 +562,18 @@ this.dgvDrugsSQ.AllowUserToAddRows = false; this.dgvDrugsSQ.AllowUserToResizeColumns = false; this.dgvDrugsSQ.AllowUserToResizeRows = false; - dataGridViewCellStyle11.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle11; + dataGridViewCellStyle39.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsSQ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle39; this.dgvDrugsSQ.BackgroundColor = System.Drawing.Color.White; this.dgvDrugsSQ.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.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle12; + dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle40.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSQ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle40; this.dgvDrugsSQ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dgvDrugsSQ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridViewImageColumn5, @@ -270,14 +594,14 @@ this.dataGridViewTextBoxColumn43, this.dataGridViewDateTimeInputColumn2, this.dataGridViewTextBoxColumn44}); - 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.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle42.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle42.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle42.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle42.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSQ.DefaultCellStyle = dataGridViewCellStyle42; this.dgvDrugsSQ.Dock = System.Windows.Forms.DockStyle.Fill; this.dgvDrugsSQ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; this.dgvDrugsSQ.EnableHeadersVisualStyles = false; @@ -286,14 +610,14 @@ this.dgvDrugsSQ.Margin = new System.Windows.Forms.Padding(0); this.dgvDrugsSQ.MultiSelect = false; this.dgvDrugsSQ.Name = "dgvDrugsSQ"; - 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.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle43.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSQ.RowHeadersDefaultCellStyle = dataGridViewCellStyle43; this.dgvDrugsSQ.RowHeadersVisible = false; this.dgvDrugsSQ.RowTemplate.Height = 25; this.dgvDrugsSQ.ShowCellErrors = false; @@ -302,509 +626,6 @@ this.dgvDrugsSQ.TabIndex = 16; this.dgvDrugsSQ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); // - // P1 - // - this.P1.AttachedControl = this.superTabControlPanel4; - this.P1.GlobalItem = false; - this.P1.Name = "P1"; - this.P1.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.TabIndex = 0; - this.superTabControlPanel5.TabItem = this.P2; - this.superTabControlPanel5.Visible = false; - // - // dgvDrugsSZ - // - this.dgvDrugsSZ.AllowUserToAddRows = false; - this.dgvDrugsSZ.AllowUserToResizeColumns = false; - this.dgvDrugsSZ.AllowUserToResizeRows = false; - dataGridViewCellStyle6.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsSZ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6; - this.dgvDrugsSZ.BackgroundColor = System.Drawing.Color.White; - this.dgvDrugsSZ.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.dgvDrugsSZ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.dgvDrugsSZ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvDrugsSZ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.dataGridViewImageColumn1, - this.dataGridViewTextBoxColumn1, - this.dataGridViewTextBoxColumn2, - this.dataGridViewTextBoxColumn3, - this.dataGridViewComboEditBoxColumn2, - this.dataGridViewComboBoxColumn1, - this.dataGridViewTextBoxColumn4, - this.dataGridViewComboBoxColumn2, - this.dataGridViewTextBoxColumn5, - this.dataGridViewComboBoxColumn3, - this.dataGridViewTextBoxColumn6, - this.dataGridViewComboBoxColumn4, - this.dataGridViewComboBoxColumn23, - this.dataGridViewComboBoxColumn24, - this.dataGridViewDateTimeInputColumn3, - this.dataGridViewTextBoxColumn7, - this.dataGridViewDateTimeInputColumn4, - this.dataGridViewTextBoxColumn8}); - 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.dgvDrugsSZ.DefaultCellStyle = dataGridViewCellStyle9; - this.dgvDrugsSZ.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvDrugsSZ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvDrugsSZ.EnableHeadersVisualStyles = false; - this.dgvDrugsSZ.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); - this.dgvDrugsSZ.Location = new System.Drawing.Point(0, 0); - this.dgvDrugsSZ.Margin = new System.Windows.Forms.Padding(0); - this.dgvDrugsSZ.MultiSelect = false; - this.dgvDrugsSZ.Name = "dgvDrugsSZ"; - 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.dgvDrugsSZ.RowHeadersDefaultCellStyle = dataGridViewCellStyle10; - 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.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 = "手术用è¯"; - // - // 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; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.MintCream; - this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.dgvDrugsSH.BackgroundColor = System.Drawing.Color.White; - this.dgvDrugsSH.BorderStyle = System.Windows.Forms.BorderStyle.None; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - 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}); - 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.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle4; - 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"; - 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.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle5; - 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); - // - // P3 - // - this.P3.AttachedControl = this.superTabControlPanel6; - this.P3.GlobalItem = false; - this.P3.Name = "P3"; - this.P3.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.HorizontalText = false; - 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; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle16.BackColor = System.Drawing.Color.White; - 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.HighlightText; - dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle16; - 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}); - dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle17.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.dgvYP.DefaultCellStyle = dataGridViewCellStyle17; - 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; - dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle18.BackColor = System.Drawing.Color.White; - dataGridViewCellStyle18.Font = new System.Drawing.Font("宋体", 9F, 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.HighlightText; - dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvDosage.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; - 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"); - // // dataGridViewImageColumn5 // this.dataGridViewImageColumn5.HeaderText = " "; @@ -816,8 +637,8 @@ // // dataGridViewTextBoxColumn37 // - dataGridViewCellStyle13.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle13; + dataGridViewCellStyle41.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn37.DefaultCellStyle = dataGridViewCellStyle41; this.dataGridViewTextBoxColumn37.HeaderText = "组"; this.dataGridViewTextBoxColumn37.Name = "dataGridViewTextBoxColumn37"; this.dataGridViewTextBoxColumn37.Width = 30; @@ -1013,213 +834,92 @@ this.dataGridViewTextBoxColumn44.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.dataGridViewTextBoxColumn44.Width = 50; // - // dataGridViewImageColumn1 - // - this.dataGridViewImageColumn1.HeaderText = " "; - this.dataGridViewImageColumn1.Image = global::AIMS.Properties.Resources.SYSCRL; - this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; - this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; - this.dataGridViewImageColumn1.Width = 30; - // - // dataGridViewTextBoxColumn1 - // - dataGridViewCellStyle8.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle8; - this.dataGridViewTextBoxColumn1.HeaderText = "组"; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.Width = 30; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.HeaderText = "类型"; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.Visible = false; - this.dataGridViewTextBoxColumn2.Width = 60; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn3.HeaderText = "åç§°"; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboEditBoxColumn2 - // - this.dataGridViewComboEditBoxColumn2.HeaderText = "备注"; - this.dataGridViewComboEditBoxColumn2.Name = "dataGridViewComboEditBoxColumn2"; - this.dataGridViewComboEditBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - // - // dataGridViewComboBoxColumn1 - // - this.dataGridViewComboBoxColumn1.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn1.HeaderText = "途径"; - this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1"; - this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn1.Width = 85; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.HeaderText = "浓度"; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn4.Width = 45; - // - // dataGridViewComboBoxColumn2 - // - this.dataGridViewComboBoxColumn2.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn2.HeaderText = "浓度å•ä½"; - this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2"; - this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn2.Width = 75; - // - // dataGridViewTextBoxColumn5 - // - this.dataGridViewTextBoxColumn5.HeaderText = "速度"; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn5.Width = 45; - // - // dataGridViewComboBoxColumn3 - // - this.dataGridViewComboBoxColumn3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn3.HeaderText = "速度å•ä½"; - this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3"; - this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn3.Width = 85; - // - // dataGridViewTextBoxColumn6 - // - this.dataGridViewTextBoxColumn6.HeaderText = "用é‡"; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn6.Width = 60; - // - // dataGridViewComboBoxColumn4 - // - this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn4.HeaderText = "å•ä½"; - this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4"; - this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn4.Width = 60; - // - // dataGridViewComboBoxColumn23 - // - this.dataGridViewComboBoxColumn23.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn23.HeaderText = "血型"; - this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23"; - this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn23.Width = 45; - // - // dataGridViewComboBoxColumn24 - // - this.dataGridViewComboBoxColumn24.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn24.HeaderText = "åŠ è¯æ–¹å¼"; - this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24"; - this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn24.Visible = false; - this.dataGridViewComboBoxColumn24.Width = 80; - // - // dataGridViewDateTimeInputColumn3 - // - this.dataGridViewDateTimeInputColumn3.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn3.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn3.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn3.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn3.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn3.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn3.HeaderText = "开始时间"; - this.dataGridViewDateTimeInputColumn3.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn3.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn3.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn3.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn3.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn3.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn3.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn3.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn3.Name = "dataGridViewDateTimeInputColumn3"; - this.dataGridViewDateTimeInputColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn3.Width = 80; - // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.HeaderText = "æŒç»­"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.Width = 45; - // - // dataGridViewDateTimeInputColumn4 - // - this.dataGridViewDateTimeInputColumn4.AutoAdvance = true; - // - // - // - this.dataGridViewDateTimeInputColumn4.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; - this.dataGridViewDateTimeInputColumn4.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; - this.dataGridViewDateTimeInputColumn4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn4.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; - this.dataGridViewDateTimeInputColumn4.ButtonDropDown.Visible = true; - this.dataGridViewDateTimeInputColumn4.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; - this.dataGridViewDateTimeInputColumn4.HeaderText = "ç»“æŸæ—¶é—´"; - this.dataGridViewDateTimeInputColumn4.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; - // - // - // - // - // - // - this.dataGridViewDateTimeInputColumn4.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn4.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); - // - // - // - this.dataGridViewDateTimeInputColumn4.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn4.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); - this.dataGridViewDateTimeInputColumn4.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; - // - // - // - this.dataGridViewDateTimeInputColumn4.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.dataGridViewDateTimeInputColumn4.MonthCalendar.Visible = false; - this.dataGridViewDateTimeInputColumn4.Name = "dataGridViewDateTimeInputColumn4"; - this.dataGridViewDateTimeInputColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewDateTimeInputColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewDateTimeInputColumn4.Width = 80; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewTextBoxColumn8.HeaderText = "通路"; - this.dataGridViewTextBoxColumn8.Items.AddRange(new object[] { - "", - "1", - "2", - "3", - "4"}); - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn8.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewTextBoxColumn8.Width = 50; + // P1 + // + this.P1.AttachedControl = this.superTabControlPanel4; + this.P1.GlobalItem = false; + this.P1.Name = "P1"; + this.P1.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; + dataGridViewCellStyle29.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsSH.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle29; + this.dgvDrugsSH.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsSH.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle30.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSH.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30; + 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}); + dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle32.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle32.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle32.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSH.DefaultCellStyle = dataGridViewCellStyle32; + 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"; + dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle33.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle33.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle33.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle33.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle33.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSH.RowHeadersDefaultCellStyle = dataGridViewCellStyle33; + 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 // @@ -1232,8 +932,8 @@ // // dataGridViewTextBoxColumn9 // - dataGridViewCellStyle3.ForeColor = System.Drawing.Color.Red; - this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle31.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn9.DefaultCellStyle = dataGridViewCellStyle31; this.dataGridViewTextBoxColumn9.HeaderText = "组"; this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; this.dataGridViewTextBoxColumn9.Width = 30; @@ -1429,6 +1129,630 @@ 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 = "术åŽé•‡ç—›è¯"; + // + // 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.TabIndex = 0; + this.superTabControlPanel5.TabItem = this.P2; + this.superTabControlPanel5.Visible = false; + // + // dgvDrugsSZ + // + this.dgvDrugsSZ.AllowUserToAddRows = false; + this.dgvDrugsSZ.AllowUserToResizeColumns = false; + this.dgvDrugsSZ.AllowUserToResizeRows = false; + dataGridViewCellStyle34.BackColor = System.Drawing.Color.MintCream; + this.dgvDrugsSZ.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle34; + this.dgvDrugsSZ.BackgroundColor = System.Drawing.Color.White; + this.dgvDrugsSZ.BorderStyle = System.Windows.Forms.BorderStyle.None; + dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle35.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSZ.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle35; + this.dgvDrugsSZ.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvDrugsSZ.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewImageColumn1, + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2, + this.dataGridViewTextBoxColumn3, + this.dataGridViewComboEditBoxColumn2, + this.dataGridViewComboBoxColumn1, + this.dataGridViewTextBoxColumn4, + this.dataGridViewComboBoxColumn2, + this.dataGridViewTextBoxColumn5, + this.dataGridViewComboBoxColumn3, + this.dataGridViewTextBoxColumn6, + this.dataGridViewComboBoxColumn4, + this.dataGridViewComboBoxColumn23, + this.dataGridViewComboBoxColumn24, + this.dataGridViewDateTimeInputColumn3, + this.dataGridViewTextBoxColumn7, + this.dataGridViewDateTimeInputColumn4, + this.dataGridViewTextBoxColumn8}); + dataGridViewCellStyle37.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle37.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle37.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle37.ForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle37.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle37.SelectionForeColor = System.Drawing.Color.Black; + dataGridViewCellStyle37.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvDrugsSZ.DefaultCellStyle = dataGridViewCellStyle37; + this.dgvDrugsSZ.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvDrugsSZ.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvDrugsSZ.EnableHeadersVisualStyles = false; + this.dgvDrugsSZ.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); + this.dgvDrugsSZ.Location = new System.Drawing.Point(0, 0); + this.dgvDrugsSZ.Margin = new System.Windows.Forms.Padding(0); + this.dgvDrugsSZ.MultiSelect = false; + this.dgvDrugsSZ.Name = "dgvDrugsSZ"; + dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle38.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle38.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDrugsSZ.RowHeadersDefaultCellStyle = dataGridViewCellStyle38; + 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.TabIndex = 16; + this.dgvDrugsSZ.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvDrugs_DataError); + // + // dataGridViewImageColumn1 + // + this.dataGridViewImageColumn1.HeaderText = " "; + this.dataGridViewImageColumn1.Image = global::AIMS.Properties.Resources.SYSCRL; + this.dataGridViewImageColumn1.Name = "dataGridViewImageColumn1"; + this.dataGridViewImageColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewImageColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Programmatic; + this.dataGridViewImageColumn1.Width = 30; + // + // dataGridViewTextBoxColumn1 + // + dataGridViewCellStyle36.ForeColor = System.Drawing.Color.Red; + this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle36; + this.dataGridViewTextBoxColumn1.HeaderText = "组"; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.Width = 30; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.HeaderText = "类型"; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.Visible = false; + this.dataGridViewTextBoxColumn2.Width = 60; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn3.HeaderText = "åç§°"; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboEditBoxColumn2 + // + this.dataGridViewComboEditBoxColumn2.HeaderText = "备注"; + this.dataGridViewComboEditBoxColumn2.Name = "dataGridViewComboEditBoxColumn2"; + this.dataGridViewComboEditBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + // + // dataGridViewComboBoxColumn1 + // + this.dataGridViewComboBoxColumn1.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn1.HeaderText = "途径"; + this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1"; + this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn1.Width = 85; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.HeaderText = "浓度"; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn4.Width = 45; + // + // dataGridViewComboBoxColumn2 + // + this.dataGridViewComboBoxColumn2.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn2.HeaderText = "浓度å•ä½"; + this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2"; + this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn2.Width = 75; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.HeaderText = "速度"; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn5.Width = 45; + // + // dataGridViewComboBoxColumn3 + // + this.dataGridViewComboBoxColumn3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn3.HeaderText = "速度å•ä½"; + this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3"; + this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn3.Width = 85; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.HeaderText = "用é‡"; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn6.Width = 60; + // + // dataGridViewComboBoxColumn4 + // + this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn4.HeaderText = "å•ä½"; + this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4"; + this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn4.Width = 60; + // + // dataGridViewComboBoxColumn23 + // + this.dataGridViewComboBoxColumn23.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn23.HeaderText = "血型"; + this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23"; + this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn23.Width = 45; + // + // dataGridViewComboBoxColumn24 + // + this.dataGridViewComboBoxColumn24.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn24.HeaderText = "åŠ è¯æ–¹å¼"; + this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24"; + this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn24.Visible = false; + this.dataGridViewComboBoxColumn24.Width = 80; + // + // dataGridViewDateTimeInputColumn3 + // + this.dataGridViewDateTimeInputColumn3.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn3.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn3.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn3.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn3.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn3.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn3.HeaderText = "开始时间"; + this.dataGridViewDateTimeInputColumn3.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Center; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn3.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn3.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn3.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn3.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn3.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn3.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn3.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn3.Name = "dataGridViewDateTimeInputColumn3"; + this.dataGridViewDateTimeInputColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn3.Width = 80; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.HeaderText = "æŒç»­"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.Width = 45; + // + // dataGridViewDateTimeInputColumn4 + // + this.dataGridViewDateTimeInputColumn4.AutoAdvance = true; + // + // + // + this.dataGridViewDateTimeInputColumn4.BackgroundStyle.BackColor = System.Drawing.SystemColors.Window; + this.dataGridViewDateTimeInputColumn4.BackgroundStyle.Class = "DataGridViewDateTimeBorder"; + this.dataGridViewDateTimeInputColumn4.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn4.BackgroundStyle.TextColor = System.Drawing.SystemColors.WindowText; + this.dataGridViewDateTimeInputColumn4.ButtonDropDown.Visible = true; + this.dataGridViewDateTimeInputColumn4.Format = DevComponents.Editors.eDateTimePickerFormat.ShortTime; + this.dataGridViewDateTimeInputColumn4.HeaderText = "ç»“æŸæ—¶é—´"; + this.dataGridViewDateTimeInputColumn4.InputHorizontalAlignment = DevComponents.Editors.eHorizontalAlignment.Left; + // + // + // + // + // + // + this.dataGridViewDateTimeInputColumn4.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn4.MonthCalendar.CalendarDimensions = new System.Drawing.Size(1, 1); + // + // + // + this.dataGridViewDateTimeInputColumn4.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn4.MonthCalendar.DisplayMonth = new System.DateTime(2018, 1, 1, 0, 0, 0, 0); + this.dataGridViewDateTimeInputColumn4.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday; + // + // + // + this.dataGridViewDateTimeInputColumn4.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.dataGridViewDateTimeInputColumn4.MonthCalendar.Visible = false; + this.dataGridViewDateTimeInputColumn4.Name = "dataGridViewDateTimeInputColumn4"; + this.dataGridViewDateTimeInputColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewDateTimeInputColumn4.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewDateTimeInputColumn4.Width = 80; + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewTextBoxColumn8.HeaderText = "通路"; + this.dataGridViewTextBoxColumn8.Items.AddRange(new object[] { + "", + "1", + "2", + "3", + "4"}); + 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 = "手术用è¯"; + // + // 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.HorizontalText = false; + 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; + dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle44.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle44.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvYP.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle44; + 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}); + dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle45.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgvYP.DefaultCellStyle = dataGridViewCellStyle45; + 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; + dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle46.BackColor = System.Drawing.Color.White; + dataGridViewCellStyle46.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle46.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvDosage.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46; + 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"); + // // frmFactDrugNew // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -1452,12 +1776,14 @@ this.panel5.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.tabDrugs)).EndInit(); this.tabDrugs.ResumeLayout(false); + this.superTabControlPanel3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsYD)).EndInit(); this.superTabControlPanel4.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSQ)).EndInit(); - this.superTabControlPanel5.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).EndInit(); this.superTabControlPanel6.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSH)).EndInit(); + this.superTabControlPanel5.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgvDrugsSZ)).EndInit(); this.panelleft.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.TabSelDrugs)).EndInit(); this.panel2.ResumeLayout(false); @@ -1564,5 +1890,26 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn43; private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn2; 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; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn19; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn20; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn9; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn21; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn10; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn22; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn11; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn23; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn12; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn13; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn14; + private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn7; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn24; + private DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn dataGridViewDateTimeInputColumn8; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn15; + private DevComponents.DotNetBar.SuperTabItem P0; } } \ No newline at end of file diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.cs b/AIMS/OperationAanesthesia/frmFactDrugNew.cs index f258ad1..c7c2150 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.cs +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.cs @@ -17,7 +17,7 @@ namespace AIMS.PublicUI.UI public partial class frmFactDrugNew : OfficeForm { public static object valueTime; - public int currentTabIndex = 1; + public int currentTabIndex = 2; public bool isCVhageAllSapDose = false; public int DrugTypeId; @@ -38,7 +38,7 @@ namespace AIMS.PublicUI.UI /// /// 图表控件 /// - public ZedGraphControl zgcAnaesRecord; + public ZedGraphControl zgcAnaesRecord; /// /// é€‰æ‹©é¡¹ç¼–å· /// @@ -73,6 +73,10 @@ namespace AIMS.PublicUI.UI private void SetDGVNotSort() { + for (int i = 0; i < this.dgvDrugsYD.Columns.Count; i++) + { + dgvDrugsYD.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; + } for (int i = 0; i < this.dgvDrugsSQ.Columns.Count; i++) { dgvDrugsSQ.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; @@ -420,10 +424,10 @@ namespace AIMS.PublicUI.UI { _dataGridView.Rows.Clear(); } - for (int i = 0; i < dgvDrugsSQ.Columns.Count; i++) - { - dgvDrugsSQ.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; - } + //for (int i = 0; i < dgvDrugsSQ.Columns.Count; i++) + //{ + // dgvDrugsSQ.Columns[i].SortMode = DataGridViewColumnSortMode.NotSortable; + //} } } public int zhuid = 0; @@ -919,6 +923,9 @@ namespace AIMS.PublicUI.UI case 2: drugEffect = "术åŽé•‡ç—›è¯"; break; + case 3: + drugEffect = "麻醉诱导用è¯"; + break; } int second = 0; foreach (DataGridViewRow dr in _dataGridView.Rows) @@ -1073,6 +1080,8 @@ namespace AIMS.PublicUI.UI else return; if (SaveValid(dgvDrugsSH, 2)) Save(dgvDrugsSH, 2); else return; + if (SaveValid(dgvDrugsYD, 3)) Save(dgvDrugsYD, 3); + else return; new frmMessageBox().Show(); if (DrugsParam != null) DrugsParam(); @@ -1165,7 +1174,15 @@ namespace AIMS.PublicUI.UI _record.FactDrugList.Sort(new FactDrugComparer()); foreach (BasicDictionary bd in ControlExtension._drugEffectList) { - if (bd.Name == "麻醉å‰ç”¨è¯") + if (bd.Name == "麻醉诱导用è¯") + { + List sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList(); + _dataGridView = dgvDrugsYD; + SetDGVEvent(_dataGridView); + //dgvDrugs_RowsAdded(null, null); + FullDrugsData(sList); + } + else if (bd.Name == "麻醉å‰ç”¨è¯") { List sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList(); _dataGridView = dgvDrugsSQ; @@ -1173,7 +1190,7 @@ namespace AIMS.PublicUI.UI //dgvDrugs_RowsAdded(null, null); FullDrugsData(sList); } - if (bd.Name == "术中加è¯") + else if (bd.Name == "术中加è¯") { List sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList(); _dataGridView = dgvDrugsSZ; @@ -1181,7 +1198,7 @@ namespace AIMS.PublicUI.UI //dgvDrugs_RowsAdded(null, null); FullDrugsData(sList); } - if (bd.Name == "术åŽé•‡ç—›è¯") + else if (bd.Name == "术åŽé•‡ç—›è¯") { List sList = _record.FactDrugList.Where(p => p.GiveDrugType == bd.Name).ToList(); _dataGridView = dgvDrugsSH; @@ -1216,6 +1233,10 @@ namespace AIMS.PublicUI.UI { _dataGridView = dgvDrugsSH; } + else if (tabDrugs.SelectedTab.Name == "P0") + { + _dataGridView = dgvDrugsYD; + } _dataGridView.Columns[1].ReadOnly = true; _dataGridView.Columns[2].ReadOnly = true; diff --git a/AIMS/OperationAanesthesia/frmFactDrugNew.resx b/AIMS/OperationAanesthesia/frmFactDrugNew.resx index 12645b1..e387515 100644 --- a/AIMS/OperationAanesthesia/frmFactDrugNew.resx +++ b/AIMS/OperationAanesthesia/frmFactDrugNew.resx @@ -136,42 +136,42 @@ AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0 - ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAs - CAAAAk1TRnQBSQFMAgEBAgEAAXABBgFwAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ - AwABFAMAAQEBAAEgBgABGS4AA1UBrwKAAX0B/gMrAfwDKwH8AZkBiwFAAf0BoQGSAQAB/wGTAYIBAAH/ - AZYBhwFAAf0BowGUAQAB/wGjAZQBAAH/AaMBlAEAAf8DKwH8A2AB6P8ADQABkwGCAQAB/wNiAfYDbQH3 - A20B9wNcAfgDgAH+AZcBhgEAAf8DbQH3AewB5wHkAf8B7AHnAeQB/wHsAecB5AH/A20B9wGTAYIBAAH/ - /wANAAGTAYIBAAH/A2cB8gH/Av0C/wL9Av8C/QL/Av0B/wGbAYsBAAH/AysB/AH/Av0C/wL9Av8C/QL/ - Av4B/wGTAYIBAAH//wANAAGTAYIBAAH/AysB/AGmAZUBgwH/AaYBlQGDAf8BpgGVAYMB/wGmAZUBgwH/ - AZUBhAEAAf8DgAH+AaYBlQGDAf8BpgGVAYMB/wGmAZUBgwH/AacBlQGEAf8BkwGCAQAB//8ADQABkwGC - AQAB/wGQAgAB/wNcAfgDXAH4A1wB+ANiAfYBkwGCAQAB/wMrAfwDXAH4A1wB+ANcAfgDTQH6AZMBggEA - Af//AA0AAZMBggEAAf8DYAHzAf8B/AH9Av8B/AH9Av8B/AH9Av8B/AH9Af8BmwGLAQAB/wMrAfwB/wH8 - Af0C/wH8Af0C/wH8Af0C/wL+Af8BkwGCAQAB//8ADQABkwGCAQAB/wNgAfMB/gH7AfwB/wH+AfsB/AH/ - Af4B+wH8Af8B/gH7AfwB/wGbAYsBAAH/AysB/AH+AfsB/AH/Af4B+wH8Af8B/gH7AfwC/wL9Af8BkwGC - AQAB//QAA0cBgQNHAYIDRwGCA0cBggNHAYIDRwGCAYkCAAH/A00B+gNfAfsDXwH7A18B+wNfAfsBjQIA - Af8BpwGgAZAB/QNfAfsDXwH7A18B+wKoAZ8B/QGTAYIBAAH/8AADBgEIA2AB8wFtAVIBUQH3AloBWQH1 - AloBWQH1AloBWQH1AloBWQH1AYECAAH/AwAB/wFfAV4BMgH7AV8BXgEyAfsBXwFeATIB+wJfATIB+wGB - AgAB/wNgAeMDXgHTA14B0wNeAdMDXQHRA2AB1PAAAwkBCwNNAfoCbQFRAfcB8AGiAQAB/wHwAaIBAAH/ - AfABogEAAf8B8AGiAQAB/wGHAgAB/wNcAfgB8AGiAQAB/wHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wMA - Af8DOAFcDAADPgFqAw4BEvAAAwkBCwNNAfoDXAH4AeoBngEAAf8B6gGeAQAB/wHqAZ4BAAH/AeoBngEA - Af8BjAIAAf8DTQH6AeoBngEAAf8B6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8DAAH/AzgBXAwAAzgBXANf - AdXwAAMJAQsDTQH6AWoBaAFHAfkDagH5A2oB+QNqAfkDagH5AYcCAAH/Am0BbAH3A2oB+QNqAfkDagH5 - A2oB+QMAAf8DOAFcDAADNQFWA0YBffAAAwcBCQNNAfoBgwJAAf0BagFoAUcB+QFqAWgBRwH5AWoBaAFH - AfkBagFoAUcB+QGBAgAB/wNNAfoBagFoAUcB+QFqAWgBRwH5AWoBaAFHAfkBagFpAUYB+QGBAgAB/wNZ - Ab4DTwGZA08BmQNPAZkDWAG3A1EBn/AABAIDSQGFA0kBiANJAYgDSQGIA0kBiANJAYgBiwIAAf8BjwJA - Af0DgAH+A4AB/gOAAf4BpAGNAUAB/QGLAgAB/wGmAZkBgwH9AagBpQGWAf0BqAGlAZYB/QGoAaUBlgH9 - A4AB/gGTAYIBAAH//wANAAGTAYIBAAH/A2AB8wH+AfoB+wH/Af4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/ - AZsBiwEAAf8DKwH8Af4B+gH7Af8B/gH6AfsB/wH+AfoB+wL/Av0B/wGTAYIBAAH//wANAAGTAYIBAAH/ - A2AB8wH+AfsB/AH/Af4B+wH8Af8B/gH7AfwB/wH7AfgB+QH/AZsBiwEAAf8DKwH8Af4B+wH8Af8B/gH7 - AfwB/wH+AfsB/AL/Av0B/wGTAYIBAAH//wANAAJtAWwB9wNcAfgDgAH+A4AB/gOAAf4DgAH+AZgBhwEA - Af8DKwH8AdQBzQHCAf8B1AHNAcIB/wHUAc0BwgH/A4AB/gGTAYIBAAH//wAJAAMDAQQDUAGaAZIBggEA - Af8CgAF5Af4CgAF5Af4CgAF5Af4BkwGCAQAB/wGTAYIBAAH/AY4BgQEAAf8BkwGCAQAB/wGTAYIBAAH/ - AZMBggEAAf8CgAF5Af4DWgG9/wAJAAMDAQQDEgEXAyMBMwMjATMDIwEzAyMBMwMjATMDIwEzAyMBMwMj - ATMDIwEzAyMBMwMjATMDFgEe/wANAAMFAQYDBAEFAwQBBQMEAQUDBAQFAQYDBQEGAwUBBgMFAQYDBQEG - AwUBBgMFAQYDAwEE8AABQgFNAT4HAAE+AwABKAMAAVADAAEUAwABAQEAAQEFAAHwFwAD/wEAAf4BAAEP - Av8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEP - Av8HAAGAAQABDwL/CQABDwL/CAABAQHPAv8IAAEBAc8C/wgAAQEBzwL/CQABDwL/CQABDwL/BwAB/gEA - AQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/AEAAQ8C/wcAAfwBAAEPAv8HAAH+AQABDwL/BwAL + ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAAAi + CAAAAk1TRnQBSQFMAgEBAgEAAZABBgGQAQYBFAEAARQBAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAFQ + AwABFAMAAQEBAAEgBgABGS4AA1UBrwOAAf4DKwH8AysB/AGZAYsBQAH9AaEBkgEAAf8BkwGCAQAB/wGW + AYcBQAH9AaMBlAEAAf8BowGUAQAB/wGjAZQBAAH/AysB/ANgAej/AA0AAZMBggEAAf8DYgH2A20B9wNt + AfcDXAH4A4AB/gGXAYYBAAH/A20B9wHsAecB5AH/AewB5wHkAf8B7AHnAeQB/wNtAfcBkwGCAQAB//8A + DQABkwGCAQAB/wNnAfIB/wL9Av8C/QL/Av0C/wL9Af8BmwGLAQAB/wMrAfwB/wL9Av8C/QL/Av0C/wL+ + Af8BkwGCAQAB//8ADQABkwGCAQAB/wMrAfwBpgGVAYMB/wGmAZUBgwH/AaYBlQGDAf8BpgGVAYMB/wGV + AYQBAAH/A4AB/gGmAZUBgwH/AaYBlQGDAf8BpgGVAYMB/wGnAZUBhAH/AZMBggEAAf//AA0AAZMBggEA + Af8BkAIAAf8DXAH4A1wB+ANcAfgDYgH2AZMBggEAAf8DKwH8A1wB+ANcAfgDXAH4A00B+gGTAYIBAAH/ + /wANAAGTAYIBAAH/A2AB8wH/AfwB/QL/AfwB/QL/AfwB/QL/AfwB/QH/AZsBiwEAAf8DKwH8Af8B/AH9 + Av8B/AH9Av8B/AH9Av8C/gH/AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+wH8Af8B/gH7AfwB/wH+ + AfsB/AH/Af4B+wH8Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+AfsB/AH/Af4B+wH8Av8C/QH/AZMBggEA + Af/0AANHAYEDRwGCA0cBggNHAYIDRwGCA0cBggGJAgAB/wNNAfoDXwH7A18B+wNfAfsDXwH7AY0CAAH/ + AacBoAGQAf0DXwH7A18B+wNfAfsCqAGfAf0BkwGCAQAB//AAAwYBCANgAfMBbQFSAVEB9wNaAfUDWgH1 + A1oB9QNaAfUBgQIAAf8DAAH/AV8BXgEyAfsBXwFeATIB+wFfAV4BMgH7Al8BMgH7AYECAAH/A2AB4wNe + AdMDXgHTA14B0wNdAdEDYAHU8AADCQELA00B+gJtAVEB9wHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHw + AaIBAAH/AYcCAAH/A1wB+AHwAaIBAAH/AfABogEAAf8B8AGiAQAB/wHwAaIBAAH/AwAB/wM4AVwMAAM+ + AWoDDgES8AADCQELA00B+gNcAfgB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGeAQAB/wGMAgAB/wNN + AfoB6gGeAQAB/wHqAZ4BAAH/AeoBngEAAf8B6gGeAQAB/wMAAf8DOAFcDAADOAFcA18B1fAAAwkBCwNN + AfoBagFoAUcB+QNqAfkDagH5A2oB+QNqAfkBhwIAAf8CbQFsAfcDagH5A2oB+QNqAfkDagH5AwAB/wM4 + AVwMAAM1AVYDRgF98AADBwEJA00B+gGDAkAB/QFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWgBRwH5 + AYECAAH/A00B+gFqAWgBRwH5AWoBaAFHAfkBagFoAUcB+QFqAWkBRgH5AYECAAH/A1kBvgNPAZkDTwGZ + A08BmQNYAbcDUQGf8AAEAgNJAYUDSQGIA0kBiANJAYgDSQGIA0kBiAGLAgAB/wGPAkAB/QOAAf4DgAH+ + A4AB/gGkAY0BQAH9AYsCAAH/AaYBmQGDAf0BqAGlAZYB/QGoAaUBlgH9AagBpQGWAf0DgAH+AZMBggEA + Af//AA0AAZMBggEAAf8DYAHzAf4B+gH7Af8B/gH6AfsB/wH+AfoB+wH/Af4B+gH7Af8BmwGLAQAB/wMr + AfwB/gH6AfsB/wH+AfoB+wH/Af4B+gH7Av8C/QH/AZMBggEAAf//AA0AAZMBggEAAf8DYAHzAf4B+wH8 + Af8B/gH7AfwB/wH+AfsB/AH/AfsB+AH5Af8BmwGLAQAB/wMrAfwB/gH7AfwB/wH+AfsB/AH/Af4B+wH8 + Av8C/QH/AZMBggEAAf//AA0AAm0BbAH3A1wB+AOAAf4DgAH+A4AB/gOAAf4BmAGHAQAB/wMrAfwB1AHN + AcIB/wHUAc0BwgH/AdQBzQHCAf8DgAH+AZMBggEAAf//AAkAAwMBBANQAZoBkgGCAQAB/wKAAX0B/gKA + AX0B/gKAAX0B/gGTAYIBAAH/AZMBggEAAf8BjgGBAQAB/wGTAYIBAAH/AZMBggEAAf8BkwGCAQAB/wKA + AX0B/gNaAb3/AAkAAwMBBAMSARcDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDIwEzAyMBMwMjATMDIwEz + AyMBMwMWAR7/AA0AAwUBBgMEAQUDBAEFAwQBBQMEBAUBBgMFAQYDBQEGAwUBBgMFAQYDBQEGAwUBBgMD + AQTwAAFCAU0BPgcAAT4DAAEoAwABUAMAARQDAAEBAQABAQUAAfAXAAP/AQAB/gEAAQ8C/wcAAf4BAAEP + Av8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAf4BAAEPAv8HAAH+AQABDwL/BwAB/gEAAQ8C/wcAAYABAAEP + Av8JAAEPAv8IAAEBAc8C/wgAAQEBzwL/CAABAQHPAv8JAAEPAv8JAAEPAv8HAAH+AQABDwL/BwAB/gEA + AQ8C/wcAAf4BAAEPAv8HAAH8AQABDwL/BwAB/AEAAQ8C/wcAAf4BAAEPAv8HAAs= diff --git a/AIMS/OremrUserControl/ucDocument.Designer.cs b/AIMS/OremrUserControl/ucDocument.Designer.cs index a76fa95..242a854 100644 --- a/AIMS/OremrUserControl/ucDocument.Designer.cs +++ b/AIMS/OremrUserControl/ucDocument.Designer.cs @@ -329,7 +329,6 @@ private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripButton tsbExit; private System.Windows.Forms.ToolStripButton tsbCheckout; - private DCSoft.Writer.Controls.WriterControl myEditControl; private DCSoft.Writer.Commands.WriterCommandControler writerCommandControler1; private System.Windows.Forms.ContextMenuStrip cmEdit; private System.Windows.Forms.ToolStripMenuItem cmRedo; @@ -349,5 +348,6 @@ private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripButton toolStripButton1; public System.Windows.Forms.ToolStrip toolStrip1; + public DCSoft.Writer.Controls.WriterControl myEditControl; } } diff --git a/AIMS/OremrUserControl/ucDocument.cs b/AIMS/OremrUserControl/ucDocument.cs index 98547f4..92f5777 100644 --- a/AIMS/OremrUserControl/ucDocument.cs +++ b/AIMS/OremrUserControl/ucDocument.cs @@ -197,11 +197,16 @@ namespace AIMS.OremrUserControl { toolStripButton1.Visible = true; } - if (XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书" || XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书2" || XmlFileName == "特需医疗æœåŠ¡é¡¹ç›®åŒ»æ‚£å议书") + else if (XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书" || XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书2" || XmlFileName == "特需医疗æœåŠ¡é¡¹ç›®åŒ»æ‚£å议书") { toolStripButton1.Text = "选择è¯å“"; toolStripButton1.Visible = true; } + else if (XmlFileName == "åŒ»ä¿æ‚£è€…è‡ªè´¹é¡¹ç›®çŸ¥æƒ…åŒæ„书") + { + toolStripButton1.Text = "选择自费项目"; + toolStripButton1.Visible = true; + } } void myEditControl_AfterExecuteCommand(object eventSender, DCSoft.Writer.Commands.WriterCommandEventArgs args) @@ -337,8 +342,8 @@ namespace AIMS.OremrUserControl ClearT(); } myEditControl.Document.Modified = false; - DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document,Patient); - + DocumentExtension.SaveCocumentValue(DModel.XmlFileName, myEditControl.Document, Patient); + new frmMessageBox().Show(); } catch @@ -413,7 +418,35 @@ namespace AIMS.OremrUserControl num++; } } - if (DModel.XmlFileName == "特需医疗æœåŠ¡é¡¹ç›®åŒ»æ‚£å议书") + else if (DModel.XmlFileName == "åŒ»ä¿æ‚£è€…è‡ªè´¹é¡¹ç›®çŸ¥æƒ…åŒæ„书") + { + frmDrugSel drugSel = new frmDrugSel(); + drugSel.IsLoad = true; + drugSel.loadString = "自费用è¯,自费耗æ"; + drugSel.ShowDialog(); + int num = 1; + int a = 71; + int j = 42; + for (int i = 13; i < 42; i++) + { + if (num > drugSel.FactDrugList.Count) + return; + var item = drugSel.FactDrugList[num - 1]; + var field12 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).ID == "field" + i).FirstOrDefault(); + if (field12 != null) field12.Text = num + "." + item.DrugName + " " + item.Dosage + "å…ƒ"; ; + var field13 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).ID == "field" + j).FirstOrDefault(); + if (field13 != null) field13.Text = " " + item.DrugKind + item.DosageUnit; + var field14 = myEditControl.Document.Fields.ToArray().Where(x => x is XTextInputFieldElement + && (x as XTextInputFieldElement).ID == "field" + a).FirstOrDefault(); + if (field14 != null) field14.Text = " " + item.DensityUnit; + j++; + a++; + num++; + } + } + else if (DModel.XmlFileName == "特需医疗æœåŠ¡é¡¹ç›®åŒ»æ‚£å议书") { string Result = ""; string Result2 = ""; @@ -443,7 +476,7 @@ namespace AIMS.OremrUserControl if (Result2 != "") field13.Text = Result2.ToString(); } - if (DModel.XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书2") + else if (DModel.XmlFileName == "è‡ªè´¹é¡¹ç›®æ²»ç–—åŒæ„书2") { string Result = ""; string Result2 = ""; diff --git a/AIMS/OremrUserControl/ucPatientCard.cs b/AIMS/OremrUserControl/ucPatientCard.cs index 152091a..386cb53 100644 --- a/AIMS/OremrUserControl/ucPatientCard.cs +++ b/AIMS/OremrUserControl/ucPatientCard.cs @@ -60,6 +60,8 @@ namespace AIMS.OremrUserControl panelExMain.Style.BackColor1.Color = Color.WhiteSmoke; buttonX1.Text = "转入术间"; buttonX2.Visible = false; + //buttonX1.Text = "开始诱导"; + //buttonX2.Text = "转入术间"; label2.ForeColor = Color.DarkRed; } else if (dr["State"].ToString() == "已审核" || dr["State"].ToString() == "预排程") @@ -67,6 +69,8 @@ namespace AIMS.OremrUserControl panelExMain.Style.BackColor1.Color = Color.WhiteSmoke; buttonX1.Text = "转入术间"; buttonX2.Visible = false; + //buttonX1.Text = "开始诱导"; + //buttonX2.Text = "转入术间"; label2.Text = "未排程"; label2.ForeColor = Color.DarkRed; } diff --git a/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs b/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs index 96a2a61..576253f 100644 --- a/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs +++ b/DrawGraph/AreaManage/AnalgesiaDataBottonManage.cs @@ -17,7 +17,7 @@ namespace DrawGraph public class AnalgesiaDataBottonManage : AreaManageBase { - private OperationRecord myOpeRecord = null; + private OperationRecord myOpeRecord = null; public AnalgesiaDataBottonManage() { } public AnalgesiaDataBottonManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) { } @@ -25,7 +25,7 @@ namespace DrawGraph public void init() { //自己è¦ç”¨çš„æ‰‹æœ¯å¯¹è±¡ - myOpeRecord = OpeRecord as OperationRecord; + myOpeRecord = OpeRecord as OperationRecord; } #region é‡å†™çš„事件 /// @@ -52,23 +52,176 @@ namespace DrawGraph public override void editAr_Click(object sender, EventArgs e) { SelectDictText.Hidden(); - //传过æ¥çš„æ•°æ®æ˜¯ä¸æ˜¯å¯ç¼–辑的 - AbleEditPackObj editPack = sender as AbleEditPackObj; - if (editPack == null) return; - //找到这个组件 - AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj; - if (aEdit1 == null) return; + ////传过æ¥çš„æ•°æ®æ˜¯ä¸æ˜¯å¯ç¼–辑的 + //AbleEditPackObj aEdit1S = sender as AbleEditPackObj; + //if (aEdit1S == null) return; + ////找到这个组件 + //AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == aEdit1S.PackTag) as AbleEditPackObj; + //if (aEdit1 == null) return; - txt_DoubleClick(aEdit1.CControl, null); + //if (aEdit1.ControlTitleText == "手术" || aEdit1.ControlTitleText == "诊断" || aEdit1.ControlTitleText == "人员") + //{ + // Control conl = aEdit1.CControl; + // aEdit1.IsVisible = !aEdit1.IsVisible; + // conl.Leave -= new EventHandler(txt_Leave); + // aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + // aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + // aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + // aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ; + // //æ ¹æ®æ•°æ®æºå称进行ä¸åŒçš„äº‹ä»¶å¤„ç† + // switch (aEdit1.ClassDataSourceName) + // { + // case "OperationRecord.Applydiagnose": //手术诊断 + // opeDisease_Click(aEdit1, e); + // break; + // case "OperationRecord.Applyoperation": //手术诊断 + // ope_Click(aEdit1, e); + // break; + // } + //} + ////txt_DoubleClick(aEdit1.CControl, null); } + //得到当å‰é¡µæ•° + private void GetcurrentPage() + { + DateTime EndTime = OperationRecord.getOpeMaxTime(myOpeRecord); + EndTime = DateTime.Parse(EndTime.ToString("yyyy-MM-dd HH:mm")); + TimeSpan tsp = (TimeSpan)(EndTime - myOpeRecord.sharpBegin); + double db = tsp.TotalHours / 4; + if (db == ((int)tsp.TotalHours / 4)) + myOpeRecord.currentPage = (int)db; + else + myOpeRecord.currentPage = (int)db + 1; + if (myOpeRecord.currentPage == 0) myOpeRecord.currentPage = 1; + } + #region åˆå§‹åŒ–æ—¶é—´è½´ + /// + /// 设置页é¢çš„å¼€å§‹æ—¶é—´å’Œç»“æŸæ—¶é—´ + /// + /// 手术信æ¯å¯¹è±¡ + private void setPageTime(DateTime begin) + { + if (myOpeRecord.pageCount == 0) + { + myOpeRecord.pageCount = 1; + myOpeRecord.sharpBegin = getSharpTime(begin); + myOpeRecord.PageBegin = getPageBegin(begin, collectInterval, 120); + myOpeRecord.lastPageBegin = myOpeRecord.PageBegin.AddHours(120 / 60); + + if (myOpeRecord.phListPack != null) + { + Panel pan3 = myOpeRecord.phListPack.CControl as Panel; + if (pan3 != null) + { + pan3.Controls.Clear(); + } + } + } + } + /// + /// æ ¹æ®é‡‡é›†é—´éš”ï¼Œç¡®å®šé¡µé¢æ—¶é—´è·¨åº¦å’Œé¡µé¢å¼€å§‹æ—¶é—´ + /// + /// 给定时间(文本) + /// 采集间隔(分钟) + /// 页颿—¶é—´è·¨åº¦ + /// 页颿˜¾ç¤ºçš„开始时间 + private DateTime getPageBegin(DateTime dt, double collectInterval, double timeSpan) + { + try + { + DateTime pageBegin = dt.Date.AddHours(dt.Hour); + int ci = (int)(collectInterval * 60); + if (ci <= 30) + { + if (dt.Minute >= 30) + { + pageBegin = pageBegin.AddMinutes(30); + } + timeSpan = 30; + } + else if (ci <= 60) + { + timeSpan = 60; + } + else + { + timeSpan = 120; + TimeSpan ts = pageBegin - myOpeRecord.sharpBegin; + int h = ts.Hours; + h /= 2; + pageBegin = myOpeRecord.sharpBegin.AddHours(h * 2); + } + return pageBegin; + } + catch (Exception exp) + { + throw exp; + } + } + /// + /// 获å–系统的整点时刻 + /// + /// + private DateTime getSharpTime(DateTime dt) + { + int ci = (int)dt.Minute; + + if (ci >= 50) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:50:00")); + } + else if (ci >= 40) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:40:00")); + } + else if (ci >= 30) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); + } + else if (ci >= 20) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:20:00")); + } + else if (ci >= 10) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:10:00")); + } + else if (ci < 10) + { + dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00")); + } + //if (ci >= 30) + //{ + // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); + //} + //else if (ci < 30) + //{ + // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:00:00")); + //} + return dt; + } + private void setXAxisTime(GraphPane myPane, DateTime begin, double pageSpan) + { + myPane.XAxis.Scale.Min = new XDate(begin); + myPane.X2Axis.Scale.Min = myPane.XAxis.Scale.Min; + myPane.XAxis.Scale.Max = new XDate(begin.AddMinutes(pageSpan)); + myPane.X2Axis.Scale.Max = myPane.XAxis.Scale.Max; + } + #endregion + public SelectDictText aSyncSelectDict = null; public override void Bind() { - aSyncSelectDict = SelectDictText.CreateInstance(); - SelectDictText.SetValue += ASyncSelectDict_SetValue; base.Bind(); - init(); + init(); + aSyncSelectDict = SelectDictText.CreateInstance(); + myOpeRecord.clearAddObj(ZedControl); + setPageTime(myOpeRecord.InRoomTime.Value); + setXAxisTime(ZedControl.GraphPane, myOpeRecord.PageBegin, 120); + GetcurrentPage(); + //SelectDictText.SetValue += ASyncSelectDict_SetValue; + List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) { @@ -86,10 +239,25 @@ namespace DrawGraph } else if (ableEdit.ControlType == EControlType.Directory) { - ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); - ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); - ableEdit.CControl.Leave -= new EventHandler(txt_Leave); - ableEdit.CControl.Leave += new EventHandler(txt_Leave); + + if (ableEdit.ControlTitleText == "手术" || ableEdit.ControlTitleText == "诊断" || ableEdit.ControlTitleText == "人员") + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick1); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick1); + ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + } + else + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } } else if (ableEdit.ControlType == EControlType.CheckBox) { @@ -123,10 +291,10 @@ namespace DrawGraph } } } - else if (ableEdit.ControlType == EControlType.TextBox) + else if (ableEdit.ControlType == EControlType.TextBox) { ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown); - ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); + ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus); ableEdit.CControl.GotFocus += new EventHandler(txt_Focus); ((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D; @@ -145,7 +313,7 @@ namespace DrawGraph } } } - + ////å–æ¶ˆæ»šè½®äº‹ä»¶ //void numericUpDown1_MouseWheel(object sender, MouseEventArgs e) @@ -161,7 +329,7 @@ namespace DrawGraph if (ableEdit == null) return; if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == "")) control.Clear(); - } + } private void text_keyDown(object sender, KeyEventArgs e) { ((TextBox)sender).Enabled = true; @@ -188,7 +356,7 @@ namespace DrawGraph } public override void BindTempData() - { + { List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) { @@ -316,7 +484,14 @@ namespace DrawGraph break; case EControlType.Directory: value = ableEdit.PackValue; - text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + if (ableEdit.ControlTitleText == "手术" || ableEdit.ControlTitleText == "诊断" || ableEdit.ControlTitleText == "人员") + { + text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + } + else + { + text = ableEdit.PackValue; + } //设置属性的值 template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value); break; @@ -369,6 +544,146 @@ namespace DrawGraph } } + private void txt_DoubleClick1(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj aEdit1S = control.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + //è¿™å¥è¯å¾ˆé‡è¦ï¼Œåªæ“作自己管ç†å™¨é‡Œçš„组件 + AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s.PackTag == aEdit1S.PackTag) as AbleEditPackObj; + //指定的组件显示 + if (aEdit1 != null) + { + Control conl = aEdit1.CControl; + conl.Leave -= new EventHandler(txt_Leave); + aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ; + //æ ¹æ®æ•°æ®æºå称进行ä¸åŒçš„äº‹ä»¶å¤„ç† + switch (aEdit1.ClassDataSourceName) + { + case "OperationRecord.AnesthesiaDoctor": //麻醉医生 + Worker_Click(aEdit1, e, 2); + break; + case "OperationRecord.OperationDoctor": + Worker_Click(aEdit1, e, 0); + break; + case "OperationRecord.InstrumentNurse": + Worker_Click(aEdit1, e, 3); + break; + case "OperationRecord.Assistant1": + Worker_Click(aEdit1, e, 0); + break; + case "OperationRecord.TourNurse": + Worker_Click(aEdit1, e, 3); + break; + case "OperationRecord.Operation": //手术åç§° + ope_Click(aEdit1, e); + break; + case "OperationRecord.OrtherDoctorId": + Worker_Click(aEdit1, e, 4); + break; + } + } + } + private void Worker_Click(AbleEditPackObj sender, EventArgs e, int _workersType) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + + ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + SelectWorkerValue.ChageText = ""; + if (myOpeRecord != null) + { + Control conl = sender.CControl; + if (conl is TextBox) + { + ((TextBox)conl).BorderStyle = BorderStyle.Fixed3D; + ((TextBox)conl).Focus(); + if (sender.PackValue != null && sender.PackValue.Trim() != "") + { + if (((TextBox)conl).Text.LastIndexOf(',') != sender.PackText.Length && ((TextBox)conl).Text != "") + ((TextBox)conl).Text = ((TextBox)conl).Text + ","; + ((TextBox)conl).Select(((TextBox)conl).Text.Length, 1); + } + } + ableEdit.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + ableEdit.CControl.TextChanged += new EventHandler(CControl_TextChanged); + + aSyncSelectDict.Show(template, OpeRecord, sender, _workersType.ToString(), false); + } + } + + private void CControl_MouseDown(object sender, MouseEventArgs e) + { + if (myOpeRecord != null) + { + TextBox conl = sender as TextBox; + string leftStr = conl.Text.Substring(0, conl.SelectionStart); + string rightStr = conl.Text.Substring(conl.SelectionStart, conl.Text.Length - conl.SelectionStart); + int startIndex = 0; + int endLength = conl.Text.Length; + + if (leftStr.Contains(",")) + { + int beginindex = leftStr.LastIndexOf(','); + startIndex = beginindex + 1; + if (rightStr.Contains(",")) + { + endLength = rightStr.IndexOf(",") + (leftStr.Length - beginindex); + } + } + else + { + if (rightStr.Contains(",")) + { + endLength = rightStr.IndexOf(",") + leftStr.Length + 1; + } + } + conl.Select(startIndex, endLength); + + } + } + + private void ope_Click(AbleEditPackObj sender, EventArgs e) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict2(sender, e, ableEdit.ControlTitleText); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + private void opeDisease_Click(AbleEditPackObj sender, EventArgs e) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict2(sender, e, ableEdit.ControlTitleText); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } private void txt_Click(object sender, EventArgs e) { Control control = (Control)sender; @@ -482,14 +797,23 @@ namespace DrawGraph ableEdit.CControl.Leave += new EventHandler(txt_Leave); } } - private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit) - { - aEdit.PackValue = Text; - aEdit.PackText = Text; - template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); - aEdit.CControl.Leave -= new EventHandler(txt_Leave); - aEdit.CControl.Leave += new EventHandler(txt_Leave); - } + //private void ASyncSelectDict_SetValue(string Text, string Key, AbleEditPackObj aEdit) + //{ + // if (aEdit.ControlTitleText == "手术" || aEdit.ControlTitleText == "诊断" || aEdit.ControlTitleText == "人员") + // { + // aEdit.PackValue = Key; + // aEdit.PackText = Text; + // template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Key, true); + // } + // else + // { + // aEdit.PackValue = Text; + // aEdit.PackText = Text; + // template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); + // } + // aEdit.CControl.Leave -= new EventHandler(txt_Leave); + // aEdit.CControl.Leave += new EventHandler(txt_Leave); + //} private void CControl_KeyUp(object sender, KeyEventArgs e) { if (myOpeRecord != null) @@ -521,5 +845,78 @@ namespace DrawGraph } } } + private void CControl_TextChanged(object sender, EventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + AbleEditPackObj aEdit1S = conl.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + aSyncSelectDict.ShowSel(template, conl, OpeRecord,aEdit1S); + //conl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + } + } + private void CControl_KeyUp2(object sender, KeyEventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back) + { + if (conl.Text != SelectDictText.Value && SelectDictText.ChageText == "") + { + AbleEditPackObj aEdit1S = conl.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + aSyncSelectDict.DelSel(template, conl, OpeRecord,aEdit1S); + SelectDictText.ChageText = ""; + } + } + else if (e.KeyCode == Keys.Down) + { + if (SelectDictText.dgvZd.CurrentRow.Index + 1 != SelectDictText.dgvZd.Rows.Count - 1) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index + 1].Cells[1]; + } + } + else if (e.KeyCode == Keys.Up) + { + if (SelectDictText.dgvZd.CurrentRow.Index != 0) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index - 1].Cells[1]; + } + } + } + } + private void SelDict2(AbleEditPackObj sender, EventArgs e, string _DictType, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + + ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + SelectDictText.ChageText = ""; + if (myOpeRecord != null) + { + Control conl = sender.CControl; + if (conl is TextBox) + { + ((TextBox)conl).BorderStyle = BorderStyle.Fixed3D; + ((TextBox)conl).Focus(); + if (sender.PackValue != null && sender.PackValue.Trim() != "" && isRadio == false) + { + if (((TextBox)conl).Text.LastIndexOf(',') != sender.PackText.Length && ((TextBox)conl).Text != "") + ((TextBox)conl).Text = ((TextBox)conl).Text + ","; + } + ((TextBox)conl).Select(((TextBox)conl).Text.Length, 1); + } + ableEdit.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + ableEdit.CControl.TextChanged += new EventHandler(CControl_TextChanged); + aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio); + } + } } -} \ No newline at end of file +} diff --git a/DrawGraph/AreaManage/AnalgesiaDataManage.cs b/DrawGraph/AreaManage/AnalgesiaDataManage.cs index 4002777..64ceb14 100644 --- a/DrawGraph/AreaManage/AnalgesiaDataManage.cs +++ b/DrawGraph/AreaManage/AnalgesiaDataManage.cs @@ -17,7 +17,7 @@ namespace DrawGraph public class AnalgesiaDataManage : AreaManageBase { - private OperationRecord myOpeRecord = null; + private OperationRecord myOpeRecord = null; public AnalgesiaDataManage() { } public AnalgesiaDataManage(object _operationRecor, DrawGraph.ZedGraphControl _zedControl, TemplateManage _template, string _name) : base(_operationRecor, _zedControl, _template, _name) { } @@ -25,7 +25,7 @@ namespace DrawGraph public void init() { //自己è¦ç”¨çš„æ‰‹æœ¯å¯¹è±¡ - myOpeRecord = OpeRecord as OperationRecord; + myOpeRecord = OpeRecord as OperationRecord; } #region é‡å†™çš„事件 /// @@ -51,15 +51,35 @@ namespace DrawGraph public override void editAr_Click(object sender, EventArgs e) { - SelectDictText.Hidden(); - //传过æ¥çš„æ•°æ®æ˜¯ä¸æ˜¯å¯ç¼–辑的 - AbleEditPackObj editPack = sender as AbleEditPackObj; - if (editPack == null) return; - //找到这个组件 - AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == editPack.PackTag) as AbleEditPackObj; - if (aEdit1 == null) return; + SelectDictText.Hidden(); + ////传过æ¥çš„æ•°æ®æ˜¯ä¸æ˜¯å¯ç¼–辑的 + //AbleEditPackObj aEdit1S = sender as AbleEditPackObj; + //if (aEdit1S == null) return; + ////找到这个组件 + //AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s is AbleEditPackObj && s.PackTag == aEdit1S.PackTag) as AbleEditPackObj; + //if (aEdit1 == null) return; - txt_DoubleClick(aEdit1.CControl, null); + //if (aEdit1.ControlTitleText == "手术" || aEdit1.ControlTitleText == "诊断" || aEdit1.ControlTitleText == "人员") + //{ + // Control conl = aEdit1.CControl; + // aEdit1.IsVisible = !aEdit1.IsVisible; + // conl.Leave -= new EventHandler(txt_Leave); + // aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + // aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + // aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + // aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ; + // //æ ¹æ®æ•°æ®æºå称进行ä¸åŒçš„äº‹ä»¶å¤„ç† + // switch (aEdit1.ClassDataSourceName) + // { + // case "OperationRecord.Applydiagnose": //手术诊断 + // opeDisease_Click(aEdit1, e); + // break; + // case "OperationRecord.Applyoperation": //手术诊断 + // ope_Click(aEdit1, e); + // break; + // } + //} + ////txt_DoubleClick(aEdit1.CControl, null); } //得到当å‰é¡µæ•° @@ -106,7 +126,7 @@ namespace DrawGraph /// 采集间隔(分钟) /// 页颿—¶é—´è·¨åº¦ /// 页颿˜¾ç¤ºçš„开始时间 - private DateTime getPageBegin(DateTime dt, double collectInterval,double timeSpan) + private DateTime getPageBegin(DateTime dt, double collectInterval, double timeSpan) { try { @@ -200,7 +220,7 @@ namespace DrawGraph setPageTime(myOpeRecord.InRoomTime.Value); setXAxisTime(ZedControl.GraphPane, myOpeRecord.PageBegin, 120); GetcurrentPage(); - SelectDictText.SetValue += ASyncSelectDict_SetValue; + //SelectDictText.SetValue += ASyncSelectDict_SetValue; List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) @@ -219,10 +239,24 @@ namespace DrawGraph } else if (ableEdit.ControlType == EControlType.Directory) { - ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); - ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); - ableEdit.CControl.Leave -= new EventHandler(txt_Leave); - ableEdit.CControl.Leave += new EventHandler(txt_Leave); + if (ableEdit.ControlTitleText == "手术" || ableEdit.ControlTitleText == "诊断" || ableEdit.ControlTitleText == "人员") + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick1); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick1); + ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + } + else + { + ableEdit.CControl.DoubleClick -= new EventHandler(txt_DoubleClick); + ableEdit.CControl.DoubleClick += new EventHandler(txt_DoubleClick); + ableEdit.CControl.Leave -= new EventHandler(txt_Leave); + ableEdit.CControl.Leave += new EventHandler(txt_Leave); + } } else if (ableEdit.ControlType == EControlType.CheckBox) { @@ -256,10 +290,10 @@ namespace DrawGraph } } } - else if (ableEdit.ControlType == EControlType.TextBox) + else if (ableEdit.ControlType == EControlType.TextBox) { ableEdit.CControl.KeyDown -= new KeyEventHandler(text_keyDown); - ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); + ableEdit.CControl.KeyDown += new KeyEventHandler(text_keyDown); ableEdit.CControl.GotFocus -= new EventHandler(txt_Focus); ableEdit.CControl.GotFocus += new EventHandler(txt_Focus); ((TextBox)ableEdit.CControl).BorderStyle = BorderStyle.Fixed3D; @@ -278,7 +312,7 @@ namespace DrawGraph } } } - + ////å–æ¶ˆæ»šè½®äº‹ä»¶ //void numericUpDown1_MouseWheel(object sender, MouseEventArgs e) @@ -294,7 +328,7 @@ namespace DrawGraph if (ableEdit == null) return; if (control.Focused == true && (ableEdit.PackValue == ableEdit.DefaultValue || ableEdit.PackValue == "")) control.Clear(); - } + } private void text_keyDown(object sender, KeyEventArgs e) { ((TextBox)sender).Enabled = true; @@ -321,7 +355,7 @@ namespace DrawGraph } public override void BindTempData() - { + { List ables = PackManage.ListPob.Where(s => s is AbleEditPackObj).ToList(); foreach (PackObjBase pack in ables) { @@ -449,7 +483,14 @@ namespace DrawGraph break; case EControlType.Directory: value = ableEdit.PackValue; - text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + if (ableEdit.ControlTitleText == "手术" || ableEdit.ControlTitleText == "诊断" || ableEdit.ControlTitleText == "人员") + { + text = DBManage.GetDictionaryValuesById(ableEdit.PackValue, ableEdit.ControlTitleText); + } + else + { + text = ableEdit.PackValue; + } //设置属性的值 template.SetObjValue(OpeRecord, ableEdit.ClassDataSourceName, text, value); break; @@ -485,7 +526,7 @@ namespace DrawGraph break; case EControlType.Directory: TYZD_Click(ableEdit, e, true); - break; + break; default: text = ableEdit.CControl.Text; value = ableEdit.CControl.Text; @@ -502,6 +543,98 @@ namespace DrawGraph } } + private void txt_DoubleClick1(object sender, EventArgs e) + { + Control control = (Control)sender; + if (control == null) return; + AbleEditPackObj aEdit1S = control.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + //è¿™å¥è¯å¾ˆé‡è¦ï¼Œåªæ“作自己管ç†å™¨é‡Œçš„组件 + AbleEditPackObj aEdit1 = PackManage.ListPob.FirstOrDefault(s => s.PackTag == aEdit1S.PackTag) as AbleEditPackObj; + //指定的组件显示 + if (aEdit1 != null) + { + Control conl = aEdit1.CControl; + conl.Leave -= new EventHandler(txt_Leave); + aEdit1S.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + aEdit1S.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + aEdit1S.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + aEdit1S.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); ; + //æ ¹æ®æ•°æ®æºå称进行ä¸åŒçš„äº‹ä»¶å¤„ç† + switch (aEdit1.ClassDataSourceName) + { + case "OperationRecord.Applydiagnose": //手术诊断 + opeDisease_Click(aEdit1, e); + break; + case "OperationRecord.Applyoperation": //手术诊断 + ope_Click(aEdit1, e); + break; + } + } + } + private void CControl_MouseDown(object sender, MouseEventArgs e) + { + if (myOpeRecord != null) + { + TextBox conl = sender as TextBox; + string leftStr = conl.Text.Substring(0, conl.SelectionStart); + string rightStr = conl.Text.Substring(conl.SelectionStart, conl.Text.Length - conl.SelectionStart); + int startIndex = 0; + int endLength = conl.Text.Length; + + if (leftStr.Contains(",")) + { + int beginindex = leftStr.LastIndexOf(','); + startIndex = beginindex + 1; + if (rightStr.Contains(",")) + { + endLength = rightStr.IndexOf(",") + (leftStr.Length - beginindex); + } + } + else + { + if (rightStr.Contains(",")) + { + endLength = rightStr.IndexOf(",") + leftStr.Length + 1; + } + } + conl.Select(startIndex, endLength); + + } + } + + private void ope_Click(AbleEditPackObj sender, EventArgs e) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict2(sender, e, ableEdit.ControlTitleText); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } + private void opeDisease_Click(AbleEditPackObj sender, EventArgs e) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + try + { + if (myOpeRecord != null) + { + SelDict2(sender, e, ableEdit.ControlTitleText); + } + } + catch (Exception ex) + { + AIMSExtension.PublicMethod.WriteLog(ex); + } + } private void txt_Click(object sender, EventArgs e) { Control control = (Control)sender; @@ -615,14 +748,23 @@ namespace DrawGraph ableEdit.CControl.Leave += new EventHandler(txt_Leave); } } - private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit) - { - aEdit.PackValue = Text; - aEdit.PackText = Text; - template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); - aEdit.CControl.Leave -= new EventHandler(txt_Leave); - aEdit.CControl.Leave += new EventHandler(txt_Leave); - } + //private void ASyncSelectDict_SetValue(string Text, string Key, AbleEditPackObj aEdit) + //{ + // if (aEdit.ControlTitleText == "手术" || aEdit.ControlTitleText == "诊断" || aEdit.ControlTitleText == "人员") + // { + // aEdit.PackValue = Key; + // aEdit.PackText = Text; + // template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Key, true); + // } + // else + // { + // aEdit.PackValue = Text; + // aEdit.PackText = Text; + // template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Text, Text, true); + // } + // aEdit.CControl.Leave -= new EventHandler(txt_Leave); + // aEdit.CControl.Leave += new EventHandler(txt_Leave); + //} private void CControl_KeyUp(object sender, KeyEventArgs e) { if (myOpeRecord != null) @@ -654,5 +796,78 @@ namespace DrawGraph } } } + private void CControl_TextChanged(object sender, EventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + AbleEditPackObj aEdit1S = conl.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + aSyncSelectDict.ShowSel(template, conl, OpeRecord, aEdit1S); + //conl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + } + } + private void CControl_KeyUp2(object sender, KeyEventArgs e) + { + if (myOpeRecord != null) + { + Control conl = sender as Control; + if (e.KeyCode == Keys.Delete || e.KeyCode == Keys.Back) + { + if (conl.Text != SelectDictText.Value && SelectDictText.ChageText == "") + { + AbleEditPackObj aEdit1S = conl.Tag as AbleEditPackObj; + if (aEdit1S == null) return; + aSyncSelectDict.DelSel(template, conl, OpeRecord, aEdit1S); + SelectDictText.ChageText = ""; + } + } + else if (e.KeyCode == Keys.Down) + { + if (SelectDictText.dgvZd.CurrentRow.Index + 1 != SelectDictText.dgvZd.Rows.Count - 1) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index + 1].Cells[1]; + } + } + else if (e.KeyCode == Keys.Up) + { + if (SelectDictText.dgvZd.CurrentRow.Index != 0) + { + SelectDictText.dgvZd.CurrentCell = SelectDictText.dgvZd.Rows[SelectDictText.dgvZd.CurrentRow.Index - 1].Cells[1]; + } + } + } + } + private void SelDict2(AbleEditPackObj sender, EventArgs e, string _DictType, bool isRadio = false) + { + AbleEditPackObj ableEdit = sender; + if (ableEdit == null) return; + + ableEdit.CControl.MouseDown -= new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.MouseDown += new MouseEventHandler(CControl_MouseDown); + ableEdit.CControl.KeyUp -= new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyUp += new KeyEventHandler(CControl_KeyUp2); + ableEdit.CControl.KeyPress -= new KeyPressEventHandler(CControl_KeyPress); + ableEdit.CControl.KeyPress += new KeyPressEventHandler(CControl_KeyPress); + SelectDictText.ChageText = ""; + if (myOpeRecord != null) + { + Control conl = sender.CControl; + if (conl is TextBox) + { + ((TextBox)conl).BorderStyle = BorderStyle.Fixed3D; + ((TextBox)conl).Focus(); + if (sender.PackValue != null && sender.PackValue.Trim() != "" && isRadio == false) + { + if (((TextBox)conl).Text.LastIndexOf(',') != sender.PackText.Length && ((TextBox)conl).Text != "") + ((TextBox)conl).Text = ((TextBox)conl).Text + ","; + } + ((TextBox)conl).Select(((TextBox)conl).Text.Length, 1); + } + ableEdit.CControl.TextChanged -= new EventHandler(CControl_TextChanged); + ableEdit.CControl.TextChanged += new EventHandler(CControl_TextChanged); + aSyncSelectDict.Show(template, OpeRecord, sender, _DictType, isRadio); + } + } } } diff --git a/DrawGraph/AreaManage/BaseInfoTopManage.cs b/DrawGraph/AreaManage/BaseInfoTopManage.cs index fe97932..210bfb4 100644 --- a/DrawGraph/AreaManage/BaseInfoTopManage.cs +++ b/DrawGraph/AreaManage/BaseInfoTopManage.cs @@ -294,7 +294,7 @@ namespace DrawGraph } //if (ci >= 30) //{ - // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); + // dt = DateTime.Parse(dt.ToString("yyyy-MM-dd HH:30:00")); //} //else if (ci < 30) //{ diff --git a/DrawGraph/AreaManage/DrugsManage.cs b/DrawGraph/AreaManage/DrugsManage.cs index 577439d..47e5eac 100644 --- a/DrawGraph/AreaManage/DrugsManage.cs +++ b/DrawGraph/AreaManage/DrugsManage.cs @@ -86,7 +86,7 @@ namespace DrawGraph { if (dsr.isEqualRow(y, BeginTime, addDragRowHeight)) { - record.Add(dsr); + record.Add(dsr); } } if (record.Count > 0) @@ -179,7 +179,9 @@ namespace DrawGraph DrugListstr.Add("ã€æ‰‹æœ¯ç”¨è¯ã€‘"); myOpeRecord.AfterDrugsListstr = new List(); myOpeRecord.AfterDrugsListstr.Add("ã€æœ¯åŽé•‡ç—›è¯ã€‘"); - myOpeRecord.BeforeDrugs = ""; + myOpeRecord.AnesBeforListstr = new List(); + myOpeRecord.AnesBeforListstr.Add("ã€éº»é†‰è¯±å¯¼ç”¨è¯ã€‘"); + myOpeRecord.BeforeDrugs = ""; int x = 0; foreach (var item in myOpeRecord.FactDrugList) { @@ -194,7 +196,12 @@ namespace DrawGraph { myOpeRecord.BeforeDrugs += string.Format("{0}{1} ", item.DrugName.Trim(), dose); } - if (item.GiveDrugType == "术åŽé•‡ç—›è¯") + else if (item.GiveDrugType == "麻醉诱导用è¯") + { + myOpeRecord.AnesBeforListstr.Add(string.Format("{0}{1} {2} {3}{4}{5}", "", item.DrugName.Trim(),"(诱导)", dose, "", item.DrugChannel == null ? "" : " " + item.DrugChannel.ToString())); + x++; + } + else if (item.GiveDrugType == "术åŽé•‡ç—›è¯") { myOpeRecord.AfterDrugsListstr.Add(string.Format("({0}){1} {2} {3}{4}{5}", x + 1, "", item.DrugName.Trim(), dose, "", item.DrugChannel == null ? "" : " " + item.DrugChannel.ToString())); myOpeRecord.AnalgesiaDrug += string.Format("{0}{1} ", item.DrugName.Trim(), dose); @@ -209,7 +216,7 @@ namespace DrawGraph }); List _FactDrugList = myOpeRecord.FactDrugList.Where(s => IfInTimeExist(s.DrugBeginTime, s.End) == true).ToList(); //存在氧气从第二行开始画 - if (_FactDrugList.Where(s => s.DrugName == "æ°§æ°”" && s.GiveDrugType != "麻醉å‰ç”¨è¯" && s.GiveDrugType != "术åŽé•‡ç—›è¯").ToList().Count > 0) rowDrugsIndex = 1; + if (_FactDrugList.Where(s => s.DrugName == "æ°§æ°”" && s.GiveDrugType != "麻醉å‰ç”¨è¯" && s.GiveDrugType != "术åŽé•‡ç—›è¯" && s.GiveDrugType != "麻醉诱导用è¯").ToList().Count > 0) rowDrugsIndex = 1; //åŠ è¯æŒ‰åŠ è¯æ—¶é—´æŽ’åº _FactDrugList.Sort(new FactDrugComparer()); @@ -217,7 +224,7 @@ namespace DrawGraph for (int i = 0; i < _FactDrugList.Count; i++) { FactDrug temp = _FactDrugList[i]; - if (temp.GiveDrugType == "麻醉å‰ç”¨è¯" || temp.GiveDrugType == "术åŽé•‡ç—›è¯" || temp.DrugChannel == "备用") continue;//|| temp.GiveDrugType == "麻醉诱导用è¯" + if (temp.GiveDrugType == "麻醉å‰ç”¨è¯" || temp.GiveDrugType == "术åŽé•‡ç—›è¯" || temp.DrugChannel == "备用"|| temp.GiveDrugType == "麻醉诱导用è¯") continue; //å­è¯ä¸ç”» if (temp.ParentId > 0) continue; bool isEqual = false; @@ -236,7 +243,7 @@ namespace DrawGraph for (int j = 0; j < i; j++) { FactDrug addDrug1 = _FactDrugList[j]; - if (addDrug1.GiveDrugType == "麻醉å‰ç”¨è¯" || addDrug1.GiveDrugType == "术åŽé•‡ç—›è¯" || addDrug1.DrugChannel == "备用") continue;//|| temp.GiveDrugType == "麻醉诱导用è¯" + if (addDrug1.GiveDrugType == "麻醉å‰ç”¨è¯" || addDrug1.GiveDrugType == "术åŽé•‡ç—›è¯" || addDrug1.GiveDrugType == "麻醉诱导用è¯" || addDrug1.DrugChannel == "备用") continue; 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) @@ -311,7 +318,7 @@ namespace DrawGraph myOpeRecord.DrugsListstr = DrugListstr; if (myOpeRecord.BeforeDrugs == null || myOpeRecord.BeforeDrugs == "") myOpeRecord.BeforeDrugs = "æ— "; - template.SetObjValue(myOpeRecord, "OperationRecord.BeforeDrugs", myOpeRecord.BeforeDrugs, myOpeRecord.BeforeDrugs); + template.SetObjValue(myOpeRecord, "OperationRecord.BeforeDrugs", myOpeRecord.BeforeDrugs, myOpeRecord.BeforeDrugs); template.SetObjValue(myOpeRecord, "OperationRecord.AnalgesiaDrug", myOpeRecord.AnalgesiaDrug, myOpeRecord.AnalgesiaDrug); DrawDrugSapDose(); } @@ -348,8 +355,7 @@ namespace DrawGraph } private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp) { - double height = getYPositionByListIndex(1, lines.RealY, lines.RealEndY, RowsCount) / 2; - //double x = H3pack.RealX + 0.003f; + double height = getYPositionByListIndex(1, lines.RealY, lines.RealEndY, RowsCount) / 2; ZUtil.DrawLine2(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red); ZUtil.DrawLine2(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red); ZUtil.DrawLine2(x, y + height, x + 0.0055f, y + height, ZedControl, "zhuyDrugsend" + temp.Id, Color.Red); diff --git a/DrawGraph/AreaManage/MonitorManage.cs b/DrawGraph/AreaManage/MonitorManage.cs index f0093fc..a844665 100644 --- a/DrawGraph/AreaManage/MonitorManage.cs +++ b/DrawGraph/AreaManage/MonitorManage.cs @@ -108,7 +108,7 @@ namespace DrawGraph } else if (myOpeRecord.ComputerRect.Width >= 1600) { - font = new System.Drawing.Font("宋体", 6f); + font = new System.Drawing.Font("宋体", 7f); } else if (myOpeRecord.ComputerRect.Width >= 1024) { diff --git a/DrawGraph/AreaManage/OperationRecord.cs b/DrawGraph/AreaManage/OperationRecord.cs index 8a46a94..b76db24 100644 --- a/DrawGraph/AreaManage/OperationRecord.cs +++ b/DrawGraph/AreaManage/OperationRecord.cs @@ -398,7 +398,7 @@ namespace DrawGraph private string operationDate; private string opeSpecialCondition; private string bMI; - private string beforeDrugs; + private string beforeDrugs; private string anaesthesiaMethodName; private string anaesthesiaTechnology; private string anaesthesiaComplication; @@ -608,7 +608,7 @@ namespace DrawGraph /// /// 麻醉å‰ç”¨è¯ /// - [ClassAttributs(Description = "麻醉å‰ç”¨è¯")] + [ClassAttributs(Description = "麻醉å‰ç”¨è¯")] public string BeforeDrugs { get { return beforeDrugs; } @@ -1198,6 +1198,7 @@ namespace DrawGraph public List SapsListstr = new List(); public List OutsListstr = new List(); public List AfterDrugsListstr = new List(); + public List AnesBeforListstr = new List(); public List FluidListstr = new List(); public List PunctureAndIntubatio; public List PhysioConfigList; diff --git a/DrawGraph/AreaManage/PhysioDataConfig.cs b/DrawGraph/AreaManage/PhysioDataConfig.cs index 6e47648..52f2155 100644 --- a/DrawGraph/AreaManage/PhysioDataConfig.cs +++ b/DrawGraph/AreaManage/PhysioDataConfig.cs @@ -392,7 +392,8 @@ namespace DrawGraph } this.APhysioParams.Add(pd); Sort(); - curve.Points = APhysioParams; + if (curve != null) + curve.Points = APhysioParams; if (isInsertDB == true) PhysioDataService.AddPhysioData(pd); if (ShowText == true) @@ -655,7 +656,7 @@ namespace DrawGraph { if (pd.Value != Double.MaxValue && pd.Value > 0) { - viewValue = ((int)pd.Value).ToString(); + viewValue = ((double)pd.Value).ToString(); if (Enname == "Temp") viewValue = Math.Round(pd.Y, 1).ToString(); } @@ -910,6 +911,7 @@ namespace DrawGraph } public void EditAddItem(PhysioData pd) { + this.APhysioParams.Add(pd); PhysioDataService.AddPhysioData(pd); DrawTextPhysioData(pd); } @@ -922,11 +924,14 @@ namespace DrawGraph delAddObj(oldPd); DrawTextPhysioData(newPd); + this.APhysioParams.Remove(oldPd); + this.APhysioParams.Add(newPd); } public void EditDelItem(PhysioData pd) { delAddObj(pd); SetPositionText(pd, "-1"); + this.APhysioParams.Remove(pd); PhysioDataService.DelPhysioByValueData(pd); } public void SetPositionText(PhysioData pdTemp, string viewValue) diff --git a/DrawGraph/AreaManage/PhysioDataManage.cs b/DrawGraph/AreaManage/PhysioDataManage.cs index 11b90e2..79f5f23 100644 --- a/DrawGraph/AreaManage/PhysioDataManage.cs +++ b/DrawGraph/AreaManage/PhysioDataManage.cs @@ -398,8 +398,9 @@ namespace DrawGraph else { if (AnesOpeStatue == DoAnesOpeStatus.SelectArea) - { + { AnesOpeStatue = DoAnesOpeStatus.VIEW; + DeletePhysios(); } } @@ -438,74 +439,78 @@ namespace DrawGraph { if (AnesOpeStatue == DoAnesOpeStatus.VIEW) { - if (myOpeRecord.SAreaObj.Selected) - { - double startValue = myOpeRecord.SAreaObj.EndPds[0].Value; - double endValue = myOpeRecord.SAreaObj.StartPDs[0].Value; - double startValue2 = myOpeRecord.SAreaObj.EndPds[1].Value; - double endValue2 = myOpeRecord.SAreaObj.StartPDs[1].Value; - - List pdTemps = SelectPhysioDataByID(myOpeRecord.Id.Value, - myOpeRecord.SAreaObj.StartPD.RecordTime, - myOpeRecord.SAreaObj.EndPd.RecordTime, - startValue, endValue); - List pdTemps2 = SelectPhysioDataByID(myOpeRecord.Id.Value, - myOpeRecord.SAreaObj.StartPD.RecordTime, - myOpeRecord.SAreaObj.EndPd.RecordTime, - startValue2, endValue2); - - List selparameters = new List(); - foreach (PhysioDataConfig addPP in myOpeRecord.PhysioConfigList) - { - bool istrue = false; - foreach (int item in pdTemps) - { - if (item == addPP.Id && addPP.YAisx == 0) - { - istrue = true; - break; - } - } - foreach (int item in pdTemps2) - { - if (item == addPP.Id && addPP.YAisx == 1) - { - istrue = true; - break; - } - } - if (istrue == true) - selparameters.Add(addPP); - } - if (selparameters.Count <= 0) return; - - DeletePhysios frm = new DeletePhysios(myOpeRecord.Id.Value, - myOpeRecord.SAreaObj.StartPD.RecordTime, - myOpeRecord.SAreaObj.EndPd.RecordTime, - startValue, endValue, - startValue2, endValue2); - frm.selparameters = selparameters; - frm.FormClosed += (a, b) => - { - if (frm.isDelete == true) - { - myOpeRecord.SAreaObj.Clear(); - - template.Bind("MonitorManage"); - ZedControl.Refresh(); - } - else - { - myOpeRecord.SAreaObj.Clear(); - } - }; - frm.ShowDialog(); - - } + DeletePhysios(); } } } } + public void DeletePhysios() + { + if (myOpeRecord.SAreaObj.Selected) + { + double startValue = myOpeRecord.SAreaObj.EndPds[0].Value; + double endValue = myOpeRecord.SAreaObj.StartPDs[0].Value; + double startValue2 = myOpeRecord.SAreaObj.EndPds[1].Value; + double endValue2 = myOpeRecord.SAreaObj.StartPDs[1].Value; + + List pdTemps = SelectPhysioDataByID(myOpeRecord.Id.Value, + myOpeRecord.SAreaObj.StartPD.RecordTime, + myOpeRecord.SAreaObj.EndPd.RecordTime, + startValue, endValue); + List pdTemps2 = SelectPhysioDataByID(myOpeRecord.Id.Value, + myOpeRecord.SAreaObj.StartPD.RecordTime, + myOpeRecord.SAreaObj.EndPd.RecordTime, + startValue2, endValue2); + + List selparameters = new List(); + foreach (PhysioDataConfig addPP in myOpeRecord.PhysioConfigList) + { + bool istrue = false; + foreach (int item in pdTemps) + { + if (item == addPP.Id && addPP.YAisx == 0) + { + istrue = true; + break; + } + } + foreach (int item in pdTemps2) + { + if (item == addPP.Id && addPP.YAisx == 1) + { + istrue = true; + break; + } + } + if (istrue == true) + selparameters.Add(addPP); + } + if (selparameters.Count <= 0) return; + + DeletePhysios frm = new DeletePhysios(myOpeRecord.Id.Value, + myOpeRecord.SAreaObj.StartPD.RecordTime, + myOpeRecord.SAreaObj.EndPd.RecordTime, + startValue, endValue, + startValue2, endValue2); + frm.selparameters = selparameters; + frm.FormClosed += (a, b) => + { + if (frm.isDelete == true) + { + myOpeRecord.SAreaObj.Clear(); + + template.Bind("MonitorManage"); + ZedControl.Refresh(); + } + else + { + myOpeRecord.SAreaObj.Clear(); + } + }; + frm.ShowDialog(); + + } + } #endregion é‡å†™çš„äº‹ä»¶ç»“æŸ #region ç»‘å®šåŒºåŸŸæ•°æ® diff --git a/DrawGraph/AreaManage/RemarkManage.cs b/DrawGraph/AreaManage/RemarkManage.cs index eb8e971..0496c38 100644 --- a/DrawGraph/AreaManage/RemarkManage.cs +++ b/DrawGraph/AreaManage/RemarkManage.cs @@ -162,6 +162,8 @@ namespace DrawGraph { PublicMethod.WriteLog(ex); } + //éº»é†‰è¯±å¯¼ç”¨è¯ + SetRemarkInfo(myOpeRecord.AnesBeforListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength); //事件备注 SetRemarkInfo(myOpeRecord.EventListstr, remarkRowscount, ref x, ref remarkRow, ref AllRemarkRow, fontsize, ref fontlength); //用è¯å¤‡æ³¨ diff --git a/DrawGraph/AreaManage/SapManage.cs b/DrawGraph/AreaManage/SapManage.cs index c01416d..117ebe5 100644 --- a/DrawGraph/AreaManage/SapManage.cs +++ b/DrawGraph/AreaManage/SapManage.cs @@ -100,7 +100,7 @@ namespace DrawGraph { if (dsr.isEqualRow(y, BeginTime, addDragRowHeight)) { - record.Add(dsr); + record.Add(dsr); } } if (record.Count > 0) @@ -227,8 +227,8 @@ namespace DrawGraph for (int i = 0; i < _FactDrugList.Count; i++) { FactDrug temp = _FactDrugList[i]; - if (temp.GiveDrugType == "麻醉å‰ç”¨è¯" || temp.GiveDrugType == "术åŽé•‡ç—›è¯" || temp.DrugChannel == "备用") continue;//|| temp.GiveDrugType == "麻醉诱导用è¯" - //å­è¯ä¸ç”» + if (temp.GiveDrugType == "麻醉å‰ç”¨è¯" || temp.GiveDrugType == "术åŽé•‡ç—›è¯" || temp.DrugChannel == "备用" || temp.GiveDrugType == "麻醉诱导用è¯") continue; + //å­è¯ä¸ç”» if (temp.ParentId > 0) continue; bool isEqual = false; bool isChildEqual = false; @@ -352,8 +352,7 @@ namespace DrawGraph } private void DrawZuDragsLine(double x, double y, double zhuy, FactDrug temp) { - double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, RowsCount) / 2; - //double x = H3pack.RealX + 0.003f; + double height = getYPositionByListIndex(1, sapPpack.RealY, sapPpack.RealEndY, RowsCount) / 2; ZUtil.DrawLine2(x, zhuy + height, x, y + height, ZedControl, "zhuyDrugs" + temp.Id, Color.Red); ZUtil.DrawLine2(x, zhuy + height, x + 0.0055f, zhuy + height, ZedControl, "zhuyDrugstop" + temp.Id, Color.Red); ZUtil.DrawLine2(x, y + height, x + 0.0055f, y + height, ZedControl, "zhuyDrugsend" + temp.Id, Color.Red); diff --git a/DrawGraph/AreaManage/SelectDictText.cs b/DrawGraph/AreaManage/SelectDictText.cs index aac1b18..d4aad80 100644 --- a/DrawGraph/AreaManage/SelectDictText.cs +++ b/DrawGraph/AreaManage/SelectDictText.cs @@ -14,8 +14,8 @@ namespace DrawGraph private volatile static SelectDictText _instance = null; private static readonly object lockHelper = new object(); - public delegate void SetValueHandler(string Value, AbleEditPackObj aEdit); - public static event SetValueHandler SetValue; + //public delegate void SetValueHandler(string Value, string key, AbleEditPackObj aEdit); + //public static event SetValueHandler SetValue; private SelectDictText() { } public static SelectDictText CreateInstance() @@ -94,8 +94,10 @@ namespace DrawGraph static string type; public static TemplateManage template; public static object OpeRecord; + public static string Key; public static string Value; public static bool isRadio; + public static string ChageText = ""; public void Show(TemplateManage _template, object _OpeRecord, AbleEditPackObj _aEdit, string _type, bool _isRadio) { @@ -106,7 +108,15 @@ namespace DrawGraph OpeRecord = _OpeRecord; if (aEdit == null) return; Value = aEdit.PackText; - DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), ""); + if (aEdit.ControlTitleText == "手术" || aEdit.ControlTitleText == "诊断" || aEdit.ControlTitleText == "人员") + { + Key = aEdit.PackValue; + } + else + { + Key = ""; + } + DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), "", aEdit.ControlTitleText, type.ToString(), Key); dgvZd.DataSource = dt; dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText + ""; @@ -126,26 +136,36 @@ namespace DrawGraph dgvZd.Visible = true; dgvZd.BringToFront(); } - public void ShowSel(Control CControl, object _OpeRecord) + public void ShowSel(TemplateManage _template, Control CControl, object _OpeRecord, AbleEditPackObj _aEdit) { + template = _template; OpeRecord = _OpeRecord; + aEdit = _aEdit; if (aEdit == null) return; if (dgvZd.Visible == false) return; + Key = aEdit.PackValue; Value = aEdit.PackText; - string text = CControl.Text; - text = text.Replace(Value + ",", ""); - DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), text, aEdit.ControlTitleText, type.ToString(), ""); + if (Value == null || Value == "") + ChageText = CControl.Text; + else if (CControl.Text.Contains(",")) + ChageText = CControl.Text.Substring(CControl.Text.LastIndexOf(",") + 1, CControl.Text.Length - CControl.Text.LastIndexOf(",") - 1); + DataTable dt = DBManage.GetDictDataTable((OpeRecord as OperationRecord), ChageText, aEdit.ControlTitleText, type.ToString(), Key); dgvZd.DataSource = dt; dgvZd.BringToFront(); } - public void DelSel(Control CControl, object _OpeRecord) + public void DelSel(TemplateManage _template, Control CControl, object _OpeRecord, AbleEditPackObj _aEdit) { + template = _template; OpeRecord = _OpeRecord; + aEdit = _aEdit; if (aEdit == null) return; + Key = aEdit.PackValue; + Value = aEdit.PackText; if (CControl.Text.Trim() != "" && CControl.Text != Value) { string[] strs = CControl.Text.Split(','); string[] names = Value.Split(','); + string[] ids = Key.Split(','); List namevalue = new List(); List idvalue = new List(); @@ -157,30 +177,36 @@ namespace DrawGraph if (strs[i] == names[j] && !namevalue.Contains(names[j])) { namevalue.Add(names[j]); + idvalue.Add(ids[j]); } } } if (idvalue.Count > 0) { Value = string.Join(",", namevalue); + Key = string.Join(",", idvalue); } else { Value = ""; + Key = ""; } dgvZd.Visible = false; //aEdit.IsVisible = !aEdit.IsVisible; + aEdit.CControl.Text = Value; //设置属性的值 - template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Value, true); + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Key, true); } else { Value = ""; + Key = ""; dgvZd.Visible = false; + aEdit.CControl.Text = Value; //aEdit.IsVisible = !aEdit.IsVisible; //设置属性的值 - template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Value, true); + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Key, true); } } public static void Hidden(bool isShow = false) @@ -218,11 +244,21 @@ namespace DrawGraph if (isRadio == true) { + Key = id.ToString(); Value = name; } else { - Value = Value + "," + name; + if (Key != null && Key.Trim() != "") + { + Key = Key + "," + id; + Value = Value + "," + name; + } + else + { + Key = id.ToString(); + Value = name; + } } index = 0; @@ -236,14 +272,20 @@ namespace DrawGraph { aEdit.PackValue += (aEdit.PackValue == "" ? "" : "+") + Value; aEdit.PackText += (aEdit.PackText == "" ? "" : "+") + Value; - SetValue(aEdit.PackValue, aEdit); + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, aEdit.PackText, aEdit.PackValue, true); } } + else if (aEdit.ControlTitleText == "手术" || aEdit.ControlTitleText == "诊断" || aEdit.ControlTitleText == "人员") + { + aEdit.PackValue = Key; + aEdit.PackText = Value; + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Key, true); + } else { aEdit.PackValue = Value; aEdit.PackText = Value; - SetValue(aEdit.PackValue, aEdit); + template.SetObjValue(OpeRecord, aEdit.ClassDataSourceName, Value, Value, true); } } } diff --git a/DrawGraph/AreaManage/TempDataManage.cs b/DrawGraph/AreaManage/TempDataManage.cs index 4e681be..28fbbb0 100644 --- a/DrawGraph/AreaManage/TempDataManage.cs +++ b/DrawGraph/AreaManage/TempDataManage.cs @@ -71,7 +71,7 @@ namespace DrawGraph public override void Bind() { aSyncSelectDict = SelectDictText.CreateInstance(); - SelectDictText.SetValue += ASyncSelectDict_SetValue; + //SelectDictText.SetValue += ASyncSelectDict_SetValue; base.Bind(); init(); if (ableEdit2 != null) @@ -538,7 +538,7 @@ namespace DrawGraph ableEdit.CControl.Leave += new EventHandler(txt_Leave); } } - private void ASyncSelectDict_SetValue(string Text, AbleEditPackObj aEdit) + private void ASyncSelectDict_SetValue(string Text, string Key, AbleEditPackObj aEdit) { aEdit.PackValue = Text; aEdit.PackText = Text;