diff --git a/AIMS/DocManager/frmDocument3.cs b/AIMS/DocManager/frmDocument3.cs index a731e60..7e9ee6d 100644 --- a/AIMS/DocManager/frmDocument3.cs +++ b/AIMS/DocManager/frmDocument3.cs @@ -2,6 +2,7 @@ using AIMSBLL; using AIMSExtension; using AIMSModel; +using DCSoftDotfuscate; using DevComponents.DotNetBar; using DocumentManagement; using System; @@ -51,7 +52,7 @@ namespace AIMS.OperationAfter.UI sb.Append("性别:" + Patient.Sex + t); sb.Append("手术名称:" + Patient.OperationInfoName + t); sb.Append("状态:" + Patient.State + t); - this.lblPatient.Text = sb.ToString(); + this.lblPatient.Text = sb.ToString(); } /// @@ -89,27 +90,30 @@ namespace AIMS.OperationAfter.UI DataTable vPlanedOpeList = BOperationApply.GetOperationFrontDataTable(beginTime.ToString("yyyy-MM-dd 00:00:00"), endTime.ToString("yyyy-MM-dd 23:59:59")); if (vPlanedOpeList.Rows.Count <= 0) return; - vPlanedOpeList = AIMSExtension.PublicMethod.GetNewDataTable( vPlanedOpeList, "State not IN ('退回') ", ""); - string roomname = ""; + vPlanedOpeList = AIMSExtension.PublicMethod.GetNewDataTable(vPlanedOpeList, "State not IN ('退回') ", ""); + + List list = new List(); foreach (DataRow po in vPlanedOpeList.Rows) { - if (po["OperationRoom"].ToString() != roomname) + if (po["OperationRoom"].ToString() != "" && !list.Contains(po["OperationRoom"].ToString())) + list.Add(po["OperationRoom"].ToString()); + } + foreach (var item in list) + { + TreeNode roomnode = new TreeNode(item); + roomnode.Tag = item; + treeViewPatient.Nodes.Add(roomnode); + foreach (DataRow vpo in vPlanedOpeList.Rows) { - roomname = po["OperationRoom"].ToString(); - TreeNode roomnode = new TreeNode(roomname); - roomnode.Tag = po["OperationRoomId"].ToString(); - treeViewPatient.Nodes.Add(roomnode); - foreach (DataRow vpo in vPlanedOpeList.Rows) + if (item == vpo["OperationRoom"].ToString()) { - if (po["OperationRoom"].ToString() == vpo["OperationRoom"].ToString()) - { - TreeNode sNode = new TreeNode(vpo["PatientName"].ToString() + "-" + vpo["MdrecNo"].ToString()); - sNode.Tag = vpo; - roomnode.Nodes.Add(sNode); - } + TreeNode sNode = new TreeNode(vpo["PatientName"].ToString() + "-" + vpo["MdrecNo"].ToString()); + sNode.Tag = vpo; + roomnode.Nodes.Add(sNode); } } - } + + } TreeNode roomnodenull = new TreeNode("未排程"); foreach (DataRow vpo in vPlanedOpeList.Rows) { @@ -412,25 +416,25 @@ namespace AIMS.OperationAfter.UI } private void buttonX1_Click(object sender, EventArgs e) - { + { if (PublicMethod.GetHospitalName().Contains("秦皇岛")) { if (Patient.HISPatientId != null && Patient.VisitTimes != null) { try - { - string patientId = "orcl:LDQ:5:1:0:" + Patient.HISPatientId + ":" + Patient.VisitTimes + ""; - Process myprocess = new Process(); - ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\APPSOFT\zlSoftCISInterface.exe", patientId); - PublicMethod.WriteLog(new Exception(@"C:\APPSOFT\zlSoftCISInterface.exe" + patientId)); - myprocess.StartInfo = startInfo; - myprocess.StartInfo.UseShellExecute = false; - myprocess.Start(); - } - catch (Exception ex) - { - MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”"); - } + { + string patientId = "orcl:LDQ:5:1:0:" + Patient.HISPatientId + ":" + Patient.VisitTimes + ""; + Process myprocess = new Process(); + ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\APPSOFT\zlSoftCISInterface.exe", patientId); + PublicMethod.WriteLog(new Exception(@"C:\APPSOFT\zlSoftCISInterface.exe" + patientId)); + myprocess.StartInfo = startInfo; + myprocess.StartInfo.UseShellExecute = false; + myprocess.Start(); + } + catch (Exception ex) + { + MessageBox.Show(@"在C:\APPSOFT\zlSoftCISInterface.exe路径下找不到“zlSoftCISInterface.exe”"); + } } } } diff --git a/AIMS/OperationAfter/frmOperationManage.Designer.cs b/AIMS/OperationAfter/frmOperationManage.Designer.cs index aabc045..a19088b 100644 --- a/AIMS/OperationAfter/frmOperationManage.Designer.cs +++ b/AIMS/OperationAfter/frmOperationManage.Designer.cs @@ -38,17 +38,69 @@ this.tsbExit = new System.Windows.Forms.ToolStripButton(); this.panel1 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); + this.dgv = new System.Windows.Forms.DataGridView(); + this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); + this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.StateColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Age = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.SickBedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PatientType = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperatorNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OrderOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.InRoomTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OutRoomTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.RoomHourTimeSpan = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnesthesiaBeginTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnesthesiaEndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnaesthesiaHourTimeSpan = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationBeginTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationEndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationHourTimeSpan = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationInfoName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationCutTypeName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationPositionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationBodyPositionName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationLevelNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ASALevelName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Assistant1Column = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.AnesthesiaDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.TourNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.InstrumentNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationRoomColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.PlanOrder = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.IsNotPlanReturnOperation = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.RemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperatorName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel2 = new System.Windows.Forms.Panel(); + this.cboIsNotPlanReturnOperation = new DevComponents.DotNetBar.Controls.CheckBoxX(); this.txtName = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); + this.txtOperation = new System.Windows.Forms.TextBox(); + this.label9 = new System.Windows.Forms.Label(); this.txtArchivesNo = new System.Windows.Forms.TextBox(); this.label6 = new System.Windows.Forms.Label(); + this.tokenEditor3 = new DevComponents.DotNetBar.Controls.TokenEditor(); this.tokenEditor2 = new DevComponents.DotNetBar.Controls.TokenEditor(); this.tokenEditor1 = new DevComponents.DotNetBar.Controls.TokenEditor(); + this.panel5 = new System.Windows.Forms.Panel(); + this.rboZY = new System.Windows.Forms.RadioButton(); + this.rboMZ = new System.Windows.Forms.RadioButton(); + this.label10 = new System.Windows.Forms.Label(); this.panel4 = new System.Windows.Forms.Panel(); this.rboZQ = new System.Windows.Forms.RadioButton(); this.rboJZ = new System.Windows.Forms.RadioButton(); this.label20 = new System.Windows.Forms.Label(); + this.label8 = new System.Windows.Forms.Label(); this.btnFind = new System.Windows.Forms.Button(); this.label7 = new System.Windows.Forms.Label(); this.dtpBegInDate = new System.Windows.Forms.DateTimePicker(); @@ -58,41 +110,13 @@ this.dtpEndDate = new System.Windows.Forms.DateTimePicker(); this.cboDepartment = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); - this.dgv = new System.Windows.Forms.DataGridView(); - this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.StateColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDepNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SickBedColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientType = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.MdrecNoColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PatientNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.SexColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Age = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperatorNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationTypeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OrderOperationTimeColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyDiagnoseInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationInfoNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnaesthesiaMethodNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Assistant1Column = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationPositionNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationLevelNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ApplyOperationCutTypeNameColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.AnesthesiaDoctorColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.TourNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.InstrumentNurseColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRoomColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.PlanOrder = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.RemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.toolStrip1.SuspendLayout(); this.panel1.SuspendLayout(); this.panel3.SuspendLayout(); - this.panel2.SuspendLayout(); - this.panel4.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit(); + this.panel2.SuspendLayout(); + this.panel5.SuspendLayout(); + this.panel4.SuspendLayout(); this.SuspendLayout(); // // toolStrip1 @@ -190,21 +214,380 @@ // this.panel3.Controls.Add(this.dgv); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 78); + this.panel3.Location = new System.Drawing.Point(0, 116); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1004, 354); + this.panel3.Size = new System.Drawing.Size(1004, 316); this.panel3.TabIndex = 1; // + // dgv + // + this.dgv.AllowUserToAddRows = false; + this.dgv.BackgroundColor = System.Drawing.Color.White; + this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.CheckBoxColumn, + this.ApplyId, + this.StateColumn, + this.PatientNameColumn, + this.SexColumn, + this.Age, + this.ApplyDepNameColumn, + this.SickBedColumn, + this.PatientType, + this.MdrecNoColumn, + this.OperationTypeColumn, + this.ApplyOperatorNameColumn, + this.ApplyTimeColumn, + this.OrderOperationTimeColumn, + this.ApplyDiagnoseInfoNameColumn, + this.ApplyOperationInfoNameColumn, + this.InRoomTime, + this.OutRoomTime, + this.RoomHourTimeSpan, + this.AnesthesiaBeginTime, + this.AnesthesiaEndTime, + this.AnaesthesiaHourTimeSpan, + this.OperationBeginTime, + this.OperationEndTime, + this.OperationHourTimeSpan, + this.AnaesthesiaMethodNameColumn, + this.OperationInfoName, + this.OperationCutTypeName, + this.OperationPositionName, + this.OperationBodyPositionName, + this.OperationLevelNameColumn, + this.ASALevelName, + this.OperationDoctorColumn, + this.Assistant1Column, + this.AnesthesiaDoctorColumn, + this.TourNurseColumn, + this.InstrumentNurseColumn, + this.OperationRoomColumn, + this.PlanOrder, + this.IsNotPlanReturnOperation, + this.RemarkColumn, + this.OperatorName}); + this.dgv.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgv.Location = new System.Drawing.Point(0, 0); + this.dgv.Name = "dgv"; + this.dgv.RowTemplate.Height = 23; + this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.dgv.Size = new System.Drawing.Size(1004, 316); + this.dgv.TabIndex = 4; + // + // CheckBoxColumn + // + this.CheckBoxColumn.HeaderText = "选择"; + this.CheckBoxColumn.Name = "CheckBoxColumn"; + this.CheckBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.CheckBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.CheckBoxColumn.Width = 35; + // + // ApplyId + // + this.ApplyId.DataPropertyName = "ApplyId"; + this.ApplyId.HeaderText = "ApplyId"; + this.ApplyId.Name = "ApplyId"; + this.ApplyId.ReadOnly = true; + this.ApplyId.Visible = false; + // + // StateColumn + // + this.StateColumn.DataPropertyName = "State"; + this.StateColumn.HeaderText = "状态"; + this.StateColumn.Name = "StateColumn"; + this.StateColumn.ReadOnly = true; + this.StateColumn.Width = 60; + // + // PatientNameColumn + // + this.PatientNameColumn.DataPropertyName = "PatientName"; + this.PatientNameColumn.HeaderText = "姓名"; + this.PatientNameColumn.Name = "PatientNameColumn"; + this.PatientNameColumn.ReadOnly = true; + this.PatientNameColumn.Width = 60; + // + // SexColumn + // + this.SexColumn.DataPropertyName = "Sex"; + this.SexColumn.HeaderText = "性别"; + this.SexColumn.Name = "SexColumn"; + this.SexColumn.ReadOnly = true; + this.SexColumn.Width = 40; + // + // Age + // + this.Age.DataPropertyName = "Age"; + this.Age.HeaderText = "年龄"; + this.Age.Name = "Age"; + this.Age.Width = 40; + // + // ApplyDepNameColumn + // + this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName"; + this.ApplyDepNameColumn.HeaderText = "科室"; + this.ApplyDepNameColumn.Name = "ApplyDepNameColumn"; + this.ApplyDepNameColumn.ReadOnly = true; + this.ApplyDepNameColumn.Width = 80; + // + // SickBedColumn + // + this.SickBedColumn.DataPropertyName = "SickBed"; + this.SickBedColumn.HeaderText = "床位"; + this.SickBedColumn.Name = "SickBedColumn"; + this.SickBedColumn.ReadOnly = true; + this.SickBedColumn.Width = 40; + // + // PatientType + // + this.PatientType.DataPropertyName = "PatientType"; + this.PatientType.HeaderText = "患者类别"; + this.PatientType.Name = "PatientType"; + this.PatientType.Width = 80; + // + // MdrecNoColumn + // + this.MdrecNoColumn.DataPropertyName = "MdrecNo"; + this.MdrecNoColumn.HeaderText = "住院号"; + this.MdrecNoColumn.Name = "MdrecNoColumn"; + this.MdrecNoColumn.ReadOnly = true; + this.MdrecNoColumn.Width = 70; + // + // OperationTypeColumn + // + this.OperationTypeColumn.DataPropertyName = "OperationType"; + this.OperationTypeColumn.HeaderText = "手术类型"; + this.OperationTypeColumn.Name = "OperationTypeColumn"; + this.OperationTypeColumn.ReadOnly = true; + this.OperationTypeColumn.Width = 80; + // + // ApplyOperatorNameColumn + // + this.ApplyOperatorNameColumn.DataPropertyName = "ApplyOperatorNo"; + this.ApplyOperatorNameColumn.HeaderText = "申请人"; + this.ApplyOperatorNameColumn.Name = "ApplyOperatorNameColumn"; + this.ApplyOperatorNameColumn.ReadOnly = true; + this.ApplyOperatorNameColumn.Width = 70; + // + // ApplyTimeColumn + // + this.ApplyTimeColumn.DataPropertyName = "ApplyTime"; + this.ApplyTimeColumn.HeaderText = "申请时间"; + this.ApplyTimeColumn.Name = "ApplyTimeColumn"; + this.ApplyTimeColumn.Width = 110; + // + // OrderOperationTimeColumn + // + this.OrderOperationTimeColumn.DataPropertyName = "OrderOperationTime"; + this.OrderOperationTimeColumn.HeaderText = "预约时间"; + this.OrderOperationTimeColumn.Name = "OrderOperationTimeColumn"; + this.OrderOperationTimeColumn.ReadOnly = true; + this.OrderOperationTimeColumn.Width = 110; + // + // ApplyDiagnoseInfoNameColumn + // + this.ApplyDiagnoseInfoNameColumn.DataPropertyName = "ApplyDiagnoseInfoName"; + this.ApplyDiagnoseInfoNameColumn.HeaderText = "术前诊断"; + this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn"; + this.ApplyDiagnoseInfoNameColumn.ReadOnly = true; + this.ApplyDiagnoseInfoNameColumn.Width = 150; + // + // ApplyOperationInfoNameColumn + // + this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName"; + this.ApplyOperationInfoNameColumn.HeaderText = "拟施手术"; + this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn"; + this.ApplyOperationInfoNameColumn.ReadOnly = true; + this.ApplyOperationInfoNameColumn.Width = 150; + // + // InRoomTime + // + this.InRoomTime.DataPropertyName = "InRoomTime"; + this.InRoomTime.HeaderText = "入室时间"; + this.InRoomTime.Name = "InRoomTime"; + // + // OutRoomTime + // + this.OutRoomTime.DataPropertyName = "OutRoomTime"; + this.OutRoomTime.HeaderText = "出室时间"; + this.OutRoomTime.Name = "OutRoomTime"; + // + // RoomHourTimeSpan + // + this.RoomHourTimeSpan.DataPropertyName = "RoomHourTimeSpan"; + this.RoomHourTimeSpan.HeaderText = "总时长"; + this.RoomHourTimeSpan.Name = "RoomHourTimeSpan"; + // + // AnesthesiaBeginTime + // + this.AnesthesiaBeginTime.DataPropertyName = "AnesthesiaBeginTime"; + this.AnesthesiaBeginTime.HeaderText = "麻醉开始时间"; + this.AnesthesiaBeginTime.Name = "AnesthesiaBeginTime"; + // + // AnesthesiaEndTime + // + this.AnesthesiaEndTime.DataPropertyName = "AnesthesiaEndTime"; + this.AnesthesiaEndTime.HeaderText = "麻醉结束时间"; + this.AnesthesiaEndTime.Name = "AnesthesiaEndTime"; + // + // AnaesthesiaHourTimeSpan + // + this.AnaesthesiaHourTimeSpan.DataPropertyName = "AnaesthesiaHourTimeSpan"; + this.AnaesthesiaHourTimeSpan.HeaderText = "麻醉时长"; + this.AnaesthesiaHourTimeSpan.Name = "AnaesthesiaHourTimeSpan"; + // + // OperationBeginTime + // + this.OperationBeginTime.DataPropertyName = "OperationBeginTime"; + this.OperationBeginTime.HeaderText = "手术开始时间"; + this.OperationBeginTime.Name = "OperationBeginTime"; + // + // OperationEndTime + // + this.OperationEndTime.DataPropertyName = "OperationEndTime"; + this.OperationEndTime.HeaderText = "手术结束时间"; + this.OperationEndTime.Name = "OperationEndTime"; + // + // OperationHourTimeSpan + // + this.OperationHourTimeSpan.DataPropertyName = "OperationHourTimeSpan"; + this.OperationHourTimeSpan.HeaderText = "手术时长"; + this.OperationHourTimeSpan.Name = "OperationHourTimeSpan"; + // + // AnaesthesiaMethodNameColumn + // + this.AnaesthesiaMethodNameColumn.DataPropertyName = "AnaesthesiaMethodName"; + this.AnaesthesiaMethodNameColumn.HeaderText = "麻醉方式"; + this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn"; + this.AnaesthesiaMethodNameColumn.ReadOnly = true; + // + // OperationInfoName + // + this.OperationInfoName.DataPropertyName = "OperationInfoName"; + this.OperationInfoName.HeaderText = "实施手术"; + this.OperationInfoName.Name = "OperationInfoName"; + // + // OperationCutTypeName + // + this.OperationCutTypeName.DataPropertyName = "OperationCutTypeName"; + this.OperationCutTypeName.HeaderText = "切口类型"; + this.OperationCutTypeName.Name = "OperationCutTypeName"; + this.OperationCutTypeName.ReadOnly = true; + this.OperationCutTypeName.Width = 80; + // + // OperationPositionName + // + this.OperationPositionName.DataPropertyName = "OperationPositionName"; + this.OperationPositionName.HeaderText = "手术部位"; + this.OperationPositionName.Name = "OperationPositionName"; + this.OperationPositionName.Width = 80; + // + // OperationBodyPositionName + // + this.OperationBodyPositionName.DataPropertyName = "OperationBodyPositionName"; + this.OperationBodyPositionName.HeaderText = "手术体位"; + this.OperationBodyPositionName.Name = "OperationBodyPositionName"; + // + // OperationLevelNameColumn + // + this.OperationLevelNameColumn.DataPropertyName = "OperationLevelName"; + this.OperationLevelNameColumn.HeaderText = "手术分级"; + this.OperationLevelNameColumn.Name = "OperationLevelNameColumn"; + this.OperationLevelNameColumn.ReadOnly = true; + this.OperationLevelNameColumn.Width = 80; + // + // ASALevelName + // + this.ASALevelName.DataPropertyName = "ASALevelName"; + this.ASALevelName.HeaderText = "ASA等级"; + this.ASALevelName.Name = "ASALevelName"; + // + // OperationDoctorColumn + // + this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; + this.OperationDoctorColumn.HeaderText = "术者"; + this.OperationDoctorColumn.Name = "OperationDoctorColumn"; + this.OperationDoctorColumn.ReadOnly = true; + this.OperationDoctorColumn.Width = 60; + // + // Assistant1Column + // + this.Assistant1Column.DataPropertyName = "Assistants"; + this.Assistant1Column.HeaderText = "助手"; + this.Assistant1Column.Name = "Assistant1Column"; + this.Assistant1Column.Width = 90; + // + // AnesthesiaDoctorColumn + // + this.AnesthesiaDoctorColumn.DataPropertyName = "AnesthesiaDoctor"; + this.AnesthesiaDoctorColumn.HeaderText = "麻醉"; + this.AnesthesiaDoctorColumn.Name = "AnesthesiaDoctorColumn"; + this.AnesthesiaDoctorColumn.Width = 60; + // + // TourNurseColumn + // + this.TourNurseColumn.DataPropertyName = "TourNurse"; + this.TourNurseColumn.HeaderText = "巡回"; + this.TourNurseColumn.Name = "TourNurseColumn"; + this.TourNurseColumn.Width = 60; + // + // InstrumentNurseColumn + // + this.InstrumentNurseColumn.DataPropertyName = "InstrumentNurse"; + this.InstrumentNurseColumn.HeaderText = "器械"; + this.InstrumentNurseColumn.Name = "InstrumentNurseColumn"; + this.InstrumentNurseColumn.Width = 60; + // + // OperationRoomColumn + // + this.OperationRoomColumn.DataPropertyName = "OperationRoom"; + this.OperationRoomColumn.HeaderText = "术间"; + this.OperationRoomColumn.Name = "OperationRoomColumn"; + this.OperationRoomColumn.ReadOnly = true; + this.OperationRoomColumn.Width = 40; + // + // PlanOrder + // + this.PlanOrder.DataPropertyName = "PlanOrder"; + this.PlanOrder.HeaderText = "台次"; + this.PlanOrder.Name = "PlanOrder"; + this.PlanOrder.Width = 40; + // + // IsNotPlanReturnOperation + // + this.IsNotPlanReturnOperation.DataPropertyName = "IsNotPlanReturnOperation"; + this.IsNotPlanReturnOperation.HeaderText = "非计划二次手术"; + this.IsNotPlanReturnOperation.Name = "IsNotPlanReturnOperation"; + // + // RemarkColumn + // + this.RemarkColumn.DataPropertyName = "Remark"; + this.RemarkColumn.HeaderText = "停止原因"; + this.RemarkColumn.Name = "RemarkColumn"; + // + // OperatorName + // + this.OperatorName.DataPropertyName = "OperatorName"; + this.OperatorName.HeaderText = "停止人"; + this.OperatorName.Name = "OperatorName"; + // // panel2 // + this.panel2.Controls.Add(this.cboIsNotPlanReturnOperation); this.panel2.Controls.Add(this.txtName); this.panel2.Controls.Add(this.label5); + this.panel2.Controls.Add(this.txtOperation); + this.panel2.Controls.Add(this.label9); this.panel2.Controls.Add(this.txtArchivesNo); this.panel2.Controls.Add(this.label6); + this.panel2.Controls.Add(this.tokenEditor3); this.panel2.Controls.Add(this.tokenEditor2); this.panel2.Controls.Add(this.tokenEditor1); + this.panel2.Controls.Add(this.panel5); + this.panel2.Controls.Add(this.label10); this.panel2.Controls.Add(this.panel4); this.panel2.Controls.Add(this.label20); + this.panel2.Controls.Add(this.label8); this.panel2.Controls.Add(this.btnFind); this.panel2.Controls.Add(this.label7); this.panel2.Controls.Add(this.dtpBegInDate); @@ -218,29 +601,59 @@ this.panel2.Font = new System.Drawing.Font("宋体", 10.5F); this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1004, 78); + this.panel2.Size = new System.Drawing.Size(1004, 116); this.panel2.TabIndex = 0; // + // cboIsNotPlanReturnOperation + // + // + // + // + this.cboIsNotPlanReturnOperation.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.cboIsNotPlanReturnOperation.Location = new System.Drawing.Point(627, 72); + this.cboIsNotPlanReturnOperation.Name = "cboIsNotPlanReturnOperation"; + this.cboIsNotPlanReturnOperation.Size = new System.Drawing.Size(167, 23); + this.cboIsNotPlanReturnOperation.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.cboIsNotPlanReturnOperation.TabIndex = 39; + this.cboIsNotPlanReturnOperation.Text = "非计划二次手术"; + // // txtName // - this.txtName.Location = new System.Drawing.Point(433, 43); + this.txtName.Location = new System.Drawing.Point(518, 43); this.txtName.Name = "txtName"; - this.txtName.Size = new System.Drawing.Size(118, 23); + this.txtName.Size = new System.Drawing.Size(101, 23); this.txtName.TabIndex = 38; // // label5 // this.label5.AutoSize = true; this.label5.ForeColor = System.Drawing.Color.Black; - this.label5.Location = new System.Drawing.Point(387, 48); + this.label5.Location = new System.Drawing.Point(409, 48); this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(35, 14); + this.label5.Size = new System.Drawing.Size(105, 14); this.label5.TabIndex = 37; - this.label5.Text = "姓名"; + this.label5.Text = "术者/麻醉/护士"; + // + // txtOperation + // + this.txtOperation.Location = new System.Drawing.Point(358, 73); + this.txtOperation.Name = "txtOperation"; + this.txtOperation.Size = new System.Drawing.Size(253, 23); + this.txtOperation.TabIndex = 36; + // + // label9 + // + this.label9.AutoSize = true; + this.label9.ForeColor = System.Drawing.Color.Black; + this.label9.Location = new System.Drawing.Point(295, 78); + this.label9.Name = "label9"; + this.label9.Size = new System.Drawing.Size(63, 14); + this.label9.TabIndex = 35; + this.label9.Text = "手术名称"; // // txtArchivesNo // - this.txtArchivesNo.Location = new System.Drawing.Point(271, 43); + this.txtArchivesNo.Location = new System.Drawing.Point(298, 45); this.txtArchivesNo.Name = "txtArchivesNo"; this.txtArchivesNo.Size = new System.Drawing.Size(105, 23); this.txtArchivesNo.TabIndex = 36; @@ -251,9 +664,26 @@ this.label6.ForeColor = System.Drawing.Color.Black; this.label6.Location = new System.Drawing.Point(211, 48); this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(49, 14); + this.label6.Size = new System.Drawing.Size(84, 14); this.label6.TabIndex = 35; - this.label6.Text = "病历号"; + this.label6.Text = "住院号/姓名"; + // + // tokenEditor3 + // + // + // + // + this.tokenEditor3.BackgroundStyle.Class = "DateTimeInputBackground"; + this.tokenEditor3.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.tokenEditor3.CheckBoxesVisible = true; + this.tokenEditor3.DropDownButtonVisible = true; + this.tokenEditor3.Location = new System.Drawing.Point(73, 73); + this.tokenEditor3.Margin = new System.Windows.Forms.Padding(2); + this.tokenEditor3.Name = "tokenEditor3"; + this.tokenEditor3.Separators.Add(";"); + this.tokenEditor3.Separators.Add(","); + this.tokenEditor3.Size = new System.Drawing.Size(207, 24); + this.tokenEditor3.TabIndex = 34; // // tokenEditor2 // @@ -264,12 +694,12 @@ this.tokenEditor2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.tokenEditor2.CheckBoxesVisible = true; this.tokenEditor2.DropDownButtonVisible = true; - this.tokenEditor2.Location = new System.Drawing.Point(622, 43); + this.tokenEditor2.Location = new System.Drawing.Point(678, 43); this.tokenEditor2.Margin = new System.Windows.Forms.Padding(2); this.tokenEditor2.Name = "tokenEditor2"; this.tokenEditor2.Separators.Add(";"); this.tokenEditor2.Separators.Add(","); - this.tokenEditor2.Size = new System.Drawing.Size(207, 24); + this.tokenEditor2.Size = new System.Drawing.Size(124, 24); this.tokenEditor2.TabIndex = 34; // // tokenEditor1 @@ -289,6 +719,47 @@ this.tokenEditor1.Size = new System.Drawing.Size(207, 24); this.tokenEditor1.TabIndex = 34; // + // panel5 + // + this.panel5.Controls.Add(this.rboZY); + this.panel5.Controls.Add(this.rboMZ); + this.panel5.Location = new System.Drawing.Point(877, 11); + this.panel5.Name = "panel5"; + this.panel5.Size = new System.Drawing.Size(124, 26); + this.panel5.TabIndex = 33; + // + // rboZY + // + this.rboZY.AutoSize = true; + this.rboZY.Location = new System.Drawing.Point(6, 5); + this.rboZY.Name = "rboZY"; + this.rboZY.Size = new System.Drawing.Size(53, 18); + this.rboZY.TabIndex = 12; + this.rboZY.TabStop = true; + this.rboZY.Text = "住院"; + this.rboZY.UseVisualStyleBackColor = true; + // + // rboMZ + // + this.rboMZ.AutoSize = true; + this.rboMZ.Location = new System.Drawing.Point(63, 5); + this.rboMZ.Name = "rboMZ"; + this.rboMZ.Size = new System.Drawing.Size(53, 18); + this.rboMZ.TabIndex = 13; + this.rboMZ.TabStop = true; + this.rboMZ.Text = "门诊"; + this.rboMZ.UseVisualStyleBackColor = true; + // + // label10 + // + this.label10.AutoSize = true; + this.label10.ForeColor = System.Drawing.Color.Black; + this.label10.Location = new System.Drawing.Point(814, 16); + this.label10.Name = "label10"; + this.label10.Size = new System.Drawing.Size(63, 14); + this.label10.TabIndex = 32; + this.label10.Text = "患者类型"; + // // panel4 // this.panel4.Controls.Add(this.rboZQ); @@ -330,10 +801,19 @@ this.label20.TabIndex = 32; this.label20.Text = "手术类别"; // + // label8 + // + this.label8.AutoSize = true; + this.label8.Location = new System.Drawing.Point(5, 78); + this.label8.Name = "label8"; + this.label8.Size = new System.Drawing.Size(63, 14); + this.label8.TabIndex = 14; + this.label8.Text = "麻醉方式"; + // // btnFind // this.btnFind.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); - this.btnFind.Location = new System.Drawing.Point(841, 10); + this.btnFind.Location = new System.Drawing.Point(877, 40); this.btnFind.Name = "btnFind"; this.btnFind.Size = new System.Drawing.Size(105, 63); this.btnFind.TabIndex = 18; @@ -344,7 +824,7 @@ // label7 // this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(562, 48); + this.label7.Location = new System.Drawing.Point(624, 48); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(49, 14); this.label7.TabIndex = 14; @@ -399,7 +879,7 @@ // this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboDepartment.FormattingEnabled = true; - this.cboDepartment.Location = new System.Drawing.Point(79, 43); + this.cboDepartment.Location = new System.Drawing.Point(73, 43); this.cboDepartment.Name = "cboDepartment"; this.cboDepartment.Size = new System.Drawing.Size(121, 22); this.cboDepartment.TabIndex = 10; @@ -413,260 +893,6 @@ this.label1.TabIndex = 0; this.label1.Text = "申请科室"; // - // dgv - // - this.dgv.AllowUserToAddRows = false; - this.dgv.BackgroundColor = System.Drawing.Color.White; - this.dgv.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgv.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.CheckBoxColumn, - this.ApplyId, - this.StateColumn, - this.ApplyDepNameColumn, - this.SickBedColumn, - this.PatientType, - this.MdrecNoColumn, - this.PatientNameColumn, - this.SexColumn, - this.Age, - this.ApplyOperatorNameColumn, - this.OperationTypeColumn, - this.ApplyTimeColumn, - this.OrderOperationTimeColumn, - this.ApplyDiagnoseInfoNameColumn, - this.ApplyOperationInfoNameColumn, - this.AnaesthesiaMethodNameColumn, - this.OperationDoctorColumn, - this.Assistant1Column, - this.ApplyOperationPositionNameColumn, - this.OperationLevelNameColumn, - this.ApplyOperationCutTypeNameColumn, - this.AnesthesiaDoctorColumn, - this.TourNurseColumn, - this.InstrumentNurseColumn, - this.OperationRoomColumn, - this.PlanOrder, - this.RemarkColumn}); - this.dgv.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgv.Location = new System.Drawing.Point(0, 0); - this.dgv.Name = "dgv"; - this.dgv.RowTemplate.Height = 23; - this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv.Size = new System.Drawing.Size(1004, 354); - this.dgv.TabIndex = 4; - // - // CheckBoxColumn - // - this.CheckBoxColumn.HeaderText = "选择"; - this.CheckBoxColumn.Name = "CheckBoxColumn"; - this.CheckBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.CheckBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.CheckBoxColumn.Width = 35; - // - // ApplyId - // - this.ApplyId.DataPropertyName = "ApplyId"; - this.ApplyId.HeaderText = "ApplyId"; - this.ApplyId.Name = "ApplyId"; - this.ApplyId.ReadOnly = true; - this.ApplyId.Visible = false; - // - // StateColumn - // - this.StateColumn.DataPropertyName = "State"; - this.StateColumn.HeaderText = "状态"; - this.StateColumn.Name = "StateColumn"; - this.StateColumn.ReadOnly = true; - this.StateColumn.Width = 60; - // - // ApplyDepNameColumn - // - this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName"; - this.ApplyDepNameColumn.HeaderText = "申请科室"; - this.ApplyDepNameColumn.Name = "ApplyDepNameColumn"; - this.ApplyDepNameColumn.ReadOnly = true; - this.ApplyDepNameColumn.Width = 80; - // - // SickBedColumn - // - this.SickBedColumn.DataPropertyName = "SickBed"; - this.SickBedColumn.HeaderText = "床位"; - this.SickBedColumn.Name = "SickBedColumn"; - this.SickBedColumn.ReadOnly = true; - this.SickBedColumn.Width = 40; - // - // PatientType - // - this.PatientType.DataPropertyName = "PatientType"; - this.PatientType.HeaderText = "患者类别"; - this.PatientType.Name = "PatientType"; - this.PatientType.Width = 80; - // - // MdrecNoColumn - // - this.MdrecNoColumn.DataPropertyName = "MdrecNo"; - this.MdrecNoColumn.HeaderText = "住院号"; - this.MdrecNoColumn.Name = "MdrecNoColumn"; - this.MdrecNoColumn.ReadOnly = true; - this.MdrecNoColumn.Width = 70; - // - // PatientNameColumn - // - this.PatientNameColumn.DataPropertyName = "PatientName"; - this.PatientNameColumn.HeaderText = "姓名"; - this.PatientNameColumn.Name = "PatientNameColumn"; - this.PatientNameColumn.ReadOnly = true; - this.PatientNameColumn.Width = 60; - // - // SexColumn - // - this.SexColumn.DataPropertyName = "Sex"; - this.SexColumn.HeaderText = "性别"; - this.SexColumn.Name = "SexColumn"; - this.SexColumn.ReadOnly = true; - this.SexColumn.Width = 40; - // - // Age - // - this.Age.DataPropertyName = "Age"; - this.Age.HeaderText = "年龄"; - this.Age.Name = "Age"; - this.Age.Width = 40; - // - // ApplyOperatorNameColumn - // - this.ApplyOperatorNameColumn.DataPropertyName = "ApplyOperatorName"; - this.ApplyOperatorNameColumn.HeaderText = "申请人"; - this.ApplyOperatorNameColumn.Name = "ApplyOperatorNameColumn"; - this.ApplyOperatorNameColumn.ReadOnly = true; - this.ApplyOperatorNameColumn.Width = 70; - // - // OperationTypeColumn - // - this.OperationTypeColumn.DataPropertyName = "OperationType"; - this.OperationTypeColumn.HeaderText = "手术类型"; - this.OperationTypeColumn.Name = "OperationTypeColumn"; - this.OperationTypeColumn.ReadOnly = true; - this.OperationTypeColumn.Width = 40; - // - // ApplyTimeColumn - // - this.ApplyTimeColumn.DataPropertyName = "ApplyTime"; - this.ApplyTimeColumn.HeaderText = "申请时间"; - this.ApplyTimeColumn.Name = "ApplyTimeColumn"; - this.ApplyTimeColumn.Width = 110; - // - // OrderOperationTimeColumn - // - this.OrderOperationTimeColumn.DataPropertyName = "OrderOperationTime"; - this.OrderOperationTimeColumn.HeaderText = "预约时间"; - this.OrderOperationTimeColumn.Name = "OrderOperationTimeColumn"; - this.OrderOperationTimeColumn.ReadOnly = true; - this.OrderOperationTimeColumn.Width = 110; - // - // ApplyDiagnoseInfoNameColumn - // - this.ApplyDiagnoseInfoNameColumn.DataPropertyName = "ApplyDiagnoseInfoName"; - this.ApplyDiagnoseInfoNameColumn.HeaderText = "术前诊断"; - this.ApplyDiagnoseInfoNameColumn.Name = "ApplyDiagnoseInfoNameColumn"; - this.ApplyDiagnoseInfoNameColumn.ReadOnly = true; - this.ApplyDiagnoseInfoNameColumn.Width = 150; - // - // ApplyOperationInfoNameColumn - // - this.ApplyOperationInfoNameColumn.DataPropertyName = "ApplyOperationInfoName"; - this.ApplyOperationInfoNameColumn.HeaderText = "拟施手术"; - this.ApplyOperationInfoNameColumn.Name = "ApplyOperationInfoNameColumn"; - this.ApplyOperationInfoNameColumn.ReadOnly = true; - this.ApplyOperationInfoNameColumn.Width = 150; - // - // AnaesthesiaMethodNameColumn - // - this.AnaesthesiaMethodNameColumn.DataPropertyName = "AnaesthesiaMethodName"; - this.AnaesthesiaMethodNameColumn.HeaderText = "拟施麻醉"; - this.AnaesthesiaMethodNameColumn.Name = "AnaesthesiaMethodNameColumn"; - this.AnaesthesiaMethodNameColumn.ReadOnly = true; - // - // OperationDoctorColumn - // - this.OperationDoctorColumn.DataPropertyName = "OperationDoctor"; - this.OperationDoctorColumn.HeaderText = "术者"; - this.OperationDoctorColumn.Name = "OperationDoctorColumn"; - this.OperationDoctorColumn.ReadOnly = true; - this.OperationDoctorColumn.Width = 60; - // - // Assistant1Column - // - this.Assistant1Column.DataPropertyName = "Assistants"; - this.Assistant1Column.HeaderText = "助手"; - this.Assistant1Column.Name = "Assistant1Column"; - this.Assistant1Column.Width = 90; - // - // ApplyOperationPositionNameColumn - // - this.ApplyOperationPositionNameColumn.DataPropertyName = "ApplyOperationPositionName"; - this.ApplyOperationPositionNameColumn.HeaderText = "手术部位"; - this.ApplyOperationPositionNameColumn.Name = "ApplyOperationPositionNameColumn"; - this.ApplyOperationPositionNameColumn.Width = 80; - // - // OperationLevelNameColumn - // - this.OperationLevelNameColumn.DataPropertyName = "OperationLevelName"; - this.OperationLevelNameColumn.HeaderText = "手术分级"; - this.OperationLevelNameColumn.Name = "OperationLevelNameColumn"; - this.OperationLevelNameColumn.ReadOnly = true; - this.OperationLevelNameColumn.Width = 80; - // - // ApplyOperationCutTypeNameColumn - // - this.ApplyOperationCutTypeNameColumn.DataPropertyName = "ApplyOperationCutTypeName"; - this.ApplyOperationCutTypeNameColumn.HeaderText = "切口类型"; - this.ApplyOperationCutTypeNameColumn.Name = "ApplyOperationCutTypeNameColumn"; - this.ApplyOperationCutTypeNameColumn.ReadOnly = true; - this.ApplyOperationCutTypeNameColumn.Width = 80; - // - // AnesthesiaDoctorColumn - // - this.AnesthesiaDoctorColumn.DataPropertyName = "AnesthesiaDoctor"; - this.AnesthesiaDoctorColumn.HeaderText = "麻醉"; - this.AnesthesiaDoctorColumn.Name = "AnesthesiaDoctorColumn"; - this.AnesthesiaDoctorColumn.Width = 60; - // - // TourNurseColumn - // - this.TourNurseColumn.DataPropertyName = "TourNurse"; - this.TourNurseColumn.HeaderText = "巡回"; - this.TourNurseColumn.Name = "TourNurseColumn"; - this.TourNurseColumn.Width = 60; - // - // InstrumentNurseColumn - // - this.InstrumentNurseColumn.DataPropertyName = "InstrumentNurse"; - this.InstrumentNurseColumn.HeaderText = "器械"; - this.InstrumentNurseColumn.Name = "InstrumentNurseColumn"; - this.InstrumentNurseColumn.Width = 60; - // - // OperationRoomColumn - // - this.OperationRoomColumn.DataPropertyName = "OperationRoom"; - this.OperationRoomColumn.HeaderText = "术间"; - this.OperationRoomColumn.Name = "OperationRoomColumn"; - this.OperationRoomColumn.ReadOnly = true; - this.OperationRoomColumn.Width = 40; - // - // PlanOrder - // - this.PlanOrder.DataPropertyName = "PlanOrder"; - this.PlanOrder.HeaderText = "台次"; - this.PlanOrder.Name = "PlanOrder"; - this.PlanOrder.Width = 40; - // - // RemarkColumn - // - this.RemarkColumn.DataPropertyName = "Remark"; - this.RemarkColumn.HeaderText = "备注"; - this.RemarkColumn.Name = "RemarkColumn"; - // // frmOperationManage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -683,11 +909,13 @@ this.toolStrip1.PerformLayout(); this.panel1.ResumeLayout(false); this.panel3.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); + this.panel5.ResumeLayout(false); + this.panel5.PerformLayout(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dgv)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -729,30 +957,53 @@ private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn Age; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDepNameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn SickBedColumn; private System.Windows.Forms.DataGridViewTextBoxColumn PatientType; private System.Windows.Forms.DataGridViewTextBoxColumn MdrecNoColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn SexColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn Age; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn OperationTypeColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperatorNameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyTimeColumn; private System.Windows.Forms.DataGridViewTextBoxColumn OrderOperationTimeColumn; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyDiagnoseInfoNameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationInfoNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn InRoomTime; + private System.Windows.Forms.DataGridViewTextBoxColumn OutRoomTime; + private System.Windows.Forms.DataGridViewTextBoxColumn RoomHourTimeSpan; + private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaBeginTime; + private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaEndTime; + private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaHourTimeSpan; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationBeginTime; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationEndTime; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationHourTimeSpan; private System.Windows.Forms.DataGridViewTextBoxColumn AnaesthesiaMethodNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationInfoName; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationCutTypeName; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationPositionName; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationBodyPositionName; + private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn ASALevelName; private System.Windows.Forms.DataGridViewTextBoxColumn OperationDoctorColumn; private System.Windows.Forms.DataGridViewTextBoxColumn Assistant1Column; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationPositionNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn; - private System.Windows.Forms.DataGridViewTextBoxColumn ApplyOperationCutTypeNameColumn; private System.Windows.Forms.DataGridViewTextBoxColumn AnesthesiaDoctorColumn; private System.Windows.Forms.DataGridViewTextBoxColumn TourNurseColumn; private System.Windows.Forms.DataGridViewTextBoxColumn InstrumentNurseColumn; private System.Windows.Forms.DataGridViewTextBoxColumn OperationRoomColumn; private System.Windows.Forms.DataGridViewTextBoxColumn PlanOrder; + private System.Windows.Forms.DataGridViewTextBoxColumn IsNotPlanReturnOperation; private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn; + private System.Windows.Forms.DataGridViewTextBoxColumn OperatorName; + private System.Windows.Forms.TextBox txtOperation; + private System.Windows.Forms.Label label9; + private DevComponents.DotNetBar.Controls.TokenEditor tokenEditor3; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Panel panel5; + private System.Windows.Forms.RadioButton rboMZ; + private System.Windows.Forms.Label label10; + private System.Windows.Forms.RadioButton rboZY; + private DevComponents.DotNetBar.Controls.CheckBoxX cboIsNotPlanReturnOperation; } } \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs index 86c038f..e3997b5 100644 --- a/AIMS/OperationAfter/frmOperationManage.cs +++ b/AIMS/OperationAfter/frmOperationManage.cs @@ -48,13 +48,11 @@ namespace AIMS.OperationAfter.UI dtpEndDate.Value = DateTime.Parse(dtpEndDate.Value.ToString("yyyy-MM-dd")).AddDays(4); tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("1,2,3,4,5,6,7,8,9,10,11", "全部")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("1,2,3", "未排程")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("4,5", "已排程")); + tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("1,2,3,4,5", "已排程")); tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("6,7", "手术中")); tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("8,9", "手术结束")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("10", "作废")); - tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("11", "术中停止")); - tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[1]); + tokenEditor1.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken("10,11", "手术停止")); + tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[0]); List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); @@ -62,6 +60,11 @@ namespace AIMS.OperationAfter.UI { tokenEditor2.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken(item.Id.ToString(), item.Name)); } + List Anaes = BAnaesthesiaMethod.Select(" IsValid=1 Order by UseRate asc", null); + foreach (var item in Anaes) + { + tokenEditor3.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken(item.Id.ToString(), item.Name)); + } } private void tsbExit_Click(object sender, EventArgs e) @@ -96,17 +99,32 @@ namespace AIMS.OperationAfter.UI Room += item.Value + ","; } + string Anaes = ""; + for (int i = 0; i < tokenEditor3.SelectedTokens.Count; i++) + { + var item = tokenEditor3.SelectedTokens[i]; + if (i == tokenEditor3.SelectedTokens.Count - 1) + Anaes += item.Value ; + else + Anaes += item.Value + ","; + } string type = ""; if (rboZQ.Checked == true) type = "择期"; if (rboJZ.Checked == true) type = "急诊"; + string type1 = ""; + if (rboZY.Checked == true) + type1 = "住院"; + if (rboMZ.Checked == true) + type1 = "门诊"; + string inNO = txtArchivesNo.Text; string name = txtName.Text; - DataTable dt = BOperationApply.GetOperationFrontDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd")); + DataTable dt = BOperationApply.GetOperationDoingDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd")); string Where = ""; if (state == "") Where += " StateId >1 "; @@ -116,21 +134,30 @@ namespace AIMS.OperationAfter.UI Where += " and ApplyDepName LIKE '%" + Department + "%' "; if (Room != "") Where += " and OperationRoomId IN (" + Room + ") "; + if (Anaes != "") + Where += " and AnaesthesiaMethodId = '" + Anaes + "' "; if (type != "") Where += " and OperationType='" + type + "' "; + if (type1 != "") + Where += " and PatientType='" + type1 + "' "; if (inNO != "") - Where += " and MdrecNo LIKE '%" + inNO + "%' "; + Where += " and (MdrecNo LIKE '%" + inNO + "%' or PatientName LIKE '%" + inNO + "%' ) "; if (name != "") - Where += " and PatientName LIKE '%" + name + "%' "; + Where += " and (OperationDoctor LIKE '%" + name + "%' or Assistant LIKE '%" + name + "%' or AnesthesiaDoctor LIKE '%" + name + "%' or InstrumentNurse LIKE '%" + name + "%' or TourNurse LIKE '%" + name + "%' ) "; + if (cboIsNotPlanReturnOperation.Checked == true) + Where += " and IsNotPlanReturnOperation=1 "; + if (txtOperation.Text != "") + Where += " and (ApplyOperationInfoName LIKE '%" + txtOperation.Text + "%' or OperationInfoName LIKE '%" + txtOperation.Text + "%' ) "; + dgv.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(dt, Where, ""); - for (int i = 0; i < dgv.Rows.Count; i++) - { - if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "急诊") - { - dgv.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon; - } - } + //for (int i = 0; i < dgv.Rows.Count; i++) + //{ + // if (dgv.Rows[i].Cells["OperationTypeColumn"].Value.ToString() == "急诊") + // { + // dgv.Rows[i].DefaultCellStyle.BackColor = Color.LightSalmon; + // } + //} } private void tsbExportExcel_Click(object sender, EventArgs e) @@ -178,7 +205,7 @@ namespace AIMS.OperationAfter.UI if (cboDepartment.Text == "全部科室") { Department = ""; - } + } } } } diff --git a/AIMS/OperationAfter/frmOperationManage.resx b/AIMS/OperationAfter/frmOperationManage.resx index 1d3da37..50392d3 100644 --- a/AIMS/OperationAfter/frmOperationManage.resx +++ b/AIMS/OperationAfter/frmOperationManage.resx @@ -129,6 +129,15 @@ True + + True + + + True + + + True + True @@ -141,21 +150,12 @@ True - - True - - - True - - + True True - - True - True @@ -168,24 +168,60 @@ True + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + + + True + True + + True + + + True + + + True + + + True + + + True + + + True + True True - - True - - - True - - - True - True @@ -201,7 +237,13 @@ True + + True + True + + True + \ No newline at end of file diff --git a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs index 977344a..94e1290 100644 --- a/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs +++ b/AIMS/OperationAfter/frmPhysiologyLargeScreen.cs @@ -188,52 +188,50 @@ namespace AIMS.OperationAfter.UI { DeviceCacheData deviceCacheData = lists[0]; NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData); - foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties()) + + if (nowPhysioData.HR != null && nowPhysioData.HR.ToString() != string.Empty && nowPhysioData.HR.ToString() != "NaN" && nowPhysioData.HR.ToString() != "NULL") { - object paramValue = p.GetValue(nowPhysioData, null); - if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") - { - double value = Double.Parse(paramValue.ToString()); - value = Convert.ToInt32(value); - - if (p.Name.ToUpper() == "HR") - { - hr = value <= 0 ? "--" : value.ToString(); - - } - else if (p.Name.ToUpper() == "RESP") - { - br = value <= 0 ? "--" : value.ToString(); - } - else if (p.Name.ToUpper() == "SPO2") - { - spo2 = value <= 0 ? "--" : value.ToString(); - } - else if (p.Name.ToUpper() == "PR") - { - pr = value <= 0 ? "--" : value.ToString(); - } - else if (p.Name.ToUpper() == "ETCO2") - { - spo2 = value <= 0 ? "--" : value.ToString(); - } - else if (p.Name.ToUpper() == "DIA") - { - dia = value <= 0 ? "" : value.ToString(); - } - else if (p.Name.ToUpper() == "SYS") - { - sys = value <= 0 ? "" : value.ToString(); - } - else if (p.Name.ToUpper() == "DIA_H") - { - dia = value <= 0 ? "" : value.ToString(); - } - else if (p.Name.ToUpper() == "SYS_H") - { - sys = value <= 0 ? "" : value.ToString(); - } - } + double value = Double.Parse(nowPhysioData.HR.ToString()); + hr = value <= 0 ? "--" : value.ToString(); + } + if (nowPhysioData.Resp != null && nowPhysioData.Resp.ToString() != string.Empty && nowPhysioData.Resp.ToString() != "NaN" && nowPhysioData.Resp.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Resp.ToString()); + } + if (nowPhysioData.SPO2 != null && nowPhysioData.SPO2.ToString() != string.Empty && nowPhysioData.SPO2.ToString() != "NaN" && nowPhysioData.SPO2.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.SPO2.ToString()); + spo2 = value <= 0 ? "--" : value.ToString(); + } + if (nowPhysioData.PR != null && nowPhysioData.PR.ToString() != string.Empty && nowPhysioData.PR.ToString() != "NaN" && nowPhysioData.PR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.PR.ToString()); + pr = value <= 0 ? "--" : value.ToString(); + } + if (nowPhysioData.Etco2 != null && nowPhysioData.Etco2.ToString() != string.Empty && nowPhysioData.Etco2.ToString() != "NaN" && nowPhysioData.Etco2.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Etco2.ToString()); + etco2 = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Dia != null && nowPhysioData.Dia.ToString() != string.Empty && nowPhysioData.Dia.ToString() != "NaN" && nowPhysioData.Dia.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia.ToString()); + dia = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys != null && nowPhysioData.Sys.ToString() != string.Empty && nowPhysioData.Sys.ToString() != "NaN" && nowPhysioData.Sys.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys.ToString()); + sys = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Dia_H != null && nowPhysioData.Dia_H.ToString() != string.Empty && nowPhysioData.Dia_H.ToString() != "NaN" && nowPhysioData.Dia_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia_H.ToString()); + dia = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys_H != null && nowPhysioData.Sys_H.ToString() != string.Empty && nowPhysioData.Sys_H.ToString() != "NaN" && nowPhysioData.Sys_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys_H.ToString()); + sys = value <= 0 ? "" : value.ToString(); } } if (hr.Length > 0) diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs index 7d95f12..a0a7f24 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.Designer.cs @@ -635,7 +635,7 @@ this.lblSpo2.AutoSize = true; this.lblSpo2.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblSpo2.ForeColor = System.Drawing.Color.Cyan; - this.lblSpo2.Location = new System.Drawing.Point(63, 399); + this.lblSpo2.Location = new System.Drawing.Point(56, 399); this.lblSpo2.Name = "lblSpo2"; this.lblSpo2.Size = new System.Drawing.Size(43, 40); this.lblSpo2.TabIndex = 9; @@ -646,7 +646,7 @@ this.lblRESP.AutoSize = true; this.lblRESP.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblRESP.ForeColor = System.Drawing.Color.Yellow; - this.lblRESP.Location = new System.Drawing.Point(63, 308); + this.lblRESP.Location = new System.Drawing.Point(56, 308); this.lblRESP.Name = "lblRESP"; this.lblRESP.Size = new System.Drawing.Size(43, 40); this.lblRESP.TabIndex = 7; @@ -668,7 +668,7 @@ this.lblPR.AutoSize = true; this.lblPR.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblPR.ForeColor = System.Drawing.Color.Green; - this.lblPR.Location = new System.Drawing.Point(63, 126); + this.lblPR.Location = new System.Drawing.Point(56, 126); this.lblPR.Name = "lblPR"; this.lblPR.Size = new System.Drawing.Size(43, 40); this.lblPR.TabIndex = 3; @@ -679,7 +679,7 @@ this.lblHR.AutoSize = true; this.lblHR.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblHR.ForeColor = System.Drawing.Color.Green; - this.lblHR.Location = new System.Drawing.Point(63, 35); + this.lblHR.Location = new System.Drawing.Point(56, 35); this.lblHR.Name = "lblHR"; this.lblHR.Size = new System.Drawing.Size(43, 40); this.lblHR.TabIndex = 1; diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs index 3e60885..3de998c 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs @@ -77,7 +77,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; #endregion - //AIMSExtension.PublicMethod.SetLocalDateTime(); + AIMSExtension.PublicMethod.SetLocalDateTime(); panel8.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel8_MouseWheel); panel82.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel82_MouseWheel); } @@ -87,9 +87,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI labOperatorName.Text = "(" + AIMSExtension.PublicMethod.OperatorNo + ")" + " " + AIMSExtension.PublicMethod.OperatorName; if (NowRoom != null) lblRoom.Text = NowRoom.Name; circularProgress1.Location = new Point((panel8.Width - circularProgress1.Width) / 2, (panel8.Height - circularProgress1.Height) / 2); - this.MaximizeBox = false; + //this.MaximizeBox = false; this.MinimizeBox = false; - LoadAnesRescue(); } @@ -1476,79 +1475,52 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI List lists = e.Result as List; if (lists != null && lists.Count > 0) { - DeviceCacheData deviceCacheData = lists[0]; + DeviceCacheData deviceCacheData = lists[0]; NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData); - foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties()) - { - bool iswar = false; - foreach (PhysioDataConfig keyValuePair in _record.addPhysioList) - { - if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper()) - { - try - { - object paramValue = p.GetValue(nowPhysioData, null); - if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") - { - double value = Double.Parse(paramValue.ToString()); - value = Convert.ToInt32(value); - if (value < keyValuePair.WarningLowLimit || value > keyValuePair.WarningHighLimit) - { - iswar = true; - } - if (keyValuePair.Name == "心率") - { - lblHR.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblHR.ForeColor = Color.Red; else lblHR.ForeColor = Color.Green; - } - if (keyValuePair.Name == "自主呼吸") - { - lblRESP.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblRESP.ForeColor = Color.Red; else lblRESP.ForeColor = Color.Yellow; - } - if (keyValuePair.Name == "氧饱和度") - { - lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblSpo2.ForeColor = Color.Red; else lblSpo2.ForeColor = Color.Cyan; - } - if (keyValuePair.Name == "脉率") - { - lblPR.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblPR.ForeColor = Color.Red; else lblPR.ForeColor = Color.Green; - } - if (keyValuePair.Name == "无创舒张压") - { - szy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "无创收缩压") - { - ssy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "有创舒张压") - { - szy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "有创收缩压") - { - ssy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - break; - } - } - catch (Exception) - { - //PublicMethod.WriteLog(ex); - } - } - } + if (nowPhysioData.HR != null && nowPhysioData.HR.ToString() != string.Empty && nowPhysioData.HR.ToString() != "NaN" && nowPhysioData.HR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.HR.ToString()); + lblHR.Text = value <= 0 ? "- -" : value.ToString(); } + if (nowPhysioData.Resp != null && nowPhysioData.Resp.ToString() != string.Empty && nowPhysioData.Resp.ToString() != "NaN" && nowPhysioData.Resp.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Resp.ToString()); + lblRESP.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.SPO2 != null && nowPhysioData.SPO2.ToString() != string.Empty && nowPhysioData.SPO2.ToString() != "NaN" && nowPhysioData.SPO2.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.SPO2.ToString()); + lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.PR != null && nowPhysioData.PR.ToString() != string.Empty && nowPhysioData.PR.ToString() != "NaN" && nowPhysioData.PR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.PR.ToString()); + lblPR.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.Dia != null && nowPhysioData.Dia.ToString() != string.Empty && nowPhysioData.Dia.ToString() != "NaN" && nowPhysioData.Dia.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys != null && nowPhysioData.Sys.ToString() != string.Empty && nowPhysioData.Sys.ToString() != "NaN" && nowPhysioData.Sys.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Dia_H != null && nowPhysioData.Dia_H.ToString() != string.Empty && nowPhysioData.Dia_H.ToString() != "NaN" && nowPhysioData.Dia_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia_H.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys_H != null && nowPhysioData.Sys_H.ToString() != string.Empty && nowPhysioData.Sys_H.ToString() != "NaN" && nowPhysioData.Sys_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys_H.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + string szyssy = ssy + "/" + szy; - lblDia.Text = szyssy == "/" ? "---/---" : szyssy; + lblDia.Text = szyssy == "/" ? "---/---" : szyssy; } else { diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs index 222a109..e5bdfa4 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs @@ -528,7 +528,7 @@ this.lblSpo2.AutoSize = true; this.lblSpo2.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblSpo2.ForeColor = System.Drawing.Color.Cyan; - this.lblSpo2.Location = new System.Drawing.Point(60, 414); + this.lblSpo2.Location = new System.Drawing.Point(52, 414); this.lblSpo2.Name = "lblSpo2"; this.lblSpo2.Size = new System.Drawing.Size(43, 40); this.lblSpo2.TabIndex = 38; @@ -539,7 +539,7 @@ this.lblRESP.AutoSize = true; this.lblRESP.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblRESP.ForeColor = System.Drawing.Color.Yellow; - this.lblRESP.Location = new System.Drawing.Point(60, 323); + this.lblRESP.Location = new System.Drawing.Point(52, 323); this.lblRESP.Name = "lblRESP"; this.lblRESP.Size = new System.Drawing.Size(43, 40); this.lblRESP.TabIndex = 36; @@ -561,7 +561,7 @@ this.lblPR.AutoSize = true; this.lblPR.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblPR.ForeColor = System.Drawing.Color.Green; - this.lblPR.Location = new System.Drawing.Point(60, 141); + this.lblPR.Location = new System.Drawing.Point(52, 141); this.lblPR.Name = "lblPR"; this.lblPR.Size = new System.Drawing.Size(43, 40); this.lblPR.TabIndex = 33; @@ -572,7 +572,7 @@ this.lblHR.AutoSize = true; this.lblHR.Font = new System.Drawing.Font("微软雅黑", 23F); this.lblHR.ForeColor = System.Drawing.Color.Green; - this.lblHR.Location = new System.Drawing.Point(60, 50); + this.lblHR.Location = new System.Drawing.Point(52, 50); this.lblHR.Name = "lblHR"; this.lblHR.Size = new System.Drawing.Size(43, 40); this.lblHR.TabIndex = 26; @@ -979,7 +979,7 @@ this.txtTourNurse.Name = "txtTourNurse"; this.txtTourNurse.Size = new System.Drawing.Size(120, 22); this.txtTourNurse.TabIndex = 847; - this.txtTourNurse.Click += new System.EventHandler(this.txtTourNurse_Click); + this.txtTourNurse.DoubleClick += new System.EventHandler(this.txtTourNurse_Click); // // txtInstrumentNurse // @@ -1005,7 +1005,7 @@ this.txtInstrumentNurse.Name = "txtInstrumentNurse"; this.txtInstrumentNurse.Size = new System.Drawing.Size(120, 22); this.txtInstrumentNurse.TabIndex = 848; - this.txtInstrumentNurse.Click += new System.EventHandler(this.txtInstrumentNurse_Click); + this.txtInstrumentNurse.DoubleClick += new System.EventHandler(this.txtInstrumentNurse_Click); // // panelQXList // diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs index 3422d8c..7a9afc9 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs @@ -22,6 +22,7 @@ using System.Drawing.Printing; using System.IO; using System.Linq; using System.Reflection; +using System.Security.Cryptography; using System.Windows.Forms; namespace AIMS.OperationDoing.AnasRecordBill.UI @@ -531,7 +532,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI txtOperationBegin.LostFocus += new EventHandler(txtDateTime_LostFocus); txtOperationEnd.LostFocus += new EventHandler(txtDateTime_LostFocus); } - GetPhysioDataConfig(); circularProgress1.IsRunning = false; circularProgress1.Visible = false; zgcAnaesRecord.Visible = true; @@ -544,7 +544,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { AIMS.OperationDoing.AnasRecordBill.UI.frmOperationInfoNew2 frmOperationInfo = new frmOperationInfoNew2(); frmOperationInfo._record = _record; - frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click); + //frmOperationInfo.FormClosed += new FormClosedEventHandler(plRefresh_Click); frmOperationInfo.ShowDialog(); } else @@ -738,8 +738,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI try { if (NowRoom == null) return; - if (State != AIMSExtension.EditState.BROWSE) - ShowMonitorDataToRight(); + ShowMonitorDataToRight(); } catch (Exception ex) { @@ -760,7 +759,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; - List lists = DeviceCacheData.Select(" IPAddress='" + NowRoom.Ip + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-300) + "'"); + List lists = DeviceCacheData.Select(" IPAddress='" + NowRoom.Ip + "' and UpdateTime>='" + DateTime.Now.AddSeconds(-3000) + "'"); e.Result = lists; } private void backgroundWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) @@ -770,68 +769,48 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { DeviceCacheData deviceCacheData = lists[0]; NowPhysioData nowPhysioData = JsonConvert.DeserializeObject(deviceCacheData.JsonData); - foreach (PropertyInfo p in nowPhysioData.GetType().GetProperties()) - { - bool iswar = false; - foreach (PhysioDataConfig keyValuePair in _record.addPhysioList) - { - if (keyValuePair.Enname.ToUpper() == p.Name.ToUpper()) - { - object paramValue = p.GetValue(nowPhysioData, null); - if (paramValue != null && paramValue.ToString() != string.Empty && paramValue.ToString() != "NaN" && paramValue.ToString() != "NULL") - { - double value = Double.Parse(paramValue.ToString()); - value = Convert.ToInt32(value); - if (value < keyValuePair.WarningLowLimit || value > keyValuePair.WarningHighLimit) - { - iswar = true; - } - if (keyValuePair.Name == "心率") - { - lblHR.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblHR.ForeColor = Color.Red; else lblHR.ForeColor = Color.Green; - } - if (keyValuePair.Name == "自主呼吸") - { - lblRESP.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblRESP.ForeColor = Color.Red; else lblRESP.ForeColor = Color.Yellow; - } - if (keyValuePair.Name == "氧饱和度") - { - lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblSpo2.ForeColor = Color.Red; else lblSpo2.ForeColor = Color.Cyan; - } - if (keyValuePair.Name == "脉率") - { - lblPR.Text = value <= 0 ? "- -" : value.ToString(); - if (iswar == true) lblPR.ForeColor = Color.Red; else lblPR.ForeColor = Color.Green; - } - if (keyValuePair.Name == "无创舒张压") - { - szy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "无创收缩压") - { - ssy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "有创舒张压") - { - szy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - if (keyValuePair.Name == "有创收缩压") - { - ssy = value <= 0 ? "" : value.ToString(); - //if (iswar == true) lblDia.ForeColor = Color.Red; else lblDia.ForeColor = Color.Green; - } - break; - } - } - } + if (nowPhysioData.HR != null && nowPhysioData.HR.ToString() != string.Empty && nowPhysioData.HR.ToString() != "NaN" && nowPhysioData.HR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.HR.ToString()); + lblHR.Text = value <= 0 ? "- -" : value.ToString(); } + if (nowPhysioData.Resp != null && nowPhysioData.Resp.ToString() != string.Empty && nowPhysioData.Resp.ToString() != "NaN" && nowPhysioData.Resp.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Resp.ToString()); + lblRESP.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.SPO2 != null && nowPhysioData.SPO2.ToString() != string.Empty && nowPhysioData.SPO2.ToString() != "NaN" && nowPhysioData.SPO2.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.SPO2.ToString()); + lblSpo2.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.PR != null && nowPhysioData.PR.ToString() != string.Empty && nowPhysioData.PR.ToString() != "NaN" && nowPhysioData.PR.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.PR.ToString()); + lblPR.Text = value <= 0 ? "- -" : value.ToString(); + } + if (nowPhysioData.Dia != null && nowPhysioData.Dia.ToString() != string.Empty && nowPhysioData.Dia.ToString() != "NaN" && nowPhysioData.Dia.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys != null && nowPhysioData.Sys.ToString() != string.Empty && nowPhysioData.Sys.ToString() != "NaN" && nowPhysioData.Sys.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Dia_H != null && nowPhysioData.Dia_H.ToString() != string.Empty && nowPhysioData.Dia_H.ToString() != "NaN" && nowPhysioData.Dia_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Dia_H.ToString()); + szy = value <= 0 ? "" : value.ToString(); + } + if (nowPhysioData.Sys_H != null && nowPhysioData.Sys_H.ToString() != string.Empty && nowPhysioData.Sys_H.ToString() != "NaN" && nowPhysioData.Sys_H.ToString() != "NULL") + { + double value = Double.Parse(nowPhysioData.Sys_H.ToString()); + ssy = value <= 0 ? "" : value.ToString(); + } + string szyssy = ssy + "/" + szy; lblDia.Text = szyssy == "/" ? "---/---" : szyssy; } @@ -921,7 +900,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI templateManage.zedControl_MouseDoubleClick(send, e); } } - //public ucStripMenuItem menuItem = new ucStripMenuItem(); + private void zgcAnaesRecord_ContextMenuBuilder(ZedGraphControl sender, ContextMenuStrip menuStrip, Point mousePt, ZedGraphControl.ContextMenuObjectState objState) { @@ -967,10 +946,30 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI reDrawEvent(); templateManage.Bind(); + txtInstrumentNurse.Text = ""; + SelectInstrumentNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 6); + foreach (int RowId in SelectInstrumentNurseData) + { + txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + if (SelectInstrumentNurseData.Count > 0) + { + txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(",")); + } + + txtTourNurse.Text = ""; + SelectTourNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 7); + foreach (int RowId in SelectTourNurseData) + { + txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + if (SelectTourNurseData.Count > 0) + { + txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(",")); + } + if (_record.InstrumentList.ApplianceUseType != null && _record.InstrumentList.ApplianceUseType != "") { - txtInstrumentNurse.Text = _record.InstrumentList.InstrumentNurse; - txtTourNurse.Text = _record.InstrumentList.TourNurse; txtRemark.Text = _record.InstrumentList.Remark; LoadOperationGoodsBillRecord(); } @@ -980,60 +979,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } zgcAnaesRecord.Refresh(); } - } - - private void GetPhysioDataConfig () - { - if (_record.addPhysioList.Count == 0) - { - //加载生命体征图标 - IList dt = PhysioDataConfig.GetAllList(); - for (int i = 0; i < dt.Count; i++) - { - PhysioDataConfig pp = dt[i]; - string[] str = pp.Color.Split('.'); - int A = int.Parse(str[0].ToString()); - int R = int.Parse(str[1].ToString()); - int G = int.Parse(str[2].ToString()); - int B = int.Parse(str[3].ToString()); - pp.ConveColor = System.Drawing.Color.FromArgb(A, R, G, B); - - if (pp.IsDefalultShow == false || (pp.ShowImg == false && pp.ShowText == false)) - { - pp.showStyle = "不显示"; - pp.IsValid = false; - } - else - { - if (pp.ShowImg == true) - { - pp.showStyle = "显示曲线"; - pp.IsValid = true; - } - if (pp.ShowText == true) - { - pp.showStyle = "显示数值"; - pp.IsValid = true; - } - - } - pp.showStyle = "显示曲线"; - DateTime DateTimeNow = DateTime.Now; - bool isHave = false; - foreach (PhysioDataConfig appTemp in _record.addPhysioList) - { - if (appTemp.Name.Equals(pp.Name)) - { - isHave = true; - } - } - if (!isHave) - { - _record.addPhysioList.Add(pp); - } - } - } - } + } private void DrawEvent() { @@ -1171,18 +1117,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI #endregion #region 右侧按钮 - private void btnyldj_Click(object sender, EventArgs e) - { - FormUseDrugsReport formUseDrugsReport = new FormUseDrugsReport(1); - if (_record != null) formUseDrugsReport._record = _record; - formUseDrugsReport.Show(); - } - - private void btnzsk_Click(object sender, EventArgs e) - { - frmKnowledgeBase frm = new frmKnowledgeBase(); - frm.Show(); - } private void btndptz_Click(object sender, EventArgs e) { @@ -1343,7 +1277,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI uc.GoodsName = dr["Name"].ToString(); if (applic == null) { - string ApplianceNumber = dr["ApplianceNumber"].ToString(); + string ApplianceNumber = dr["ApplianceNumber"].ToString(); uc.GoodsNumber = ApplianceNumber; } uc.Location = new Point((uc.Width) * i, (uc.Height - 1) * j); @@ -1474,6 +1408,13 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI #region 自定义方法 private void PanelSave_Click(object sender, EventArgs e) + { + SaveInstrument(sender); + ReviewEvent(); + new frmMessageBox().Show(); + } + + private void SaveInstrument(object sender) { try { @@ -1489,7 +1430,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI _record.InstrumentList.ApplianceUseType = string.Join(",", list.ToArray()); } _record.InstrumentList.TagPicture = "";// Convert.ToBase64String(PublicToDoument.ImageToBytes(pictureBox1.Image)); - _record.InstrumentList.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List ()); + _record.InstrumentList.JsonTextData = "";// PublicToDoument.SerializeControl(panel18, _record, new List ()); _record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text; _record.InstrumentList.TourNurse = txtTourNurse.Text; _record.InstrumentList.Remark = txtRemark.Text; @@ -1506,13 +1447,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } _record.InstrumentList.ApplianceRecordList = GetApplianceRecord(); BApplianceRecord.InsertListData(_record.InstrumentList.ApplianceRecordList); + DBManage.AddPerson(_record, SelectInstrumentNurseData, 6); + DBManage.AddPerson(_record, SelectTourNurseData, 7); - if (templateManage != null) - { - ZedGraphControl send = sender as ZedGraphControl; - templateManage.BindTempData(); - } - MessageBox.Show("保存成功!", "系统提示"); } catch (Exception ex) @@ -1770,15 +1707,58 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } } + private PublicUI.UI.frmSelectPerson frmTourNurse; + private List SelectTourNurseData = new List(); //一助 private void txtTourNurse_Click(object sender, EventArgs e) { - setDoctor(sender as TextBox, "手术室护士"); - _record.InstrumentList.TourNurse = txtTourNurse.Text; + frmTourNurse = new PublicUI.UI.frmSelectPerson(); + frmTourNurse.PersonType = "手术室护士"; + frmTourNurse.SelectDepartmentName = "手术室"; + frmTourNurse.SelectPersonData = SelectTourNurseData; + frmTourNurse.FormClosed += new FormClosedEventHandler(frmTourNurse_FormClosed); + frmTourNurse.ShowDialog(); } + + void frmTourNurse_FormClosed(object sender, FormClosedEventArgs e) + { + txtTourNurse.Text = ""; + if (frmTourNurse.SelectPersonData.Count > 0) + { + SelectTourNurseData = frmTourNurse.SelectPersonData; + foreach (int RowId in frmTourNurse.SelectPersonData) + { + txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + int idxStart = txtTourNurse.Text.LastIndexOf(","); + txtTourNurse.Text = txtTourNurse.Text.Substring(0, idxStart); + } + } + + private PublicUI.UI.frmSelectPerson frmInstrumentNurse; + private List SelectInstrumentNurseData = new List(); //一助 private void txtInstrumentNurse_Click(object sender, EventArgs e) { - setDoctor(sender as TextBox, "手术室护士"); - _record.InstrumentList.InstrumentNurse = txtInstrumentNurse.Text; + frmInstrumentNurse = new PublicUI.UI.frmSelectPerson(); + frmInstrumentNurse.PersonType = "手术室护士"; + frmInstrumentNurse.SelectDepartmentName = "手术室"; + frmInstrumentNurse.SelectPersonData = SelectInstrumentNurseData; + frmInstrumentNurse.FormClosed += new FormClosedEventHandler(frmInstrumentNurse_FormClosed); + frmInstrumentNurse.ShowDialog(); + } + + void frmInstrumentNurse_FormClosed(object sender, FormClosedEventArgs e) + { + txtInstrumentNurse.Text = ""; + if (frmInstrumentNurse.SelectPersonData.Count > 0) + { + SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData; + foreach (int RowId in frmInstrumentNurse.SelectPersonData) + { + txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + int idxStart = txtInstrumentNurse.Text.LastIndexOf(","); + txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, idxStart); + } } /// @@ -1800,7 +1780,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } //if (controlTextBox.Text != "") //{ - // int idxStart = controlTextBox.Text.LastIndexOf(" ,"); + // int idxStart = controlTextBox.Text.LastIndexOf(","); // controlTextBox.Text = controlTextBox.Text.Substring(0, idxStart); //} } @@ -1866,6 +1846,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI zgcAnaesRecord.Focus(); } + SaveInstrument(sender); if (templateManage != null) { _record.InstrumentList.ApplianceRecordList = GetApplianceRecord(); diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs index 53ae450..26e9153 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument2.cs @@ -1567,7 +1567,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI ZedGraphControl send = sender as ZedGraphControl; templateManage.BindTempData(); } - MessageBox.Show("保存成功!", "系统提示"); + new frmMessageBox().Show(); } catch (Exception ex) diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs index 4c05bd4..9c46a86 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew.cs @@ -20,6 +20,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI public int SelPatientId; public int SelApplyId; public bool isMainOpen = false; + List rooms; public frmSelectPatientNew() { @@ -28,7 +29,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void frmSelectPatientNew_Load(object sender, EventArgs e) { - List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); + rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" }); cboRoom.DataSource = rooms; cboRoom.DisplayMember = "Name"; @@ -54,13 +55,17 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } private void FillDgv() - { + { + panel3.Controls.Clear(); panel2.Visible = false; int i = 0, j = 0; + int count = 5; + if (isMainOpen == true) count = 4; + + DataTable dt = new DataTable(); + dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); - DataTable dt = SelectPatient.GetSelectPatientDataTable - (DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); foreach (DataRow dr in dt.Rows) { ucPatientCard uc = new ucPatientCard(dr); @@ -70,7 +75,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); panel3.Controls.Add(uc); j++; - if (j == 5) + if (j == count) { i++; j = 0; @@ -79,8 +84,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (i >= 5) break; } - DataTable dt2 = SelectPatient.GetRelieveLockingPatientDataTable - (DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); + DataTable dt2 = new DataTable(); + dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); + foreach (DataRow dr in dt2.Rows) { ucPatientCard uc = new ucPatientCard(dr); @@ -90,7 +96,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); panel3.Controls.Add(uc); j++; - if (j == 5) + if (j == count) { i++; j = 0; @@ -99,6 +105,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (i >= 10) break; } + } public ucPatientCard SelUc; diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs index 572da1e..fef99a8 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.Designer.cs @@ -30,8 +30,11 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmSelectPatientNew2)); this.panel1 = new System.Windows.Forms.Panel(); + this.txtquery = new DevComponents.DotNetBar.Controls.TextBoxX(); + this.btnQuery = new DevComponents.DotNetBar.ButtonX(); this.buttonX3 = new DevComponents.DotNetBar.ButtonX(); this.label1 = new System.Windows.Forms.Label(); + this.label4 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.cboRoom = new System.Windows.Forms.ComboBox(); this.btnFrontDay = new System.Windows.Forms.Button(); @@ -66,14 +69,12 @@ this.txtType = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.panel3 = new System.Windows.Forms.Panel(); - this.txtquery = new DevComponents.DotNetBar.Controls.TextBoxX(); - this.label4 = new System.Windows.Forms.Label(); - this.btnQuery = new DevComponents.DotNetBar.ButtonX(); + this.panel3 = new System.Windows.Forms.Panel(); this.panel1.SuspendLayout(); this.groupBox1.SuspendLayout(); this.panel2.SuspendLayout(); this.groupBox2.SuspendLayout(); + this.panel3.SuspendLayout(); this.SuspendLayout(); // // panel1 @@ -96,6 +97,32 @@ this.panel1.Size = new System.Drawing.Size(1035, 39); this.panel1.TabIndex = 0; // + // txtquery + // + // + // + // + this.txtquery.Border.Class = "TextBoxBorder"; + this.txtquery.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; + this.txtquery.Location = new System.Drawing.Point(550, 8); + this.txtquery.Name = "txtquery"; + this.txtquery.PreventEnterBeep = true; + this.txtquery.Size = new System.Drawing.Size(100, 23); + this.txtquery.TabIndex = 9; + // + // btnQuery + // + this.btnQuery.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.btnQuery.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.btnQuery.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.btnQuery.Location = new System.Drawing.Point(656, 9); + this.btnQuery.Name = "btnQuery"; + this.btnQuery.Size = new System.Drawing.Size(80, 23); + this.btnQuery.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.btnQuery.TabIndex = 8; + this.btnQuery.Text = "查询"; + this.btnQuery.Click += new System.EventHandler(this.btnQuery_Click); + // // buttonX3 // this.buttonX3.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; @@ -119,6 +146,16 @@ this.label1.TabIndex = 7; this.label1.Text = "手术日期"; // + // label4 + // + this.label4.AutoSize = true; + this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label4.Location = new System.Drawing.Point(481, 8); + this.label4.Name = "label4"; + this.label4.Size = new System.Drawing.Size(65, 20); + this.label4.TabIndex = 6; + this.label4.Text = "患者查询"; + // // label2 // this.label2.AutoSize = true; @@ -489,42 +526,9 @@ this.panel3.Size = new System.Drawing.Size(1029, 499); this.panel3.TabIndex = 0; // - // txtquery + // line1 // // - // - // - this.txtquery.Border.Class = "TextBoxBorder"; - this.txtquery.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.txtquery.Location = new System.Drawing.Point(550, 8); - this.txtquery.Name = "txtquery"; - this.txtquery.PreventEnterBeep = true; - this.txtquery.Size = new System.Drawing.Size(100, 23); - this.txtquery.TabIndex = 9; - // - // label4 - // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.label4.Location = new System.Drawing.Point(481, 8); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(65, 20); - this.label4.TabIndex = 6; - this.label4.Text = "患者查询"; - // - // btnQuery - // - this.btnQuery.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.btnQuery.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.btnQuery.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.btnQuery.Location = new System.Drawing.Point(656, 9); - this.btnQuery.Name = "btnQuery"; - this.btnQuery.Size = new System.Drawing.Size(80, 23); - this.btnQuery.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.btnQuery.TabIndex = 8; - this.btnQuery.Text = "查询"; - this.btnQuery.Click += new System.EventHandler(this.btnQuery_Click); - // // frmSelectPatientNew2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -546,6 +550,7 @@ this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); this.groupBox2.ResumeLayout(false); + this.panel3.ResumeLayout(false); this.ResumeLayout(false); } diff --git a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs index 0b9b3a9..d4869d2 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmSelectPatientNew2.cs @@ -23,6 +23,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI public int SelApplyId; public bool isMainOpen = false; public AIMS.OperationDoing.AnasRecordBill.UI.frmAnasRecordBill2 frmAnasRecord; + List rooms; public frmSelectPatientNew2() { @@ -31,7 +32,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void frmSelectPatientNew2_Load(object sender, EventArgs e) { - List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); + rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" }); cboRoom.DataSource = rooms; cboRoom.DisplayMember = "Name"; @@ -71,9 +72,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { panel3.Controls.Clear(); panel2.Visible = false; - int i = 0, j = 0; - int count = 5; - if (isMainOpen == true) count = 4; DataTable dt = new DataTable(); if (txtquery.Text.Trim() != "") @@ -81,46 +79,97 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI else dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); - foreach (DataRow dr in dt.Rows) - { - ucPatientCard uc = new ucPatientCard(dr); - uc.InRoom += Uc_InRoom; - uc.QxRoom += Uc_QxRoom; - uc.Clicks += Uc_Clicks; - uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); - panel3.Controls.Add(uc); - j++; - if (j == count) - { - i++; - j = 0; - } - //防止显示全部卡顿 - if (i >= 5) break; - } - DataTable dt2 = new DataTable(); if (txtquery.Text.Trim() != "") dt2 = SelectPatient.GetRelieveLockingPatientDataTable(txtquery.Text); else dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); - foreach (DataRow dr in dt2.Rows) + List list = new List(); + for (int i = 0; i < rooms.Count; i++) { - ucPatientCard uc = new ucPatientCard(dr); - uc.InRoom += Uc_InRoom; - uc.QxRoom += Uc_QxRoom; - uc.Clicks += Uc_Clicks; - uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); - panel3.Controls.Add(uc); - j++; - if (j == count) + foreach (DataRow dr in dt.Rows) { - i++; - j = 0; + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } + } + } + //for (int i = 0; i < list.Count; i++) + //{ + // int j = 0; + // foreach (DataRow dr in dt.Rows) + // { + // if (dr["OperationRoom"].ToString() != list[i]) continue; + // ucPatientCard uc = new ucPatientCard(dr); + // uc.InRoom += Uc_InRoom; + // uc.QxRoom += Uc_QxRoom; + // uc.Clicks += Uc_Clicks; + // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + // panel3.Controls.Add(uc); + // j++; + // } + + // foreach (DataRow dr in dt2.Rows) + // { + // if (dr["OperationRoom"].ToString() != list[i]) continue; + // ucPatientCard uc = new ucPatientCard(dr); + // uc.InRoom += Uc_InRoom; + // uc.QxRoom += Uc_QxRoom; + // uc.Clicks += Uc_Clicks; + // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + // panel3.Controls.Add(uc); + // j++; + // } + //} + for (int i = 0; i < list.Count; i++) + { + int j = 0; + int Pointx = 0; + foreach (DataRow dr in dt.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; Pointx = (uc.Width + 9) * i; + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; + Pointx = (uc.Width + 9) * i; + } + + if (Pointx > 0) + { + DevComponents.DotNetBar.Controls.Line line1 = new DevComponents.DotNetBar.Controls.Line(); + line1.Location = new System.Drawing.Point(Pointx - 10, 0); + line1.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot; + line1.Size = new System.Drawing.Size(10, panel3.Height); + line1.ForeColor = Color.DarkGray; + line1.VerticalLine = true; + panel3.Controls.Add(line1); } - //防止显示全部卡顿 - if (i >= 10) break; } } diff --git a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.cs b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.cs index a03532e..a61da11 100644 --- a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.cs +++ b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.cs @@ -1,6 +1,8 @@ using AIMSBLL; using AIMSExtension; using AIMSModel; +using DCSoftDotfuscate; +using DevComponents.DotNetBar.Controls; using System; using System.Collections.Generic; using System.Data; @@ -12,8 +14,6 @@ namespace AIMS.OperationDoing.AnasRecordBill { public partial class frmNoticeLargeScreen : Form { - - private EditState state = EditState.BROWSE; //已选择的通知内容 public DataTable db; //可选的通知内容 @@ -21,35 +21,30 @@ namespace AIMS.OperationDoing.AnasRecordBill public frmNoticeLargeScreen() { InitializeComponent(); - //this.FormBorderStyle = FormBorderStyle.None; this.MaximizeBox = false; this.MinimizeBox = false; } private void frmNoticeLargeScreen_Load(object sender, EventArgs e) { - txtnameOrHnum.Text = "姓名或住院号"; - txtnameOrHnum.ForeColor = Color.FromArgb(164, 164, 164); - txtTime.SelectedIndex = 1; - textBox2.Text = "填写通知内容"; - textBox2.ForeColor = Color.FromArgb(164, 164, 164); - FillDGVAss(); - // FullTreeView(); - button1_Click(null, null); - // treeView1.ExpandAll(); + DGVAss.AutoGenerateColumns = false; DGVAdd.AutoGenerateColumns = false; + txtTime.SelectedIndex = 1; + FillDGVAss(); + button1_Click(null, null); FillDGVAdd(); } + /// ///填充到DGVADD /// public void FillDGVAdd() { - DGVAss.AutoGenerateColumns = false; DataTable tb = new DataTable(); tb = BNoticeTemplate.GetNoticeTemplate(); this.DGVAdd.DataSource = tb; + DGVAdd.ClearSelection(); } /// /// 填充到DGVASS @@ -62,25 +57,6 @@ namespace AIMS.OperationDoing.AnasRecordBill tb = BNoticeContent.GetNoticeContent(time); this.DGVAss.DataSource = tb; } - /// - /// 关闭 - /// - /// - /// - private void button6_Click(object sender, EventArgs e) - { - this.Close(); - } - - private void textBox1_Leave(object sender, EventArgs e) - { - if (txtnameOrHnum.Text == "") - { - txtnameOrHnum.Text = "姓名或住院号"; - txtnameOrHnum.ForeColor = Color.FromArgb(164, 164, 164); - } - } - /// /// 查询当天的手术患者信息 /// @@ -89,7 +65,6 @@ namespace AIMS.OperationDoing.AnasRecordBill private void button1_Click(object sender, EventArgs e) { FullTreeView(); - // treeView1.ExpandAll(); } /// /// 加载当天手术患者信息到treeView1 @@ -98,184 +73,20 @@ namespace AIMS.OperationDoing.AnasRecordBill { try { - - //treeView1.Nodes.Clear(); - //if (txtnameOrHnum.Text != "姓名或住院号") - //{ - // VPlanedOpeList = BLPlanOpe.SelectVPlanedOpeByWhere(" (V_PlanedOpe.Name like '%" + txtnameOrHnum.Text + "%' or V_PlanedOpe.InHospitalNo ='" + txtnameOrHnum.Text + "') and CONVERT(varchar(10),OrderOperationTime,120)= '" + label1.Text + "' and state not in (9)"); - - //} - //if (txtnameOrHnum.Text == "" || txtnameOrHnum.Text == "姓名或住院号") - //{ - // VPlanedOpeList = BLPlanOpe.SelectVPlanedOpeByWhere("CONVERT(varchar(10),OrderOperationTime,120)= '" + label1.Text + "' and state not in (9)"); - //} - - //if (VPlanedOpeList.Count > 0) - //{ - // string roomname = ""; - // //TreeNode TN = new TreeNode(VPlanedOpeList[0].OperatingRoomName); - // //treeView1.Nodes.Add(TN); - // foreach (VPlanedOpe VO in VPlanedOpeList) - // { - // if (VO.OperatingRoomName != roomname) - // { - // roomname = VO.OperatingRoomName; - // TreeNode roomnode = new TreeNode(roomname); - // roomnode.Tag = VO.OperatingRoomID; - // treeView1.Nodes.Add(roomnode); - // foreach (VPlanedOpe vpo in VPlanedOpeList) - // { - // if (vpo.OperatingRoomName == VO.OperatingRoomName) - // { - // TreeNode sNode = new TreeNode(vpo.InHospitalNO + "-" + vpo.PatientName); - // sNode.Tag = vpo; - // sNode.Text = vpo.PatientName + "—" + vpo.InHospitalNO; - // roomnode.Nodes.Add(sNode); - // } - - // } - // roomnode.Expand(); - // } - // } - // if (treeView1.Nodes.Count > 0) treeView1.SelectedNode = treeView1.Nodes[0]; - //} - - //else - //{ - // //MessageBox.Show("暂无患者!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - //} - } catch (Exception exp) { - //MessageBox.Show("加载患者列表出错!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); PublicMethod.WriteLog(exp, ""); return; } } /// - /// 点击查询文本框 - /// - /// - /// - private void txtnameOrHnum_Click(object sender, EventArgs e) - { - if (txtnameOrHnum.Text.Equals("姓名或住院号")) - { - txtnameOrHnum.Text = ""; - txtnameOrHnum.ForeColor = Color.Black; - } - } - /// - /// 鼠标按下时发生 - /// - /// - /// - private void txtnameOrHnum_MouseDown(object sender, MouseEventArgs e) - { - txtnameOrHnum.Text = "姓名或住院号"; - txtnameOrHnum.ForeColor = Color.FromArgb(164, 164, 164); - } - /// - /// 绑定DGVAss - /// - public void FullDgv() - { - DGVAss.AutoGenerateColumns = false; - DGVAss.Rows.Clear(); - } - /// /// 赋值手术患者的信息 /// /// /// private void treeView1_AfterSelect(object sender, TreeViewEventArgs e) { - //if (treeView1.SelectedNode.Level == 1) - //{ - // VPlanedOpe item = treeView1.SelectedNode.Tag as VPlanedOpe; - // lblName.Text = item.PatientName; - //} - - } - /// - /// 添加新项 - /// - /// - /// - private void tsbAdd_Click(object sender, EventArgs e) - { - state = EditState.ADD; - DGVAdd.AutoGenerateColumns = false; - NoticeTemplate NC = new NoticeTemplate(); - if (textBox2.Text == "填写通知内容") - { - MessageBox.Show("请添加通知内容", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - return; - } - if (textBox2.Text != "") - { - NC.Contents = textBox2.Text; - // NC.ReleaseTime = int.Parse(txtTime.Text); - // NC.ReleaseCount = int.Parse(txtTime.Text) / 30; - //NC.OperatorTime = DateTime.Now; - //NC.OperatorId = PublicMethod.Operator.Id; - //NC.ReleaseTime = int.Parse( DateTime.Now.ToString("hh:mm:ss")); - BNoticeTemplate.Insert(NC); - MessageBox.Show("添加成功", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - FillDGVAdd(); - textBox2.Text = ""; - txtTime.Text = ""; - } - //else - //{ - // MessageBox.Show("请添加内容!", "系统提示!", MessageBoxButtons.YesNo, MessageBoxIcon.Question); - //} - } - /// - /// 修改 - /// - /// - /// - private void tsbModify_Click(object sender, EventArgs e) - { - if (DGVAdd.SelectedRows.Count > 0) - { - state = EditState.EDIT; - NoticeTemplate nn = new NoticeTemplate(); - nn.Contents = textBox2.Text; - //nn.ReleaseTime =int.Parse( txtTime.Text); - nn.Id = int.Parse(DGVAdd.SelectedRows[0].Cells["Id"].Value.ToString()); - textBox2.Text = DGVAdd.SelectedRows[0].Cells["常用通知"].Value.ToString(); - //txtTime.Text = DGVAdd.SelectedRows[0].Cells["ReleaseTime"].Value.ToString(); - BNoticeTemplate.Update(nn); - FillDGVAdd(); - } - } - /// - /// 删除 - /// - /// - /// - private void tsbDel_Click(object sender, EventArgs e) - { - if (DGVAdd.CurrentRow == null) - { - MessageBox.Show("没有要删除的内容!", "系统提示!", MessageBoxButtons.OK, MessageBoxIcon.Information); - return; - } - NoticeTemplate nc = new NoticeTemplate(); - nc.Id = int.Parse(DGVAdd.CurrentRow.Cells["Id"].Value.ToString()); - if (nc.Id > 0) - { - DialogResult dr = MessageBox.Show("确定要删除?", "系统提示!", MessageBoxButtons.YesNo, MessageBoxIcon.Question); - if (dr == DialogResult.Yes) - { - BNoticeTemplate.Delete(nc); - FillDGVAdd(); - } - } - } /// /// 保存发送 @@ -284,176 +95,26 @@ namespace AIMS.OperationDoing.AnasRecordBill /// private void tsbSave_Click(object sender, EventArgs e) { - state = EditState.ADD; + if (txtTime.Text == "填写显示时长") + { + MessageBox.Show("请填写显示时长!"); + return; + } + if (txtTime.Text == "填写通知内容") + { + MessageBox.Show("请填写通知内容!"); + return; + } NoticeContent nc = new NoticeContent(); - //if (txtTime.Text == "填写显示时长") - //{ - // MessageBox.Show("请填写显示时长!"); - // return; - //} - //if (txtTime.Text == "填写通知内容") - //{ - // MessageBox.Show("请填写通知内容!"); - // return; - //} - if (textBox2.Text != "填写通知内容" && txtTime.Text != "填写显示时长" && lblName.Text != "") - { - nc.Contents = lblName.Text + "患者家属" + textBox2.Text; - nc.ReleaseTime = int.Parse(txtTime.Text); - nc.ReleaseCount = int.Parse(txtTime.Text) / 30; - nc.OperatorTime = DateTime.Now; - nc.OperatorId = PublicMethod.OperatorId; - BNoticeContent.Insert(nc); - MessageBox.Show("发送成功", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); - FillDGVAss(); - } - else - { - MessageBox.Show("请将通知填写完整!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - } - } - /// - /// 取消事件 - /// - /// - /// - private void tsbFCancel_Click(object sender, EventArgs e) - { - PublicMethod.ClearControl(textBox2); - PublicMethod.EnabledControl(textBox2, false); - } - /// - /// 选定DGVAdd的内容 - /// - /// - /// - //private void DGVAdd_CellContentClick(object sender, DataGridViewCellEventArgs e) - //{ - // DataTable dt = new DataTable(); - // dt = BNoticeTemplate.GetNoticeTemplate(); - // if (DGVAdd.SelectedRows.Count > 0) - // { - // textBox2.Text = DGVAdd.SelectedRows[0].Cells["常用通知"].Value.ToString(); - // textBox2.ForeColor = Color.Black; - // textBox2.Click -= new EventHandler(textBox2_Click); - // //txtTime.Text = DGVAdd.SelectedRows[0].Cells["ReleaseTime"].Value.ToString(); - // } - // else - // { - // MessageBox.Show("请选择要通知的事项!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - // } - // //if(DGVAdd.SelectedRows.Count>0) - // //{ - // // db = BNoticeContent.GetNoticeContent(); - // // DataRow dr = db.NewRow(); - // // int id = Convert.ToInt32(DGVAdd.CurrentRow.Cells["Id"].Value); - // // foreach (DataGridViewRow row in DGVAss.Rows) - // // { - // // if (Convert.ToInt32(row.Cells["编号"].Value)==id) - // // { - // // MessageBox.Show("已选择"); - // // return; - // // } - // // } - // // foreach(DataRow row in db.Rows) - // // { - // // //if(Convert.ToInt32(row["Id"])==id) - // // //{ - // // if (DGVAss.Rows.Count < 1) - // // { - // // for (int i = 0; i < db.Columns.Count; i++) - // // { - // // dr["Id"] = row["Id"]; - // // dr["Contents"] = row["Contents"]; - // // } - // // db.Rows.Add(dr); - // // } - // // else - // // { - // // dr["Id"] = row["Id"]; - // // dr["Contents"] = row["Contents"]; - // // } - - // // break; - // // //} - // // } - // // DGVAss.DataSource = db; - // //} - //} - - private void textBox2_Click(object sender, EventArgs e) - { - if (textBox2.Text.Equals("填写通知内容")) - { - textBox2.Text = ""; - textBox2.ForeColor = Color.Black; - } - } - - private void textBox2_Leave(object sender, EventArgs e) - { - if (textBox2.Text == "") - { - textBox2.Text = "填写通知内容"; - textBox2.ForeColor = Color.FromArgb(164, 164, 164); - } - } - - private void textBox2_MouseDown(object sender, MouseEventArgs e) - { - //textBox2.Text = "填写通知内容"; - //textBox2.ForeColor = Color.FromArgb(164, 164, 164); - } - - private void txtTime_Click(object sender, EventArgs e) - { - if (txtTime.Text.Equals("填写显示时长")) - { - txtTime.Text = ""; - txtTime.ForeColor = Color.Black; - } - } - - private void txtTime_Leave(object sender, EventArgs e) - { - if (txtTime.Text == "") - { - txtTime.Text = "填写显示时长"; - txtTime.ForeColor = Color.FromArgb(164, 164, 164); - } - } - - private void txtTime_MouseDown(object sender, MouseEventArgs e) - { - txtTime.Text = "填写显示时长"; - txtTime.ForeColor = Color.FromArgb(164, 164, 164); - } - - private void panel5_Paint(object sender, PaintEventArgs e) - { - - } - /// - /// 单击行 - /// - /// - /// - private void DGVAdd_Click(object sender, EventArgs e) - { - DataTable dt = new DataTable(); - dt = BNoticeTemplate.GetNoticeTemplate(); - if (DGVAdd.SelectedRows.Count > 0) - { - textBox2.Text = DGVAdd.SelectedRows[0].Cells["常用通知"].Value.ToString(); - textBox2.ForeColor = Color.Black; - textBox2.Click -= new EventHandler(textBox2_Click); - //txtTime.Text = DGVAdd.SelectedRows[0].Cells["ReleaseTime"].Value.ToString(); - } - else - { - MessageBox.Show("请选择要通知的事项!", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); - } + nc.Contents = lblName.Text + textBox2.Text; + nc.ReleaseTime = int.Parse(txtTime.Text); + nc.ReleaseCount = int.Parse(txtTime.Text) / 30; + nc.OperatorTime = DateTime.Now; + nc.OperatorId = PublicMethod.OperatorId; + BNoticeContent.Insert(nc); + MessageBox.Show("发送成功", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); + FillDGVAss(); } private void DGVAdd_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) @@ -499,5 +160,79 @@ namespace AIMS.OperationDoing.AnasRecordBill } } + private void DGVAdd_CellEndEdit(object sender, DataGridViewCellEventArgs e) + { + //判断类型 + if (e.ColumnIndex == 1) + { + if (DGVAdd.Rows[e.RowIndex].Cells[2].Value.ToString() == "删除") + { + int id = Convert.ToInt32(DGVAdd.Rows[e.RowIndex].Cells[0].Value); + string value = DGVAdd.Rows[e.RowIndex].Cells[e.ColumnIndex].Value == null ? "" : DGVAdd.Rows[e.RowIndex].Cells[e.ColumnIndex].Value.ToString(); + + BNoticeTemplate.Update("Contents='" + value + "' where Id=" + id, null); + } + else + { + string value = DGVAdd.Rows[e.RowIndex].Cells[1].Value == null ? "" : DGVAdd.Rows[e.RowIndex].Cells[1].Value.ToString(); + if (value == "") + { + return; + } + NoticeTemplate NC = new NoticeTemplate(); + NC.Contents = value; + NC.OperatorTime = DateTime.Now; + NC.OperatorId = PublicMethod.OperatorId; + DGVAdd.Rows[e.RowIndex].Cells[0].Value=BNoticeTemplate.Insert(NC); + DGVAdd.Rows[e.RowIndex].Cells[2].Value = "删除"; + MessageBox.Show("添加成功", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + } + } + + private void DGVAdd_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex == 2) + { + if (DGVAdd.Rows[e.RowIndex].Cells[2].Value.ToString() == "删除") + { + int id = Convert.ToInt32(DGVAdd.Rows[e.RowIndex].Cells[0].Value); + DialogResult dr = MessageBox.Show("确定要删除?", "系统提示!", MessageBoxButtons.YesNo, MessageBoxIcon.Question); + if (dr == DialogResult.Yes) + { + BNoticeTemplate.Delete("Id=" + id, null); + FillDGVAdd(); + } + } + //else if (DGVAdd.Rows[e.RowIndex].Cells[2].Value.ToString() == "增加" || DGVAdd.Rows[e.RowIndex].Cells[2].Value.ToString() == "") + //{ + // string value = DGVAdd.Rows[e.RowIndex].Cells[1].Value == null ? "" : DGVAdd.Rows[e.RowIndex].Cells[1].Value.ToString(); + // if (value == "") + // { + // MessageBox.Show("请添加通知内容", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + // return; + // } + // NoticeTemplate NC = new NoticeTemplate(); + // NC.Contents = value; + // NC.OperatorTime = DateTime.Now; + // NC.OperatorId = PublicMethod.OperatorId; + // BNoticeTemplate.Insert(NC); + // MessageBox.Show("添加成功", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Information); + + // FillDGVAdd(); + //} + + } + + } + + private void DGVAdd_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) + { + if (e.ColumnIndex == 1) + { + string value = DGVAdd.Rows[e.RowIndex].Cells[1].Value == null ? "" : DGVAdd.Rows[e.RowIndex].Cells[1].Value.ToString(); + textBox2.Text = value; + } + } } } diff --git a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.designer.cs b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.designer.cs index ec502be..8252a56 100644 --- a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.designer.cs +++ b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.designer.cs @@ -34,17 +34,19 @@ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = 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 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 dataGridViewCellStyle19 = 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 dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmNoticeLargeScreen)); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.treeView1 = new System.Windows.Forms.TreeView(); @@ -53,23 +55,17 @@ this.button1 = new System.Windows.Forms.Button(); this.panel2 = new System.Windows.Forms.Panel(); this.panel4 = new System.Windows.Forms.Panel(); + this.DGVAdd = new System.Windows.Forms.DataGridView(); this.DGVAss = new System.Windows.Forms.DataGridView(); this.panel5 = new System.Windows.Forms.Panel(); + this.lblName = new System.Windows.Forms.Label(); + this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); + this.textBox2 = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); this.txtTime = new System.Windows.Forms.ComboBox(); this.LongTime = new System.Windows.Forms.Label(); - this.lblName = new System.Windows.Forms.Label(); - this.textBox2 = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); - this.DGVAdd = new System.Windows.Forms.DataGridView(); - this.panel3 = new System.Windows.Forms.Panel(); - this.tsbFCancel = new System.Windows.Forms.Button(); - this.button2 = new System.Windows.Forms.Button(); - this.tsbSave = new System.Windows.Forms.Button(); - this.tsbDel = new System.Windows.Forms.Button(); - this.tsbModify = new System.Windows.Forms.Button(); - this.tsbAdd = new System.Windows.Forms.Button(); this.folderBrowserDialog1 = new System.Windows.Forms.FolderBrowserDialog(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -77,22 +73,21 @@ this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn6 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.编号 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.PatientName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Contents = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.发送时间 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.常用通知 = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ReleaseTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Deldetebtn = new System.Windows.Forms.DataGridViewButtonColumn(); this.groupBox1.SuspendLayout(); this.panel1.SuspendLayout(); this.panel2.SuspendLayout(); this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.DGVAdd)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.DGVAss)).BeginInit(); this.panel5.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.DGVAdd)).BeginInit(); - this.panel3.SuspendLayout(); this.SuspendLayout(); // // groupBox1 @@ -141,9 +136,6 @@ this.txtnameOrHnum.Name = "txtnameOrHnum"; this.txtnameOrHnum.Size = new System.Drawing.Size(101, 26); this.txtnameOrHnum.TabIndex = 2; - this.txtnameOrHnum.Click += new System.EventHandler(this.txtnameOrHnum_Click); - this.txtnameOrHnum.Leave += new System.EventHandler(this.textBox1_Leave); - this.txtnameOrHnum.MouseDown += new System.Windows.Forms.MouseEventHandler(this.txtnameOrHnum_MouseDown); // // button1 // @@ -159,35 +151,29 @@ // panel2 // this.panel2.Controls.Add(this.panel4); - this.panel2.Controls.Add(this.DGVAdd); - this.panel2.Controls.Add(this.panel3); this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; this.panel2.Location = new System.Drawing.Point(196, 0); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(606, 519); + this.panel2.Size = new System.Drawing.Size(877, 519); this.panel2.TabIndex = 1; // // panel4 // + this.panel4.Controls.Add(this.DGVAdd); this.panel4.Controls.Add(this.DGVAss); this.panel4.Controls.Add(this.panel5); this.panel4.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel4.Location = new System.Drawing.Point(0, 243); + this.panel4.Location = new System.Drawing.Point(0, 0); this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(606, 276); + this.panel4.Size = new System.Drawing.Size(877, 519); this.panel4.TabIndex = 2; // - // DGVAss + // DGVAdd // - this.DGVAss.AllowUserToAddRows = false; - this.DGVAss.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); - dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 12F); - this.DGVAss.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.DGVAss.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right))); - this.DGVAss.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight; + dataGridViewCellStyle1.Font = new System.Drawing.Font("微软雅黑", 11F); + this.DGVAdd.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + this.DGVAdd.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight; dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); @@ -195,13 +181,12 @@ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGVAss.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; - this.DGVAss.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.DGVAss.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.编号, - this.PatientName, - this.Contents, - this.发送时间}); + this.DGVAdd.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + this.DGVAdd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.DGVAdd.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.Id, + this.常用通知, + this.Deldetebtn}); dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 12F); @@ -209,42 +194,124 @@ dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.DGVAss.DefaultCellStyle = dataGridViewCellStyle5; - this.DGVAss.Location = new System.Drawing.Point(0, 55); - this.DGVAss.MultiSelect = false; - this.DGVAss.Name = "DGVAss"; - dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + this.DGVAdd.DefaultCellStyle = dataGridViewCellStyle5; + this.DGVAdd.Dock = System.Windows.Forms.DockStyle.Fill; + this.DGVAdd.Location = new System.Drawing.Point(0, 270); + this.DGVAdd.Name = "DGVAdd"; + dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle6.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText; dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGVAss.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; - this.DGVAss.RowHeadersVisible = false; + this.DGVAdd.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; + this.DGVAdd.RowTemplate.Height = 23; + this.DGVAdd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; + this.DGVAdd.Size = new System.Drawing.Size(877, 249); + this.DGVAdd.TabIndex = 3; + this.DGVAdd.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGVAdd_CellClick); + this.DGVAdd.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.DGVAdd_CellEndEdit); + this.DGVAdd.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.DGVAdd_CellMouseDoubleClick); + this.DGVAdd.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.DGVAdd_RowPostPaint); + // + // DGVAss + // + this.DGVAss.AllowUserToAddRows = false; + this.DGVAss.AllowUserToDeleteRows = false; + dataGridViewCellStyle7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); dataGridViewCellStyle7.Font = new System.Drawing.Font("微软雅黑", 12F); - this.DGVAss.RowsDefaultCellStyle = dataGridViewCellStyle7; + this.DGVAss.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7; + this.DGVAss.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight; + dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGVAss.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8; + this.DGVAss.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.DGVAss.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.编号, + this.PatientName, + this.Contents, + this.发送时间}); + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.DGVAss.DefaultCellStyle = dataGridViewCellStyle11; + this.DGVAss.Dock = System.Windows.Forms.DockStyle.Top; + this.DGVAss.Location = new System.Drawing.Point(0, 49); + this.DGVAss.MultiSelect = false; + this.DGVAss.Name = "DGVAss"; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 12F); + dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.DGVAss.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; + this.DGVAss.RowHeadersVisible = false; + dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 12F); + this.DGVAss.RowsDefaultCellStyle = dataGridViewCellStyle13; this.DGVAss.RowTemplate.Height = 23; this.DGVAss.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.DGVAss.Size = new System.Drawing.Size(606, 221); + this.DGVAss.Size = new System.Drawing.Size(877, 221); this.DGVAss.TabIndex = 2; // // panel5 // this.panel5.BackColor = System.Drawing.SystemColors.Control; + this.panel5.Controls.Add(this.lblName); + this.panel5.Controls.Add(this.buttonX1); + this.panel5.Controls.Add(this.textBox2); this.panel5.Controls.Add(this.label5); this.panel5.Controls.Add(this.txtTime); this.panel5.Controls.Add(this.LongTime); - this.panel5.Controls.Add(this.lblName); - this.panel5.Controls.Add(this.textBox2); this.panel5.Controls.Add(this.label4); this.panel5.Controls.Add(this.label3); this.panel5.Dock = System.Windows.Forms.DockStyle.Top; this.panel5.Location = new System.Drawing.Point(0, 0); this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(606, 49); + this.panel5.Size = new System.Drawing.Size(877, 49); this.panel5.TabIndex = 0; - this.panel5.Paint += new System.Windows.Forms.PaintEventHandler(this.panel5_Paint); + // + // lblName + // + this.lblName.AutoSize = true; + this.lblName.Font = new System.Drawing.Font("微软雅黑", 10F); + this.lblName.ForeColor = System.Drawing.Color.Navy; + this.lblName.Location = new System.Drawing.Point(75, 15); + this.lblName.Name = "lblName"; + this.lblName.Size = new System.Drawing.Size(0, 20); + this.lblName.TabIndex = 3; + // + // buttonX1 + // + this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.buttonX1.Font = new System.Drawing.Font("宋体", 10F); + this.buttonX1.Location = new System.Drawing.Point(754, 5); + this.buttonX1.Name = "buttonX1"; + this.buttonX1.Size = new System.Drawing.Size(113, 38); + this.buttonX1.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; + this.buttonX1.TabIndex = 8; + this.buttonX1.Text = "发送通知"; + this.buttonX1.Click += new System.EventHandler(this.tsbSave_Click); + // + // textBox2 + // + this.textBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F); + this.textBox2.Location = new System.Drawing.Point(216, 12); + this.textBox2.Name = "textBox2"; + this.textBox2.Size = new System.Drawing.Size(345, 26); + this.textBox2.TabIndex = 1; // // label5 // @@ -252,7 +319,7 @@ this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.Font = new System.Drawing.Font("微软雅黑", 10F); this.label5.ForeColor = System.Drawing.SystemColors.HotTrack; - this.label5.Location = new System.Drawing.Point(538, 8); + this.label5.Location = new System.Drawing.Point(719, 15); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(23, 20); this.label5.TabIndex = 7; @@ -269,7 +336,7 @@ "120", "150", "180"}); - this.txtTime.Location = new System.Drawing.Point(460, 3); + this.txtTime.Location = new System.Drawing.Point(641, 12); this.txtTime.Name = "txtTime"; this.txtTime.Size = new System.Drawing.Size(73, 28); this.txtTime.TabIndex = 6; @@ -280,44 +347,23 @@ this.LongTime.BackColor = System.Drawing.Color.Transparent; this.LongTime.Font = new System.Drawing.Font("微软雅黑", 10F); this.LongTime.ForeColor = System.Drawing.SystemColors.HotTrack; - this.LongTime.Location = new System.Drawing.Point(384, 8); + this.LongTime.Location = new System.Drawing.Point(565, 15); this.LongTime.Name = "LongTime"; this.LongTime.Size = new System.Drawing.Size(79, 20); this.LongTime.TabIndex = 5; this.LongTime.Text = "显示时长:"; // - // lblName - // - this.lblName.AutoSize = true; - this.lblName.Font = new System.Drawing.Font("微软雅黑", 10F); - this.lblName.ForeColor = System.Drawing.Color.Navy; - this.lblName.Location = new System.Drawing.Point(69, 8); - this.lblName.Name = "lblName"; - this.lblName.Size = new System.Drawing.Size(0, 20); - this.lblName.TabIndex = 3; - // - // textBox2 - // - this.textBox2.Font = new System.Drawing.Font("微软雅黑", 10.5F); - this.textBox2.Location = new System.Drawing.Point(216, 5); - this.textBox2.Name = "textBox2"; - this.textBox2.Size = new System.Drawing.Size(153, 26); - this.textBox2.TabIndex = 1; - this.textBox2.Click += new System.EventHandler(this.textBox2_Click); - this.textBox2.Leave += new System.EventHandler(this.textBox2_Leave); - this.textBox2.MouseDown += new System.Windows.Forms.MouseEventHandler(this.textBox2_MouseDown); - // // label4 // this.label4.AutoSize = true; this.label4.BackColor = System.Drawing.Color.Transparent; this.label4.Font = new System.Drawing.Font("微软雅黑", 10F); this.label4.ForeColor = System.Drawing.SystemColors.HotTrack; - this.label4.Location = new System.Drawing.Point(4, 8); + this.label4.Location = new System.Drawing.Point(4, 15); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(51, 20); + this.label4.Size = new System.Drawing.Size(79, 20); this.label4.TabIndex = 0; - this.label4.Text = "姓名:"; + this.label4.Text = "患者姓名:"; // // label3 // @@ -325,231 +371,78 @@ this.label3.BackColor = System.Drawing.Color.Transparent; this.label3.Font = new System.Drawing.Font("微软雅黑", 10F); this.label3.ForeColor = System.Drawing.SystemColors.HotTrack; - this.label3.Location = new System.Drawing.Point(146, 8); + this.label3.Location = new System.Drawing.Point(146, 15); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(65, 20); + this.label3.Size = new System.Drawing.Size(79, 20); this.label3.TabIndex = 0; - this.label3.Text = "自定义:"; - // - // DGVAdd - // - this.DGVAdd.AllowUserToAddRows = false; - this.DGVAdd.AllowUserToDeleteRows = false; - dataGridViewCellStyle8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(247)))), ((int)(((byte)(255))))); - dataGridViewCellStyle8.Font = new System.Drawing.Font("微软雅黑", 11F); - this.DGVAdd.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8; - this.DGVAdd.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGVAdd.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle9; - this.DGVAdd.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.DGVAdd.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.Id, - this.常用通知, - this.ReleaseTime}); - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle12.Font = new System.Drawing.Font("微软雅黑", 12F); - dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.DGVAdd.DefaultCellStyle = dataGridViewCellStyle12; - this.DGVAdd.Dock = System.Windows.Forms.DockStyle.Top; - this.DGVAdd.Location = new System.Drawing.Point(0, 33); - this.DGVAdd.MultiSelect = false; - this.DGVAdd.Name = "DGVAdd"; - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle13.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle13.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle13.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle13.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle13.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle13.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.DGVAdd.RowHeadersDefaultCellStyle = dataGridViewCellStyle13; - this.DGVAdd.RowTemplate.Height = 23; - this.DGVAdd.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.DGVAdd.Size = new System.Drawing.Size(606, 210); - this.DGVAdd.TabIndex = 1; - this.DGVAdd.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.DGVAdd_RowPostPaint); - this.DGVAdd.Click += new System.EventHandler(this.DGVAdd_Click); - // - // panel3 - // - this.panel3.Controls.Add(this.tsbFCancel); - this.panel3.Controls.Add(this.button2); - this.panel3.Controls.Add(this.tsbSave); - this.panel3.Controls.Add(this.tsbDel); - this.panel3.Controls.Add(this.tsbModify); - this.panel3.Controls.Add(this.tsbAdd); - this.panel3.Dock = System.Windows.Forms.DockStyle.Top; - this.panel3.Location = new System.Drawing.Point(0, 0); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(606, 33); - this.panel3.TabIndex = 0; - // - // tsbFCancel - // - this.tsbFCancel.BackColor = System.Drawing.Color.Transparent; - this.tsbFCancel.FlatAppearance.BorderSize = 0; - this.tsbFCancel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.tsbFCancel.Font = new System.Drawing.Font("微软雅黑", 12F); - this.tsbFCancel.Location = new System.Drawing.Point(529, 3); - this.tsbFCancel.Name = "tsbFCancel"; - this.tsbFCancel.Size = new System.Drawing.Size(75, 30); - this.tsbFCancel.TabIndex = 0; - this.tsbFCancel.Text = "取消"; - this.tsbFCancel.UseVisualStyleBackColor = false; - this.tsbFCancel.Visible = false; - this.tsbFCancel.Click += new System.EventHandler(this.tsbFCancel_Click); - // - // button2 - // - this.button2.BackColor = System.Drawing.Color.Transparent; - this.button2.Cursor = System.Windows.Forms.Cursors.Hand; - this.button2.FlatAppearance.BorderSize = 0; - this.button2.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.button2.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.button2.Location = new System.Drawing.Point(445, 4); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(75, 25); - this.button2.TabIndex = 0; - this.button2.Text = "发送文件"; - this.button2.UseVisualStyleBackColor = false; - this.button2.Click += new System.EventHandler(this.button2_Click); - // - // tsbSave - // - this.tsbSave.BackColor = System.Drawing.Color.Transparent; - this.tsbSave.Cursor = System.Windows.Forms.Cursors.Hand; - this.tsbSave.FlatAppearance.BorderSize = 0; - this.tsbSave.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.tsbSave.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tsbSave.Location = new System.Drawing.Point(339, 4); - this.tsbSave.Name = "tsbSave"; - this.tsbSave.Size = new System.Drawing.Size(75, 25); - this.tsbSave.TabIndex = 0; - this.tsbSave.Text = "发送通知"; - this.tsbSave.UseVisualStyleBackColor = false; - this.tsbSave.Click += new System.EventHandler(this.tsbSave_Click); - // - // tsbDel - // - this.tsbDel.BackColor = System.Drawing.Color.Transparent; - this.tsbDel.Cursor = System.Windows.Forms.Cursors.Hand; - this.tsbDel.FlatAppearance.BorderSize = 0; - this.tsbDel.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.tsbDel.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tsbDel.Location = new System.Drawing.Point(231, 4); - this.tsbDel.Name = "tsbDel"; - this.tsbDel.Size = new System.Drawing.Size(75, 25); - this.tsbDel.TabIndex = 0; - this.tsbDel.Text = "删除"; - this.tsbDel.UseVisualStyleBackColor = false; - this.tsbDel.Click += new System.EventHandler(this.tsbDel_Click); - // - // tsbModify - // - this.tsbModify.BackColor = System.Drawing.Color.Transparent; - this.tsbModify.Cursor = System.Windows.Forms.Cursors.Hand; - this.tsbModify.FlatAppearance.BorderSize = 0; - this.tsbModify.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.tsbModify.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tsbModify.Location = new System.Drawing.Point(123, 4); - this.tsbModify.Name = "tsbModify"; - this.tsbModify.Size = new System.Drawing.Size(75, 25); - this.tsbModify.TabIndex = 0; - this.tsbModify.Text = "修改"; - this.tsbModify.UseVisualStyleBackColor = false; - this.tsbModify.Click += new System.EventHandler(this.tsbModify_Click); - // - // tsbAdd - // - this.tsbAdd.BackColor = System.Drawing.Color.Transparent; - this.tsbAdd.Cursor = System.Windows.Forms.Cursors.Hand; - this.tsbAdd.FlatAppearance.BorderSize = 0; - this.tsbAdd.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.tsbAdd.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.tsbAdd.Location = new System.Drawing.Point(15, 4); - this.tsbAdd.Name = "tsbAdd"; - this.tsbAdd.Size = new System.Drawing.Size(75, 25); - this.tsbAdd.TabIndex = 0; - this.tsbAdd.Text = "添加"; - this.tsbAdd.UseVisualStyleBackColor = false; - this.tsbAdd.Click += new System.EventHandler(this.tsbAdd_Click); + this.label3.Text = "通知内容:"; // // dataGridViewTextBoxColumn1 // this.dataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; this.dataGridViewTextBoxColumn1.DataPropertyName = "Id"; + dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle14; this.dataGridViewTextBoxColumn1.HeaderText = "编号"; this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; this.dataGridViewTextBoxColumn1.Visible = false; + this.dataGridViewTextBoxColumn1.Width = 60; // // dataGridViewTextBoxColumn2 // + this.dataGridViewTextBoxColumn2.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn2.DataPropertyName = "PatientName"; - dataGridViewCellStyle14.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle14; + dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle15; this.dataGridViewTextBoxColumn2.HeaderText = "发送通知人"; this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; this.dataGridViewTextBoxColumn2.ReadOnly = true; this.dataGridViewTextBoxColumn2.Visible = false; - this.dataGridViewTextBoxColumn2.Width = 150; // // dataGridViewTextBoxColumn3 // + this.dataGridViewTextBoxColumn3.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn3.DataPropertyName = "Contents"; - dataGridViewCellStyle15.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle15; + dataGridViewCellStyle16.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dataGridViewTextBoxColumn3.DefaultCellStyle = dataGridViewCellStyle16; this.dataGridViewTextBoxColumn3.HeaderText = "通知内容"; this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; this.dataGridViewTextBoxColumn3.ReadOnly = true; - this.dataGridViewTextBoxColumn3.Width = 400; + this.dataGridViewTextBoxColumn3.Visible = false; // // dataGridViewTextBoxColumn4 // this.dataGridViewTextBoxColumn4.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn4.DataPropertyName = "OperatorTime"; + dataGridViewCellStyle17.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle17; this.dataGridViewTextBoxColumn4.HeaderText = "发送时间"; this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Visible = false; // // dataGridViewTextBoxColumn5 // + this.dataGridViewTextBoxColumn5.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn5.DataPropertyName = "Id"; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle16; + dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle18; this.dataGridViewTextBoxColumn5.HeaderText = "序号"; this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; this.dataGridViewTextBoxColumn5.ReadOnly = true; this.dataGridViewTextBoxColumn5.Visible = false; - this.dataGridViewTextBoxColumn5.Width = 60; // // dataGridViewTextBoxColumn6 // this.dataGridViewTextBoxColumn6.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.dataGridViewTextBoxColumn6.DataPropertyName = "Contents"; - dataGridViewCellStyle17.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle17; + dataGridViewCellStyle19.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.dataGridViewTextBoxColumn6.DefaultCellStyle = dataGridViewCellStyle19; this.dataGridViewTextBoxColumn6.HeaderText = "常用通知"; this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; this.dataGridViewTextBoxColumn6.ReadOnly = true; // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.dataGridViewTextBoxColumn7.DataPropertyName = "ReleaseTime"; - this.dataGridViewTextBoxColumn7.HeaderText = "显示时长"; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.ReadOnly = true; - this.dataGridViewTextBoxColumn7.Visible = false; - // // 编号 // this.编号.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; @@ -561,8 +454,8 @@ // PatientName // this.PatientName.DataPropertyName = "PatientName"; - dataGridViewCellStyle3.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.PatientName.DefaultCellStyle = dataGridViewCellStyle3; + dataGridViewCellStyle9.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.PatientName.DefaultCellStyle = dataGridViewCellStyle9; this.PatientName.HeaderText = "发送通知人"; this.PatientName.Name = "PatientName"; this.PatientName.ReadOnly = true; @@ -571,27 +464,36 @@ // // Contents // + this.Contents.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.Contents.DataPropertyName = "Contents"; - dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.Contents.DefaultCellStyle = dataGridViewCellStyle4; - this.Contents.HeaderText = "通知内容"; + dataGridViewCellStyle10.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.Contents.DefaultCellStyle = dataGridViewCellStyle10; + this.Contents.HeaderText = "已通知内容"; this.Contents.Name = "Contents"; this.Contents.ReadOnly = true; - this.Contents.Width = 400; // // 发送时间 // - this.发送时间.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.发送时间.DataPropertyName = "OperatorTime"; this.发送时间.HeaderText = "发送时间"; this.发送时间.Name = "发送时间"; this.发送时间.ReadOnly = true; + this.发送时间.Width = 180; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; + this.dataGridViewTextBoxColumn7.DataPropertyName = "ReleaseTime"; + this.dataGridViewTextBoxColumn7.HeaderText = "显示时长"; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.ReadOnly = true; + this.dataGridViewTextBoxColumn7.Visible = false; // // Id // this.Id.DataPropertyName = "Id"; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.Id.DefaultCellStyle = dataGridViewCellStyle10; + dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.Id.DefaultCellStyle = dataGridViewCellStyle3; this.Id.HeaderText = "序号"; this.Id.Name = "Id"; this.Id.ReadOnly = true; @@ -602,20 +504,19 @@ // this.常用通知.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; this.常用通知.DataPropertyName = "Contents"; - dataGridViewCellStyle11.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.常用通知.DefaultCellStyle = dataGridViewCellStyle11; + dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.常用通知.DefaultCellStyle = dataGridViewCellStyle4; this.常用通知.HeaderText = "常用通知"; this.常用通知.Name = "常用通知"; - this.常用通知.ReadOnly = true; // - // ReleaseTime + // Deldetebtn // - this.ReleaseTime.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; - this.ReleaseTime.DataPropertyName = "ReleaseTime"; - this.ReleaseTime.HeaderText = "显示时长"; - this.ReleaseTime.Name = "ReleaseTime"; - this.ReleaseTime.ReadOnly = true; - this.ReleaseTime.Visible = false; + this.Deldetebtn.DataPropertyName = "manage"; + this.Deldetebtn.HeaderText = "操作"; + this.Deldetebtn.Name = "Deldetebtn"; + this.Deldetebtn.ReadOnly = true; + this.Deldetebtn.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.Deldetebtn.Width = 80; // // frmNoticeLargeScreen // @@ -623,7 +524,7 @@ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoSize = true; - this.ClientSize = new System.Drawing.Size(802, 519); + this.ClientSize = new System.Drawing.Size(1073, 519); this.Controls.Add(this.panel2); this.Controls.Add(this.groupBox1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -637,11 +538,10 @@ this.panel1.PerformLayout(); this.panel2.ResumeLayout(false); this.panel4.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.DGVAdd)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.DGVAss)).EndInit(); this.panel5.ResumeLayout(false); this.panel5.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.DGVAdd)).EndInit(); - this.panel3.ResumeLayout(false); this.ResumeLayout(false); } @@ -653,32 +553,17 @@ private System.Windows.Forms.TextBox txtnameOrHnum; private System.Windows.Forms.TreeView treeView1; private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Button tsbAdd; private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.DataGridView DGVAdd; - private System.Windows.Forms.Button tsbSave; - private System.Windows.Forms.Button tsbDel; - private System.Windows.Forms.Button tsbModify; private System.Windows.Forms.DataGridView DGVAss; private System.Windows.Forms.Panel panel5; private System.Windows.Forms.Label label3; - private System.Windows.Forms.Button tsbFCancel; private System.Windows.Forms.Label label4; - private System.Windows.Forms.DataGridViewTextBoxColumn 编号; - private System.Windows.Forms.DataGridViewTextBoxColumn PatientName; - private System.Windows.Forms.DataGridViewTextBoxColumn Contents; - private System.Windows.Forms.DataGridViewTextBoxColumn 发送时间; - private System.Windows.Forms.DataGridViewTextBoxColumn Id; - private System.Windows.Forms.DataGridViewTextBoxColumn 常用通知; - private System.Windows.Forms.DataGridViewTextBoxColumn ReleaseTime; public System.Windows.Forms.Label lblName; public System.Windows.Forms.TextBox textBox2; public System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.Label label5; private System.Windows.Forms.ComboBox txtTime; private System.Windows.Forms.Label LongTime; - private System.Windows.Forms.Button button2; private System.Windows.Forms.FolderBrowserDialog folderBrowserDialog1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; @@ -687,5 +572,14 @@ private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn5; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn6; private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn7; + private DevComponents.DotNetBar.ButtonX buttonX1; + private System.Windows.Forms.DataGridView DGVAdd; + private System.Windows.Forms.DataGridViewTextBoxColumn 编号; + private System.Windows.Forms.DataGridViewTextBoxColumn PatientName; + private System.Windows.Forms.DataGridViewTextBoxColumn Contents; + private System.Windows.Forms.DataGridViewTextBoxColumn 发送时间; + private System.Windows.Forms.DataGridViewTextBoxColumn Id; + private System.Windows.Forms.DataGridViewTextBoxColumn 常用通知; + private System.Windows.Forms.DataGridViewButtonColumn Deldetebtn; } } \ No newline at end of file diff --git a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.resx b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.resx index 241e3c4..9d9b253 100644 --- a/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.resx +++ b/AIMS/OperationDoing/oldSystemCode/frmNoticeLargeScreen.resx @@ -117,6 +117,15 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + True + + + True + + + True + True @@ -129,21 +138,9 @@ True - - True - - - True - - - True - 17, 17 - - True - diff --git a/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs b/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs index 2ce9796..eb6a0a3 100644 --- a/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs +++ b/AIMS/OperationDoing/oldSystemCode/frmSelectPatientGoodsBill.cs @@ -19,6 +19,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI public int SelPatientId; public int SelApplyId; public bool isMainOpen = false; + List rooms; public frmSelectPatientGoodsBill() { @@ -27,7 +28,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void frmSelectPatientGoodsBill_Load(object sender, EventArgs e) { - List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); + rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); rooms.Insert(0, new OperationRoom() { Id = -1, Name = "" }); cboRoom.DataSource = rooms; cboRoom.DisplayMember = "Name"; @@ -74,7 +75,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { panel3.Controls.Clear(); panel2.Visible = false; - int i = 0, j = 0; DataTable dt = new DataTable(); if (txtquery.Text.Trim() != "") @@ -82,58 +82,117 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI else dt = SelectPatient.GetSelectPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); - foreach (DataRow dr in dt.Rows) - { - ucPatientCard uc = new ucPatientCard(dr); - uc.InRoom += Uc_InRoom; - uc.QxRoom += Uc_QxRoom; - uc.Clicks += Uc_Clicks; - uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); - if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") - uc.buttonX1.Enabled = true; - else - uc.buttonX1.Enabled = false; - panel3.Controls.Add(uc); - j++; - if (j == 5) - { - i++; - j = 0; - } - //防止显示全部卡顿 - if (i >= 5) break; - } - DataTable dt2 = new DataTable(); if (txtquery.Text.Trim() != "") - dt2 = SelectPatient.GetRelieveLockingPatientDataTable (txtquery.Text); + dt2 = SelectPatient.GetRelieveLockingPatientDataTable(txtquery.Text); else - dt2 = SelectPatient.GetRelieveLockingPatientDataTable (DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); + dt2 = SelectPatient.GetRelieveLockingPatientDataTable(DateTime.Parse(dtpSelectPatientTime.Value.ToString("yyyy-MM-dd").ToString()), cboRoom.SelectedValue.ToString()); - foreach (DataRow dr in dt2.Rows) + List list = new List(); + for (int i = 0; i < rooms.Count; i++) { - ucPatientCard uc = new ucPatientCard(dr); - uc.buttonX1.Text = "器械清点"; - uc.buttonX2.Visible = true; - uc.InRoom += Uc_InRoom; - uc.QxRoom += Uc_QxRoom; - uc.Clicks += Uc_Clicks; - if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") - uc.buttonX2.Enabled = true; - else - uc.buttonX2.Enabled = false; - uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); - panel3.Controls.Add(uc); - j++; - if (j == 5) + foreach (DataRow dr in dt.Rows) { - i++; - j = 0; + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } } - //防止显示全部卡顿 - if (i >= 10) break; - } + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() == rooms[i].Name && !list.Contains(rooms[i].Name)) + { + list.Add(rooms[i].Name); + } + } + } + //for (int i = 0; i < list.Count; i++) + //{ + // int j = 0; + // foreach (DataRow dr in dt.Rows) + // { + // if (dr["OperationRoom"].ToString() != list[i]) continue; + // ucPatientCard uc = new ucPatientCard(dr); + // uc.InRoom += Uc_InRoom; + // uc.QxRoom += Uc_QxRoom; + // uc.Clicks += Uc_Clicks; + // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + // if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") + // uc.buttonX1.Enabled = true; + // else + // uc.buttonX1.Enabled = false; + // panel3.Controls.Add(uc); + // j++; + // } + + // foreach (DataRow dr in dt2.Rows) + // { + // if (dr["OperationRoom"].ToString() != list[i]) continue; + // ucPatientCard uc = new ucPatientCard(dr); + // uc.buttonX1.Text = "器械清点"; + // uc.buttonX2.Visible = true; + // uc.InRoom += Uc_InRoom; + // uc.QxRoom += Uc_QxRoom; + // uc.Clicks += Uc_Clicks; + // if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") + // uc.buttonX2.Enabled = true; + // else + // uc.buttonX2.Enabled = false; + // uc.Location = new Point((uc.Width + 9) * j, (uc.Height + 10) * i + 30); + // panel3.Controls.Add(uc); + // j++; + // } + //} + for (int i = 0; i < list.Count; i++) + { + int j = 0; + int Pointx = 0; + foreach (DataRow dr in dt.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") + uc.buttonX1.Enabled = true; + else + uc.buttonX1.Enabled = false; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; Pointx = (uc.Width + 9) * i; + } + + foreach (DataRow dr in dt2.Rows) + { + if (dr["OperationRoom"].ToString() != list[i]) continue; + ucPatientCard uc = new ucPatientCard(dr); + uc.buttonX1.Text = "器械清点"; + uc.InRoom += Uc_InRoom; + uc.QxRoom += Uc_QxRoom; + uc.Clicks += Uc_Clicks; + if (uc.lblAnesDoctors.Text == "麻醉医生:" || uc.lblAnesDoctors.Text.Trim() == "麻醉医生") + uc.buttonX2.Enabled = true; + else + uc.buttonX2.Enabled = false; + uc.Location = new Point((uc.Width + 9) * i, (uc.Height + 10) * j + 30); + panel3.Controls.Add(uc); + j++; + Pointx = (uc.Width + 9) * i; + } + + if (Pointx > 0) + { + DevComponents.DotNetBar.Controls.Line line1 = new DevComponents.DotNetBar.Controls.Line(); + line1.Location = new System.Drawing.Point(Pointx - 10, 0); + line1.DashStyle = System.Drawing.Drawing2D.DashStyle.DashDotDot; + line1.Size = new System.Drawing.Size(10, panel3.Height); + line1.ForeColor = Color.DarkGray; + line1.VerticalLine = true; + panel3.Controls.Add(line1); + } + } } public ucPatientCard SelUc; diff --git a/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs b/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs index b6bc57e..c4db259 100644 --- a/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs +++ b/AIMS/OperationFront/frmOperationApplyDetail.Designer.cs @@ -37,28 +37,8 @@ this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.tsbExit = new System.Windows.Forms.ToolStripButton(); this.panel1 = new System.Windows.Forms.Panel(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.txtTourNurseSucceed = new System.Windows.Forms.TextBox(); - this.txtTourNurse = new System.Windows.Forms.TextBox(); - this.txtInstrumentNurseSucceed = new System.Windows.Forms.TextBox(); - this.txtInstrumentNurse = new System.Windows.Forms.TextBox(); - this.txtAnesthesiaDoctorSucceed = new System.Windows.Forms.TextBox(); - this.txtAnesthesiaDoctor = new System.Windows.Forms.TextBox(); - this.dtpPlanOperationTime = new System.Windows.Forms.DateTimePicker(); - this.cboOperationRoom = new System.Windows.Forms.ComboBox(); - this.label36 = new System.Windows.Forms.Label(); - this.label37 = new System.Windows.Forms.Label(); - this.label38 = new System.Windows.Forms.Label(); - this.label39 = new System.Windows.Forms.Label(); - this.label40 = new System.Windows.Forms.Label(); - this.label41 = new System.Windows.Forms.Label(); - this.label42 = new System.Windows.Forms.Label(); - this.label43 = new System.Windows.Forms.Label(); this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.txtRemark = new System.Windows.Forms.TextBox(); this.label23 = new System.Windows.Forms.Label(); - this.label29 = new System.Windows.Forms.Label(); - this.label22 = new System.Windows.Forms.Label(); this.label28 = new System.Windows.Forms.Label(); this.txtOperationRemark = new System.Windows.Forms.TextBox(); this.txtContagion = new System.Windows.Forms.TextBox(); @@ -72,7 +52,6 @@ this.label1 = new System.Windows.Forms.Label(); this.label26 = new System.Windows.Forms.Label(); this.txtOperationPosition = new System.Windows.Forms.TextBox(); - this.txtDiseaseRemark = new System.Windows.Forms.TextBox(); this.panel2 = new System.Windows.Forms.Panel(); this.rboZQ = new System.Windows.Forms.RadioButton(); this.rboRJ = new System.Windows.Forms.RadioButton(); @@ -155,7 +134,6 @@ this.txtMdrecNo = new System.Windows.Forms.TextBox(); this.toolStrip1.SuspendLayout(); this.panel1.SuspendLayout(); - this.groupBox3.SuspendLayout(); this.groupBox2.SuspendLayout(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); @@ -241,194 +219,17 @@ // panel1 // this.panel1.BackColor = System.Drawing.Color.AliceBlue; - this.panel1.Controls.Add(this.groupBox3); this.panel1.Controls.Add(this.groupBox2); this.panel1.Controls.Add(this.groupBox1); this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; this.panel1.Location = new System.Drawing.Point(0, 49); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1132, 482); + this.panel1.Size = new System.Drawing.Size(1132, 484); this.panel1.TabIndex = 2; // - // groupBox3 - // - this.groupBox3.Controls.Add(this.txtTourNurseSucceed); - this.groupBox3.Controls.Add(this.txtTourNurse); - this.groupBox3.Controls.Add(this.txtInstrumentNurseSucceed); - this.groupBox3.Controls.Add(this.txtInstrumentNurse); - this.groupBox3.Controls.Add(this.txtAnesthesiaDoctorSucceed); - this.groupBox3.Controls.Add(this.txtAnesthesiaDoctor); - this.groupBox3.Controls.Add(this.dtpPlanOperationTime); - this.groupBox3.Controls.Add(this.cboOperationRoom); - this.groupBox3.Controls.Add(this.label36); - this.groupBox3.Controls.Add(this.label37); - this.groupBox3.Controls.Add(this.label38); - this.groupBox3.Controls.Add(this.label39); - this.groupBox3.Controls.Add(this.label40); - this.groupBox3.Controls.Add(this.label41); - this.groupBox3.Controls.Add(this.label42); - this.groupBox3.Controls.Add(this.label43); - this.groupBox3.Dock = System.Windows.Forms.DockStyle.Top; - this.groupBox3.Font = new System.Drawing.Font("宋体", 10.5F); - this.groupBox3.Location = new System.Drawing.Point(0, 481); - this.groupBox3.Name = "groupBox3"; - this.groupBox3.Size = new System.Drawing.Size(1132, 105); - this.groupBox3.TabIndex = 15; - this.groupBox3.TabStop = false; - this.groupBox3.Text = "手术排班信息"; - this.groupBox3.Visible = false; - // - // txtTourNurseSucceed - // - this.txtTourNurseSucceed.Location = new System.Drawing.Point(870, 60); - this.txtTourNurseSucceed.Name = "txtTourNurseSucceed"; - this.txtTourNurseSucceed.Size = new System.Drawing.Size(182, 23); - this.txtTourNurseSucceed.TabIndex = 32; - this.txtTourNurseSucceed.DoubleClick += new System.EventHandler(this.txtTourNurseSucceed_Click); - this.txtTourNurseSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtTourNurseSucceed_KeyPress); - // - // txtTourNurse - // - this.txtTourNurse.Location = new System.Drawing.Point(870, 21); - this.txtTourNurse.Name = "txtTourNurse"; - this.txtTourNurse.Size = new System.Drawing.Size(182, 23); - this.txtTourNurse.TabIndex = 31; - this.txtTourNurse.DoubleClick += new System.EventHandler(this.txtTourNurse_Click); - this.txtTourNurse.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtTourNurse_KeyPress); - // - // txtInstrumentNurseSucceed - // - this.txtInstrumentNurseSucceed.Location = new System.Drawing.Point(613, 60); - this.txtInstrumentNurseSucceed.Name = "txtInstrumentNurseSucceed"; - this.txtInstrumentNurseSucceed.Size = new System.Drawing.Size(155, 23); - this.txtInstrumentNurseSucceed.TabIndex = 30; - this.txtInstrumentNurseSucceed.DoubleClick += new System.EventHandler(this.txtInstrumentNurseSucceed_Click); - this.txtInstrumentNurseSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInstrumentNurseSucceed_KeyPress); - // - // txtInstrumentNurse - // - this.txtInstrumentNurse.Location = new System.Drawing.Point(613, 21); - this.txtInstrumentNurse.Name = "txtInstrumentNurse"; - this.txtInstrumentNurse.Size = new System.Drawing.Size(155, 23); - this.txtInstrumentNurse.TabIndex = 29; - this.txtInstrumentNurse.DoubleClick += new System.EventHandler(this.txtInstrumentNurse_Click); - this.txtInstrumentNurse.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtInstrumentNurse_KeyPress); - // - // txtAnesthesiaDoctorSucceed - // - this.txtAnesthesiaDoctorSucceed.Location = new System.Drawing.Point(344, 60); - this.txtAnesthesiaDoctorSucceed.Name = "txtAnesthesiaDoctorSucceed"; - this.txtAnesthesiaDoctorSucceed.Size = new System.Drawing.Size(162, 23); - this.txtAnesthesiaDoctorSucceed.TabIndex = 28; - this.txtAnesthesiaDoctorSucceed.DoubleClick += new System.EventHandler(this.txtAnesthesiaDoctorSucceed_Click); - this.txtAnesthesiaDoctorSucceed.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAnesthesiaDoctorSucceed_KeyPress); - // - // txtAnesthesiaDoctor - // - this.txtAnesthesiaDoctor.Location = new System.Drawing.Point(344, 21); - this.txtAnesthesiaDoctor.Name = "txtAnesthesiaDoctor"; - this.txtAnesthesiaDoctor.Size = new System.Drawing.Size(162, 23); - this.txtAnesthesiaDoctor.TabIndex = 27; - this.txtAnesthesiaDoctor.DoubleClick += new System.EventHandler(this.txtAnesthesiaDoctor_Click); - this.txtAnesthesiaDoctor.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtAnesthesiaDoctor_KeyPress); - // - // dtpPlanOperationTime - // - this.dtpPlanOperationTime.CustomFormat = "yyyy-MM-dd HH:mm"; - this.dtpPlanOperationTime.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.dtpPlanOperationTime.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpPlanOperationTime.Location = new System.Drawing.Point(86, 60); - this.dtpPlanOperationTime.Name = "dtpPlanOperationTime"; - this.dtpPlanOperationTime.Size = new System.Drawing.Size(153, 23); - this.dtpPlanOperationTime.TabIndex = 26; - // - // cboOperationRoom - // - this.cboOperationRoom.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cboOperationRoom.FormattingEnabled = true; - this.cboOperationRoom.Location = new System.Drawing.Point(87, 22); - this.cboOperationRoom.Name = "cboOperationRoom"; - this.cboOperationRoom.Size = new System.Drawing.Size(152, 22); - this.cboOperationRoom.TabIndex = 25; - // - // label36 - // - this.label36.AutoSize = true; - this.label36.Location = new System.Drawing.Point(773, 69); - this.label36.Name = "label36"; - this.label36.Size = new System.Drawing.Size(91, 14); - this.label36.TabIndex = 24; - this.label36.Text = "巡回护士接台"; - // - // label37 - // - this.label37.AutoSize = true; - this.label37.Location = new System.Drawing.Point(801, 31); - this.label37.Name = "label37"; - this.label37.Size = new System.Drawing.Size(63, 14); - this.label37.TabIndex = 23; - this.label37.Text = "巡回护士"; - // - // label38 - // - this.label38.AutoSize = true; - this.label38.Location = new System.Drawing.Point(516, 68); - this.label38.Name = "label38"; - this.label38.Size = new System.Drawing.Size(91, 14); - this.label38.TabIndex = 22; - this.label38.Text = "器械护士接台"; - // - // label39 - // - this.label39.AutoSize = true; - this.label39.Location = new System.Drawing.Point(544, 30); - this.label39.Name = "label39"; - this.label39.Size = new System.Drawing.Size(63, 14); - this.label39.TabIndex = 21; - this.label39.Text = "器械护士"; - // - // label40 - // - this.label40.AutoSize = true; - this.label40.Location = new System.Drawing.Point(255, 68); - this.label40.Name = "label40"; - this.label40.Size = new System.Drawing.Size(91, 14); - this.label40.TabIndex = 20; - this.label40.Text = "麻醉医生接台"; - // - // label41 - // - this.label41.AutoSize = true; - this.label41.Location = new System.Drawing.Point(283, 30); - this.label41.Name = "label41"; - this.label41.Size = new System.Drawing.Size(63, 14); - this.label41.TabIndex = 19; - this.label41.Text = "麻醉医生"; - // - // label42 - // - this.label42.AutoSize = true; - this.label42.Location = new System.Drawing.Point(9, 68); - this.label42.Name = "label42"; - this.label42.Size = new System.Drawing.Size(63, 14); - this.label42.TabIndex = 18; - this.label42.Text = "手术时间"; - // - // label43 - // - this.label43.AutoSize = true; - this.label43.Location = new System.Drawing.Point(9, 30); - this.label43.Name = "label43"; - this.label43.Size = new System.Drawing.Size(49, 14); - this.label43.TabIndex = 17; - this.label43.Text = "手术室"; - // // groupBox2 // - this.groupBox2.Controls.Add(this.txtRemark); this.groupBox2.Controls.Add(this.label23); - this.groupBox2.Controls.Add(this.label29); - this.groupBox2.Controls.Add(this.label22); this.groupBox2.Controls.Add(this.label28); this.groupBox2.Controls.Add(this.txtOperationRemark); this.groupBox2.Controls.Add(this.txtContagion); @@ -442,7 +243,6 @@ this.groupBox2.Controls.Add(this.label1); this.groupBox2.Controls.Add(this.label26); this.groupBox2.Controls.Add(this.txtOperationPosition); - this.groupBox2.Controls.Add(this.txtDiseaseRemark); this.groupBox2.Controls.Add(this.panel2); this.groupBox2.Controls.Add(this.panel3); this.groupBox2.Controls.Add(this.txtRight5); @@ -491,14 +291,6 @@ this.groupBox2.TabStop = false; this.groupBox2.Text = "手术基本信息"; // - // txtRemark - // - this.txtRemark.Location = new System.Drawing.Point(640, 364); - this.txtRemark.Name = "txtRemark"; - this.txtRemark.Size = new System.Drawing.Size(375, 23); - this.txtRemark.TabIndex = 29; - this.txtRemark.Visible = false; - // // label23 // this.label23.AutoSize = true; @@ -509,27 +301,6 @@ this.label23.TabIndex = 11; this.label23.Text = "手术备注"; // - // label29 - // - this.label29.AutoSize = true; - this.label29.Location = new System.Drawing.Point(564, 369); - this.label29.Name = "label29"; - this.label29.Size = new System.Drawing.Size(63, 14); - this.label29.TabIndex = 28; - this.label29.Text = "申请备注"; - this.label29.Visible = false; - // - // label22 - // - this.label22.AutoSize = true; - this.label22.ForeColor = System.Drawing.Color.Black; - this.label22.Location = new System.Drawing.Point(567, 385); - this.label22.Name = "label22"; - this.label22.Size = new System.Drawing.Size(63, 14); - this.label22.TabIndex = 11; - this.label22.Text = "诊断备注"; - this.label22.Visible = false; - // // label28 // this.label28.AutoSize = true; @@ -652,14 +423,6 @@ this.txtOperationPosition.DoubleClick += new System.EventHandler(this.txtOperationPosition_Click); this.txtOperationPosition.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtOperationPosition_KeyPress); // - // txtDiseaseRemark - // - this.txtDiseaseRemark.Location = new System.Drawing.Point(643, 380); - this.txtDiseaseRemark.Name = "txtDiseaseRemark"; - this.txtDiseaseRemark.Size = new System.Drawing.Size(375, 23); - this.txtDiseaseRemark.TabIndex = 10; - this.txtDiseaseRemark.Visible = false; - // // panel2 // this.panel2.Controls.Add(this.rboZQ); @@ -1456,7 +1219,7 @@ // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1132, 531); + this.ClientSize = new System.Drawing.Size(1132, 533); this.Controls.Add(this.panel1); this.Controls.Add(this.toolStrip1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); @@ -1469,8 +1232,6 @@ this.toolStrip1.ResumeLayout(false); this.toolStrip1.PerformLayout(); this.panel1.ResumeLayout(false); - this.groupBox3.ResumeLayout(false); - this.groupBox3.PerformLayout(); this.groupBox2.ResumeLayout(false); this.groupBox2.PerformLayout(); this.panel2.ResumeLayout(false); @@ -1501,8 +1262,6 @@ private System.Windows.Forms.TextBox txtAssistant1; private System.Windows.Forms.Label label30; private System.Windows.Forms.TextBox txtOperationDoctor; - private System.Windows.Forms.TextBox txtRemark; - private System.Windows.Forms.Label label29; private System.Windows.Forms.Label label28; private System.Windows.Forms.TextBox txtContagion; private System.Windows.Forms.Label label27; @@ -1562,28 +1321,9 @@ private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Label label35; private System.Windows.Forms.Label label1; - private System.Windows.Forms.GroupBox groupBox3; - private System.Windows.Forms.TextBox txtTourNurseSucceed; - private System.Windows.Forms.TextBox txtTourNurse; - private System.Windows.Forms.TextBox txtInstrumentNurseSucceed; - private System.Windows.Forms.TextBox txtInstrumentNurse; - private System.Windows.Forms.TextBox txtAnesthesiaDoctorSucceed; - private System.Windows.Forms.TextBox txtAnesthesiaDoctor; - private System.Windows.Forms.DateTimePicker dtpPlanOperationTime; - private System.Windows.Forms.ComboBox cboOperationRoom; - private System.Windows.Forms.Label label36; - private System.Windows.Forms.Label label37; - private System.Windows.Forms.Label label38; - private System.Windows.Forms.Label label39; - private System.Windows.Forms.Label label40; - private System.Windows.Forms.Label label41; - private System.Windows.Forms.Label label42; - private System.Windows.Forms.Label label43; private System.Windows.Forms.TextBox txtOperation; private System.Windows.Forms.Label label23; - private System.Windows.Forms.Label label22; private System.Windows.Forms.TextBox txtOperationRemark; - private System.Windows.Forms.TextBox txtDiseaseRemark; private System.Windows.Forms.TextBox txtRight; private System.Windows.Forms.TextBox txtLeft; private System.Windows.Forms.Label label45; diff --git a/AIMS/OperationFront/frmOperationApplyDetail.cs b/AIMS/OperationFront/frmOperationApplyDetail.cs index 5d80539..61744d9 100644 --- a/AIMS/OperationFront/frmOperationApplyDetail.cs +++ b/AIMS/OperationFront/frmOperationApplyDetail.cs @@ -136,8 +136,7 @@ namespace AIMS.OperationFront.UI } if (txtDisease.Text != "") txtDisease.Text = txtDisease.Text.Substring(0, txtDisease.Text.LastIndexOf(" ,")); - - txtDiseaseRemark.Text = EditOperationApplyObj.DiagnoseRemark; + //手术 SelectOperationData = BApplyOperationInfo.GetApplyOperationIdList(EditApplyId); @@ -229,8 +228,7 @@ namespace AIMS.OperationFront.UI if (txtAnaesthesiaMethod.Text != "") txtAnaesthesiaMethod.Text = txtAnaesthesiaMethod.Text.Substring(0, txtAnaesthesiaMethod.Text.LastIndexOf(" ,")); //术前感染筛查 - txtContagion.Text = EditOperationApplyObj.Contagion; - txtRemark.Text = EditOperationApplyObj.Remark; + txtContagion.Text = EditOperationApplyObj.Contagion; //术者 SelectOperationDoctor = BApplyPersonDuty.GetPersonIdList(EditApplyId, 1); foreach (int RowId in SelectOperationDoctor) @@ -837,14 +835,14 @@ namespace AIMS.OperationFront.UI OperationApplyObj.IsReturnOperation = chbIsReturnOperation.Checked ? 1 : 0; OperationApplyObj.IsPlanReturnOperation = rdbIsPlanReturnOperation.Checked ? 1 : 0; OperationApplyObj.IsNotPlanReturnOperation = rdbIsNotPlanReturnOperation.Checked ? 1 : 0; - OperationApplyObj.DiagnoseRemark = txtDiseaseRemark.Text.Trim(); + OperationApplyObj.DiagnoseRemark = ""; OperationApplyObj.OperationRemark = txtOperationRemark.Text.Trim(); if (cboOperationLevel.SelectedValue != null && cboOperationLevel.SelectedValue.ToString() != "") OperationApplyObj.OperationLevelId = int.Parse(cboOperationLevel.SelectedValue.ToString()); OperationApplyObj.Contagion = txtContagion.Text.Trim(); OperationApplyObj.Intern = txtIntern.Text.Trim(); //OperationApplyObj.Other = txtOther.Text.Trim(); - OperationApplyObj.Remark = txtRemark.Text.Trim(); + OperationApplyObj.Remark = ""; OperationApplyObj.OperatorNo = AIMSExtension.PublicMethod.OperatorNo; OperationApplyObj.OperatorName = AIMSExtension.PublicMethod.OperatorName; OperationApplyObj.OperateDate = AIMSExtension.PublicMethod.SystemDate(); @@ -1086,21 +1084,7 @@ namespace AIMS.OperationFront.UI } } - - private bool ValidInput2() - { - - bool result = false; - if (this.cboOperationRoom.Text.Trim().Length < 1) - { - MessageBox.Show("手术室不能为空!"); - } - else - { - result = true; - } - return result; - } + private bool ValidInput() { bool result = false; @@ -1221,188 +1205,8 @@ namespace AIMS.OperationFront.UI private void cboApplyDepId_SelectedIndexChanged(object sender, EventArgs e) { //cboDepartment.Text = cboApplyDepId.Text; - } - - //麻醉医生 - private void txtAnesthesiaDoctor_Click(object sender, EventArgs e) - { - frmAnesthesiaDoctor = new PublicUI.UI.frmSelectPerson(); - frmAnesthesiaDoctor.PersonType = "麻醉医生"; - frmAnesthesiaDoctor.SelectDepartmentName = cboApplyDepId.Text; - frmAnesthesiaDoctor.SelectPersonData = SelectAnesthesiaDoctorData; - frmAnesthesiaDoctor.FormClosed += new FormClosedEventHandler(AnesthesiaDoctor_FormClosed); - frmAnesthesiaDoctor.ShowDialog(); - } - - void AnesthesiaDoctor_FormClosed(object sender, FormClosedEventArgs e) - { - txtAnesthesiaDoctor.Text = ""; - if (frmAnesthesiaDoctor.SelectPersonData.Count > 0) - { - SelectAnesthesiaDoctorData = frmAnesthesiaDoctor.SelectPersonData; - foreach (int RowId in frmAnesthesiaDoctor.SelectPersonData) - { - txtAnesthesiaDoctor.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtAnesthesiaDoctor.Text = txtAnesthesiaDoctor.Text.Substring(0, txtAnesthesiaDoctor.Text.LastIndexOf(" ,")); - } - } - //麻醉接台 - private void txtAnesthesiaDoctorSucceed_Click(object sender, EventArgs e) - { - frmAnesthesiaDoctorSucceed = new PublicUI.UI.frmSelectPerson(); - frmAnesthesiaDoctorSucceed.PersonType = "麻醉医生"; - frmAnesthesiaDoctorSucceed.SelectDepartmentName = cboApplyDepId.Text; - frmAnesthesiaDoctorSucceed.SelectPersonData = SelectAnesthesiaDoctorSucceedData; - frmAnesthesiaDoctorSucceed.FormClosed += new FormClosedEventHandler(frmAnesthesiaDoctorSucceed_FormClosed); - frmAnesthesiaDoctorSucceed.ShowDialog(); - - } - - void frmAnesthesiaDoctorSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtAnesthesiaDoctorSucceed.Text = ""; - if (frmAnesthesiaDoctorSucceed.SelectPersonData.Count > 0) - { - SelectAnesthesiaDoctorSucceedData = frmAnesthesiaDoctorSucceed.SelectPersonData; - foreach (int RowId in frmAnesthesiaDoctorSucceed.SelectPersonData) - { - txtAnesthesiaDoctorSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtAnesthesiaDoctorSucceed.Text = txtAnesthesiaDoctorSucceed.Text.Substring(0, txtAnesthesiaDoctorSucceed.Text.LastIndexOf(" ,")); - } - } - //器械护士 - private void txtInstrumentNurse_Click(object sender, EventArgs e) - { - - frmInstrumentNurse = new PublicUI.UI.frmSelectPerson(); - frmInstrumentNurse.PersonType = "麻醉护士"; - frmInstrumentNurse.SelectDepartmentName = cboApplyDepId.Text; - frmInstrumentNurse.SelectPersonData = SelectInstrumentNurseData; - frmInstrumentNurse.FormClosed += new FormClosedEventHandler(frmInstrumentNurse_FormClosed); - frmInstrumentNurse.ShowDialog(); - } - - void frmInstrumentNurse_FormClosed(object sender, FormClosedEventArgs e) - { - - txtInstrumentNurse.Text = ""; - if (frmInstrumentNurse.SelectPersonData.Count > 0) - { - SelectInstrumentNurseData = frmInstrumentNurse.SelectPersonData; - foreach (int RowId in frmInstrumentNurse.SelectPersonData) - { - txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(" ,")); - } - } - //器械护士接台 - private void txtInstrumentNurseSucceed_Click(object sender, EventArgs e) - { - - frmInstrumentNurseSucceed = new PublicUI.UI.frmSelectPerson(); - frmInstrumentNurseSucceed.PersonType = "麻醉护士"; - frmInstrumentNurseSucceed.SelectDepartmentName = cboApplyDepId.Text; - frmInstrumentNurseSucceed.SelectPersonData = SelectInstrumentNurseSucceedData; - frmInstrumentNurseSucceed.FormClosed += new FormClosedEventHandler(frmInstrumentNurseSucceed_FormClosed); - frmInstrumentNurseSucceed.ShowDialog(); - } - - void frmInstrumentNurseSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtInstrumentNurseSucceed.Text = ""; - if (frmInstrumentNurseSucceed.SelectPersonData.Count > 0) - { - SelectInstrumentNurseSucceedData = frmInstrumentNurseSucceed.SelectPersonData; - foreach (int RowId in frmInstrumentNurseSucceed.SelectPersonData) - { - txtInstrumentNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtInstrumentNurseSucceed.Text = txtInstrumentNurseSucceed.Text.Substring(0, txtInstrumentNurseSucceed.Text.LastIndexOf(" ,")); - } - } - - //巡回护士 - private void txtTourNurse_Click(object sender, EventArgs e) - { - frmTourNurse = new PublicUI.UI.frmSelectPerson(); - frmTourNurse.PersonType = "麻醉护士"; - frmTourNurse.SelectDepartmentName = cboApplyDepId.Text; - frmTourNurse.SelectPersonData = SelectTourNurseData; - frmTourNurse.FormClosed += new FormClosedEventHandler(frmTourNurse_FormClosed); - frmTourNurse.ShowDialog(); - } - - void frmTourNurse_FormClosed(object sender, FormClosedEventArgs e) - { - txtTourNurse.Text = ""; - if (frmTourNurse.SelectPersonData.Count > 0) - { - SelectTourNurseData = frmTourNurse.SelectPersonData; - foreach (int RowId in frmTourNurse.SelectPersonData) - { - txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(" ,")); - } - } - //巡回护士接台 - private void txtTourNurseSucceed_Click(object sender, EventArgs e) - { - - frmTourNurseSucceed = new PublicUI.UI.frmSelectPerson(); - frmTourNurseSucceed.PersonType = "麻醉护士"; - frmTourNurseSucceed.SelectDepartmentName = cboApplyDepId.Text; - frmTourNurseSucceed.SelectPersonData = SelectTourNurseSucceedData; - frmTourNurseSucceed.FormClosed += new FormClosedEventHandler(frmTourNurseSucceed_FormClosed); - frmTourNurseSucceed.ShowDialog(); - } - - void frmTourNurseSucceed_FormClosed(object sender, FormClosedEventArgs e) - { - txtTourNurseSucceed.Text = ""; - if (frmTourNurseSucceed.SelectPersonData.Count > 0) - { - SelectTourNurseSucceedData = frmTourNurseSucceed.SelectPersonData; - foreach (int RowId in frmTourNurseSucceed.SelectPersonData) - { - txtTourNurseSucceed.Text += BPerson.SelectSingle(RowId).Name + " ,"; - } - txtTourNurseSucceed.Text = txtTourNurseSucceed.Text.Substring(0, txtTourNurseSucceed.Text.LastIndexOf(" ,")); - } - } - - private void txtInstrumentNurse_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtAnesthesiaDoctor_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtAnesthesiaDoctorSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtInstrumentNurseSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtTourNurse_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } - - private void txtTourNurseSucceed_KeyPress(object sender, KeyPressEventArgs e) - { - e.Handled = true; - } + } + private void cboDepartment_SelectedIndexChanged(object sender, EventArgs e) { diff --git a/AIMSEntity/BLL/Extension/BOperationApply.cs b/AIMSEntity/BLL/Extension/BOperationApply.cs index 3872a3a..a7330f7 100644 --- a/AIMSEntity/BLL/Extension/BOperationApply.cs +++ b/AIMSEntity/BLL/Extension/BOperationApply.cs @@ -55,6 +55,10 @@ namespace AIMSBLL { return DOperationApply.GetOperationFrontDataTableByPlanOperationTime(BegInData, EndData); } + public static DataTable GetOperationDoingDataTable(string BegInData, string EndData) + { + return DOperationApply.GetOperationDoingDataTable (BegInData, EndData); + } public static void UpdateVerifyTime(int ApplyId, string VerifyTime, string VerifyOperatorNo) { DOperationApply.UpdateVerifyTime(ApplyId, VerifyTime, VerifyOperatorNo); diff --git a/AIMSEntity/DAL/AutoGenerate/DNoticeTemplate.cs b/AIMSEntity/DAL/AutoGenerate/DNoticeTemplate.cs index c765db5..974cceb 100644 --- a/AIMSEntity/DAL/AutoGenerate/DNoticeTemplate.cs +++ b/AIMSEntity/DAL/AutoGenerate/DNoticeTemplate.cs @@ -606,7 +606,7 @@ namespace AIMSDAL /// public static DataTable GetNoticeTemplate() { - DataTable dt = DBHelper.GetDataTable("select * from NoticeTemplate"); + DataTable dt = DBHelper.GetDataTable("select *,'删除' manage from NoticeTemplate"); return dt; } } diff --git a/AIMSEntity/DAL/Extension/DOperationApply.cs b/AIMSEntity/DAL/Extension/DOperationApply.cs index 982b0c2..f95d055 100644 --- a/AIMSEntity/DAL/Extension/DOperationApply.cs +++ b/AIMSEntity/DAL/Extension/DOperationApply.cs @@ -18,7 +18,7 @@ namespace AIMSDAL { StringBuilder strSql = new StringBuilder(); strSql.Append("insert into [OperationApply]("); - strSql.Append("Oris_PatientId,ApplyDepId,OperationType,OrderOperationTime,OperationTimeLeight,IsReturnOperation,IsPlanReturnOperation,IsNotPlanReturnOperation,DiagnoseRemark,OperationRemark,OperationLevelId,Contagion,Intern,Other,ApplyTime,ApplyOperatorNo,State,Remark,OperatorNo,OperatorName,OperateDate,OperationSite"); + strSql.Append("Oris_PatientId,ApplyDepId,OperationType,OrderOperationTime,OperationTimeLeight,IsReturnOperation,IsPlanReturnOperation,IsNotPlanReturnOperation,DiagnoseRemark,OperationRemark,OperationLevelId,Contagion,Intern,Other,ApplyTime,ApplyOperatorNo,State,OperatorNo,OperatorName,OperateDate,OperationSite"); strSql.Append(")"); strSql.Append(" values ("); strSql.Append("" + OperationApplyObj.OrisPatientId + ","); @@ -39,8 +39,7 @@ namespace AIMSDAL strSql.Append("'" + OperationApplyObj.ApplyOperatorNo + "',"); //strSql.Append("'"+OperationApplyObj.PlanOperationTime+"',"); //strSql.Append(""+OperationApplyObj.OperationRoomId+","); - strSql.Append("" + OperationApplyObj.State + ","); - strSql.Append("'" + OperationApplyObj.Remark + "',"); + strSql.Append("" + OperationApplyObj.State + ","); strSql.Append("'" + OperationApplyObj.OperatorNo + "',"); strSql.Append("'" + OperationApplyObj.OperatorName + "',"); strSql.Append("'" + OperationApplyObj.OperateDate + "',"); @@ -297,6 +296,12 @@ namespace AIMSDAL "FROM V_OperationFront of1 WHERE of1.PlanOperationTime>='" + BegInData + "' and of1.PlanOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } + public static DataTable GetOperationDoingDataTable(string BegInData, string EndData) + { + string strSql = " SELECT OP.Id PatientId, OA.Id ApplyId, OD.Id OperationRecordId, oa.State StateId, CASE oa.State WHEN 1 THEN '已申请' WHEN 2 THEN '已审核' WHEN 3 THEN '预排程' WHEN 4 THEN'已排程' WHEN 5 THEN '已排程' WHEN 6 THEN '手术中' WHEN 7 THEN '麻醉恢复中' WHEN 8 THEN '手术结束' WHEN 9 THEN '麻醉恢复结束' WHEN 10 THEN '退回' WHEN 11 THEN '作废' END State, OP.Name PatientName, OP.Sex, OP.Age , Dept.Name ApplyDepName, OP.PatientType, OP.MdrecNo, OA.OperationType, OA.ApplyOperatorNo, OA.ApplyTime, adi.ApplyDiagnoseInfoName, aoi.ApplyOperationInfoNames ApplyOperationInfoName, InRoomTime, OutRoomTime, CONVERT(DECIMAL(18,2),RoomTimeSpan) /60 RoomHourTimeSpan, AnesthesiaBeginTime, AnesthesiaEndTime, CONVERT(DECIMAL(18,2),AnaesthesiaTimeSpan) /60 AnaesthesiaHourTimeSpan, OperationBeginTime, OperationEndTime, CONVERT(DECIMAL(18,2),OperationTimeSpan) /60 OperationHourTimeSpan, dbo.funNameById(od.AnaesthesiaMethodName) as AnaesthesiaMethodName, foi.OperationInfoName OperationInfoName, foct.OperationCutTypeName, fop.OperationPositionName, fobp.OperationBodyPositionName, of1.OperationLevel, asa.Name ASALevelName, ISNULL(dbo.GetPersonDuty(OD.PatientId,1),'') AS OperationDoctor, ISNULL(dbo.GetPersonDuty(OD.PatientId,2),'') + ' ' + ISNULL(dbo.GetPersonDuty(OD.PatientId,3),'') + ' ' + ISNULL(dbo.GetPersonDuty(OD.PatientId,4),'') AS Assistant, ISNULL(dbo.GetPersonDuty(OD.PatientId,5),'') AS AnesthesiaDoctor, ISNULL(dbo.GetPersonDuty(OD.PatientId,6),'') AS InstrumentNurse , ISNULL(dbo.GetPersonDuty(OD.PatientId,7),'') AS TourNurse , ROOM.Name OperationRoomName, PlanOrder, CASE oa.IsPlanReturnOperation WHEN 1 THEN '是' when 0 then '否' else '' end as IsNotPlanReturnOperation, od.AnaesthesiaMethodName AnaesthesiaMethodId, OA.Remark, OA.OperatorName ,OA.OperationRoomId FROM dbo.Oris_Patient OP LEFT JOIN OperationApply OA on OA.Oris_PatientId=OP.Id LEFT JOIN OperationRecord OD on OD.PatientId=OP.Id LEFT JOIN OperationRoom ROOM on ROOM.Id=OA.OperationRoomId LEFT JOIN Department Dept on Dept.Id=OA.ApplyDepId LEFT JOIN V_ApplyDiagnoseInfo adi ON adi.OperationApplyId = oa.Id LEFT JOIN V_ApplyOperationInfo aoi ON aoi.OperationApplyId =oa.Id LEFT JOIN V_FactOperationInfo foi ON foi.PatientId =od.PatientId LEFT JOIN V_FactOperationCutType foct ON foct.PatientId =od.PatientId LEFT JOIN V_FactOperationBodyPosition fobp ON fobp.PatientId =od.PatientId LEFT JOIN V_FactOperationPosition fop ON fop.PatientId =od.PatientId LEFT JOIN BasicDictionary asa ON asa.Id = OD.ASALevel LEFT JOIN OperationRecordInfo of1 ON of1.OperationRecordId = OD.Id WHERE oa.OrderOperationTime>='" + BegInData + "' and oa.OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc"; + return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); + } + public static DataTable SelectPlanedOpeByRoom(string whereSql) { try diff --git a/AIMSEntity/Extensions/SelectPatient.cs b/AIMSEntity/Extensions/SelectPatient.cs index 2b10f5a..0289c73 100644 --- a/AIMSEntity/Extensions/SelectPatient.cs +++ b/AIMSEntity/Extensions/SelectPatient.cs @@ -18,6 +18,7 @@ namespace AIMSBLL "of1.AnesthesiaDoctor,of1.OperationRoomId , of1.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of1.PlanOperationTime,of1.InstrumentNurse,of1.TourNurse,of1.ApplyDiagnoseInfoName,of1.OperationRoom ,of1.Contagion,of1.OrderOperationTime " + "FROM V_OperationFront of1 WHERE of1.State in('已审核','预排程','已排程','已访视') and of1.OrderOperationTime>='" + BeginDate + "' AND of1.OrderOperationTime<'" + BeginDate.AddDays(1) + "'"; if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'"; + strSql += " order by OperationRoomId,PlanOrder"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } @@ -26,7 +27,7 @@ namespace AIMSBLL string strSql = "SELECT of1.ApplyId Id, of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, " + "of1.ApplyOperationInfoName, of1.OperationDoctor, " + "of1.AnesthesiaDoctor,of1.OperationRoomId , of1.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of1.PlanOperationTime,of1.InstrumentNurse,of1.TourNurse,of1.ApplyDiagnoseInfoName,of1.OperationRoom ,of1.Contagion,of1.OrderOperationTime " + - "FROM V_OperationFront of1 WHERE of1.State in('已审核','预排程','已排程','已访视') and ( of1.MdrecNo like '%" + PatientName + "%' or of1.PatientName like '%" + PatientName + "%')"; + "FROM V_OperationFront of1 WHERE of1.State in('已审核','预排程','已排程','已访视') and ( of1.MdrecNo like '%" + PatientName + "%' or of1.PatientName like '%" + PatientName + "%')"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } @@ -34,7 +35,7 @@ namespace AIMSBLL { string strSql = "SELECT of2.Id,of1.PatientId, of1.ApplyId, of1.ApplyDepName, of1.OperationType, of1.MdrecNo, of1.PatientName, of2.OperationInfoNames ApplyOperationInfoName, of2.OperationDoctor, of2.AnesthesiaDoctor,of2.OperationRoomId,of2.State ,of1.Sex,[dbo].[funGetAge](of1.BirthDay,getdate()) age,of2.InRoomTime PlanOperationTime,of2.Nurse InstrumentNurse,of2.Nurse2 TourNurse,of2.DiagnoseInfoName ApplyDiagnoseInfoName ,of2.OperationRoom ,of1.Contagion,of1.OrderOperationTime,of2.AnaesthesiaMethodName,of2.InRoomTime FROM V_OperationDoing of2 left join[dbo].[V_OperationFront] of1 on of1.PatientId = of2.PatientId WHERE of2.State in( '手术中','手术结束','停止手术') and of2.InRoomTime >= '" + BeginDate + "' AND of2.InRoomTime<'" + BeginDate.AddDays(1) + "' and RecoverId=1"; if (Room != "" && Room != "-1") strSql += " and of1.OperationRoomId='" + Room + "'"; - strSql += " order by [StateId] asc"; + strSql += " order by [StateId],of2.InRoomTime "; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } public static DataTable GetRelieveLockingPatientDataTable( string PatientName) diff --git a/AIMSExtension/NowPhysioData.cs b/AIMSExtension/NowPhysioData.cs index f7f7cfa..d16bfd8 100644 --- a/AIMSExtension/NowPhysioData.cs +++ b/AIMSExtension/NowPhysioData.cs @@ -13,6 +13,7 @@ namespace AIMSExtension public string HR { get; set; } public string Resp { get; set; } public string SPO2 { get; set; } + public string Etco2 { get; set; } public string PR { get; set; } public string Sys_H { get; set; } public string Dia_H { get; set; } diff --git a/BeginScreen.7z b/BeginScreen.7z deleted file mode 100644 index 7d078cb..0000000 Binary files a/BeginScreen.7z and /dev/null differ diff --git a/BeginScreen/PublicMethod.cs b/BeginScreen/PublicMethod.cs index 565b934..9fb7962 100644 --- a/BeginScreen/PublicMethod.cs +++ b/BeginScreen/PublicMethod.cs @@ -25,13 +25,13 @@ namespace BeginScreen /// public static DataTable GetPlanNoticeNew(DateTime dtBegin, DateTime dtEnd, string OpeTime, string DeptId) { - string strSql = "select * from (select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'等待手术' [State],SQState,SZState,ApplyOperationInfoName OperationInfo,OperationBeginTime,ApplyOperationDoctor OperationDoctor,applyAnesthesiaDoctor AnesthesiaDoctor,TourNurse,InstrumentNurse from [dbo].[V_OperationRecordALL] where sqstate <6 and ((OrderOperationTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术进行中'[State],SQState,SZState,OperationInfoName OperationInfo,OperationBeginTime,OperationDoctor OperationDoctor,AnesthesiaDoctor,TourNurse,InstrumentNurse from [V_OperationRecordALL] where SZstate in(1) and ((InRoomTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and InRoomTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) and OutRoomTime is null union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术结束'[State],SQState,SZState,OperationInfoName OperationInfo,OperationBeginTime,OperationDoctor OperationDoctor,AnesthesiaDoctor,TourNurse,InstrumentNurse from [V_OperationRecordALL] where datediff(minute,CONVERT(DATETIME,outRoomTime,120),GETDATE())<" + OpeTime + ") as a order by a.ApplyDepName collate Chinese_PRC_CS_AS_KS_WS,a.SQState desc,a.SZState desc"; + string strSql = "select * from (select ApplyId ,OperationRoom,OperationRoomId,planorder,ApplyDepName,SickBed,PatientName,'等待手术' [State],SQState,SZState,ApplyOperationInfoName OperationInfo,OperationBeginTime,ApplyOperationDoctor OperationDoctor,applyAnesthesiaDoctor AnesthesiaDoctor,TourNurse,InstrumentNurse from [dbo].[V_OperationRecordALL] where sqstate <6 and ((OrderOperationTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) union select ApplyId ,OperationRoom,OperationRoomId,planorder,ApplyDepName,SickBed,PatientName,'手术中'[State],SQState,SZState,OperationInfoName OperationInfo,OperationBeginTime,OperationDoctorx OperationDoctor,AnesthesiaDoctor,TourNurse,InstrumentNurse from [V_OperationRecordALL] where SZstate in(1) and ((InRoomTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and InRoomTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) and OutRoomTime is null union select ApplyId ,OperationRoom,OperationRoomId,planorder,ApplyDepName,SickBed,PatientName,'手术结束'[State],SQState,SZState,OperationInfoName OperationInfo,OperationBeginTime,OperationDoctorx OperationDoctor,AnesthesiaDoctor,TourNurse,InstrumentNurse from [V_OperationRecordALL] where datediff(minute,CONVERT(DATETIME,outRoomTime,120),GETDATE())<" + OpeTime + ") as a order by OperationRoomId,planorder "; return DBHelper.GetDataTable(strSql); } public static DataTable GetPlanNoticeNew1(DateTime dtBegin, DateTime dtEnd, string OpeTime, string DeptId) { - string strSql = "select * from (select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'等待手术' [State],SQState,SZState from [dbo].[V_OperationRecordALL] where sqstate <6 and ((OrderOperationTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术进行中'[State],SQState,SZState from [V_OperationRecordALL] where SZstate in(1) and ((InRoomTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and InRoomTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) and OutRoomTime is null union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术结束'[State],SQState,SZState from [V_OperationRecordALL] where datediff(minute,CONVERT(DATETIME,outRoomTime,120),GETDATE())<" + OpeTime + ") as a order by a.ApplyDepName collate Chinese_PRC_CS_AS_KS_WS,a.SQState desc,a.SZState desc"; + string strSql = "select * from (select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'等待手术' [State],SQState,SZState,InRoomTime,OutRoomTime,OperationBeginTime,OperationEndTime,Pulse from [dbo].[V_OperationRecordALL] where sqstate <6 and ((OrderOperationTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and OrderOperationTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术中'[State],SQState,SZState,InRoomTime,OutRoomTime,OperationBeginTime,OperationEndTime,Pulse from [V_OperationRecordALL] where SZstate in(1) and ((InRoomTime >='" + dtBegin.ToString("yyyy-MM-dd 00:00:00") + "' and InRoomTime<='" + dtEnd.ToString("yyyy-MM-dd 23:59:59") + "')) and OutRoomTime is null union select ApplyId ,OperationRoom,ApplyDepName,SickBed,PatientName,'手术结束'[State],SQState,SZState,InRoomTime,OutRoomTime,OperationBeginTime,OperationEndTime,Pulse from [V_OperationRecordALL] where datediff(minute,CONVERT(DATETIME,outRoomTime,120),GETDATE())<" + OpeTime + ") as a order by a.ApplyDepName collate Chinese_PRC_CS_AS_KS_WS,a.SQState desc,a.SZState desc"; return DBHelper.GetDataTable(strSql); } @@ -48,67 +48,20 @@ namespace BeginScreen return null; } } - - /// - /// 查询患者信息 - /// - /// - /// - /// - public static DataTable GetCurrentRoomPatientsInfo(int OperationRoom, string bdate) - { - string strSql = string.Format(@" select * from (select [SQOperationDoctorId],[SZOperationDoctorId], - a.[SQAssistant1Id],[SZAssistant1Id], - [SQAssistant2Id],[SZAssistant2Id], - [SQAssistant3Id],[SZAssistant3Id], - [SQAnesthesiaDoctorId],[SZAnesthesiaDoctorId], -[SQInstrumentNurseId],[SZInstrumentNurseId], -[SQTourNurseId],[SZTourNurseId] - from [V_OperationRecordS] a where a.SZOperationRoomId ={0} and State = 0 and a.InRoomTime > '{1}') a", OperationRoom, bdate); - return DBHelper.GetDataTable(strSql); - } - /// - /// 根据时间查询排程公告 - /// - /// - /// - /// - public static DataTable GetOperationRoomPlan(DateTime dtBegin, DateTime dtEnd, string OpeTime, string RoomName) + public static DataRow GetMessigeData() { - string strSql = "select PatientName,a.Bed,sex,Age,ApplyDepartmentName,DepartmentName,SQOperation,SZOperation,a.SQDiagnose,a.SZDiagnose from (select * from V_OperationInformation where SZstate in(0) and ((InRoomTime >='" + dtBegin.ToString() + "' and InRoomTime<='" + dtEnd.ToString() + "'))) as a where a.SqOperationRoom = '" + RoomName + "' order by SqOperationRoomId asc,InRoomTime desc"; - return DBHelper.GetDataTable(strSql); - } - - /// - /// 查询患者信息 - /// - /// - /// - /// - public static DataTable GetCurrentRoomPatientsInfo(string sql) - { - // string strSql = string.Format(@" select - // '{0}' as 角色,w.Name,w.ElectronicSignature,bd.Name,d.Name,r.Name from Workers w - // left join BasicDictionary bd on w.JobTitleId = bd.Id - // left join Roles r on r.Id = w.RoleId - // left join Departments d on d.Id = w.DepartmentId where w.Id = {1}", RoleName, ID); - return DBHelper.GetDataTable(sql); - } - - - /// - /// 查询手术室信息 - /// - /// - /// - /// - public static DataTable GetRoomInfo(string Name) - { - string swl = "select Id,Name from OperationRoom where Name = '" + Name + "'"; - return DBHelper.GetDataTable(swl); - } - + string strSql = "select top 1 * from NoticeContent where datediff(second,CONVERT(DATETIME,OperatorTime,120),GETDATE()) 0) + { + return dt.Rows[0]; + } + else + { + return null; + } + } /// /// 查询科室 /// diff --git a/BeginScreen/Room.aspx b/BeginScreen/Room.aspx index 3dc0e2f..bb78715 100644 --- a/BeginScreen/Room.aspx +++ b/BeginScreen/Room.aspx @@ -5,28 +5,27 @@ - - + - + - +
- + - - - - + + - - - - - - - - @@ -105,13 +103,13 @@
-
+
秦皇岛市工人医院
- 每日手术情况一览表 -
+ 今日手术 +
-
+
+
术间 + 科室 + 姓名 + 手术名称 + 手术医生 + 麻醉医生 + 护士 + 时间 + 状态
- +
-
- + 1234543212
@@ -119,22 +117,17 @@
-
-
- - + diff --git a/BeginScreen/RoomHandler.ashx.cs b/BeginScreen/RoomHandler.ashx.cs index 3dda08d..33bd9b8 100644 --- a/BeginScreen/RoomHandler.ashx.cs +++ b/BeginScreen/RoomHandler.ashx.cs @@ -18,17 +18,15 @@ namespace BeginScreen private int dSum; //数据表的总记录 private int startRecond; //起始记录 private int endRecond; //结束记录 - private static int PageSum = 9; //每页显示的记录数 + private static int PageSum = 8; //每页显示的记录数 private int countPage; //总页数 - private int currentPage; //当前页 - + private int currentPage; //当前页 private DataTable dts; - - + #region 配置文件的属性 public static XElement xmlOpe = null; - private string fontSize = "27px"; - private string fontFamily = "黑体"; + private string fontSize = "18px"; + private string fontFamily = "微软雅黑"; private string rowOddBgColor = "#000000"; private string rowEvenBgColor = "#000000"; private string opeBeforColor = "DodgerBlue"; @@ -91,7 +89,7 @@ namespace BeginScreen public int GetPageCount() { if (PageSum == 0) - PageSum = 9; //每页显示的记录条数为"0",则默认为"20" + PageSum = 8; //每页显示的记录条数为"0",则默认为"20" if (dSum % PageSum == 0) return (dSum / PageSum); else @@ -125,7 +123,7 @@ namespace BeginScreen string tdRow = ""; if (i >= dSum) { - tdRow += " "; + tdRow += "\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"; } else { @@ -143,24 +141,24 @@ namespace BeginScreen string rowStyle = ""; if (i % 2 == 0) { - rowStyle = "bgcolor='" + rowEvenBgColor + "' align=left valie=middle style='border-bottom:1px solid #629069;height:50px;font-size:" + - fontSize + ";font-weight:bold; vertical-align: middle;font-family:\"" + fontFamily + "\"; "; + rowStyle = " height='35px' bgcolor='" + rowEvenBgColor + "' style='font-size:" + + fontSize + ";font-family:" + fontFamily + ";' ";//font-weight:bold; } else { - rowStyle = "bgcolor='" + rowOddBgColor + "' align=left valie=middle style='border-bottom:1px solid #629069;height:50px;font-size:" + - fontSize + ";font-weight:bold; vertical-align: middle;font-family:\"" + fontFamily + "\"; "; + rowStyle = " height='35px' bgcolor='" + rowOddBgColor + "' style='font-size:" + + fontSize + "; font-family:" + fontFamily + ";' ";//font-weight:bold; } switch (vchrOpeStatus) { case "等待手术": - rowStyle += " color:" + defaultColor + ";'"; + //rowStyle += " color:" + defaultColor + ";'"; break; case "手术准备": - rowStyle += " color:" + defaultColor + ";'"; + //rowStyle += " color:" + defaultColor + ";'"; break; - case "手术进行中": - rowStyle += " color:" + defaultColor + ";'"; + case "手术中": + //rowStyle += " color:" + defaultColor + ";'"; break; case "术后恢复": break; @@ -173,7 +171,7 @@ namespace BeginScreen case "离开复苏室": break; case "手术结束": - rowStyle += " color:" + defaultColor + ";'"; + //rowStyle += " color:" + defaultColor + ";'"; break; default: break; @@ -184,7 +182,7 @@ namespace BeginScreen tdRow += "" + dts.Rows[i]["ApplyDepName"] + ""; tdRow += "" + dts.Rows[i]["PatientName"] + ""; string SZOperation = dts.Rows[i]["OperationInfo"].ToString(); - tdRow += "" + SZOperation + ""; + tdRow += "" + SZOperation + ""; #region 读取医生的条件 string SZOperationDoctor = dts.Rows[i]["OperationDoctor"].ToString(); tdRow += "" + SZOperationDoctor + ""; @@ -209,9 +207,9 @@ namespace BeginScreen #endregion tdRow += "" + vchrFactBeginTime + ""; - tdRow += "" + vchrOpeStatus + ""; + tdRow += "" + vchrOpeStatus + ""; } - tdRow += ""; + tdRow += ""; tdRows += tdRow; } catch (Exception) @@ -220,9 +218,32 @@ namespace BeginScreen } //显示备注等 body += tdRows; + GetT_Inform(); } + /// + /// 获取通知档的内容 + /// + private void GetT_Inform() + { + DataRow dr = PublicMethod.GetMessigeData(); + if (dr != null) + { + if (dr["Contents"] != null && dr["Contents"].ToString().Trim() != "") + { + messageStr = dr["Contents"].ToString().Trim(); + } + systemType = "0"; + if (dr["Id"] != null && dr["Id"].ToString().Trim() != "") + { + messId = Convert.ToInt32(dr["Id"].ToString().Trim()); + } + } + } + + + private void SetViewTime() { _beginDate = PublicMethod.ServerTime().Date.AddSeconds(1); diff --git a/BeginScreen/Wait.aspx b/BeginScreen/Wait.aspx index 9367b93..e625349 100644 --- a/BeginScreen/Wait.aspx +++ b/BeginScreen/Wait.aspx @@ -1,4 +1,5 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Wait.aspx.cs" Inherits="BeginScreen.Wait" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Room.aspx.cs" + Inherits="BeginScreen.Room" %> @@ -48,35 +49,35 @@ } - + - +
- + - - + + + @@ -90,7 +91,7 @@
-
+
秦皇岛市工人医院
今日手术 -
+
-
+
科室 床号 姓名 - 状态
- +
@@ -99,23 +100,18 @@
-
-
- - - - diff --git a/BeginScreen/Wait.aspx.designer.cs b/BeginScreen/Wait.aspx.designer.cs index 000f415..79601be 100644 --- a/BeginScreen/Wait.aspx.designer.cs +++ b/BeginScreen/Wait.aspx.designer.cs @@ -2,18 +2,16 @@ // <自动生成> // 此代码由工具生成。 // -// 对此文件的更改可能导致不正确的行为,如果 -// 重新生成代码,则所做更改将丢失。 +// 对此文件的更改可能会导致不正确的行为,并且如果 +// 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ -namespace BeginScreen -{ - - - public partial class Wait - { - +namespace BeginScreen { + + + public partial class Wait { + /// /// Head1 控件。 /// diff --git a/BeginScreen/WaitingHandler.ashx.cs b/BeginScreen/WaitingHandler.ashx.cs index 24ce2fb..bffe1d9 100644 --- a/BeginScreen/WaitingHandler.ashx.cs +++ b/BeginScreen/WaitingHandler.ashx.cs @@ -29,8 +29,8 @@ namespace BeginScreen #region 配置文件的属性 public static XElement xmlOpe = null; - private string fontSize = "27px"; - private string fontFamily = "黑体"; + private string fontSize = "20px"; + private string fontFamily = "微软雅黑"; private string rowOddBgColor = "#000000"; private string rowEvenBgColor = "#000000"; private string opeBeforColor = "DodgerBlue"; @@ -68,6 +68,7 @@ namespace BeginScreen PatientNames = xmlOpe.Element("PatientName").Value; OpeTime = xmlOpe.Element("OpeTime").Value; DeptId = xmlOpe.Element("DeptId").Value; + messageStr = ""; DataTable dt = new DataTable(); dt = PublicMethod.GetPlanNoticeNew1(_beginDate, _endDate, OpeTime == "" ? "5" : OpeTime, DeptId); @@ -77,7 +78,7 @@ namespace BeginScreen countPage = GetPageCount(); string tdRows = string.Empty; if (HttpContext.Current.Request["WorkerCurrentPage"] != null && HttpContext.Current.Request["WorkerCurrentPage"] != "") - { + { LoadWaitNurseOpe(Convert.ToInt32(HttpContext.Current.Request["WorkerCurrentPage"])); } JavaScriptSerializer jss = new JavaScriptSerializer(); @@ -141,37 +142,34 @@ namespace BeginScreen string tdRow = ""; if (i >= dSum) { - tdRow += " "; + tdRow += " "; } else { string intApplyID = dts.Rows[i]["ApplyId"].ToString(); string OperationRoom = dts.Rows[i]["OperationRoom"].ToString(); - string vchrOpeStatus = dts.Rows[i]["State"].ToString(); + string vchrOpeStatus = GetOpeStatus(dts.Rows[i]); if (vchrOpeStatus == "") continue; string rowStyle = ""; if (i % 2 == 0) { - rowStyle = "bgcolor='" + rowEvenBgColor + "' align=left valie=middle style='border-bottom:1px solid #629069;height:50px;font-size:" + - fontSize + ";font-weight:bold; vertical-align: middle;font-family:\"" + fontFamily + "\"; "; + rowStyle = " height='35px' bgcolor='" + rowEvenBgColor + "' style='font-size:" + fontSize + ";font-family:" + fontFamily + ";' "; } else { - rowStyle = "bgcolor='" + rowOddBgColor + "' align=left valie=middle style='border-bottom:1px solid #629069;height:50px;font-size:" + - fontSize + ";font-weight:bold; vertical-align: middle;font-family:\"" + fontFamily + "\"; "; + rowStyle = " height='35px' bgcolor='" + rowOddBgColor + "' style='font-size:" + fontSize + "; font-family:" + fontFamily + ";' "; } switch (vchrOpeStatus) { - case "等待手术": - rowStyle += " color:" + defaultColor + ";'"; + case "等待手术": break; - case "手术准备": - rowStyle += " color:" + defaultColor + ";'"; + case "手术准备": break; - case "手术进行中": - rowStyle += " color:" + defaultColor + ";'"; + case "手术中": + break; + case "手术结束": break; case "术后恢复": break; @@ -183,9 +181,6 @@ namespace BeginScreen break; case "离开复苏室": break; - case "手术结束": - rowStyle += " color:" + defaultColor + ";'"; - break; default: break; } @@ -216,9 +211,30 @@ namespace BeginScreen } //显示备注等 body += tdRows; + GetT_Inform(); } + /// + /// 获取通知档的内容 + /// + private void GetT_Inform() + { + DataRow dr = PublicMethod.GetMessigeData(); + if (dr != null) + { + if (dr["Contents"] != null && dr["Contents"].ToString().Trim() != "") + { + messageStr = dr["Contents"].ToString().Trim(); + } + systemType = "0"; + if (dr["Id"] != null && dr["Id"].ToString().Trim() != "") + { + messId = Convert.ToInt32(dr["Id"].ToString().Trim()); + } + } + } + private void SetViewTime() { _beginDate = PublicMethod.ServerTime().Date.AddSeconds(1); @@ -226,5 +242,73 @@ namespace BeginScreen } + public static string GetOpeStatus(DataRow dts) + { + //--0.【等待手术】 “已排程”“待访视”“已访视” + //--1.【术前准备】 点击“手术转入” + //--2.【手术进行中】 点击“手术开始” + //--3.【术后恢复】 点击“手术结束” + //--4.【离开手术室】 从点击手术结束 + //--5.【转入复苏室】 麻醉恢复记录单点击“转入” + //--6.【离开手术室】 点击“转出”恢复室 + string OpeStatus = dts["State"].ToString(); + string InRoomTime = dts["InRoomTime"].ToString(); + string OperationBeginTime = dts["OperationBeginTime"].ToString(); + string OperationEndTime = dts["OperationEndTime"].ToString(); + string OutRoomTime = dts["OutRoomTime"].ToString(); + string Temp = ""; + if (OpeStatus == "等待手术") + { + Temp = "等待手术"; + } + if (OpeStatus == "手术中" && InRoomTime != "" && OperationBeginTime == "" && OperationEndTime == "" && OutRoomTime == "") + { + Temp = "手术准备"; + } + if (OpeStatus == "手术中" && InRoomTime != "" && OperationBeginTime != "" && OperationEndTime == "" && OutRoomTime == "") + { + Temp = "手术进行中"; + } + if (OpeStatus == "手术中" && InRoomTime != "" && OperationBeginTime != "" && OperationEndTime != "" && OutRoomTime == "") + { + if (DateTime.Now < Convert.ToDateTime(OperationEndTime)) + { + Temp = "手术进行中"; + } + else + { + Temp = "术后恢复"; + } + } + if (InRoomTime != "" && OperationBeginTime != "" && OperationEndTime != "" && OutRoomTime != "") + { + if (DateTime.Now < Convert.ToDateTime(OutRoomTime)) + { + Temp = "术后恢复"; + } + else if (dts["Pulse"].ToString() == "病房") + { + Temp = "手术结束安返病房"; + } + else if (dts["Pulse"].ToString() == "恢复室") + { + Temp = "手术结束转恢复室"; + } + else + { + Temp = "手术结束"; + } + } + //if (OpeStatus == "4" && InRoomTime != "" && OutRoomTime == "") + //{ + // Temp = "转入复苏室"; + //} + //if (OpeStatus == "5" && InRoomTime != "" && OutRoomTime != "") + //{ + // Temp = "离开复苏室"; + //} + return Temp; + } + } } \ No newline at end of file diff --git a/BeginScreen/Web.config b/BeginScreen/Web.config index faccf40..7d1bdd7 100644 --- a/BeginScreen/Web.config +++ b/BeginScreen/Web.config @@ -1,7 +1,7 @@  - + diff --git a/DocumentManagement/DocumentEntity/PatientRecord.cs b/DocumentManagement/DocumentEntity/PatientRecord.cs index 902eca0..2ed04d7 100644 --- a/DocumentManagement/DocumentEntity/PatientRecord.cs +++ b/DocumentManagement/DocumentEntity/PatientRecord.cs @@ -199,6 +199,8 @@ namespace DocumentManagement patient.OperationBodyPositionName = dt.Rows[0]["OperationBodyPositionName"].ToString(); patient.OperationPositionName = dt.Rows[0]["OperationPositionName"].ToString(); patient.OperationDoctor = dt.Rows[0]["OperationDoctor"].ToString(); + if (patient.OperationDoctor.Contains(",")) + patient.OperationDoctor = patient.OperationDoctor.Split(',').ToList()[0]; patient.Assistant = dt.Rows[0]["Assistant"].ToString(); patient.AnesthesiaDoctor = dt.Rows[0]["AnesthesiaDoctor"].ToString(); patient.Nurse = dt.Rows[0]["Nurse"].ToString(); diff --git a/DrawGraph/AreaManage/BaseInfoTopManage.cs b/DrawGraph/AreaManage/BaseInfoTopManage.cs index f64971c..7c2ae0d 100644 --- a/DrawGraph/AreaManage/BaseInfoTopManage.cs +++ b/DrawGraph/AreaManage/BaseInfoTopManage.cs @@ -380,6 +380,9 @@ namespace DrawGraph case "OperationRecord.Applyoperation": //手术诊断 ope_Click(aEdit1, e); break; + case "OperationRecord.Operation": //手术诊断 + ope_Click(aEdit1, e); + break; //default: // //在此处写日志 // aEdit1.IsVisible = !aEdit1.IsVisible; diff --git a/DrawGraph/AreaManage/DBManage.cs b/DrawGraph/AreaManage/DBManage.cs index f565a42..a82804d 100644 --- a/DrawGraph/AreaManage/DBManage.cs +++ b/DrawGraph/AreaManage/DBManage.cs @@ -77,7 +77,7 @@ namespace DrawGraph default: strSql = "SELECT top 15 p.Id,p.Name,p.Remark Code FROM BasicDictionary p WHERE p.IsValid=1 and ParentId in(select Id from BasicDictionary where Name='" + _title + "') AND (p.Name LIKE '%" + HelpCode + "%' OR p.HelpCode LIKE '%" + HelpCode + "%' )"; if (SelPerson != "") strSql += " AND p.Id not in (" + SelPerson + ") "; - strSql += " order by Order asc"; + strSql += " order by p.[Order] asc"; break; } @@ -241,6 +241,38 @@ namespace DrawGraph } return i; } + public static int AddPerson(OperationRecord _operationRecord, List Persons, int PersonDutyId) + { + int i = 0; + if (Persons==null || Persons.Count<=0) + { + DeletePerson(_operationRecord.PatientId.Value, PersonDutyId); + i++; + } + else + { + DeletePerson(_operationRecord.PatientId.Value, PersonDutyId); + i++; + foreach (int PersonId in Persons) + { + StringBuilder strSql = new StringBuilder(); + strSql.Append("insert into [FactPersonDuty]("); + strSql.Append("PatientId,ApplyId,PersonDutyId,PersonId,OperatorNo,OperatorName,OperateDate"); + strSql.Append(")"); + strSql.Append(" values ("); + strSql.Append("" + _operationRecord.PatientId + ","); + strSql.Append("" + _operationRecord.OperationApplyId + ","); + strSql.Append("" + PersonDutyId + ","); + strSql.Append("" + PersonId + ","); + strSql.Append("'" + AIMSExtension.PublicMethod.OperatorNo + "',"); + strSql.Append("'" + AIMSExtension.PublicMethod.OperatorName + "',"); + strSql.Append("'" + DateTime.Now + "'"); + strSql.Append(")"); + i += HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); + } + } + return i; + } public static int AddOperation(OperationRecord _operationRecord, string Operation) { diff --git a/DrawGraph/AreaManage/InstrumentDataManage.cs b/DrawGraph/AreaManage/InstrumentDataManage.cs index a276724..dca49ab 100644 --- a/DrawGraph/AreaManage/InstrumentDataManage.cs +++ b/DrawGraph/AreaManage/InstrumentDataManage.cs @@ -88,24 +88,24 @@ namespace DrawGraph ZUtil.DrawLine1(tablePackObj.X + tablePackObj.RealX, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordList" + index, Color.Black); - if (ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/") + if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeFront != null && ApplianceRecordList[index].OpeFront != "" && ApplianceRecordList[index].OpeFront != @"/") ZUtil.DrawText(ApplianceRecordList[index].OpeFront, tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black, fontsize, false); else ZUtil.DrawLine1(tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeFront" + index, Color.Black); - if (ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/") + if (index < ApplianceRecordList.Count && ApplianceRecordList[index].OpeDoing != null && ApplianceRecordList[index].OpeDoing != "" && ApplianceRecordList[index].OpeDoing != @"/") ZUtil.DrawText(ApplianceRecordList[index].OpeDoing, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black, fontsize, false); else ZUtil.DrawLine1((tablePackObj1.EndX - tablePackObj1.X) / Columns * 1 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListOpeDoing" + index, Color.Black); - if (ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/") + if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseFront != null && ApplianceRecordList[index].CloseFront != "" && ApplianceRecordList[index].CloseFront != @"/") ZUtil.DrawText(ApplianceRecordList[index].CloseFront, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black, fontsize, false); else ZUtil.DrawLine1((tablePackObj1.EndX - tablePackObj1.X) / Columns * 2 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseFront" + index, Color.Black); - if (ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/") + if (index < ApplianceRecordList.Count && ApplianceRecordList[index].CloseLast != null && ApplianceRecordList[index].CloseLast != "" && ApplianceRecordList[index].CloseLast != @"/") ZUtil.DrawText(ApplianceRecordList[index].CloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black, fontsize, false); else ZUtil.DrawLine1((tablePackObj1.EndX - tablePackObj1.X) / Columns * 3 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListCloseLast" + index, Color.Black); if (Columns == 5) - if (ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/") + if (index < ApplianceRecordList.Count && ApplianceRecordList[index].SkinCloseLast != null && ApplianceRecordList[index].SkinCloseLast != "" && ApplianceRecordList[index].SkinCloseLast != @"/") ZUtil.DrawText(ApplianceRecordList[index].SkinCloseLast, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + tablePackObj.RealX, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black, fontsize, false); else ZUtil.DrawLine1((tablePackObj1.EndX - tablePackObj1.X) / Columns * 4 + tablePackObj1.X + span, y + chaY, (tablePackObj1.EndX - tablePackObj1.X) / Columns * 5 + tablePackObj1.X + span, y, ZedControl, "ApplianceRecordListSkinCloseLast" + index, Color.Black); diff --git a/DrawGraph/AreaManage/SelectDictValue.cs b/DrawGraph/AreaManage/SelectDictValue.cs index 727ef17..8ede3c4 100644 --- a/DrawGraph/AreaManage/SelectDictValue.cs +++ b/DrawGraph/AreaManage/SelectDictValue.cs @@ -112,15 +112,7 @@ namespace DrawGraph dgvZd.DataSource = dt; dgvZd.Columns[1].HeaderText = aEdit.ControlTitleText; dgvZd.Location = new System.Drawing.Point(aEdit.CControl.Location.X, aEdit.CControl.Location.Y + aEdit.CControl.Height); - dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height); - if (dgvZd.Size.Width < 100) - { - dgvZd.Columns[2].Visible = false; - } - else - { - dgvZd.Columns[2].Visible = true; - } + dgvZd.Size = new System.Drawing.Size(aEdit.CControl.Width < 100 ? 99 : aEdit.CControl.Width, dgvZd.Height); if (aEdit.ControlTitleText == "人员" || aEdit.ControlTitleText == "手术" || aEdit.ControlTitleText == "诊断") { dgvZd.Columns[2].Visible = true;