diff --git a/AIMS/DocManager/frmDocument.Designer.cs b/AIMS/DocManager/frmDocument.Designer.cs index 2ef98ec..c0b64c9 100644 --- a/AIMS/DocManager/frmDocument.Designer.cs +++ b/AIMS/DocManager/frmDocument.Designer.cs @@ -35,12 +35,12 @@ this.expandableSplitter2 = new DevComponents.DotNetBar.ExpandableSplitter(); this.panel1 = new System.Windows.Forms.Panel(); this.panelEx1 = new DevComponents.DotNetBar.PanelEx(); + this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); this.lblPatient = new DevComponents.DotNetBar.LabelX(); this.btnSel = new DevComponents.DotNetBar.ButtonX(); this.expandablePanel1 = new DevComponents.DotNetBar.ExpandablePanel(); this.tabControlPanel1 = new DevComponents.DotNetBar.TabControlPanel(); this.tabItem1 = new DevComponents.DotNetBar.TabItem(this.components); - this.buttonX1 = new DevComponents.DotNetBar.ButtonX(); this.panel2.SuspendLayout(); this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tsbDoc)).BeginInit(); @@ -157,6 +157,18 @@ this.panelEx1.Style.GradientAngle = 90; this.panelEx1.TabIndex = 0; // + // buttonX1 + // + this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; + this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; + this.buttonX1.Location = new System.Drawing.Point(86, 10); + this.buttonX1.Margin = new System.Windows.Forms.Padding(2); + this.buttonX1.Name = "buttonX1"; + this.buttonX1.Size = new System.Drawing.Size(70, 23); + this.buttonX1.TabIndex = 4; + this.buttonX1.Text = "数据中心"; + this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); + // // lblPatient // // @@ -232,18 +244,6 @@ this.tabItem1.Name = "tabItem1"; this.tabItem1.Text = "tabItem1"; // - // buttonX1 - // - this.buttonX1.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; - this.buttonX1.ColorTable = DevComponents.DotNetBar.eButtonColor.OrangeWithBackground; - this.buttonX1.Location = new System.Drawing.Point(86, 10); - this.buttonX1.Margin = new System.Windows.Forms.Padding(2); - this.buttonX1.Name = "buttonX1"; - this.buttonX1.Size = new System.Drawing.Size(70, 23); - this.buttonX1.TabIndex = 4; - this.buttonX1.Text = "数据中心"; - this.buttonX1.Click += new System.EventHandler(this.buttonX1_Click); - // // frmDocument // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -251,6 +251,7 @@ this.ClientSize = new System.Drawing.Size(1074, 542); this.Controls.Add(this.panel2); this.Margin = new System.Windows.Forms.Padding(2); + this.MinimizeBox = false; this.Name = "frmDocument"; this.ShowIcon = false; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; diff --git a/AIMS/FormLogin.cs b/AIMS/FormLogin.cs index a1b16fe..40253c4 100644 --- a/AIMS/FormLogin.cs +++ b/AIMS/FormLogin.cs @@ -25,6 +25,7 @@ namespace AIMS private void frmLogin_Load(object sender, EventArgs e) { + AIMSExtension.PublicMethod.SetLocalDateTime(); //label1.Text = AIMSExtension.PublicMethod.GetSystemName(); //label2.Text = "@山西瑞禾康医疗科技有限公司 V" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); txtNo.Select(); diff --git a/AIMS/OperationAfter/frmOperationManage.Designer.cs b/AIMS/OperationAfter/frmOperationManage.Designer.cs index a19088b..aa3b236 100644 --- a/AIMS/OperationAfter/frmOperationManage.Designer.cs +++ b/AIMS/OperationAfter/frmOperationManage.Designer.cs @@ -28,6 +28,7 @@ /// private void InitializeComponent() { + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.toolStrip1 = new System.Windows.Forms.ToolStrip(); this.tsbReviewApply = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); @@ -38,7 +39,7 @@ 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.dgv = new DevComponents.DotNetBar.Controls.DataGridViewX(); this.CheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.ApplyId = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.StateColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -66,7 +67,7 @@ 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.OperationCut = 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(); @@ -82,6 +83,10 @@ this.RemarkColumn = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.OperatorName = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel2 = new System.Windows.Forms.Panel(); + this.btnFind = new System.Windows.Forms.Button(); + this.AgeEnd = new System.Windows.Forms.NumericUpDown(); + this.AgeBegin = new System.Windows.Forms.NumericUpDown(); + this.label14 = new System.Windows.Forms.Label(); this.cboIsNotPlanReturnOperation = new DevComponents.DotNetBar.Controls.CheckBoxX(); this.txtName = new System.Windows.Forms.TextBox(); this.label5 = new System.Windows.Forms.Label(); @@ -92,22 +97,24 @@ 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.label13 = new System.Windows.Forms.Label(); + this.label12 = new System.Windows.Forms.Label(); + this.label11 = new System.Windows.Forms.Label(); + this.label15 = new System.Windows.Forms.Label(); 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(); this.label4 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.dtpEndDate = new System.Windows.Forms.DateTimePicker(); + this.cmbPatType = new System.Windows.Forms.ComboBox(); + this.txtASALevel = new System.Windows.Forms.ComboBox(); + this.txtOperationCut = new System.Windows.Forms.ComboBox(); + this.cboOperationLevel = new System.Windows.Forms.ComboBox(); + this.cmbOpeType = new System.Windows.Forms.ComboBox(); this.cboDepartment = new System.Windows.Forms.ComboBox(); this.label1 = new System.Windows.Forms.Label(); this.toolStrip1.SuspendLayout(); @@ -115,8 +122,8 @@ this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgv)).BeginInit(); this.panel2.SuspendLayout(); - this.panel5.SuspendLayout(); - this.panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.AgeEnd)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.AgeBegin)).BeginInit(); this.SuspendLayout(); // // toolStrip1 @@ -134,7 +141,7 @@ this.tsbExit}); this.toolStrip1.Location = new System.Drawing.Point(0, 0); this.toolStrip1.Name = "toolStrip1"; - this.toolStrip1.Size = new System.Drawing.Size(1004, 49); + this.toolStrip1.Size = new System.Drawing.Size(1187, 49); this.toolStrip1.TabIndex = 2; this.toolStrip1.Text = "toolStrip1"; // @@ -207,21 +214,22 @@ 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(1004, 432); + this.panel1.Size = new System.Drawing.Size(1187, 432); this.panel1.TabIndex = 3; // // panel3 // this.panel3.Controls.Add(this.dgv); this.panel3.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel3.Location = new System.Drawing.Point(0, 116); + this.panel3.Location = new System.Drawing.Point(0, 112); this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(1004, 316); + this.panel3.Size = new System.Drawing.Size(1187, 320); this.panel3.TabIndex = 1; // // dgv // this.dgv.AllowUserToAddRows = false; + this.dgv.AllowUserToDeleteRows = 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[] { @@ -252,7 +260,7 @@ this.OperationHourTimeSpan, this.AnaesthesiaMethodNameColumn, this.OperationInfoName, - this.OperationCutTypeName, + this.OperationCut, this.OperationPositionName, this.OperationBodyPositionName, this.OperationLevelNameColumn, @@ -267,20 +275,33 @@ this.IsNotPlanReturnOperation, this.RemarkColumn, this.OperatorName}); + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.dgv.DefaultCellStyle = dataGridViewCellStyle1; this.dgv.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgv.GridColor = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229))))); this.dgv.Location = new System.Drawing.Point(0, 0); this.dgv.Name = "dgv"; + this.dgv.ReadOnly = true; this.dgv.RowTemplate.Height = 23; - this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; - this.dgv.Size = new System.Drawing.Size(1004, 316); + this.dgv.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgv.Size = new System.Drawing.Size(1187, 320); this.dgv.TabIndex = 4; + this.dgv.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.dgv_RowPostPaint); // // CheckBoxColumn // this.CheckBoxColumn.HeaderText = "选择"; this.CheckBoxColumn.Name = "CheckBoxColumn"; + this.CheckBoxColumn.ReadOnly = true; this.CheckBoxColumn.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.CheckBoxColumn.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.CheckBoxColumn.Visible = false; this.CheckBoxColumn.Width = 35; // // ApplyId @@ -320,11 +341,12 @@ this.Age.DataPropertyName = "Age"; this.Age.HeaderText = "年龄"; this.Age.Name = "Age"; + this.Age.ReadOnly = true; this.Age.Width = 40; // // ApplyDepNameColumn // - this.ApplyDepNameColumn.DataPropertyName = "ApplyDepName"; + this.ApplyDepNameColumn.DataPropertyName = "ApplyDeptName"; this.ApplyDepNameColumn.HeaderText = "科室"; this.ApplyDepNameColumn.Name = "ApplyDepNameColumn"; this.ApplyDepNameColumn.ReadOnly = true; @@ -343,6 +365,7 @@ this.PatientType.DataPropertyName = "PatientType"; this.PatientType.HeaderText = "患者类别"; this.PatientType.Name = "PatientType"; + this.PatientType.ReadOnly = true; this.PatientType.Width = 80; // // MdrecNoColumn @@ -374,6 +397,7 @@ this.ApplyTimeColumn.DataPropertyName = "ApplyTime"; this.ApplyTimeColumn.HeaderText = "申请时间"; this.ApplyTimeColumn.Name = "ApplyTimeColumn"; + this.ApplyTimeColumn.ReadOnly = true; this.ApplyTimeColumn.Width = 110; // // OrderOperationTimeColumn @@ -405,54 +429,72 @@ this.InRoomTime.DataPropertyName = "InRoomTime"; this.InRoomTime.HeaderText = "入室时间"; this.InRoomTime.Name = "InRoomTime"; + this.InRoomTime.ReadOnly = true; + this.InRoomTime.Width = 110; // // OutRoomTime // this.OutRoomTime.DataPropertyName = "OutRoomTime"; this.OutRoomTime.HeaderText = "出室时间"; this.OutRoomTime.Name = "OutRoomTime"; + this.OutRoomTime.ReadOnly = true; + this.OutRoomTime.Width = 110; // // RoomHourTimeSpan // this.RoomHourTimeSpan.DataPropertyName = "RoomHourTimeSpan"; this.RoomHourTimeSpan.HeaderText = "总时长"; this.RoomHourTimeSpan.Name = "RoomHourTimeSpan"; + this.RoomHourTimeSpan.ReadOnly = true; + this.RoomHourTimeSpan.Width = 80; // // AnesthesiaBeginTime // this.AnesthesiaBeginTime.DataPropertyName = "AnesthesiaBeginTime"; this.AnesthesiaBeginTime.HeaderText = "麻醉开始时间"; this.AnesthesiaBeginTime.Name = "AnesthesiaBeginTime"; + this.AnesthesiaBeginTime.ReadOnly = true; + this.AnesthesiaBeginTime.Width = 110; // // AnesthesiaEndTime // this.AnesthesiaEndTime.DataPropertyName = "AnesthesiaEndTime"; this.AnesthesiaEndTime.HeaderText = "麻醉结束时间"; this.AnesthesiaEndTime.Name = "AnesthesiaEndTime"; + this.AnesthesiaEndTime.ReadOnly = true; + this.AnesthesiaEndTime.Width = 110; // // AnaesthesiaHourTimeSpan // this.AnaesthesiaHourTimeSpan.DataPropertyName = "AnaesthesiaHourTimeSpan"; this.AnaesthesiaHourTimeSpan.HeaderText = "麻醉时长"; this.AnaesthesiaHourTimeSpan.Name = "AnaesthesiaHourTimeSpan"; + this.AnaesthesiaHourTimeSpan.ReadOnly = true; + this.AnaesthesiaHourTimeSpan.Width = 80; // // OperationBeginTime // this.OperationBeginTime.DataPropertyName = "OperationBeginTime"; this.OperationBeginTime.HeaderText = "手术开始时间"; this.OperationBeginTime.Name = "OperationBeginTime"; + this.OperationBeginTime.ReadOnly = true; + this.OperationBeginTime.Width = 110; // // OperationEndTime // this.OperationEndTime.DataPropertyName = "OperationEndTime"; this.OperationEndTime.HeaderText = "手术结束时间"; this.OperationEndTime.Name = "OperationEndTime"; + this.OperationEndTime.ReadOnly = true; + this.OperationEndTime.Width = 110; // // OperationHourTimeSpan // this.OperationHourTimeSpan.DataPropertyName = "OperationHourTimeSpan"; this.OperationHourTimeSpan.HeaderText = "手术时长"; this.OperationHourTimeSpan.Name = "OperationHourTimeSpan"; + this.OperationHourTimeSpan.ReadOnly = true; + this.OperationHourTimeSpan.Width = 80; // // AnaesthesiaMethodNameColumn // @@ -466,20 +508,22 @@ this.OperationInfoName.DataPropertyName = "OperationInfoName"; this.OperationInfoName.HeaderText = "实施手术"; this.OperationInfoName.Name = "OperationInfoName"; + this.OperationInfoName.ReadOnly = true; // - // OperationCutTypeName + // OperationCut // - this.OperationCutTypeName.DataPropertyName = "OperationCutTypeName"; - this.OperationCutTypeName.HeaderText = "切口类型"; - this.OperationCutTypeName.Name = "OperationCutTypeName"; - this.OperationCutTypeName.ReadOnly = true; - this.OperationCutTypeName.Width = 80; + this.OperationCut.DataPropertyName = "OperationCut"; + this.OperationCut.HeaderText = "切口类型"; + this.OperationCut.Name = "OperationCut"; + this.OperationCut.ReadOnly = true; + this.OperationCut.Width = 80; // // OperationPositionName // this.OperationPositionName.DataPropertyName = "OperationPositionName"; this.OperationPositionName.HeaderText = "手术部位"; this.OperationPositionName.Name = "OperationPositionName"; + this.OperationPositionName.ReadOnly = true; this.OperationPositionName.Width = 80; // // OperationBodyPositionName @@ -487,10 +531,12 @@ this.OperationBodyPositionName.DataPropertyName = "OperationBodyPositionName"; this.OperationBodyPositionName.HeaderText = "手术体位"; this.OperationBodyPositionName.Name = "OperationBodyPositionName"; + this.OperationBodyPositionName.ReadOnly = true; + this.OperationBodyPositionName.Width = 80; // // OperationLevelNameColumn // - this.OperationLevelNameColumn.DataPropertyName = "OperationLevelName"; + this.OperationLevelNameColumn.DataPropertyName = "OperationLevel"; this.OperationLevelNameColumn.HeaderText = "手术分级"; this.OperationLevelNameColumn.Name = "OperationLevelNameColumn"; this.OperationLevelNameColumn.ReadOnly = true; @@ -501,6 +547,8 @@ this.ASALevelName.DataPropertyName = "ASALevelName"; this.ASALevelName.HeaderText = "ASA等级"; this.ASALevelName.Name = "ASALevelName"; + this.ASALevelName.ReadOnly = true; + this.ASALevelName.Width = 80; // // OperationDoctorColumn // @@ -512,9 +560,10 @@ // // Assistant1Column // - this.Assistant1Column.DataPropertyName = "Assistants"; + this.Assistant1Column.DataPropertyName = "Assistant"; this.Assistant1Column.HeaderText = "助手"; this.Assistant1Column.Name = "Assistant1Column"; + this.Assistant1Column.ReadOnly = true; this.Assistant1Column.Width = 90; // // AnesthesiaDoctorColumn @@ -522,6 +571,7 @@ this.AnesthesiaDoctorColumn.DataPropertyName = "AnesthesiaDoctor"; this.AnesthesiaDoctorColumn.HeaderText = "麻醉"; this.AnesthesiaDoctorColumn.Name = "AnesthesiaDoctorColumn"; + this.AnesthesiaDoctorColumn.ReadOnly = true; this.AnesthesiaDoctorColumn.Width = 60; // // TourNurseColumn @@ -529,6 +579,7 @@ this.TourNurseColumn.DataPropertyName = "TourNurse"; this.TourNurseColumn.HeaderText = "巡回"; this.TourNurseColumn.Name = "TourNurseColumn"; + this.TourNurseColumn.ReadOnly = true; this.TourNurseColumn.Width = 60; // // InstrumentNurseColumn @@ -536,6 +587,7 @@ this.InstrumentNurseColumn.DataPropertyName = "InstrumentNurse"; this.InstrumentNurseColumn.HeaderText = "器械"; this.InstrumentNurseColumn.Name = "InstrumentNurseColumn"; + this.InstrumentNurseColumn.ReadOnly = true; this.InstrumentNurseColumn.Width = 60; // // OperationRoomColumn @@ -551,6 +603,7 @@ this.PlanOrder.DataPropertyName = "PlanOrder"; this.PlanOrder.HeaderText = "台次"; this.PlanOrder.Name = "PlanOrder"; + this.PlanOrder.ReadOnly = true; this.PlanOrder.Width = 40; // // IsNotPlanReturnOperation @@ -558,21 +611,28 @@ this.IsNotPlanReturnOperation.DataPropertyName = "IsNotPlanReturnOperation"; this.IsNotPlanReturnOperation.HeaderText = "非计划二次手术"; this.IsNotPlanReturnOperation.Name = "IsNotPlanReturnOperation"; + this.IsNotPlanReturnOperation.ReadOnly = true; // // RemarkColumn // this.RemarkColumn.DataPropertyName = "Remark"; this.RemarkColumn.HeaderText = "停止原因"; this.RemarkColumn.Name = "RemarkColumn"; + this.RemarkColumn.ReadOnly = true; // // OperatorName // this.OperatorName.DataPropertyName = "OperatorName"; this.OperatorName.HeaderText = "停止人"; this.OperatorName.Name = "OperatorName"; + this.OperatorName.ReadOnly = true; + this.OperatorName.Width = 80; // // panel2 // + this.panel2.Controls.Add(this.AgeEnd); + this.panel2.Controls.Add(this.AgeBegin); + this.panel2.Controls.Add(this.label14); this.panel2.Controls.Add(this.cboIsNotPlanReturnOperation); this.panel2.Controls.Add(this.txtName); this.panel2.Controls.Add(this.label5); @@ -583,89 +643,140 @@ 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.label13); + this.panel2.Controls.Add(this.label12); + this.panel2.Controls.Add(this.label11); + this.panel2.Controls.Add(this.label15); 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); this.panel2.Controls.Add(this.label4); this.panel2.Controls.Add(this.label2); this.panel2.Controls.Add(this.label3); this.panel2.Controls.Add(this.dtpEndDate); + this.panel2.Controls.Add(this.cmbPatType); + this.panel2.Controls.Add(this.txtASALevel); + this.panel2.Controls.Add(this.txtOperationCut); + this.panel2.Controls.Add(this.cboOperationLevel); + this.panel2.Controls.Add(this.cmbOpeType); this.panel2.Controls.Add(this.cboDepartment); this.panel2.Controls.Add(this.label1); + this.panel2.Controls.Add(this.btnFind); this.panel2.Dock = System.Windows.Forms.DockStyle.Top; 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, 116); + this.panel2.Size = new System.Drawing.Size(1187, 112); this.panel2.TabIndex = 0; // + // 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(1070, 33); + this.btnFind.Name = "btnFind"; + this.btnFind.Size = new System.Drawing.Size(105, 63); + this.btnFind.TabIndex = 18; + this.btnFind.Text = "查询"; + this.btnFind.UseVisualStyleBackColor = true; + this.btnFind.Click += new System.EventHandler(this.btnFind_Click); + // + // AgeEnd + // + this.AgeEnd.Location = new System.Drawing.Point(990, 42); + this.AgeEnd.Maximum = new decimal(new int[] { + 150, + 0, + 0, + 0}); + this.AgeEnd.Name = "AgeEnd"; + this.AgeEnd.Size = new System.Drawing.Size(50, 23); + this.AgeEnd.TabIndex = 104; + this.AgeEnd.Value = new decimal(new int[] { + 100, + 0, + 0, + 0}); + // + // AgeBegin + // + this.AgeBegin.Location = new System.Drawing.Point(922, 42); + this.AgeBegin.Name = "AgeBegin"; + this.AgeBegin.Size = new System.Drawing.Size(50, 23); + this.AgeBegin.TabIndex = 103; + // + // label14 + // + this.label14.AutoSize = true; + this.label14.Location = new System.Drawing.Point(975, 46); + this.label14.Name = "label14"; + this.label14.Size = new System.Drawing.Size(14, 14); + this.label14.TabIndex = 102; + this.label14.Text = "-"; + // // cboIsNotPlanReturnOperation // // // // this.cboIsNotPlanReturnOperation.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; - this.cboIsNotPlanReturnOperation.Location = new System.Drawing.Point(627, 72); + this.cboIsNotPlanReturnOperation.Location = new System.Drawing.Point(917, 13); this.cboIsNotPlanReturnOperation.Name = "cboIsNotPlanReturnOperation"; - this.cboIsNotPlanReturnOperation.Size = new System.Drawing.Size(167, 23); + this.cboIsNotPlanReturnOperation.Size = new System.Drawing.Size(123, 23); this.cboIsNotPlanReturnOperation.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled; - this.cboIsNotPlanReturnOperation.TabIndex = 39; + this.cboIsNotPlanReturnOperation.TabIndex = 101; this.cboIsNotPlanReturnOperation.Text = "非计划二次手术"; // // txtName // - this.txtName.Location = new System.Drawing.Point(518, 43); + this.txtName.Location = new System.Drawing.Point(736, 13); this.txtName.Name = "txtName"; - this.txtName.Size = new System.Drawing.Size(101, 23); - this.txtName.TabIndex = 38; + this.txtName.Size = new System.Drawing.Size(124, 23); + this.txtName.TabIndex = 100; // // label5 // this.label5.AutoSize = true; this.label5.ForeColor = System.Drawing.Color.Black; - this.label5.Location = new System.Drawing.Point(409, 48); + this.label5.Location = new System.Drawing.Point(633, 17); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(105, 14); - this.label5.TabIndex = 37; + this.label5.TabIndex = 99; this.label5.Text = "术者/麻醉/护士"; // // txtOperation // - this.txtOperation.Location = new System.Drawing.Point(358, 73); + this.txtOperation.Location = new System.Drawing.Point(696, 42); this.txtOperation.Name = "txtOperation"; - this.txtOperation.Size = new System.Drawing.Size(253, 23); - this.txtOperation.TabIndex = 36; + this.txtOperation.Size = new System.Drawing.Size(164, 23); + this.txtOperation.TabIndex = 98; // // label9 // this.label9.AutoSize = true; this.label9.ForeColor = System.Drawing.Color.Black; - this.label9.Location = new System.Drawing.Point(295, 78); + this.label9.Location = new System.Drawing.Point(633, 46); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(63, 14); - this.label9.TabIndex = 35; + this.label9.TabIndex = 96; this.label9.Text = "手术名称"; // // txtArchivesNo // - this.txtArchivesNo.Location = new System.Drawing.Point(298, 45); + this.txtArchivesNo.Location = new System.Drawing.Point(374, 13); this.txtArchivesNo.Name = "txtArchivesNo"; - this.txtArchivesNo.Size = new System.Drawing.Size(105, 23); - this.txtArchivesNo.TabIndex = 36; + this.txtArchivesNo.Size = new System.Drawing.Size(80, 23); + this.txtArchivesNo.TabIndex = 97; // // label6 // this.label6.AutoSize = true; this.label6.ForeColor = System.Drawing.Color.Black; - this.label6.Location = new System.Drawing.Point(211, 48); + this.label6.Location = new System.Drawing.Point(287, 17); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(84, 14); - this.label6.TabIndex = 35; + this.label6.TabIndex = 95; this.label6.Text = "住院号/姓名"; // // tokenEditor3 @@ -677,13 +788,13 @@ 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.Location = new System.Drawing.Point(698, 71); 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; + this.tokenEditor3.Size = new System.Drawing.Size(164, 24); + this.tokenEditor3.TabIndex = 94; // // tokenEditor2 // @@ -694,13 +805,13 @@ this.tokenEditor2.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.tokenEditor2.CheckBoxesVisible = true; this.tokenEditor2.DropDownButtonVisible = true; - this.tokenEditor2.Location = new System.Drawing.Point(678, 43); + this.tokenEditor2.Location = new System.Drawing.Point(922, 71); 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(124, 24); - this.tokenEditor2.TabIndex = 34; + this.tokenEditor2.Size = new System.Drawing.Size(118, 24); + this.tokenEditor2.TabIndex = 93; // // tokenEditor1 // @@ -711,193 +822,223 @@ this.tokenEditor1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.tokenEditor1.CheckBoxesVisible = true; this.tokenEditor1.DropDownButtonVisible = true; - this.tokenEditor1.Location = new System.Drawing.Point(73, 11); + this.tokenEditor1.Location = new System.Drawing.Point(59, 71); this.tokenEditor1.Margin = new System.Windows.Forms.Padding(2); this.tokenEditor1.Name = "tokenEditor1"; this.tokenEditor1.Separators.Add(";"); this.tokenEditor1.Separators.Add(","); - 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; + this.tokenEditor1.Size = new System.Drawing.Size(217, 24); + this.tokenEditor1.TabIndex = 92; // // label10 // this.label10.AutoSize = true; this.label10.ForeColor = System.Drawing.Color.Black; - this.label10.Location = new System.Drawing.Point(814, 16); + this.label10.Location = new System.Drawing.Point(301, 46); this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(63, 14); - this.label10.TabIndex = 32; - this.label10.Text = "患者类型"; + this.label10.Size = new System.Drawing.Size(70, 14); + this.label10.TabIndex = 90; + this.label10.Text = "住院/门诊"; // - // panel4 + // label13 // - this.panel4.Controls.Add(this.rboZQ); - this.panel4.Controls.Add(this.rboJZ); - this.panel4.Location = new System.Drawing.Point(678, 11); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(124, 26); - this.panel4.TabIndex = 33; + this.label13.AutoSize = true; + this.label13.ForeColor = System.Drawing.Color.Black; + this.label13.Location = new System.Drawing.Point(475, 17); + this.label13.Name = "label13"; + this.label13.Size = new System.Drawing.Size(56, 14); + this.label13.TabIndex = 89; + this.label13.Text = "ASA分级"; // - // rboZQ + // label12 // - this.rboZQ.AutoSize = true; - this.rboZQ.Location = new System.Drawing.Point(6, 5); - this.rboZQ.Name = "rboZQ"; - this.rboZQ.Size = new System.Drawing.Size(53, 18); - this.rboZQ.TabIndex = 12; - this.rboZQ.TabStop = true; - this.rboZQ.Text = "择期"; - this.rboZQ.UseVisualStyleBackColor = true; + this.label12.AutoSize = true; + this.label12.ForeColor = System.Drawing.Color.Black; + this.label12.Location = new System.Drawing.Point(468, 46); + this.label12.Name = "label12"; + this.label12.Size = new System.Drawing.Size(63, 14); + this.label12.TabIndex = 88; + this.label12.Text = "切口类型"; // - // rboJZ + // label11 // - this.rboJZ.AutoSize = true; - this.rboJZ.Location = new System.Drawing.Point(63, 5); - this.rboJZ.Name = "rboJZ"; - this.rboJZ.Size = new System.Drawing.Size(53, 18); - this.rboJZ.TabIndex = 13; - this.rboJZ.TabStop = true; - this.rboJZ.Text = "急诊"; - this.rboJZ.UseVisualStyleBackColor = true; + this.label11.AutoSize = true; + this.label11.ForeColor = System.Drawing.Color.Black; + this.label11.Location = new System.Drawing.Point(468, 76); + this.label11.Name = "label11"; + this.label11.Size = new System.Drawing.Size(63, 14); + this.label11.TabIndex = 91; + this.label11.Text = "手术分级"; + // + // label15 + // + this.label15.AutoSize = true; + this.label15.ForeColor = System.Drawing.Color.Black; + this.label15.Location = new System.Drawing.Point(884, 46); + this.label15.Name = "label15"; + this.label15.Size = new System.Drawing.Size(35, 14); + this.label15.TabIndex = 86; + this.label15.Text = "年龄"; // // label20 // this.label20.AutoSize = true; this.label20.ForeColor = System.Drawing.Color.Black; - this.label20.Location = new System.Drawing.Point(615, 16); + this.label20.Location = new System.Drawing.Point(301, 76); this.label20.Name = "label20"; - this.label20.Size = new System.Drawing.Size(63, 14); - this.label20.TabIndex = 32; - this.label20.Text = "手术类别"; + this.label20.Size = new System.Drawing.Size(70, 14); + this.label20.TabIndex = 87; + this.label20.Text = "择期/急诊"; // // label8 // this.label8.AutoSize = true; - this.label8.Location = new System.Drawing.Point(5, 78); + this.label8.Location = new System.Drawing.Point(635, 76); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(63, 14); - this.label8.TabIndex = 14; + this.label8.TabIndex = 82; 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(877, 40); - this.btnFind.Name = "btnFind"; - this.btnFind.Size = new System.Drawing.Size(105, 63); - this.btnFind.TabIndex = 18; - this.btnFind.Text = "查询"; - this.btnFind.UseVisualStyleBackColor = true; - this.btnFind.Click += new System.EventHandler(this.btnFind_Click); - // // label7 // this.label7.AutoSize = true; - this.label7.Location = new System.Drawing.Point(624, 48); + this.label7.Location = new System.Drawing.Point(884, 76); this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(49, 14); - this.label7.TabIndex = 14; - this.label7.Text = "手术间"; + this.label7.Size = new System.Drawing.Size(35, 14); + this.label7.TabIndex = 81; + this.label7.Text = "术间"; // // dtpBegInDate // this.dtpBegInDate.CustomFormat = "yyyy-MM-dd"; this.dtpBegInDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpBegInDate.Location = new System.Drawing.Point(358, 11); + this.dtpBegInDate.Location = new System.Drawing.Point(59, 13); this.dtpBegInDate.Name = "dtpBegInDate"; this.dtpBegInDate.Size = new System.Drawing.Size(97, 23); - this.dtpBegInDate.TabIndex = 15; + this.dtpBegInDate.TabIndex = 83; // // label4 // this.label4.AutoSize = true; - this.label4.Location = new System.Drawing.Point(5, 16); + this.label4.Location = new System.Drawing.Point(22, 76); this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(63, 14); - this.label4.TabIndex = 14; - this.label4.Text = "手术状态"; + this.label4.Size = new System.Drawing.Size(35, 14); + this.label4.TabIndex = 80; + this.label4.Text = "状态"; // // label2 // this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(295, 16); + this.label2.Location = new System.Drawing.Point(22, 17); this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(63, 14); - this.label2.TabIndex = 14; - this.label2.Text = "开始时间"; + this.label2.Size = new System.Drawing.Size(35, 14); + this.label2.TabIndex = 79; + this.label2.Text = "日期"; // // label3 // this.label3.AutoSize = true; - this.label3.Location = new System.Drawing.Point(455, 16); + this.label3.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.label3.Location = new System.Drawing.Point(157, 17); this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(63, 14); - this.label3.TabIndex = 16; - this.label3.Text = "结束时间"; + this.label3.Size = new System.Drawing.Size(22, 14); + this.label3.TabIndex = 84; + this.label3.Text = "~"; // // dtpEndDate // this.dtpEndDate.CustomFormat = "yyyy-MM-dd"; this.dtpEndDate.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dtpEndDate.Location = new System.Drawing.Point(518, 11); + this.dtpEndDate.Location = new System.Drawing.Point(179, 13); this.dtpEndDate.Name = "dtpEndDate"; this.dtpEndDate.Size = new System.Drawing.Size(97, 23); - this.dtpEndDate.TabIndex = 17; + this.dtpEndDate.TabIndex = 85; + // + // cmbPatType + // + this.cmbPatType.FormattingEnabled = true; + this.cmbPatType.Items.AddRange(new object[] { + "", + "住院", + "门诊"}); + this.cmbPatType.Location = new System.Drawing.Point(374, 42); + this.cmbPatType.Name = "cmbPatType"; + this.cmbPatType.Size = new System.Drawing.Size(80, 22); + this.cmbPatType.TabIndex = 77; + // + // txtASALevel + // + this.txtASALevel.ForeColor = System.Drawing.SystemColors.WindowText; + this.txtASALevel.FormattingEnabled = true; + this.txtASALevel.Items.AddRange(new object[] { + "", + "择期", + "急诊"}); + this.txtASALevel.Location = new System.Drawing.Point(534, 13); + this.txtASALevel.Name = "txtASALevel"; + this.txtASALevel.Size = new System.Drawing.Size(80, 22); + this.txtASALevel.TabIndex = 76; + // + // txtOperationCut + // + this.txtOperationCut.BackColor = System.Drawing.Color.White; + this.txtOperationCut.FormattingEnabled = true; + this.txtOperationCut.Items.AddRange(new object[] { + "", + "择期", + "急诊"}); + this.txtOperationCut.Location = new System.Drawing.Point(534, 42); + this.txtOperationCut.Name = "txtOperationCut"; + this.txtOperationCut.Size = new System.Drawing.Size(80, 22); + this.txtOperationCut.TabIndex = 75; + // + // cboOperationLevel + // + this.cboOperationLevel.BackColor = System.Drawing.Color.White; + this.cboOperationLevel.FormattingEnabled = true; + this.cboOperationLevel.Items.AddRange(new object[] { + "", + "择期", + "急诊"}); + this.cboOperationLevel.Location = new System.Drawing.Point(534, 72); + this.cboOperationLevel.Name = "cboOperationLevel"; + this.cboOperationLevel.Size = new System.Drawing.Size(80, 22); + this.cboOperationLevel.TabIndex = 74; + // + // cmbOpeType + // + this.cmbOpeType.FormattingEnabled = true; + this.cmbOpeType.Items.AddRange(new object[] { + "", + "择期", + "急诊"}); + this.cmbOpeType.Location = new System.Drawing.Point(374, 72); + this.cmbOpeType.Name = "cmbOpeType"; + this.cmbOpeType.Size = new System.Drawing.Size(80, 22); + this.cmbOpeType.TabIndex = 73; // // cboDepartment // - this.cboDepartment.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cboDepartment.FormattingEnabled = true; - this.cboDepartment.Location = new System.Drawing.Point(73, 43); + this.cboDepartment.Location = new System.Drawing.Point(59, 42); this.cboDepartment.Name = "cboDepartment"; - this.cboDepartment.Size = new System.Drawing.Size(121, 22); - this.cboDepartment.TabIndex = 10; + this.cboDepartment.Size = new System.Drawing.Size(217, 22); + this.cboDepartment.TabIndex = 78; // // label1 // this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(5, 48); + this.label1.Location = new System.Drawing.Point(22, 46); this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(63, 14); - this.label1.TabIndex = 0; - this.label1.Text = "申请科室"; + this.label1.Size = new System.Drawing.Size(35, 14); + this.label1.TabIndex = 72; + this.label1.Text = "科室"; // // frmOperationManage // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1004, 481); + this.ClientSize = new System.Drawing.Size(1187, 481); this.ControlBox = false; this.Controls.Add(this.panel1); this.Controls.Add(this.toolStrip1); @@ -912,10 +1053,8 @@ ((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.AgeEnd)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.AgeBegin)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -931,29 +1070,11 @@ private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Panel panel3; private System.Windows.Forms.Panel panel2; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.ComboBox cboDepartment; - private System.Windows.Forms.DateTimePicker dtpBegInDate; - private System.Windows.Forms.Label label2; - private System.Windows.Forms.Label label3; - private System.Windows.Forms.DateTimePicker dtpEndDate; private System.Windows.Forms.ToolStripButton tsbReviewApply; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripButton tsbExportExcel; private System.Windows.Forms.Button btnFind; - private System.Windows.Forms.Panel panel4; - private System.Windows.Forms.RadioButton rboZQ; - private System.Windows.Forms.RadioButton rboJZ; - private System.Windows.Forms.Label label20; - private System.Windows.Forms.Label label4; - private DevComponents.DotNetBar.Controls.TokenEditor tokenEditor1; - private System.Windows.Forms.TextBox txtName; - private System.Windows.Forms.Label label5; - private System.Windows.Forms.TextBox txtArchivesNo; - private System.Windows.Forms.Label label6; - private DevComponents.DotNetBar.Controls.TokenEditor tokenEditor2; - private System.Windows.Forms.Label label7; - private System.Windows.Forms.DataGridView dgv; + private DevComponents.DotNetBar.Controls.DataGridViewX dgv; private System.Windows.Forms.DataGridViewCheckBoxColumn CheckBoxColumn; private System.Windows.Forms.DataGridViewTextBoxColumn ApplyId; private System.Windows.Forms.DataGridViewTextBoxColumn StateColumn; @@ -981,7 +1102,7 @@ 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 OperationCut; private System.Windows.Forms.DataGridViewTextBoxColumn OperationPositionName; private System.Windows.Forms.DataGridViewTextBoxColumn OperationBodyPositionName; private System.Windows.Forms.DataGridViewTextBoxColumn OperationLevelNameColumn; @@ -996,14 +1117,38 @@ private System.Windows.Forms.DataGridViewTextBoxColumn IsNotPlanReturnOperation; private System.Windows.Forms.DataGridViewTextBoxColumn RemarkColumn; private System.Windows.Forms.DataGridViewTextBoxColumn OperatorName; + private System.Windows.Forms.NumericUpDown AgeEnd; + private System.Windows.Forms.NumericUpDown AgeBegin; + private System.Windows.Forms.Label label14; + private DevComponents.DotNetBar.Controls.CheckBoxX cboIsNotPlanReturnOperation; + private System.Windows.Forms.TextBox txtName; + private System.Windows.Forms.Label label5; private System.Windows.Forms.TextBox txtOperation; private System.Windows.Forms.Label label9; + private System.Windows.Forms.TextBox txtArchivesNo; + private System.Windows.Forms.Label label6; 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 DevComponents.DotNetBar.Controls.TokenEditor tokenEditor2; + private DevComponents.DotNetBar.Controls.TokenEditor tokenEditor1; private System.Windows.Forms.Label label10; - private System.Windows.Forms.RadioButton rboZY; - private DevComponents.DotNetBar.Controls.CheckBoxX cboIsNotPlanReturnOperation; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Label label11; + private System.Windows.Forms.Label label15; + private System.Windows.Forms.Label label20; + private System.Windows.Forms.Label label8; + private System.Windows.Forms.Label label7; + private System.Windows.Forms.DateTimePicker dtpBegInDate; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.DateTimePicker dtpEndDate; + private System.Windows.Forms.ComboBox cmbPatType; + private System.Windows.Forms.ComboBox txtASALevel; + private System.Windows.Forms.ComboBox txtOperationCut; + private System.Windows.Forms.ComboBox cboOperationLevel; + private System.Windows.Forms.ComboBox cmbOpeType; + private System.Windows.Forms.ComboBox cboDepartment; + private System.Windows.Forms.Label label1; } } \ No newline at end of file diff --git a/AIMS/OperationAfter/frmOperationManage.cs b/AIMS/OperationAfter/frmOperationManage.cs index e3997b5..14aecd5 100644 --- a/AIMS/OperationAfter/frmOperationManage.cs +++ b/AIMS/OperationAfter/frmOperationManage.cs @@ -5,6 +5,7 @@ using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; +using System.IO; using System.Linq; using System.Text; using System.Windows.Forms; @@ -52,7 +53,7 @@ namespace AIMS.OperationAfter.UI 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,11", "手术停止")); - tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[0]); + tokenEditor1.SelectedTokens.Add(tokenEditor1.Tokens[3]); List rooms = BOperationRoom.GetOperationRooms("IsValid=1 and Site='手术室'"); @@ -65,6 +66,36 @@ namespace AIMS.OperationAfter.UI { tokenEditor3.Tokens.Add(new DevComponents.DotNetBar.Controls.EditToken(item.Id.ToString(), item.Name)); } + + BindBasicDictionaryToComboBox(txtASALevel, "ASA分级"); + BindBasicDictionaryToComboBox(txtOperationCut, "手术切口"); + + List basicDictionary = BOperationLevel.Select(); + basicDictionary.Insert(0, new OperationLevel() { Id = -1, Name = "" }); + cboOperationLevel.DataSource = basicDictionary; + + cboOperationLevel.DisplayMember = "Name"; + cboOperationLevel.ValueMember = "Id"; + cboOperationLevel.SelectedIndex = -1; + + btnFind_Click(null, null); + } + + /// + /// 绑定基础表项目数据 到 ComboBox + /// + /// + /// + public static void BindBasicDictionaryToComboBox(ComboBox loadCbo, string setDataName) + { + BasicDictionary basicDictionary = BBasicDictionary.GetBasicDictionaryByName(setDataName); + if (basicDictionary == null) return; + basicDictionary.SubItem.Insert(0, new BasicDictionary() { Id = -1, Name = "" }); + loadCbo.DataSource = basicDictionary.SubItem; + + loadCbo.DisplayMember = "Name"; + loadCbo.ValueMember = "Id"; + loadCbo.SelectedIndex = -1; } private void tsbExit_Click(object sender, EventArgs e) @@ -104,25 +135,24 @@ namespace AIMS.OperationAfter.UI { var item = tokenEditor3.SelectedTokens[i]; if (i == tokenEditor3.SelectedTokens.Count - 1) - Anaes += item.Value ; + Anaes += item.Value; else Anaes += item.Value + ","; } string type = ""; - if (rboZQ.Checked == true) - type = "择期"; - if (rboJZ.Checked == true) - type = "急诊"; + if (cmbOpeType.Text != "") + type = cmbOpeType.Text; string type1 = ""; - if (rboZY.Checked == true) - type1 = "住院"; - if (rboMZ.Checked == true) - type1 = "门诊"; + if (cmbPatType.Text != "") + type = cmbPatType.Text; string inNO = txtArchivesNo.Text; string name = txtName.Text; + string cut = txtOperationCut.Text; + string level = cboOperationLevel.Text; + string asa = txtASALevel.Text; DataTable dt = BOperationApply.GetOperationDoingDataTable(dtpBegInDate.Value.ToString("yyyy-MM-dd"), dtpEndDate.Value.AddDays(1).ToString("yyyy-MM-dd")); string Where = ""; @@ -131,7 +161,7 @@ namespace AIMS.OperationAfter.UI else Where += " StateId IN (" + state + ") "; if (Department != "") - Where += " and ApplyDepName LIKE '%" + Department + "%' "; + Where += " and ApplyDeptName LIKE '%" + Department + "%' "; if (Room != "") Where += " and OperationRoomId IN (" + Room + ") "; if (Anaes != "") @@ -140,16 +170,62 @@ namespace AIMS.OperationAfter.UI Where += " and OperationType='" + type + "' "; if (type1 != "") Where += " and PatientType='" + type1 + "' "; + if (cut != "") + Where += " and OperationCut='" + cut + "' "; + if (asa != "") + Where += " and ASALevelName='" + asa + "' "; + if (level != "") + Where += " and OperationLevel='" + level + "' "; if (inNO != "") Where += " and (MdrecNo LIKE '%" + inNO + "%' or PatientName LIKE '%" + inNO + "%' ) "; if (name != "") Where += " and (OperationDoctor LIKE '%" + name + "%' or Assistant LIKE '%" + name + "%' or AnesthesiaDoctor LIKE '%" + name + "%' or InstrumentNurse LIKE '%" + name + "%' or TourNurse LIKE '%" + name + "%' ) "; + if (AgeBegin.Value != 0 || AgeEnd.Value != 100) + { + Where += " and (AgeNum >="+AgeBegin.Value+" and AgeNum <="+ AgeEnd.Value+") "; + } if (cboIsNotPlanReturnOperation.Checked == true) - Where += " and IsNotPlanReturnOperation=1 "; + Where += " and IsNotPlanReturnOperation ='是' "; if (txtOperation.Text != "") - Where += " and (ApplyOperationInfoName LIKE '%" + txtOperation.Text + "%' or OperationInfoName LIKE '%" + txtOperation.Text + "%' ) "; + Where += " and (ApplyOperationInfoName LIKE '%" + txtOperation.Text + "%' or OperationInfoName LIKE '%" + txtOperation.Text + "%' ) "; + DataTable dataTable = AIMSExtension.PublicMethod.GetNewDataTable(dt, Where, ""); + foreach (DataRow item in dataTable.Rows) + { + if (item["StateId"].ToString() != "10" && item["StateId"].ToString() != "10") + { + item["Remark"] = ""; + item["OperatorName"] = ""; + } + if (item["RoomHourTimeSpan"].ToString() != "") + { + double RoomHourTimeSpan = 0; + bool isNum = double.TryParse(item["RoomHourTimeSpan"].ToString(), out RoomHourTimeSpan); + if (isNum) + { + item["RoomHourTimeSpan"] = Math.Round(RoomHourTimeSpan, 1).ToString(); + } + } + if (item["OperationHourTimeSpan"].ToString() != "") + { + double OperationHourTimeSpan = 0; + bool isNum = double.TryParse(item["OperationHourTimeSpan"].ToString(), out OperationHourTimeSpan); + if (isNum) + { + item["OperationHourTimeSpan"] = Math.Round(OperationHourTimeSpan, 1).ToString(); + } + } + if (item["AnaesthesiaHourTimeSpan"].ToString() != "") + { + double AnaesthesiaHourTimeSpan = 0; + bool isNum = double.TryParse(item["AnaesthesiaHourTimeSpan"].ToString(), out AnaesthesiaHourTimeSpan); + if (isNum) + { + item["AnaesthesiaHourTimeSpan"] = Math.Round(AnaesthesiaHourTimeSpan, 1).ToString(); + } + } - dgv.DataSource = AIMSExtension.PublicMethod.GetNewDataTable(dt, Where, ""); + } + dgv.DataSource = dataTable; //for (int i = 0; i < dgv.Rows.Count; i++) //{ @@ -201,11 +277,86 @@ namespace AIMS.OperationAfter.UI private void tsbPrint_Click(object sender, EventArgs e) { - string Department = cboDepartment.Text; - if (cboDepartment.Text == "全部科室") + if (dgv.Rows.Count < 1 || dgv.Rows.Count < 1) { - Department = ""; + MessageBox.Show("没有记录,请查询到数据后再导出数据到Excel"); + return; } + DataToExcel(dgv); + } + public static void DataToExcel(DataGridView m_DataView) + { + SaveFileDialog kk = new SaveFileDialog(); + kk.Title = "保存EXECL文件"; + kk.Filter = "EXECL文件(*.xls) |*.xls |所有文件(*.*) |*.*"; + kk.FilterIndex = 1; + if (kk.ShowDialog() == DialogResult.OK) + { + string FileName = kk.FileName; + if (File.Exists(FileName)) + File.Delete(FileName); + FileStream objFileStream; + StreamWriter objStreamWriter; + string strLine = ""; + objFileStream = new FileStream(FileName, FileMode.OpenOrCreate, FileAccess.Write); + objStreamWriter = new StreamWriter(objFileStream, System.Text.Encoding.Unicode); + for (int i = 0; i < m_DataView.Columns.Count; i++) + { + if (m_DataView.Columns[i].Visible == true) + { + strLine = strLine + m_DataView.Columns[i].HeaderText.ToString() + Convert.ToChar(9); + } + } + objStreamWriter.WriteLine(strLine); + strLine = ""; + + for (int i = 0; i < m_DataView.Rows.Count; i++) + { + if (m_DataView.Columns[0].Visible == true) + { + if (m_DataView.Rows[i].Cells[0].Value == null) + strLine = strLine + " " + Convert.ToChar(9); + else + strLine = strLine + m_DataView.Rows[i].Cells[0].Value.ToString() + Convert.ToChar(9); + } + for (int j = 1; j < m_DataView.Columns.Count; j++) + { + if (m_DataView.Columns[j].Visible == true) + { + if (m_DataView.Rows[i].Cells[j].Value == null) + strLine = strLine + " " + Convert.ToChar(9); + else + { + string rowstr = ""; + rowstr = m_DataView.Rows[i].Cells[j].Value.ToString(); + if (rowstr.IndexOf("\r\n") > 0) + rowstr = rowstr.Replace("\r\n", " "); + if (rowstr.IndexOf("\t") > 0) + rowstr = rowstr.Replace("\t", " "); + strLine = strLine + rowstr + Convert.ToChar(9); + } + } + } + objStreamWriter.WriteLine(strLine); + strLine = ""; + } + objStreamWriter.Close(); + objFileStream.Close(); + MessageBox.Show("保存成功!", "系统提示"); + } + } + + private void dgv_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) + { + Rectangle rectangle = new Rectangle(e.RowBounds.Location.X, + e.RowBounds.Location.Y, + dgv.RowHeadersWidth - 4, + e.RowBounds.Height); + TextRenderer.DrawText(e.Graphics, (e.RowIndex + 1).ToString(), + dgv.RowHeadersDefaultCellStyle.Font, + rectangle, + dgv.RowHeadersDefaultCellStyle.ForeColor, + TextFormatFlags.VerticalCenter | TextFormatFlags.Right); } } } diff --git a/AIMS/OperationAfter/frmOperationManage.resx b/AIMS/OperationAfter/frmOperationManage.resx index 50392d3..b0f528c 100644 --- a/AIMS/OperationAfter/frmOperationManage.resx +++ b/AIMS/OperationAfter/frmOperationManage.resx @@ -201,7 +201,7 @@ True - + True diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs index 3de998c..211c2f0 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordBill2.cs @@ -77,7 +77,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI this.picAnesEnd.BackgroundImage = global::AIMS.Properties.Resources.麻醉结束; this.picOutRoom.BackgroundImage = global::AIMS.Properties.Resources.出手术室; #endregion - AIMSExtension.PublicMethod.SetLocalDateTime(); panel8.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel8_MouseWheel); panel82.MouseWheel += new System.Windows.Forms.MouseEventHandler(panel82_MouseWheel); } @@ -741,8 +740,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (GetOpeState(ref messing) == false) { if (messing != "") MessageBox.Show(messing, "系统提示"); - //if (messing == "请填写手术不良事件!") - // btnAdverseFactEvents_Click(null, null); + if (messing == "请与手术信息选择手术分级!" || messing == "请与手术信息选择手术切口!") + btnOperationInfo_Click(null, null); return; } } @@ -1100,7 +1099,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 @@ -1475,7 +1474,7 @@ 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); if (nowPhysioData.HR != null && nowPhysioData.HR.ToString() != string.Empty && nowPhysioData.HR.ToString() != "NaN" && nowPhysioData.HR.ToString() != "NULL") @@ -1520,7 +1519,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } string szyssy = ssy + "/" + szy; - lblDia.Text = szyssy == "/" ? "---/---" : szyssy; + lblDia.Text = szyssy == "/" ? "---/---" : szyssy; } else { @@ -2065,15 +2064,8 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private bool GetOpeState(ref string message) { bool isTrue = true; - string anaesName = DBManage.GetDictionaryValuesById(_record.AnaesthesiaMethodName, "麻醉方式"); - if (_record.AnaesthesiaMethodName == null || _record.AnaesthesiaMethodName.ToString().Trim() == "") - { - message = "请添加麻醉方法!"; - isTrue = false; - } - - if (anaesName.Contains("全身麻醉")) + if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") { if (_record.AnaseDataQualityRecordList == null || _record.AnaseDataQualityRecordList.Count <= 0) { @@ -2092,12 +2084,11 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI // isTrue = false; //} - if (_record.AnesthesiaDoctor != null && _record.AnesthesiaDoctor.Trim() != "") - if (_record.ASALevel == null || _record.ASALevel == null) - { - message = "请添写ASA分级!"; - isTrue = false; - } + if (_record.ASALevel == null || _record.ASALevel == null) + { + message = "请添写ASA分级!"; + isTrue = false; + } if (_record.OperationDoctor == null || _record.OperationDoctor.Trim() == "") { @@ -2105,6 +2096,17 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI isTrue = false; } + if (_record.OpeRecordInfo.OperationLevel == null || _record.OpeRecordInfo.OperationLevel.ToString().Trim() == "") + { + message = "请与手术信息选择手术分级!"; + isTrue = false; + } + if (_record.OpeRecordInfo.OperationCut == null || _record.OpeRecordInfo.OperationCut.ToString().Trim() == "") + { + message = "请与手术信息选择手术切口!"; + isTrue = false; + } + } return isTrue; diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs index e5bdfa4..2cf77e8 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.Designer.cs @@ -939,7 +939,7 @@ // this.label26.AutoSize = true; this.label26.Font = new System.Drawing.Font("微软雅黑", 12F); - this.label26.Location = new System.Drawing.Point(37, 105); + this.label26.Location = new System.Drawing.Point(414, 106); this.label26.Name = "label26"; this.label26.Size = new System.Drawing.Size(74, 21); this.label26.TabIndex = 851; @@ -949,7 +949,7 @@ // this.label27.AutoSize = true; this.label27.Font = new System.Drawing.Font("微软雅黑", 12F); - this.label27.Location = new System.Drawing.Point(519, 105); + this.label27.Location = new System.Drawing.Point(121, 108); this.label27.Name = "label27"; this.label27.Size = new System.Drawing.Size(74, 21); this.label27.TabIndex = 850; @@ -975,7 +975,7 @@ this.txtTourNurse.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.txtTourNurse.DisabledBackColor = System.Drawing.Color.White; this.txtTourNurse.ForeColor = System.Drawing.Color.Black; - this.txtTourNurse.Location = new System.Drawing.Point(129, 106); + this.txtTourNurse.Location = new System.Drawing.Point(506, 107); this.txtTourNurse.Name = "txtTourNurse"; this.txtTourNurse.Size = new System.Drawing.Size(120, 22); this.txtTourNurse.TabIndex = 847; @@ -1001,7 +1001,7 @@ this.txtInstrumentNurse.Border.CornerType = DevComponents.DotNetBar.eCornerType.Square; this.txtInstrumentNurse.DisabledBackColor = System.Drawing.Color.White; this.txtInstrumentNurse.ForeColor = System.Drawing.Color.Black; - this.txtInstrumentNurse.Location = new System.Drawing.Point(599, 106); + this.txtInstrumentNurse.Location = new System.Drawing.Point(201, 109); this.txtInstrumentNurse.Name = "txtInstrumentNurse"; this.txtInstrumentNurse.Size = new System.Drawing.Size(120, 22); this.txtInstrumentNurse.TabIndex = 848; diff --git a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs index 7a9afc9..982129e 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmAnasRecordInstrument.cs @@ -328,11 +328,16 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } else { timeistrue = true; } - //if (EventName == "出室" && _record.StateName == "手术中" && state == 0) - //{ - // if (messing != "") MessageBox.Show(messing, "系统提示"); - // return; - //} + if (EventName == "出室" && _record.StateName == "手术中" && state == 0) + { + if (GetOpeState(ref messing) == false) + { + if (messing != "") MessageBox.Show(messing, "系统提示"); + if (messing == "请与手术信息选择手术分级!" || messing == "请与手术信息选择手术切口!") + btnOperationInfo_Click(null, null); + return; + } + } if (timeistrue == false) { if (tb.Tag != null) tb.Value = DateTime.Parse(tb.Tag.ToString()); @@ -946,30 +951,10 @@ 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(); } @@ -977,9 +962,32 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI { FirstbtnEnter(); } + SelectInstrumentNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 6); + if (SelectInstrumentNurseData.Count > 0) + { + txtInstrumentNurse.Text = ""; + + foreach (int RowId in SelectInstrumentNurseData) + { + txtInstrumentNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + txtInstrumentNurse.Text = txtInstrumentNurse.Text.Substring(0, txtInstrumentNurse.Text.LastIndexOf(",")); + } + + SelectTourNurseData = BFactPersonDuty.GetPersonIdList(_record.PatientId.Value, 7); + if (SelectTourNurseData.Count > 0) + { + txtTourNurse.Text = ""; + foreach (int RowId in SelectTourNurseData) + { + txtTourNurse.Text += BPerson.SelectSingle(RowId).Name + ","; + } + txtTourNurse.Text = txtTourNurse.Text.Substring(0, txtTourNurse.Text.LastIndexOf(",")); + } + zgcAnaesRecord.Refresh(); } - } + } private void DrawEvent() { @@ -1114,6 +1122,21 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } } + private bool GetOpeState(ref string message) + { + bool isTrue = true; + if (_record.OpeRecordInfo.OperationLevel == null || _record.OpeRecordInfo.OperationLevel.ToString().Trim() == "") + { + message = "请与手术信息选择手术分级!"; + isTrue = false; + } + if (_record.OpeRecordInfo.OperationCut == null || _record.OpeRecordInfo.OperationCut.ToString().Trim() == "") + { + message = "请与手术信息选择手术切口!"; + isTrue = false; + } + return isTrue; + } #endregion #region 右侧按钮 diff --git a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew2.cs b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew2.cs index 9602fcf..c5b893a 100644 --- a/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew2.cs +++ b/AIMS/OperationDoing/AnasRecordBill/frmOperationInfoNew2.cs @@ -74,7 +74,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI #region 初始化所有控件内容 private void InitData() - { + { listOnit = BPerson.GetruleAnesthesiaDoctor(""); this.txtruleAnesthesiaDoctor.Items.AddRange(listOnit.ToArray()); @@ -113,18 +113,44 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI #endregion #region 填充患者信息 + public void SetOPInfoNewOpeRecordInfo() + { + OperationRecordInfo OpeRecordInfo = BOperationRecordInfo.SelectSingle("OperationRecordId=" + _record.Id, null); + + _record.OpeRecordInfo.OperationLevel = OpeRecordInfo.OperationLevel; + _record.OpeRecordInfo.OperationLevelId = OpeRecordInfo.OperationLevelId; + _record.OpeRecordInfo.OperationCutId = OpeRecordInfo.OperationCutId; + _record.OpeRecordInfo.OperationCut = OpeRecordInfo.OperationCut; + _record.OpeRecordInfo.AnesthesiaSucceed = OpeRecordInfo.AnesthesiaSucceed; + _record.OpeRecordInfo.TourNurseSucceed = OpeRecordInfo.TourNurseSucceed; + _record.OpeRecordInfo.InstrumentNurseSucceed = OpeRecordInfo.InstrumentNurseSucceed; + _record.OpeRecordInfo.AnesthesiaSucceedTime = OpeRecordInfo.AnesthesiaSucceedTime; + _record.OpeRecordInfo.InstrumentNurseSucceedTime = OpeRecordInfo.InstrumentNurseSucceedTime; + _record.OpeRecordInfo.TourNurseSucceedTime = OpeRecordInfo.TourNurseSucceedTime; + _record.OpeRecordInfo.Experts = OpeRecordInfo.Experts; + _record.OpeRecordInfo.RuleAnesthesiaDoctor = OpeRecordInfo.RuleAnesthesiaDoctor; + _record.OpeRecordInfo.RuleNurse = OpeRecordInfo.RuleNurse; + _record.OpeRecordInfo.AnesthesiaMethodFirstName = OpeRecordInfo.AnesthesiaMethodFirstName; + _record.OpeRecordInfo.AnesthesiaMethodLastName = OpeRecordInfo.AnesthesiaMethodLastName; + _record.OpeRecordInfo.AnesthesiaMethodChangeReason = OpeRecordInfo.AnesthesiaMethodChangeReason; + _record.OpeRecordInfo.AnesthesiaMethodChangeTime = OpeRecordInfo.AnesthesiaMethodChangeTime; + + + } public void FullPatientInfo() { try { + if (_record.OpeRecordInfo != null) { + SetOPInfoNewOpeRecordInfo(); OPInfo = _record.OpeRecordInfo; cboOperationLevel.Text = OPInfo.OperationLevel; cboOperationLevel.Tag = OPInfo.OperationLevelId; txtOperationCut.Tag = OPInfo.OperationCutId; - txtOperationCut.Text = OPInfo.OperationCut; + txtOperationCut.Text = OPInfo.OperationCut; //麻醉医生 || 麻醉接台 || 巡回护士|| 护士接台||器械护士||器械接台||体外循环 txtAnesthesiaByDoctor.Text = OPInfo.AnesthesiaSucceed; txtTourNurseSucceed.Text = OPInfo.TourNurseSucceed; @@ -150,10 +176,10 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI if (OPInfo.Experts != null) txtexperts.Text = OPInfo.Experts; if (OPInfo.RuleAnesthesiaDoctor != null) txtruleAnesthesiaDoctor.Text = OPInfo.RuleAnesthesiaDoctor; if (OPInfo.RuleNurse != null) txtruleNurse.Text = OPInfo.RuleNurse; - + txtOperationCut.Text = OPInfo.OperationCut; - cboOperationLevel.Text = OPInfo.OperationLevel; - + cboOperationLevel.Text = OPInfo.OperationLevel; + if (OPInfo.AnesthesiaMethodFirstName != null) { rdoYes.Checked = true; @@ -161,7 +187,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI txtAnaesthesiaMethod.Tag = OPInfo.AnesthesiaMethodLastName; txtCause.Text = OPInfo.AnesthesiaMethodChangeReason; if (OPInfo.AnesthesiaMethodChangeTime != null) dtpTime.Value = OPInfo.AnesthesiaMethodChangeTime.Value; - } + } } } catch (Exception ex) @@ -185,9 +211,9 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI OPInfo.Experts = txtexperts.Text.Trim(); OPInfo.RuleAnesthesiaDoctor = txtruleAnesthesiaDoctor.Text.Trim(); OPInfo.RuleNurse = txtruleNurse.Text.Trim(); - + OPInfo.OperationCut = txtOperationCut.Text; - OPInfo.OperationLevel = cboOperationLevel.Text; + OPInfo.OperationLevel = cboOperationLevel.Text; if (rdoYes.Checked == true && txtAnaesthesiaMethod.Text != "") { @@ -196,7 +222,13 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI OPInfo.AnesthesiaMethodChangeReason = txtCause.Text.Trim(); OPInfo.AnesthesiaMethodChangeTime = dtpTime.Value; } - + else + { + OPInfo.AnesthesiaMethodFirstName = null; + OPInfo.AnesthesiaMethodChangeReason = null; + OPInfo.AnesthesiaMethodChangeTime = null; + } + OPInfo.OperatorId = PublicMethod.OperatorName; if (OPInfo.Id == null) { @@ -247,7 +279,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void txtTourNurseSucceed_TextChanged(object sender, EventArgs e) { setDoctor(sender as TextBox, "护士"); - OPInfo.TourNurseSucceed = txtTourNurseSucceed.Text; + OPInfo.TourNurseSucceed = txtTourNurseSucceed.Text; if (txtTourNurseSucceed.Text != "") { txtDateTime_MouseDown(dtpTourNurseSucceed, null); @@ -269,7 +301,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI private void txtInstrumentNurseSucceed_TextChanged(object sender, EventArgs e) { setDoctor(sender as TextBox, "护士"); ; - OPInfo.InstrumentNurseSucceed = txtInstrumentNurseSucceed.Text; + OPInfo.InstrumentNurseSucceed = txtInstrumentNurseSucceed.Text; if (txtInstrumentNurseSucceed.Text != "") { txtDateTime_MouseDown(dtpInstrumentNurseSucceed, null); @@ -326,7 +358,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI } #endregion - + #region 手术特殊事件时间点处理事件 public void txtDateTime_MouseDown(object sender, MouseEventArgs e) { @@ -654,7 +686,7 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI chkdmcc = null; } - } + } #endregion #region 接台验证 @@ -781,6 +813,6 @@ namespace AIMS.OperationDoing.AnasRecordBill.UI int idxStart = txtAnaesthesiaMethod.Text.LastIndexOf(" ,"); txtAnaesthesiaMethod.Text = txtAnaesthesiaMethod.Text.Substring(0, idxStart); } - } + } } } diff --git a/AIMS/OperationFront/FrmScheduling2.cs b/AIMS/OperationFront/FrmScheduling2.cs index b3505f2..f999955 100644 --- a/AIMS/OperationFront/FrmScheduling2.cs +++ b/AIMS/OperationFront/FrmScheduling2.cs @@ -39,7 +39,7 @@ namespace AIMS.OperationFront.UI private Dictionary dicSchedulingTypeIdName = new Dictionary(); private string[] validSchedulingTypes = null; private string[] doctorRoles = new string[1] { "医生" }; - private string[] nurseRoles = new string[3] { "洗手", "巡回", " " }; + private string[] nurseRoles = new string[3] { " ", "洗手", "巡回" }; private List listHeaderChinese; private List listHeaderWeek; private List listHeaderDays; @@ -609,22 +609,21 @@ namespace AIMS.OperationFront.UI } else { - dr2["Role"] = "手术室护士"; - //dv2.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId); - //if (dv2.Count > 0) - //{ - // dr2["OperationRoom"] = getOperationRoomName((int)dv2[0]["OperationRoomId"]); - // dr2["Role"] = dv2[0]["nurseType"]; - // dr2["BeginDate"] = dv2[0]["BeginTime"]; - // dr2["EndDate"] = dv2[0]["EndTime"]; - //} - //else - //{ - // //dr2["OperationRoom"] = "";// getOperationRoomName(int.Parse(dr["OperationRoomId"].ToString())); - // //dr2["Role"] = dr["NurseRole"].ToString(); - // //dr2["BeginDate"] = beginTime; - // //dr2["EndDate"] = endTime; - //} + dv2.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId); + if (dv2.Count > 0) + { + dr2["OperationRoom"] = getOperationRoomName((int)dv2[0]["OperationRoomId"]); + dr2["Role"] = dv2[0]["nurseType"]; + dr2["BeginDate"] = dv2[0]["BeginTime"]; + dr2["EndDate"] = dv2[0]["EndTime"]; + } + else + { + //dr2["OperationRoom"] = "";// getOperationRoomName(int.Parse(dr["OperationRoomId"].ToString())); + //dr2["Role"] = dr["NurseRole"].ToString(); + //dr2["BeginDate"] = beginTime; + //dr2["EndDate"] = endTime; + } } dv1.RowFilter = string.Format("ScheduleMonth={0} and WorkerId={1}", strMonth, workerId); int n = dv1.Count; @@ -675,8 +674,14 @@ namespace AIMS.OperationFront.UI GetDataTableDoctorsNursesRoom(); this.WindowState = FormWindowState.Maximized; - dateTimePicker1.Value = DateTime.Now.Date; + dateTimePicker1.Value = DateTime.Now.Date; + radioDoctor.Focus(); + if (PublicMethod.RoleId == 6 || PublicMethod.RoleId == 8 || PublicMethod.RoleId == 10) + { + radioNurse.Checked = true; + radioNurse.Focus(); + } } private void ChxSelectAllRows_CheckedChanged(object sender, EventArgs e) @@ -940,34 +945,34 @@ namespace AIMS.OperationFront.UI } SetOperatorId(dataTable, operatorId); - ///*转换护士值班数据*/ - ///*SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom*/ - //DataTable dataTable2 = dtSchedulingNurseToOperationRoom.Clone(); - //for (int i = 0, n = dvMain.Count; i < n; i++) - //{ - // DataRowView drv = dvMain[i]; - // DataRow dr; - // int OperationRoomId; - // DateTime beginTime, endTime; - // OperationRoomId = GetOperationRoomId(drv["OperationRoom"].ToString()); - // if (OperationRoomId > 0) - // { - // beginTime = Convert.ToDateTime(drv["BeginDate"]); - // endTime = Convert.ToDateTime(drv["EndDate"]); - // if (beginTime.Year < year) beginTime = monthFirstDay; - // if (endTime.Year < year) endTime = monthLastDay; + /*转换护士值班数据*/ + /*SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom*/ + DataTable dataTable2 = dtSchedulingNurseToOperationRoom.Clone(); + for (int i = 0, n = dvMain.Count; i < n; i++) + { + DataRowView drv = dvMain[i]; + DataRow dr; + int OperationRoomId; + DateTime beginTime, endTime; + OperationRoomId = GetOperationRoomId(drv["OperationRoom"].ToString()); + if (OperationRoomId > 0) + { + beginTime = Convert.ToDateTime(drv["BeginDate"]); + endTime = Convert.ToDateTime(drv["EndDate"]); + if (beginTime.Year < year) beginTime = monthFirstDay; + if (endTime.Year < year) endTime = monthLastDay; - // dr = dataTable2.NewRow(); - // dr["WorkerId"] = (int)drv["WorkerId"]; - // dr["OperationRoomId"] = OperationRoomId; - // dr["ScheduleMonth"] = scheduleMonth; - // dr["nurseType"] = drv["Role"].ToString(); - // dr["beginTime"] = beginTime; - // dr["endTime"] = endTime; - // dr["Remark"] = drv["Remark"].ToString(); - // dataTable2.Rows.Add(dr); - // } - //} + dr = dataTable2.NewRow(); + dr["WorkerId"] = (int)drv["WorkerId"]; + dr["OperationRoomId"] = OperationRoomId; + dr["ScheduleMonth"] = scheduleMonth; + dr["nurseType"] = drv["Role"].ToString(); + dr["beginTime"] = beginTime; + dr["endTime"] = endTime; + dr["Remark"] = drv["Remark"].ToString(); + dataTable2.Rows.Add(dr); + } + } try { @@ -981,7 +986,7 @@ namespace AIMS.OperationFront.UI dbHelper.Execute(string.Format("delete SchedulingNew where ScheduleMonth={0} and WorkersType=1", scheduleMonth)); dbHelper.Execute(string.Format("delete SchedulingNurseToOperationRoom where ScheduleMonth={0}", scheduleMonth)); int n = dbHelper.DataTableSave(dataTable, "select id, workerId, WorkersType, ScheduleMonth, ScheduleDay, SchedulingType, SchedulingDate, OperatorId, OperatorTime, sbsj, xbsj from SchedulingNew"); - //n = dbHelper.DataTableSave(dataTable2, "SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom"); + n = dbHelper.DataTableSave(dataTable2, "SELECT Id, WorkerId, OperationRoomId, nurseType, beginTime, endTime, ScheduleMonth, Remark FROM SchedulingNurseToOperationRoom"); dbHelper.Commit(); dtMainTable.AcceptChanges(); MessageBox.Show("保存成功。", "提示信息"); @@ -1329,6 +1334,7 @@ namespace AIMS.OperationFront.UI private void dateTimePicker1_ValueChanged(object sender, EventArgs e) { + /*改变月份*/ GetDataTableSchedulingNew(); } @@ -2123,5 +2129,31 @@ namespace AIMS.OperationFront.UI } return result; } + + private void dgvShiftPlan_CellClick(object sender, DataGridViewCellEventArgs e) + { + if (e.ColumnIndex == -1 || e.RowIndex == -1) return; + int x = dgvShiftPlan.CurrentCell.ColumnIndex;//获取鼠标的点击列 + if (x == 0)//点击第一列是单选。 + { + for (int i = 0; i < dgvShiftPlan.Rows.Count; i++) + { + DataGridViewCheckBoxCell checkcell = (DataGridViewCheckBoxCell)dgvShiftPlan.Rows[i].Cells[0]; + checkcell.Value = false; + } + DataGridViewCheckBoxCell ifcheck = (DataGridViewCheckBoxCell)dgvShiftPlan.Rows[e.RowIndex].Cells[0]; + ifcheck.Value = true; + } + } + + private void btnupMonth_Click(object sender, EventArgs e) + { + dateTimePicker1.Value = dateTimePicker1.Value.AddMonths(-1); + } + + private void btnDownMonth_Click(object sender, EventArgs e) + { + dateTimePicker1.Value = dateTimePicker1.Value.AddMonths(1); + } } } diff --git a/AIMS/OperationFront/FrmScheduling2.designer.cs b/AIMS/OperationFront/FrmScheduling2.designer.cs index f5e9529..471cf1b 100644 --- a/AIMS/OperationFront/FrmScheduling2.designer.cs +++ b/AIMS/OperationFront/FrmScheduling2.designer.cs @@ -30,13 +30,10 @@ { System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = 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 dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle(); @@ -45,57 +42,28 @@ 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 dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FrmScheduling2)); this.panelAll = new System.Windows.Forms.Panel(); this.panelBody = new System.Windows.Forms.Panel(); this.panelBodyB = new System.Windows.Forms.Panel(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.colChecked = new System.Windows.Forms.DataGridViewCheckBoxColumn(); - this.ColXh = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.WorkerId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.OperationRoom = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.BeginDate = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); this.EndDate = new DevComponents.DotNetBar.Controls.DataGridViewDateTimeInputColumn(); - this.Role = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date14 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date15 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date16 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date17 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date18 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date19 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date20 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date21 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date22 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date23 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date24 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date25 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date26 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date27 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date28 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date29 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date30 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Date31 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel4 = new System.Windows.Forms.Panel(); this.chxModified = new System.Windows.Forms.CheckBox(); + this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); this.btnClearChecked = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); this.btnFresh = new System.Windows.Forms.Button(); this.btnDown = new System.Windows.Forms.Button(); this.btnPrint = new System.Windows.Forms.Button(); + this.panel3 = new System.Windows.Forms.Panel(); + this.radioNurse = new System.Windows.Forms.RadioButton(); + this.radioDoctor = new System.Windows.Forms.RadioButton(); this.btnUp = new System.Windows.Forms.Button(); this.chxOnlyShiftPlan = new System.Windows.Forms.CheckBox(); this.btnSave = new System.Windows.Forms.Button(); @@ -106,21 +74,7 @@ this.panelBodyT = new System.Windows.Forms.Panel(); this.panel2 = new System.Windows.Forms.Panel(); this.dgvShiftPlan = new System.Windows.Forms.DataGridView(); - this.ScheduleName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.Day1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); - this.Day13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.colChecked2 = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.panel2Top = new System.Windows.Forms.Panel(); this.btnShiftPlanDelete = new System.Windows.Forms.Button(); this.btnShiftPlanFresh = new System.Windows.Forms.Button(); @@ -128,10 +82,6 @@ this.label2 = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); this.dgvSchedulingType = new System.Windows.Forms.DataGridView(); - this.TypeId = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.ShiftName = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.BeginTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); - this.EndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.IsValid = new System.Windows.Forms.DataGridViewCheckBoxColumn(); this.panel1Top = new System.Windows.Forms.Panel(); this.chxHasInvaild = new System.Windows.Forms.CheckBox(); @@ -142,13 +92,8 @@ this.panelTop = new System.Windows.Forms.Panel(); this.panelTopT = new System.Windows.Forms.Panel(); this.btnPrintAttendance = new System.Windows.Forms.Button(); - this.dateTimePicker1 = new System.Windows.Forms.DateTimePicker(); - this.label1 = new System.Windows.Forms.Label(); this.btnAttendance = new System.Windows.Forms.Button(); this.labelTitle = new System.Windows.Forms.Label(); - this.panel3 = new System.Windows.Forms.Panel(); - this.radioNurse = new System.Windows.Forms.RadioButton(); - this.radioDoctor = new System.Windows.Forms.RadioButton(); this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -197,10 +142,70 @@ this.dataGridViewComboBoxColumn40 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.dataGridViewComboBoxColumn41 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.dataGridViewComboBoxColumn42 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn43 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn44 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn45 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.dataGridViewComboBoxColumn46 = new System.Windows.Forms.DataGridViewComboBoxColumn(); this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn9 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn10 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ColXh = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.colName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.WorkerId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.OperationRoom = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Role = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date14 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date15 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date16 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date17 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date18 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date19 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date20 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date21 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date22 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date23 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date24 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date25 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date26 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date27 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date28 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date29 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date30 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Date31 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Remark = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ScheduleName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Id = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.Day1 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day2 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day3 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day4 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day5 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day6 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day7 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day8 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day9 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day10 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day11 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day12 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.Day13 = new System.Windows.Forms.DataGridViewComboBoxColumn(); + this.TypeId = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.ShiftName = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.BeginTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.EndTime = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn11 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn12 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn13 = new System.Windows.Forms.DataGridViewTextBoxColumn(); @@ -208,11 +213,14 @@ this.dataGridViewTextBoxColumn15 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn16 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.dataGridViewTextBoxColumn17 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.btnupMonth = new System.Windows.Forms.Button(); + this.btnDownMonth = new System.Windows.Forms.Button(); this.panelAll.SuspendLayout(); this.panelBody.SuspendLayout(); this.panelBodyB.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); this.panel4.SuspendLayout(); + this.panel3.SuspendLayout(); this.panelBodyT.SuspendLayout(); this.panel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.dgvShiftPlan)).BeginInit(); @@ -222,7 +230,6 @@ this.panel1Top.SuspendLayout(); this.panelTop.SuspendLayout(); this.panelTopT.SuspendLayout(); - this.panel3.SuspendLayout(); this.SuspendLayout(); // // panelAll @@ -253,16 +260,17 @@ this.panelBodyB.Controls.Add(this.dataGridView1); this.panelBodyB.Controls.Add(this.panel4); this.panelBodyB.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelBodyB.Location = new System.Drawing.Point(0, 233); + this.panelBodyB.Location = new System.Drawing.Point(0, 302); this.panelBodyB.Margin = new System.Windows.Forms.Padding(2); this.panelBodyB.Name = "panelBodyB"; - this.panelBodyB.Size = new System.Drawing.Size(1415, 368); + this.panelBodyB.Size = new System.Drawing.Size(1415, 299); this.panelBodyB.TabIndex = 2; // // dataGridView1 // this.dataGridView1.AllowUserToAddRows = false; this.dataGridView1.AllowUserToDeleteRows = false; + this.dataGridView1.AllowUserToResizeRows = false; this.dataGridView1.BackgroundColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control; @@ -327,10 +335,11 @@ dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; this.dataGridView1.RowHeadersDefaultCellStyle = dataGridViewCellStyle6; + this.dataGridView1.RowHeadersVisible = false; this.dataGridView1.RowHeadersWidth = 51; this.dataGridView1.RowTemplate.Height = 27; this.dataGridView1.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridView1.Size = new System.Drawing.Size(1413, 324); + this.dataGridView1.Size = new System.Drawing.Size(1413, 255); this.dataGridView1.TabIndex = 0; this.dataGridView1.CellMouseDown += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dataGridView1_CellMouseDown); this.dataGridView1.CellValueChanged += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellValueChanged); @@ -348,49 +357,6 @@ this.colChecked.TrueValue = "1"; this.colChecked.Width = 40; // - // ColXh - // - this.ColXh.DataPropertyName = "xh"; - dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.ColXh.DefaultCellStyle = dataGridViewCellStyle2; - this.ColXh.HeaderText = "排序"; - this.ColXh.MinimumWidth = 6; - this.ColXh.Name = "ColXh"; - this.ColXh.Width = 40; - // - // colName - // - this.colName.DataPropertyName = "Name"; - dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); - this.colName.DefaultCellStyle = dataGridViewCellStyle3; - this.colName.HeaderText = "姓名"; - this.colName.MinimumWidth = 6; - this.colName.Name = "colName"; - this.colName.ReadOnly = true; - this.colName.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.colName.Width = 70; - // - // WorkerId - // - this.WorkerId.DataPropertyName = "WorkerId"; - this.WorkerId.HeaderText = "员工Id"; - this.WorkerId.MinimumWidth = 6; - this.WorkerId.Name = "WorkerId"; - this.WorkerId.Visible = false; - this.WorkerId.Width = 125; - // - // OperationRoom - // - this.OperationRoom.DataPropertyName = "OperationRoom"; - this.OperationRoom.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.OperationRoom.HeaderText = "手术间"; - this.OperationRoom.MaxDropDownItems = 12; - this.OperationRoom.MinimumWidth = 6; - this.OperationRoom.Name = "OperationRoom"; - this.OperationRoom.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.OperationRoom.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.OperationRoom.Width = 75; - // // BeginDate // // @@ -470,6 +436,1247 @@ this.EndDate.ShowUpDown = true; this.EndDate.Width = 50; // + // panel4 + // + this.panel4.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; + this.panel4.Controls.Add(this.chxModified); + this.panel4.Controls.Add(this.dateTimePicker1); + this.panel4.Controls.Add(this.label1); + this.panel4.Controls.Add(this.btnFresh); + this.panel4.Controls.Add(this.btnDown); + this.panel4.Controls.Add(this.btnPrint); + this.panel4.Controls.Add(this.panel3); + this.panel4.Controls.Add(this.btnDownMonth); + this.panel4.Controls.Add(this.btnupMonth); + this.panel4.Controls.Add(this.btnUp); + this.panel4.Controls.Add(this.chxOnlyShiftPlan); + this.panel4.Controls.Add(this.btnSave); + this.panel4.Controls.Add(this.textFind); + this.panel4.Controls.Add(this.btnExcel); + this.panel4.Controls.Add(this.btnDelete); + this.panel4.Controls.Add(this.labelScheduling); + this.panel4.Controls.Add(this.btnClearChecked); + this.panel4.Dock = System.Windows.Forms.DockStyle.Top; + this.panel4.Location = new System.Drawing.Point(0, 0); + this.panel4.Margin = new System.Windows.Forms.Padding(2); + this.panel4.Name = "panel4"; + this.panel4.Size = new System.Drawing.Size(1413, 42); + this.panel4.TabIndex = 1; + // + // chxModified + // + this.chxModified.AutoSize = true; + this.chxModified.Location = new System.Drawing.Point(640, 14); + this.chxModified.Margin = new System.Windows.Forms.Padding(2); + this.chxModified.Name = "chxModified"; + this.chxModified.Size = new System.Drawing.Size(108, 16); + this.chxModified.TabIndex = 17; + this.chxModified.Text = "只显示可用班次"; + this.chxModified.UseVisualStyleBackColor = true; + this.chxModified.Visible = false; + this.chxModified.CheckedChanged += new System.EventHandler(this.chxModified_CheckedChanged); + // + // dateTimePicker1 + // + this.dateTimePicker1.CalendarFont = new System.Drawing.Font("宋体", 10F); + this.dateTimePicker1.CustomFormat = "yyyy年MM月"; + this.dateTimePicker1.Font = new System.Drawing.Font("宋体", 10F); + this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; + this.dateTimePicker1.Location = new System.Drawing.Point(273, 11); + this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(2); + this.dateTimePicker1.Name = "dateTimePicker1"; + this.dateTimePicker1.Size = new System.Drawing.Size(97, 23); + this.dateTimePicker1.TabIndex = 1; + this.dateTimePicker1.Value = new System.DateTime(2020, 2, 9, 0, 0, 0, 0); + this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged); + // + // btnClearChecked + // + this.btnClearChecked.Location = new System.Drawing.Point(538, 8); + this.btnClearChecked.Margin = new System.Windows.Forms.Padding(2); + this.btnClearChecked.Name = "btnClearChecked"; + this.btnClearChecked.Size = new System.Drawing.Size(87, 28); + this.btnClearChecked.TabIndex = 16; + this.btnClearChecked.Text = "清空选择"; + this.btnClearChecked.UseVisualStyleBackColor = true; + this.btnClearChecked.Visible = false; + this.btnClearChecked.Click += new System.EventHandler(this.btnClearChecked_Click); + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(167, 16); + this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 12); + this.label1.TabIndex = 0; + this.label1.Text = "月份:"; + // + // btnFresh + // + this.btnFresh.Location = new System.Drawing.Point(1099, 8); + this.btnFresh.Margin = new System.Windows.Forms.Padding(2); + this.btnFresh.Name = "btnFresh"; + this.btnFresh.Size = new System.Drawing.Size(56, 28); + this.btnFresh.TabIndex = 15; + this.btnFresh.Text = "刷新"; + this.btnFresh.UseVisualStyleBackColor = true; + this.btnFresh.Click += new System.EventHandler(this.btnFresh_Click); + // + // btnDown + // + this.btnDown.Location = new System.Drawing.Point(536, 7); + this.btnDown.Name = "btnDown"; + this.btnDown.Size = new System.Drawing.Size(75, 28); + this.btnDown.TabIndex = 14; + this.btnDown.Text = "↓向下"; + this.btnDown.UseVisualStyleBackColor = true; + this.btnDown.Click += new System.EventHandler(this.btnDown_Click); + // + // btnPrint + // + this.btnPrint.Location = new System.Drawing.Point(834, 8); + this.btnPrint.Margin = new System.Windows.Forms.Padding(2); + this.btnPrint.Name = "btnPrint"; + this.btnPrint.Size = new System.Drawing.Size(56, 28); + this.btnPrint.TabIndex = 7; + this.btnPrint.Text = "打印"; + this.btnPrint.UseVisualStyleBackColor = true; + this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); + // + // panel3 + // + this.panel3.Controls.Add(this.radioNurse); + this.panel3.Controls.Add(this.radioDoctor); + this.panel3.Location = new System.Drawing.Point(11, 7); + this.panel3.Margin = new System.Windows.Forms.Padding(2); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(141, 30); + this.panel3.TabIndex = 2; + // + // radioNurse + // + this.radioNurse.AutoSize = true; + this.radioNurse.Location = new System.Drawing.Point(93, 6); + this.radioNurse.Margin = new System.Windows.Forms.Padding(2); + this.radioNurse.Name = "radioNurse"; + this.radioNurse.Size = new System.Drawing.Size(47, 16); + this.radioNurse.TabIndex = 1; + this.radioNurse.Text = "护士"; + this.radioNurse.UseVisualStyleBackColor = true; + this.radioNurse.CheckedChanged += new System.EventHandler(this.radioNurse_CheckedChanged); + // + // radioDoctor + // + this.radioDoctor.AutoSize = true; + this.radioDoctor.Checked = true; + this.radioDoctor.Location = new System.Drawing.Point(7, 6); + this.radioDoctor.Margin = new System.Windows.Forms.Padding(2); + this.radioDoctor.Name = "radioDoctor"; + this.radioDoctor.Size = new System.Drawing.Size(71, 16); + this.radioDoctor.TabIndex = 0; + this.radioDoctor.TabStop = true; + this.radioDoctor.Text = "麻醉医生"; + this.radioDoctor.UseVisualStyleBackColor = true; + this.radioDoctor.CheckedChanged += new System.EventHandler(this.radioDoctor_CheckedChanged); + // + // btnUp + // + this.btnUp.Location = new System.Drawing.Point(451, 8); + this.btnUp.Name = "btnUp"; + this.btnUp.Size = new System.Drawing.Size(75, 28); + this.btnUp.TabIndex = 13; + this.btnUp.Text = "↑向上"; + this.btnUp.UseVisualStyleBackColor = true; + this.btnUp.Click += new System.EventHandler(this.btnUp_Click); + // + // chxOnlyShiftPlan + // + this.chxOnlyShiftPlan.AutoSize = true; + this.chxOnlyShiftPlan.Location = new System.Drawing.Point(1179, 13); + this.chxOnlyShiftPlan.Margin = new System.Windows.Forms.Padding(2); + this.chxOnlyShiftPlan.Name = "chxOnlyShiftPlan"; + this.chxOnlyShiftPlan.Size = new System.Drawing.Size(108, 16); + this.chxOnlyShiftPlan.TabIndex = 12; + this.chxOnlyShiftPlan.Text = "只显示排班数据"; + this.chxOnlyShiftPlan.UseVisualStyleBackColor = true; + this.chxOnlyShiftPlan.Visible = false; + this.chxOnlyShiftPlan.CheckedChanged += new System.EventHandler(this.chxOnlyShiftPlan_CheckedChanged); + // + // btnSave + // + this.btnSave.Location = new System.Drawing.Point(763, 8); + this.btnSave.Margin = new System.Windows.Forms.Padding(2); + this.btnSave.Name = "btnSave"; + this.btnSave.Size = new System.Drawing.Size(56, 28); + this.btnSave.TabIndex = 4; + this.btnSave.Text = "保存"; + this.btnSave.UseVisualStyleBackColor = true; + this.btnSave.Click += new System.EventHandler(this.btnSave_Click); + // + // textFind + // + this.textFind.Location = new System.Drawing.Point(1406, 11); + this.textFind.Margin = new System.Windows.Forms.Padding(2); + this.textFind.Name = "textFind"; + this.textFind.Size = new System.Drawing.Size(129, 21); + this.textFind.TabIndex = 1; + this.textFind.Visible = false; + this.textFind.TextChanged += new System.EventHandler(this.textFind_TextChanged); + // + // btnExcel + // + this.btnExcel.Location = new System.Drawing.Point(905, 8); + this.btnExcel.Margin = new System.Windows.Forms.Padding(2); + this.btnExcel.Name = "btnExcel"; + this.btnExcel.Size = new System.Drawing.Size(85, 28); + this.btnExcel.TabIndex = 5; + this.btnExcel.Text = "导出Excel"; + this.btnExcel.UseVisualStyleBackColor = true; + this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click); + // + // btnDelete + // + this.btnDelete.Location = new System.Drawing.Point(1005, 8); + this.btnDelete.Margin = new System.Windows.Forms.Padding(2); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(79, 28); + this.btnDelete.TabIndex = 8; + this.btnDelete.Text = "清除排班"; + this.btnDelete.UseVisualStyleBackColor = true; + this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); + // + // labelScheduling + // + this.labelScheduling.AutoSize = true; + this.labelScheduling.Location = new System.Drawing.Point(1291, 14); + this.labelScheduling.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelScheduling.Name = "labelScheduling"; + this.labelScheduling.Size = new System.Drawing.Size(101, 12); + this.labelScheduling.TabIndex = 9; + this.labelScheduling.Text = "麻醉医生排班计划"; + this.labelScheduling.Visible = false; + // + // panelBodyT + // + this.panelBodyT.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.panelBodyT.Controls.Add(this.panel2); + this.panelBodyT.Controls.Add(this.panel1); + this.panelBodyT.Dock = System.Windows.Forms.DockStyle.Top; + this.panelBodyT.Location = new System.Drawing.Point(0, 0); + this.panelBodyT.Margin = new System.Windows.Forms.Padding(2); + this.panelBodyT.Name = "panelBodyT"; + this.panelBodyT.Size = new System.Drawing.Size(1415, 302); + this.panelBodyT.TabIndex = 1; + // + // panel2 + // + this.panel2.Controls.Add(this.dgvShiftPlan); + this.panel2.Controls.Add(this.panel2Top); + this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel2.Location = new System.Drawing.Point(454, 0); + this.panel2.Margin = new System.Windows.Forms.Padding(2); + this.panel2.Name = "panel2"; + this.panel2.Size = new System.Drawing.Size(959, 300); + this.panel2.TabIndex = 1; + // + // dgvShiftPlan + // + this.dgvShiftPlan.AllowUserToDeleteRows = false; + this.dgvShiftPlan.BackgroundColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvShiftPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; + this.dgvShiftPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvShiftPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.colChecked2, + this.ScheduleName, + this.Id, + this.Day1, + this.Day2, + this.Day3, + this.Day4, + this.Day5, + this.Day6, + this.Day7, + this.Day8, + this.Day9, + this.Day10, + this.Day11, + this.Day12, + this.Day13}); + this.dgvShiftPlan.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvShiftPlan.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; + this.dgvShiftPlan.Location = new System.Drawing.Point(0, 29); + this.dgvShiftPlan.Margin = new System.Windows.Forms.Padding(2); + this.dgvShiftPlan.MultiSelect = false; + this.dgvShiftPlan.Name = "dgvShiftPlan"; + dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle9.NullValue = "No."; + dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvShiftPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; + this.dgvShiftPlan.RowHeadersVisible = false; + this.dgvShiftPlan.RowHeadersWidth = 45; + this.dgvShiftPlan.RowTemplate.Height = 27; + this.dgvShiftPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvShiftPlan.Size = new System.Drawing.Size(959, 271); + this.dgvShiftPlan.TabIndex = 4; + this.dgvShiftPlan.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvShiftPlan_CellClick); + this.dgvShiftPlan.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvShiftPlan_DataError); + // + // colChecked2 + // + this.colChecked2.HeaderText = "选择"; + this.colChecked2.Name = "colChecked2"; + this.colChecked2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colChecked2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.colChecked2.Width = 60; + // + // panel2Top + // + this.panel2Top.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; + this.panel2Top.Controls.Add(this.btnShiftPlanDelete); + this.panel2Top.Controls.Add(this.btnShiftPlanFresh); + this.panel2Top.Controls.Add(this.btnShiptPlanSave); + this.panel2Top.Controls.Add(this.label2); + this.panel2Top.Dock = System.Windows.Forms.DockStyle.Top; + this.panel2Top.Location = new System.Drawing.Point(0, 0); + this.panel2Top.Margin = new System.Windows.Forms.Padding(2); + this.panel2Top.Name = "panel2Top"; + this.panel2Top.Size = new System.Drawing.Size(959, 29); + this.panel2Top.TabIndex = 0; + // + // btnShiftPlanDelete + // + this.btnShiftPlanDelete.Location = new System.Drawing.Point(432, 2); + this.btnShiftPlanDelete.Margin = new System.Windows.Forms.Padding(2); + this.btnShiftPlanDelete.Name = "btnShiftPlanDelete"; + this.btnShiftPlanDelete.Size = new System.Drawing.Size(56, 25); + this.btnShiftPlanDelete.TabIndex = 12; + this.btnShiftPlanDelete.Text = "删除"; + this.btnShiftPlanDelete.UseVisualStyleBackColor = true; + this.btnShiftPlanDelete.Click += new System.EventHandler(this.btnShiftPlanDelete_Click); + // + // btnShiftPlanFresh + // + this.btnShiftPlanFresh.Location = new System.Drawing.Point(338, 2); + this.btnShiftPlanFresh.Margin = new System.Windows.Forms.Padding(2); + this.btnShiftPlanFresh.Name = "btnShiftPlanFresh"; + this.btnShiftPlanFresh.Size = new System.Drawing.Size(56, 25); + this.btnShiftPlanFresh.TabIndex = 9; + this.btnShiftPlanFresh.Text = "刷新"; + this.btnShiftPlanFresh.UseVisualStyleBackColor = true; + this.btnShiftPlanFresh.Click += new System.EventHandler(this.btnShiftPlanFresh_Click); + // + // btnShiptPlanSave + // + this.btnShiptPlanSave.Location = new System.Drawing.Point(239, 2); + this.btnShiptPlanSave.Margin = new System.Windows.Forms.Padding(2); + this.btnShiptPlanSave.Name = "btnShiptPlanSave"; + this.btnShiptPlanSave.Size = new System.Drawing.Size(56, 25); + this.btnShiptPlanSave.TabIndex = 8; + this.btnShiptPlanSave.Text = "保存"; + this.btnShiptPlanSave.UseVisualStyleBackColor = true; + this.btnShiptPlanSave.Click += new System.EventHandler(this.btnShiptPlanSave_Click); + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(12, 10); + this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(53, 12); + this.label2.TabIndex = 5; + this.label2.Text = "轮班计划"; + // + // panel1 + // + this.panel1.Controls.Add(this.dgvSchedulingType); + this.panel1.Controls.Add(this.panel1Top); + this.panel1.Dock = System.Windows.Forms.DockStyle.Left; + this.panel1.Location = new System.Drawing.Point(0, 0); + this.panel1.Margin = new System.Windows.Forms.Padding(2); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(454, 300); + this.panel1.TabIndex = 0; + // + // dgvSchedulingType + // + this.dgvSchedulingType.AllowUserToDeleteRows = false; + this.dgvSchedulingType.BackgroundColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvSchedulingType.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; + this.dgvSchedulingType.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dgvSchedulingType.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.TypeId, + this.ShiftName, + this.BeginTime, + this.EndTime, + this.IsValid}); + this.dgvSchedulingType.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgvSchedulingType.Location = new System.Drawing.Point(0, 29); + this.dgvSchedulingType.Margin = new System.Windows.Forms.Padding(2); + this.dgvSchedulingType.Name = "dgvSchedulingType"; + dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle11.NullValue = "No."; + dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgvSchedulingType.RowHeadersDefaultCellStyle = dataGridViewCellStyle11; + this.dgvSchedulingType.RowHeadersVisible = false; + this.dgvSchedulingType.RowHeadersWidth = 45; + this.dgvSchedulingType.RowTemplate.Height = 27; + this.dgvSchedulingType.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dgvSchedulingType.Size = new System.Drawing.Size(454, 271); + this.dgvSchedulingType.TabIndex = 3; + this.dgvSchedulingType.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSchedulingType_CellEndEdit); + this.dgvSchedulingType.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvSchedulingType_DataError); + // + // IsValid + // + this.IsValid.DataPropertyName = "IsValid"; + this.IsValid.FalseValue = "0"; + this.IsValid.HeaderText = "是否有效"; + this.IsValid.MinimumWidth = 6; + this.IsValid.Name = "IsValid"; + this.IsValid.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.IsValid.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.IsValid.TrueValue = "1"; + this.IsValid.Width = 98; + // + // panel1Top + // + this.panel1Top.BackColor = System.Drawing.SystemColors.GradientInactiveCaption; + this.panel1Top.Controls.Add(this.chxHasInvaild); + this.panel1Top.Controls.Add(this.btnShiftDelete); + this.panel1Top.Controls.Add(this.btnShiftFresh); + this.panel1Top.Controls.Add(this.btnShiftSave); + this.panel1Top.Controls.Add(this.labelDoctorNurse); + this.panel1Top.Dock = System.Windows.Forms.DockStyle.Top; + this.panel1Top.Location = new System.Drawing.Point(0, 0); + this.panel1Top.Margin = new System.Windows.Forms.Padding(2); + this.panel1Top.Name = "panel1Top"; + this.panel1Top.Size = new System.Drawing.Size(454, 29); + this.panel1Top.TabIndex = 2; + // + // chxHasInvaild + // + this.chxHasInvaild.AutoSize = true; + this.chxHasInvaild.Location = new System.Drawing.Point(99, 6); + this.chxHasInvaild.Margin = new System.Windows.Forms.Padding(2); + this.chxHasInvaild.Name = "chxHasInvaild"; + this.chxHasInvaild.Size = new System.Drawing.Size(96, 16); + this.chxHasInvaild.TabIndex = 16; + this.chxHasInvaild.Text = "显示全部班次"; + this.chxHasInvaild.UseVisualStyleBackColor = true; + this.chxHasInvaild.CheckedChanged += new System.EventHandler(this.chxHasInvaild_CheckedChanged); + // + // btnShiftDelete + // + this.btnShiftDelete.Location = new System.Drawing.Point(381, 2); + this.btnShiftDelete.Margin = new System.Windows.Forms.Padding(2); + this.btnShiftDelete.Name = "btnShiftDelete"; + this.btnShiftDelete.Size = new System.Drawing.Size(56, 25); + this.btnShiftDelete.TabIndex = 11; + this.btnShiftDelete.Text = "删除"; + this.btnShiftDelete.UseVisualStyleBackColor = true; + this.btnShiftDelete.Click += new System.EventHandler(this.btnShiftDelete_Click); + // + // btnShiftFresh + // + this.btnShiftFresh.Location = new System.Drawing.Point(311, 2); + this.btnShiftFresh.Margin = new System.Windows.Forms.Padding(2); + this.btnShiftFresh.Name = "btnShiftFresh"; + this.btnShiftFresh.Size = new System.Drawing.Size(56, 25); + this.btnShiftFresh.TabIndex = 10; + this.btnShiftFresh.Text = "刷新"; + this.btnShiftFresh.UseVisualStyleBackColor = true; + this.btnShiftFresh.Click += new System.EventHandler(this.btnShiftFresh_Click); + // + // btnShiftSave + // + this.btnShiftSave.Location = new System.Drawing.Point(239, 2); + this.btnShiftSave.Margin = new System.Windows.Forms.Padding(2); + this.btnShiftSave.Name = "btnShiftSave"; + this.btnShiftSave.Size = new System.Drawing.Size(56, 25); + this.btnShiftSave.TabIndex = 9; + this.btnShiftSave.Text = "保存"; + this.btnShiftSave.UseVisualStyleBackColor = true; + this.btnShiftSave.Click += new System.EventHandler(this.btnShiftSave_Click); + // + // labelDoctorNurse + // + this.labelDoctorNurse.AutoSize = true; + this.labelDoctorNurse.Location = new System.Drawing.Point(9, 8); + this.labelDoctorNurse.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelDoctorNurse.Name = "labelDoctorNurse"; + this.labelDoctorNurse.Size = new System.Drawing.Size(53, 12); + this.labelDoctorNurse.TabIndex = 0; + this.labelDoctorNurse.Text = "班次设置"; + this.labelDoctorNurse.Visible = false; + // + // panelTop + // + this.panelTop.Controls.Add(this.panelTopT); + this.panelTop.Dock = System.Windows.Forms.DockStyle.Top; + this.panelTop.Location = new System.Drawing.Point(0, 0); + this.panelTop.Margin = new System.Windows.Forms.Padding(2); + this.panelTop.Name = "panelTop"; + this.panelTop.Size = new System.Drawing.Size(1415, 34); + this.panelTop.TabIndex = 0; + // + // panelTopT + // + this.panelTopT.Controls.Add(this.btnPrintAttendance); + this.panelTopT.Controls.Add(this.btnAttendance); + this.panelTopT.Controls.Add(this.labelTitle); + this.panelTopT.Dock = System.Windows.Forms.DockStyle.Top; + this.panelTopT.Location = new System.Drawing.Point(0, 0); + this.panelTopT.Margin = new System.Windows.Forms.Padding(2); + this.panelTopT.Name = "panelTopT"; + this.panelTopT.Size = new System.Drawing.Size(1415, 34); + this.panelTopT.TabIndex = 2; + // + // btnPrintAttendance + // + this.btnPrintAttendance.Location = new System.Drawing.Point(957, 3); + this.btnPrintAttendance.Margin = new System.Windows.Forms.Padding(2); + this.btnPrintAttendance.Name = "btnPrintAttendance"; + this.btnPrintAttendance.Size = new System.Drawing.Size(91, 28); + this.btnPrintAttendance.TabIndex = 8; + this.btnPrintAttendance.Text = "打印出缺勤表"; + this.btnPrintAttendance.UseVisualStyleBackColor = true; + this.btnPrintAttendance.Click += new System.EventHandler(this.btnPrintAttendance_Click); + // + // btnAttendance + // + this.btnAttendance.Location = new System.Drawing.Point(837, 3); + this.btnAttendance.Margin = new System.Windows.Forms.Padding(2); + this.btnAttendance.Name = "btnAttendance"; + this.btnAttendance.Size = new System.Drawing.Size(98, 28); + this.btnAttendance.TabIndex = 11; + this.btnAttendance.Text = "填写出勤缺勤"; + this.btnAttendance.UseVisualStyleBackColor = true; + this.btnAttendance.Click += new System.EventHandler(this.btnAttendance_Click); + // + // labelTitle + // + this.labelTitle.AutoSize = true; + this.labelTitle.Font = new System.Drawing.Font("楷体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + this.labelTitle.Location = new System.Drawing.Point(19, 9); + this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(177, 20); + this.labelTitle.TabIndex = 3; + this.labelTitle.Text = "麻醉医生排班管理"; + this.labelTitle.Visible = false; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "ColUp"; + dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle12; + this.dataGridViewTextBoxColumn1.HeaderText = "手术间"; + this.dataGridViewTextBoxColumn1.MinimumWidth = 6; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + this.dataGridViewTextBoxColumn1.ReadOnly = true; + this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn1.Visible = false; + this.dataGridViewTextBoxColumn1.Width = 75; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "ColDown"; + dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle13; + this.dataGridViewTextBoxColumn2.HeaderText = "开始日期"; + this.dataGridViewTextBoxColumn2.MinimumWidth = 6; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + this.dataGridViewTextBoxColumn2.ReadOnly = true; + this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn2.Visible = false; + this.dataGridViewTextBoxColumn2.Width = 20; + // + // dataGridViewTextBoxColumn3 + // + this.dataGridViewTextBoxColumn3.DataPropertyName = "ROLE_NAME"; + this.dataGridViewTextBoxColumn3.HeaderText = "结束日期"; + this.dataGridViewTextBoxColumn3.MinimumWidth = 6; + this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; + this.dataGridViewTextBoxColumn3.ReadOnly = true; + this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; + this.dataGridViewTextBoxColumn3.Visible = false; + this.dataGridViewTextBoxColumn3.Width = 80; + // + // dataGridViewComboBoxColumn1 + // + this.dataGridViewComboBoxColumn1.DataPropertyName = "OperationRoom"; + this.dataGridViewComboBoxColumn1.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn1.HeaderText = "1日"; + this.dataGridViewComboBoxColumn1.MaxDropDownItems = 12; + this.dataGridViewComboBoxColumn1.MinimumWidth = 6; + this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1"; + this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn1.Sorted = true; + this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn1.Width = 70; + // + // dataGridViewComboBoxColumn2 + // + this.dataGridViewComboBoxColumn2.DataPropertyName = "Role"; + this.dataGridViewComboBoxColumn2.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn2.HeaderText = "2日"; + this.dataGridViewComboBoxColumn2.MinimumWidth = 6; + this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2"; + this.dataGridViewComboBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn2.Sorted = true; + this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn2.Width = 90; + // + // dataGridViewComboBoxColumn3 + // + this.dataGridViewComboBoxColumn3.DataPropertyName = "Date1"; + this.dataGridViewComboBoxColumn3.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn3.HeaderText = "3日"; + this.dataGridViewComboBoxColumn3.MinimumWidth = 6; + this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3"; + this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn3.Sorted = true; + this.dataGridViewComboBoxColumn3.Width = 90; + // + // dataGridViewComboBoxColumn4 + // + this.dataGridViewComboBoxColumn4.DataPropertyName = "Date2"; + this.dataGridViewComboBoxColumn4.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn4.HeaderText = "4日"; + this.dataGridViewComboBoxColumn4.MinimumWidth = 6; + this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4"; + this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn4.Sorted = true; + this.dataGridViewComboBoxColumn4.Width = 90; + // + // dataGridViewComboBoxColumn5 + // + this.dataGridViewComboBoxColumn5.DataPropertyName = "Date3"; + this.dataGridViewComboBoxColumn5.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn5.HeaderText = "5日"; + this.dataGridViewComboBoxColumn5.MinimumWidth = 6; + this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5"; + this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn5.Sorted = true; + this.dataGridViewComboBoxColumn5.Width = 90; + // + // dataGridViewComboBoxColumn6 + // + this.dataGridViewComboBoxColumn6.DataPropertyName = "Date4"; + this.dataGridViewComboBoxColumn6.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn6.HeaderText = "6日"; + this.dataGridViewComboBoxColumn6.MinimumWidth = 6; + this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6"; + this.dataGridViewComboBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn6.Sorted = true; + this.dataGridViewComboBoxColumn6.Width = 90; + // + // dataGridViewComboBoxColumn7 + // + this.dataGridViewComboBoxColumn7.DataPropertyName = "Date5"; + this.dataGridViewComboBoxColumn7.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn7.HeaderText = "7日"; + this.dataGridViewComboBoxColumn7.MinimumWidth = 6; + this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7"; + this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn7.Sorted = true; + this.dataGridViewComboBoxColumn7.Width = 90; + // + // dataGridViewComboBoxColumn8 + // + this.dataGridViewComboBoxColumn8.DataPropertyName = "Date6"; + this.dataGridViewComboBoxColumn8.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn8.HeaderText = "8日"; + this.dataGridViewComboBoxColumn8.MinimumWidth = 6; + this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8"; + this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn8.Sorted = true; + this.dataGridViewComboBoxColumn8.Width = 90; + // + // dataGridViewComboBoxColumn9 + // + this.dataGridViewComboBoxColumn9.DataPropertyName = "Date7"; + this.dataGridViewComboBoxColumn9.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn9.HeaderText = "9日"; + this.dataGridViewComboBoxColumn9.MinimumWidth = 6; + this.dataGridViewComboBoxColumn9.Name = "dataGridViewComboBoxColumn9"; + this.dataGridViewComboBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn9.Sorted = true; + this.dataGridViewComboBoxColumn9.Width = 90; + // + // dataGridViewComboBoxColumn10 + // + this.dataGridViewComboBoxColumn10.DataPropertyName = "Date8"; + this.dataGridViewComboBoxColumn10.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn10.HeaderText = "10日"; + this.dataGridViewComboBoxColumn10.MinimumWidth = 6; + this.dataGridViewComboBoxColumn10.Name = "dataGridViewComboBoxColumn10"; + this.dataGridViewComboBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn10.Sorted = true; + this.dataGridViewComboBoxColumn10.Width = 90; + // + // dataGridViewComboBoxColumn11 + // + this.dataGridViewComboBoxColumn11.DataPropertyName = "Date9"; + this.dataGridViewComboBoxColumn11.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn11.HeaderText = "9日"; + this.dataGridViewComboBoxColumn11.MinimumWidth = 6; + this.dataGridViewComboBoxColumn11.Name = "dataGridViewComboBoxColumn11"; + this.dataGridViewComboBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn11.Sorted = true; + this.dataGridViewComboBoxColumn11.Width = 90; + // + // dataGridViewComboBoxColumn12 + // + this.dataGridViewComboBoxColumn12.DataPropertyName = "Date10"; + this.dataGridViewComboBoxColumn12.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn12.HeaderText = "10日"; + this.dataGridViewComboBoxColumn12.MinimumWidth = 6; + this.dataGridViewComboBoxColumn12.Name = "dataGridViewComboBoxColumn12"; + this.dataGridViewComboBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn12.Sorted = true; + this.dataGridViewComboBoxColumn12.Width = 90; + // + // dataGridViewComboBoxColumn13 + // + this.dataGridViewComboBoxColumn13.DataPropertyName = "Day1"; + dataGridViewCellStyle14.BackColor = System.Drawing.Color.White; + this.dataGridViewComboBoxColumn13.DefaultCellStyle = dataGridViewCellStyle14; + this.dataGridViewComboBoxColumn13.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn13.HeaderText = "第1天"; + this.dataGridViewComboBoxColumn13.MinimumWidth = 6; + this.dataGridViewComboBoxColumn13.Name = "dataGridViewComboBoxColumn13"; + this.dataGridViewComboBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn13.Sorted = true; + this.dataGridViewComboBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn13.Width = 120; + // + // dataGridViewComboBoxColumn14 + // + this.dataGridViewComboBoxColumn14.DataPropertyName = "Day2"; + this.dataGridViewComboBoxColumn14.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn14.HeaderText = "第2天"; + this.dataGridViewComboBoxColumn14.MinimumWidth = 6; + this.dataGridViewComboBoxColumn14.Name = "dataGridViewComboBoxColumn14"; + this.dataGridViewComboBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn14.Sorted = true; + this.dataGridViewComboBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn14.Width = 120; + // + // dataGridViewComboBoxColumn15 + // + this.dataGridViewComboBoxColumn15.DataPropertyName = "Day3"; + this.dataGridViewComboBoxColumn15.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn15.HeaderText = "第3天"; + this.dataGridViewComboBoxColumn15.MinimumWidth = 6; + this.dataGridViewComboBoxColumn15.Name = "dataGridViewComboBoxColumn15"; + this.dataGridViewComboBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn15.Sorted = true; + this.dataGridViewComboBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn15.Width = 86; + // + // dataGridViewComboBoxColumn16 + // + this.dataGridViewComboBoxColumn16.DataPropertyName = "Day4"; + this.dataGridViewComboBoxColumn16.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn16.HeaderText = "第4天"; + this.dataGridViewComboBoxColumn16.MinimumWidth = 6; + this.dataGridViewComboBoxColumn16.Name = "dataGridViewComboBoxColumn16"; + this.dataGridViewComboBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn16.Sorted = true; + this.dataGridViewComboBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn16.Width = 86; + // + // dataGridViewComboBoxColumn17 + // + this.dataGridViewComboBoxColumn17.DataPropertyName = "Day5"; + this.dataGridViewComboBoxColumn17.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn17.HeaderText = "第5天"; + this.dataGridViewComboBoxColumn17.MinimumWidth = 6; + this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17"; + this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn17.Sorted = true; + this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn17.Width = 86; + // + // dataGridViewComboBoxColumn18 + // + this.dataGridViewComboBoxColumn18.DataPropertyName = "Day6"; + this.dataGridViewComboBoxColumn18.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn18.HeaderText = "第6天"; + this.dataGridViewComboBoxColumn18.MinimumWidth = 6; + this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18"; + this.dataGridViewComboBoxColumn18.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn18.Sorted = true; + this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn18.Width = 86; + // + // dataGridViewComboBoxColumn19 + // + this.dataGridViewComboBoxColumn19.DataPropertyName = "Day7"; + this.dataGridViewComboBoxColumn19.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn19.HeaderText = "第7天"; + this.dataGridViewComboBoxColumn19.MinimumWidth = 6; + this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19"; + this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn19.Sorted = true; + this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn19.Width = 86; + // + // dataGridViewComboBoxColumn20 + // + this.dataGridViewComboBoxColumn20.DataPropertyName = "Day8"; + this.dataGridViewComboBoxColumn20.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn20.HeaderText = "第8天"; + this.dataGridViewComboBoxColumn20.MinimumWidth = 6; + this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20"; + this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn20.Sorted = true; + this.dataGridViewComboBoxColumn20.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn20.Width = 86; + // + // dataGridViewComboBoxColumn21 + // + this.dataGridViewComboBoxColumn21.DataPropertyName = "Day9"; + this.dataGridViewComboBoxColumn21.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn21.HeaderText = "第9天"; + this.dataGridViewComboBoxColumn21.MinimumWidth = 6; + this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21"; + this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn21.Sorted = true; + this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn21.Width = 86; + // + // dataGridViewComboBoxColumn22 + // + this.dataGridViewComboBoxColumn22.DataPropertyName = "Date20"; + this.dataGridViewComboBoxColumn22.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn22.HeaderText = "20日"; + this.dataGridViewComboBoxColumn22.MinimumWidth = 6; + this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22"; + this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn22.Sorted = true; + this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn22.Width = 90; + // + // dataGridViewComboBoxColumn23 + // + this.dataGridViewComboBoxColumn23.DataPropertyName = "Date21"; + this.dataGridViewComboBoxColumn23.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn23.HeaderText = "21日"; + this.dataGridViewComboBoxColumn23.MinimumWidth = 6; + this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23"; + this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn23.Sorted = true; + this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn23.Width = 90; + // + // dataGridViewComboBoxColumn24 + // + this.dataGridViewComboBoxColumn24.DataPropertyName = "Date22"; + this.dataGridViewComboBoxColumn24.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn24.HeaderText = "22日"; + this.dataGridViewComboBoxColumn24.MinimumWidth = 6; + this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24"; + this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn24.Sorted = true; + this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn24.Width = 90; + // + // dataGridViewComboBoxColumn25 + // + this.dataGridViewComboBoxColumn25.DataPropertyName = "Date23"; + this.dataGridViewComboBoxColumn25.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn25.HeaderText = "23日"; + this.dataGridViewComboBoxColumn25.MinimumWidth = 6; + this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25"; + this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn25.Sorted = true; + this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn25.Width = 90; + // + // dataGridViewComboBoxColumn26 + // + this.dataGridViewComboBoxColumn26.DataPropertyName = "Date24"; + this.dataGridViewComboBoxColumn26.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn26.HeaderText = "24日"; + this.dataGridViewComboBoxColumn26.MinimumWidth = 6; + this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26"; + this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn26.Sorted = true; + this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn26.Width = 90; + // + // dataGridViewComboBoxColumn27 + // + this.dataGridViewComboBoxColumn27.DataPropertyName = "Date25"; + this.dataGridViewComboBoxColumn27.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn27.HeaderText = "25日"; + this.dataGridViewComboBoxColumn27.MinimumWidth = 6; + this.dataGridViewComboBoxColumn27.Name = "dataGridViewComboBoxColumn27"; + this.dataGridViewComboBoxColumn27.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn27.Sorted = true; + this.dataGridViewComboBoxColumn27.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn27.Width = 90; + // + // dataGridViewComboBoxColumn28 + // + this.dataGridViewComboBoxColumn28.DataPropertyName = "Date26"; + this.dataGridViewComboBoxColumn28.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn28.HeaderText = "26日"; + this.dataGridViewComboBoxColumn28.MinimumWidth = 6; + this.dataGridViewComboBoxColumn28.Name = "dataGridViewComboBoxColumn28"; + this.dataGridViewComboBoxColumn28.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn28.Sorted = true; + this.dataGridViewComboBoxColumn28.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn28.Width = 90; + // + // dataGridViewComboBoxColumn29 + // + this.dataGridViewComboBoxColumn29.DataPropertyName = "Date27"; + this.dataGridViewComboBoxColumn29.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn29.HeaderText = "27日"; + this.dataGridViewComboBoxColumn29.MinimumWidth = 6; + this.dataGridViewComboBoxColumn29.Name = "dataGridViewComboBoxColumn29"; + this.dataGridViewComboBoxColumn29.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn29.Sorted = true; + this.dataGridViewComboBoxColumn29.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn29.Width = 90; + // + // dataGridViewComboBoxColumn30 + // + this.dataGridViewComboBoxColumn30.DataPropertyName = "Date28"; + this.dataGridViewComboBoxColumn30.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn30.HeaderText = "28日"; + this.dataGridViewComboBoxColumn30.MinimumWidth = 6; + this.dataGridViewComboBoxColumn30.Name = "dataGridViewComboBoxColumn30"; + this.dataGridViewComboBoxColumn30.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn30.Sorted = true; + this.dataGridViewComboBoxColumn30.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn30.Width = 90; + // + // dataGridViewComboBoxColumn31 + // + this.dataGridViewComboBoxColumn31.DataPropertyName = "Date29"; + this.dataGridViewComboBoxColumn31.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn31.HeaderText = "29日"; + this.dataGridViewComboBoxColumn31.MinimumWidth = 6; + this.dataGridViewComboBoxColumn31.Name = "dataGridViewComboBoxColumn31"; + this.dataGridViewComboBoxColumn31.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn31.Sorted = true; + this.dataGridViewComboBoxColumn31.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn31.Width = 90; + // + // dataGridViewComboBoxColumn32 + // + this.dataGridViewComboBoxColumn32.DataPropertyName = "Date30"; + this.dataGridViewComboBoxColumn32.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn32.HeaderText = "30日"; + this.dataGridViewComboBoxColumn32.MinimumWidth = 6; + this.dataGridViewComboBoxColumn32.Name = "dataGridViewComboBoxColumn32"; + this.dataGridViewComboBoxColumn32.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn32.Sorted = true; + this.dataGridViewComboBoxColumn32.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn32.Width = 90; + // + // dataGridViewComboBoxColumn33 + // + this.dataGridViewComboBoxColumn33.DataPropertyName = "Date31"; + this.dataGridViewComboBoxColumn33.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn33.HeaderText = "31日"; + this.dataGridViewComboBoxColumn33.MinimumWidth = 6; + this.dataGridViewComboBoxColumn33.Name = "dataGridViewComboBoxColumn33"; + this.dataGridViewComboBoxColumn33.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn33.Sorted = true; + this.dataGridViewComboBoxColumn33.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn33.Width = 90; + // + // dataGridViewTextBoxColumn4 + // + this.dataGridViewTextBoxColumn4.DataPropertyName = "NAME"; + dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle15; + this.dataGridViewTextBoxColumn4.HeaderText = "角色"; + this.dataGridViewTextBoxColumn4.MinimumWidth = 6; + this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; + this.dataGridViewTextBoxColumn4.ReadOnly = true; + this.dataGridViewTextBoxColumn4.Width = 98; + // + // dataGridViewTextBoxColumn5 + // + this.dataGridViewTextBoxColumn5.DataPropertyName = "Day1"; + dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle16; + this.dataGridViewTextBoxColumn5.HeaderText = "第1天"; + this.dataGridViewTextBoxColumn5.MinimumWidth = 6; + this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; + this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn5.Width = 120; + // + // dataGridViewTextBoxColumn6 + // + this.dataGridViewTextBoxColumn6.DataPropertyName = "Day2"; + this.dataGridViewTextBoxColumn6.HeaderText = "第2天"; + this.dataGridViewTextBoxColumn6.MinimumWidth = 6; + this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; + this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn6.Visible = false; + this.dataGridViewTextBoxColumn6.Width = 120; + // + // dataGridViewComboBoxColumn34 + // + this.dataGridViewComboBoxColumn34.DataPropertyName = "Day1"; + dataGridViewCellStyle17.BackColor = System.Drawing.Color.White; + this.dataGridViewComboBoxColumn34.DefaultCellStyle = dataGridViewCellStyle17; + this.dataGridViewComboBoxColumn34.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox; + this.dataGridViewComboBoxColumn34.DisplayStyleForCurrentCellOnly = true; + this.dataGridViewComboBoxColumn34.HeaderText = "第1天"; + this.dataGridViewComboBoxColumn34.MinimumWidth = 6; + this.dataGridViewComboBoxColumn34.Name = "dataGridViewComboBoxColumn34"; + this.dataGridViewComboBoxColumn34.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn34.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn34.Width = 86; + // + // dataGridViewComboBoxColumn35 + // + this.dataGridViewComboBoxColumn35.DataPropertyName = "Day2"; + this.dataGridViewComboBoxColumn35.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn35.HeaderText = "第2天"; + this.dataGridViewComboBoxColumn35.MinimumWidth = 6; + this.dataGridViewComboBoxColumn35.Name = "dataGridViewComboBoxColumn35"; + this.dataGridViewComboBoxColumn35.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn35.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn35.Width = 86; + // + // dataGridViewComboBoxColumn36 + // + this.dataGridViewComboBoxColumn36.DataPropertyName = "Day3"; + this.dataGridViewComboBoxColumn36.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn36.HeaderText = "第3天"; + this.dataGridViewComboBoxColumn36.MinimumWidth = 6; + this.dataGridViewComboBoxColumn36.Name = "dataGridViewComboBoxColumn36"; + this.dataGridViewComboBoxColumn36.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn36.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn36.Width = 86; + // + // dataGridViewComboBoxColumn37 + // + this.dataGridViewComboBoxColumn37.DataPropertyName = "Day4"; + this.dataGridViewComboBoxColumn37.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn37.HeaderText = "第4天"; + this.dataGridViewComboBoxColumn37.MinimumWidth = 6; + this.dataGridViewComboBoxColumn37.Name = "dataGridViewComboBoxColumn37"; + this.dataGridViewComboBoxColumn37.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn37.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn37.Width = 86; + // + // dataGridViewComboBoxColumn38 + // + this.dataGridViewComboBoxColumn38.DataPropertyName = "Day5"; + this.dataGridViewComboBoxColumn38.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn38.HeaderText = "第5天"; + this.dataGridViewComboBoxColumn38.MinimumWidth = 6; + this.dataGridViewComboBoxColumn38.Name = "dataGridViewComboBoxColumn38"; + this.dataGridViewComboBoxColumn38.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn38.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn38.Width = 86; + // + // dataGridViewComboBoxColumn39 + // + this.dataGridViewComboBoxColumn39.DataPropertyName = "Day6"; + this.dataGridViewComboBoxColumn39.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn39.HeaderText = "第6天"; + this.dataGridViewComboBoxColumn39.MinimumWidth = 6; + this.dataGridViewComboBoxColumn39.Name = "dataGridViewComboBoxColumn39"; + this.dataGridViewComboBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn39.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn39.Width = 86; + // + // dataGridViewComboBoxColumn40 + // + this.dataGridViewComboBoxColumn40.DataPropertyName = "Day7"; + this.dataGridViewComboBoxColumn40.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn40.HeaderText = "第7天"; + this.dataGridViewComboBoxColumn40.MinimumWidth = 6; + this.dataGridViewComboBoxColumn40.Name = "dataGridViewComboBoxColumn40"; + this.dataGridViewComboBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn40.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn40.Width = 86; + // + // dataGridViewComboBoxColumn41 + // + this.dataGridViewComboBoxColumn41.DataPropertyName = "Day8"; + this.dataGridViewComboBoxColumn41.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn41.HeaderText = "第8天"; + this.dataGridViewComboBoxColumn41.MinimumWidth = 6; + this.dataGridViewComboBoxColumn41.Name = "dataGridViewComboBoxColumn41"; + this.dataGridViewComboBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn41.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn41.Width = 86; + // + // dataGridViewComboBoxColumn42 + // + this.dataGridViewComboBoxColumn42.DataPropertyName = "Day9"; + this.dataGridViewComboBoxColumn42.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn42.HeaderText = "第9天"; + this.dataGridViewComboBoxColumn42.MinimumWidth = 6; + this.dataGridViewComboBoxColumn42.Name = "dataGridViewComboBoxColumn42"; + this.dataGridViewComboBoxColumn42.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn42.Width = 86; + // + // dataGridViewComboBoxColumn43 + // + this.dataGridViewComboBoxColumn43.DataPropertyName = "Day10"; + this.dataGridViewComboBoxColumn43.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn43.HeaderText = "第10天"; + this.dataGridViewComboBoxColumn43.MinimumWidth = 6; + this.dataGridViewComboBoxColumn43.Name = "dataGridViewComboBoxColumn43"; + this.dataGridViewComboBoxColumn43.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn43.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn43.Width = 70; + // + // dataGridViewComboBoxColumn44 + // + this.dataGridViewComboBoxColumn44.DataPropertyName = "Day11"; + this.dataGridViewComboBoxColumn44.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn44.HeaderText = "第11天"; + this.dataGridViewComboBoxColumn44.MinimumWidth = 6; + this.dataGridViewComboBoxColumn44.Name = "dataGridViewComboBoxColumn44"; + this.dataGridViewComboBoxColumn44.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn44.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn44.Width = 70; + // + // dataGridViewComboBoxColumn45 + // + this.dataGridViewComboBoxColumn45.DataPropertyName = "Day12"; + this.dataGridViewComboBoxColumn45.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn45.HeaderText = "第12天"; + this.dataGridViewComboBoxColumn45.MinimumWidth = 6; + this.dataGridViewComboBoxColumn45.Name = "dataGridViewComboBoxColumn45"; + this.dataGridViewComboBoxColumn45.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn45.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn45.Width = 70; + // + // dataGridViewComboBoxColumn46 + // + this.dataGridViewComboBoxColumn46.DataPropertyName = "Day13"; + this.dataGridViewComboBoxColumn46.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.dataGridViewComboBoxColumn46.HeaderText = "第13天"; + this.dataGridViewComboBoxColumn46.MinimumWidth = 6; + this.dataGridViewComboBoxColumn46.Name = "dataGridViewComboBoxColumn46"; + this.dataGridViewComboBoxColumn46.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewComboBoxColumn46.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.dataGridViewComboBoxColumn46.Width = 70; + // + // dataGridViewTextBoxColumn7 + // + this.dataGridViewTextBoxColumn7.DataPropertyName = "Day3"; + this.dataGridViewTextBoxColumn7.HeaderText = "第3天"; + this.dataGridViewTextBoxColumn7.MinimumWidth = 6; + this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; + this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn7.Visible = false; + this.dataGridViewTextBoxColumn7.Width = 120; + // + // dataGridViewTextBoxColumn8 + // + this.dataGridViewTextBoxColumn8.DataPropertyName = "Day4"; + this.dataGridViewTextBoxColumn8.HeaderText = "第4天"; + this.dataGridViewTextBoxColumn8.MinimumWidth = 6; + this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; + this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn8.Width = 120; + // + // dataGridViewTextBoxColumn9 + // + this.dataGridViewTextBoxColumn9.DataPropertyName = "Day5"; + this.dataGridViewTextBoxColumn9.HeaderText = "第5天"; + this.dataGridViewTextBoxColumn9.MinimumWidth = 6; + this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; + this.dataGridViewTextBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn9.Width = 98; + // + // dataGridViewTextBoxColumn10 + // + this.dataGridViewTextBoxColumn10.DataPropertyName = "Day6"; + this.dataGridViewTextBoxColumn10.HeaderText = "第6天"; + this.dataGridViewTextBoxColumn10.MinimumWidth = 6; + this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; + this.dataGridViewTextBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.dataGridViewTextBoxColumn10.Width = 98; + // + // ColXh + // + this.ColXh.DataPropertyName = "xh"; + dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; + this.ColXh.DefaultCellStyle = dataGridViewCellStyle2; + this.ColXh.HeaderText = "排序"; + this.ColXh.MinimumWidth = 6; + this.ColXh.Name = "ColXh"; + this.ColXh.Width = 40; + // + // colName + // + this.colName.DataPropertyName = "Name"; + dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(224)))), ((int)(((byte)(224)))), ((int)(((byte)(224))))); + this.colName.DefaultCellStyle = dataGridViewCellStyle3; + this.colName.HeaderText = "姓名"; + this.colName.MinimumWidth = 6; + this.colName.Name = "colName"; + this.colName.ReadOnly = true; + this.colName.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.colName.Width = 70; + // + // WorkerId + // + this.WorkerId.DataPropertyName = "WorkerId"; + this.WorkerId.HeaderText = "员工Id"; + this.WorkerId.MinimumWidth = 6; + this.WorkerId.Name = "WorkerId"; + this.WorkerId.Visible = false; + this.WorkerId.Width = 125; + // + // OperationRoom + // + this.OperationRoom.DataPropertyName = "OperationRoom"; + this.OperationRoom.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; + this.OperationRoom.HeaderText = "手术间"; + this.OperationRoom.MaxDropDownItems = 12; + this.OperationRoom.MinimumWidth = 6; + this.OperationRoom.Name = "OperationRoom"; + this.OperationRoom.Resizable = System.Windows.Forms.DataGridViewTriState.True; + this.OperationRoom.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; + this.OperationRoom.Width = 75; + // // Role // this.Role.DataPropertyName = "Role"; @@ -820,230 +2027,6 @@ this.Remark.Name = "Remark"; this.Remark.Width = 90; // - // panel4 - // - this.panel4.Controls.Add(this.chxModified); - this.panel4.Controls.Add(this.btnClearChecked); - this.panel4.Controls.Add(this.btnFresh); - this.panel4.Controls.Add(this.btnDown); - this.panel4.Controls.Add(this.btnPrint); - this.panel4.Controls.Add(this.btnUp); - this.panel4.Controls.Add(this.chxOnlyShiftPlan); - this.panel4.Controls.Add(this.btnSave); - this.panel4.Controls.Add(this.textFind); - this.panel4.Controls.Add(this.btnExcel); - this.panel4.Controls.Add(this.btnDelete); - this.panel4.Controls.Add(this.labelScheduling); - this.panel4.Dock = System.Windows.Forms.DockStyle.Top; - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(2); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(1413, 42); - this.panel4.TabIndex = 1; - // - // chxModified - // - this.chxModified.AutoSize = true; - this.chxModified.Location = new System.Drawing.Point(584, 14); - this.chxModified.Margin = new System.Windows.Forms.Padding(2); - this.chxModified.Name = "chxModified"; - this.chxModified.Size = new System.Drawing.Size(108, 16); - this.chxModified.TabIndex = 17; - this.chxModified.Text = "只显示可用班次"; - this.chxModified.UseVisualStyleBackColor = true; - this.chxModified.CheckedChanged += new System.EventHandler(this.chxModified_CheckedChanged); - // - // btnClearChecked - // - this.btnClearChecked.Location = new System.Drawing.Point(482, 7); - this.btnClearChecked.Margin = new System.Windows.Forms.Padding(2); - this.btnClearChecked.Name = "btnClearChecked"; - this.btnClearChecked.Size = new System.Drawing.Size(87, 28); - this.btnClearChecked.TabIndex = 16; - this.btnClearChecked.Text = "清空选择"; - this.btnClearChecked.UseVisualStyleBackColor = true; - this.btnClearChecked.Click += new System.EventHandler(this.btnClearChecked_Click); - // - // btnFresh - // - this.btnFresh.Location = new System.Drawing.Point(1100, 7); - this.btnFresh.Margin = new System.Windows.Forms.Padding(2); - this.btnFresh.Name = "btnFresh"; - this.btnFresh.Size = new System.Drawing.Size(56, 28); - this.btnFresh.TabIndex = 15; - this.btnFresh.Text = "刷新"; - this.btnFresh.UseVisualStyleBackColor = true; - this.btnFresh.Click += new System.EventHandler(this.btnFresh_Click); - // - // btnDown - // - this.btnDown.Location = new System.Drawing.Point(381, 7); - this.btnDown.Name = "btnDown"; - this.btnDown.Size = new System.Drawing.Size(75, 28); - this.btnDown.TabIndex = 14; - this.btnDown.Text = "↓向下"; - this.btnDown.UseVisualStyleBackColor = true; - this.btnDown.Click += new System.EventHandler(this.btnDown_Click); - // - // btnPrint - // - this.btnPrint.Location = new System.Drawing.Point(796, 7); - this.btnPrint.Margin = new System.Windows.Forms.Padding(2); - this.btnPrint.Name = "btnPrint"; - this.btnPrint.Size = new System.Drawing.Size(56, 28); - this.btnPrint.TabIndex = 7; - this.btnPrint.Text = "打印"; - this.btnPrint.UseVisualStyleBackColor = true; - this.btnPrint.Click += new System.EventHandler(this.btnPrint_Click); - // - // btnUp - // - this.btnUp.Location = new System.Drawing.Point(281, 7); - this.btnUp.Name = "btnUp"; - this.btnUp.Size = new System.Drawing.Size(75, 28); - this.btnUp.TabIndex = 13; - this.btnUp.Text = "↑向上"; - this.btnUp.UseVisualStyleBackColor = true; - this.btnUp.Click += new System.EventHandler(this.btnUp_Click); - // - // chxOnlyShiftPlan - // - this.chxOnlyShiftPlan.AutoSize = true; - this.chxOnlyShiftPlan.Location = new System.Drawing.Point(1179, 13); - this.chxOnlyShiftPlan.Margin = new System.Windows.Forms.Padding(2); - this.chxOnlyShiftPlan.Name = "chxOnlyShiftPlan"; - this.chxOnlyShiftPlan.Size = new System.Drawing.Size(108, 16); - this.chxOnlyShiftPlan.TabIndex = 12; - this.chxOnlyShiftPlan.Text = "只显示排班数据"; - this.chxOnlyShiftPlan.UseVisualStyleBackColor = true; - this.chxOnlyShiftPlan.CheckedChanged += new System.EventHandler(this.chxOnlyShiftPlan_CheckedChanged); - // - // btnSave - // - this.btnSave.Location = new System.Drawing.Point(697, 7); - this.btnSave.Margin = new System.Windows.Forms.Padding(2); - this.btnSave.Name = "btnSave"; - this.btnSave.Size = new System.Drawing.Size(56, 28); - this.btnSave.TabIndex = 4; - this.btnSave.Text = "保存"; - this.btnSave.UseVisualStyleBackColor = true; - this.btnSave.Click += new System.EventHandler(this.btnSave_Click); - // - // textFind - // - this.textFind.Location = new System.Drawing.Point(129, 10); - this.textFind.Margin = new System.Windows.Forms.Padding(2); - this.textFind.Name = "textFind"; - this.textFind.Size = new System.Drawing.Size(129, 21); - this.textFind.TabIndex = 1; - this.textFind.TextChanged += new System.EventHandler(this.textFind_TextChanged); - // - // btnExcel - // - this.btnExcel.Location = new System.Drawing.Point(890, 7); - this.btnExcel.Margin = new System.Windows.Forms.Padding(2); - this.btnExcel.Name = "btnExcel"; - this.btnExcel.Size = new System.Drawing.Size(85, 28); - this.btnExcel.TabIndex = 5; - this.btnExcel.Text = "导出Excel"; - this.btnExcel.UseVisualStyleBackColor = true; - this.btnExcel.Click += new System.EventHandler(this.btnExcel_Click); - // - // btnDelete - // - this.btnDelete.Location = new System.Drawing.Point(994, 7); - this.btnDelete.Margin = new System.Windows.Forms.Padding(2); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(79, 28); - this.btnDelete.TabIndex = 8; - this.btnDelete.Text = "清除排班"; - this.btnDelete.UseVisualStyleBackColor = true; - this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click); - // - // labelScheduling - // - this.labelScheduling.AutoSize = true; - this.labelScheduling.Location = new System.Drawing.Point(14, 13); - this.labelScheduling.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelScheduling.Name = "labelScheduling"; - this.labelScheduling.Size = new System.Drawing.Size(101, 12); - this.labelScheduling.TabIndex = 9; - this.labelScheduling.Text = "麻醉医生排班计划"; - // - // panelBodyT - // - this.panelBodyT.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.panelBodyT.Controls.Add(this.panel2); - this.panelBodyT.Controls.Add(this.panel1); - this.panelBodyT.Dock = System.Windows.Forms.DockStyle.Top; - this.panelBodyT.Location = new System.Drawing.Point(0, 0); - this.panelBodyT.Margin = new System.Windows.Forms.Padding(2); - this.panelBodyT.Name = "panelBodyT"; - this.panelBodyT.Size = new System.Drawing.Size(1415, 233); - this.panelBodyT.TabIndex = 1; - // - // panel2 - // - this.panel2.Controls.Add(this.dgvShiftPlan); - this.panel2.Controls.Add(this.panel2Top); - this.panel2.Dock = System.Windows.Forms.DockStyle.Fill; - this.panel2.Location = new System.Drawing.Point(458, 0); - this.panel2.Margin = new System.Windows.Forms.Padding(2); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(955, 231); - this.panel2.TabIndex = 1; - // - // dgvShiftPlan - // - this.dgvShiftPlan.AllowUserToDeleteRows = false; - this.dgvShiftPlan.BackgroundColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvShiftPlan.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle7; - this.dgvShiftPlan.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvShiftPlan.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.ScheduleName, - this.Id, - this.Day1, - this.Day2, - this.Day3, - this.Day4, - this.Day5, - this.Day6, - this.Day7, - this.Day8, - this.Day9, - this.Day10, - this.Day11, - this.Day12, - this.Day13}); - this.dgvShiftPlan.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvShiftPlan.EditMode = System.Windows.Forms.DataGridViewEditMode.EditOnEnter; - this.dgvShiftPlan.Location = new System.Drawing.Point(0, 29); - this.dgvShiftPlan.Margin = new System.Windows.Forms.Padding(2); - this.dgvShiftPlan.MultiSelect = false; - this.dgvShiftPlan.Name = "dgvShiftPlan"; - dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle9.NullValue = "No."; - dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvShiftPlan.RowHeadersDefaultCellStyle = dataGridViewCellStyle9; - this.dgvShiftPlan.RowHeadersWidth = 45; - this.dgvShiftPlan.RowTemplate.Height = 27; - this.dgvShiftPlan.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvShiftPlan.Size = new System.Drawing.Size(955, 202); - this.dgvShiftPlan.TabIndex = 4; - this.dgvShiftPlan.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvShiftPlan_DataError); - // // ScheduleName // this.ScheduleName.DataPropertyName = "ScheduleName"; @@ -1206,113 +2189,6 @@ this.Day13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; this.Day13.Width = 70; // - // panel2Top - // - this.panel2Top.Controls.Add(this.btnShiftPlanDelete); - this.panel2Top.Controls.Add(this.btnShiftPlanFresh); - this.panel2Top.Controls.Add(this.btnShiptPlanSave); - this.panel2Top.Controls.Add(this.label2); - this.panel2Top.Dock = System.Windows.Forms.DockStyle.Top; - this.panel2Top.Location = new System.Drawing.Point(0, 0); - this.panel2Top.Margin = new System.Windows.Forms.Padding(2); - this.panel2Top.Name = "panel2Top"; - this.panel2Top.Size = new System.Drawing.Size(955, 29); - this.panel2Top.TabIndex = 0; - // - // btnShiftPlanDelete - // - this.btnShiftPlanDelete.Location = new System.Drawing.Point(432, 2); - this.btnShiftPlanDelete.Margin = new System.Windows.Forms.Padding(2); - this.btnShiftPlanDelete.Name = "btnShiftPlanDelete"; - this.btnShiftPlanDelete.Size = new System.Drawing.Size(56, 25); - this.btnShiftPlanDelete.TabIndex = 12; - this.btnShiftPlanDelete.Text = "删除"; - this.btnShiftPlanDelete.UseVisualStyleBackColor = true; - this.btnShiftPlanDelete.Click += new System.EventHandler(this.btnShiftPlanDelete_Click); - // - // btnShiftPlanFresh - // - this.btnShiftPlanFresh.Location = new System.Drawing.Point(338, 2); - this.btnShiftPlanFresh.Margin = new System.Windows.Forms.Padding(2); - this.btnShiftPlanFresh.Name = "btnShiftPlanFresh"; - this.btnShiftPlanFresh.Size = new System.Drawing.Size(56, 25); - this.btnShiftPlanFresh.TabIndex = 9; - this.btnShiftPlanFresh.Text = "刷新"; - this.btnShiftPlanFresh.UseVisualStyleBackColor = true; - this.btnShiftPlanFresh.Click += new System.EventHandler(this.btnShiftPlanFresh_Click); - // - // btnShiptPlanSave - // - this.btnShiptPlanSave.Location = new System.Drawing.Point(239, 2); - this.btnShiptPlanSave.Margin = new System.Windows.Forms.Padding(2); - this.btnShiptPlanSave.Name = "btnShiptPlanSave"; - this.btnShiptPlanSave.Size = new System.Drawing.Size(56, 25); - this.btnShiptPlanSave.TabIndex = 8; - this.btnShiptPlanSave.Text = "保存"; - this.btnShiptPlanSave.UseVisualStyleBackColor = true; - this.btnShiptPlanSave.Click += new System.EventHandler(this.btnShiptPlanSave_Click); - // - // label2 - // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(12, 10); - this.label2.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(53, 12); - this.label2.TabIndex = 5; - this.label2.Text = "轮班计划"; - // - // panel1 - // - this.panel1.Controls.Add(this.dgvSchedulingType); - this.panel1.Controls.Add(this.panel1Top); - this.panel1.Dock = System.Windows.Forms.DockStyle.Left; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Margin = new System.Windows.Forms.Padding(2); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(458, 231); - this.panel1.TabIndex = 0; - // - // dgvSchedulingType - // - this.dgvSchedulingType.AllowUserToDeleteRows = false; - this.dgvSchedulingType.BackgroundColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvSchedulingType.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; - this.dgvSchedulingType.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dgvSchedulingType.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { - this.TypeId, - this.ShiftName, - this.BeginTime, - this.EndTime, - this.IsValid}); - this.dgvSchedulingType.Dock = System.Windows.Forms.DockStyle.Fill; - this.dgvSchedulingType.Location = new System.Drawing.Point(0, 29); - this.dgvSchedulingType.Margin = new System.Windows.Forms.Padding(2); - this.dgvSchedulingType.Name = "dgvSchedulingType"; - dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle11.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle11.NullValue = "No."; - dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.dgvSchedulingType.RowHeadersDefaultCellStyle = dataGridViewCellStyle11; - this.dgvSchedulingType.RowHeadersWidth = 45; - this.dgvSchedulingType.RowTemplate.Height = 27; - this.dgvSchedulingType.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dgvSchedulingType.Size = new System.Drawing.Size(458, 202); - this.dgvSchedulingType.TabIndex = 3; - this.dgvSchedulingType.CellEndEdit += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvSchedulingType_CellEndEdit); - this.dgvSchedulingType.DataError += new System.Windows.Forms.DataGridViewDataErrorEventHandler(this.dgvSchedulingType_DataError); - // // TypeId // this.TypeId.DataPropertyName = "Id"; @@ -1348,764 +2224,6 @@ this.EndTime.Resizable = System.Windows.Forms.DataGridViewTriState.True; this.EndTime.Width = 98; // - // IsValid - // - this.IsValid.DataPropertyName = "IsValid"; - this.IsValid.FalseValue = "0"; - this.IsValid.HeaderText = "是否有效"; - this.IsValid.MinimumWidth = 6; - this.IsValid.Name = "IsValid"; - this.IsValid.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.IsValid.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.IsValid.TrueValue = "1"; - this.IsValid.Width = 98; - // - // panel1Top - // - this.panel1Top.Controls.Add(this.chxHasInvaild); - this.panel1Top.Controls.Add(this.btnShiftDelete); - this.panel1Top.Controls.Add(this.btnShiftFresh); - this.panel1Top.Controls.Add(this.btnShiftSave); - this.panel1Top.Controls.Add(this.labelDoctorNurse); - this.panel1Top.Dock = System.Windows.Forms.DockStyle.Top; - this.panel1Top.Location = new System.Drawing.Point(0, 0); - this.panel1Top.Margin = new System.Windows.Forms.Padding(2); - this.panel1Top.Name = "panel1Top"; - this.panel1Top.Size = new System.Drawing.Size(458, 29); - this.panel1Top.TabIndex = 2; - // - // chxHasInvaild - // - this.chxHasInvaild.AutoSize = true; - this.chxHasInvaild.Location = new System.Drawing.Point(99, 6); - this.chxHasInvaild.Margin = new System.Windows.Forms.Padding(2); - this.chxHasInvaild.Name = "chxHasInvaild"; - this.chxHasInvaild.Size = new System.Drawing.Size(96, 16); - this.chxHasInvaild.TabIndex = 16; - this.chxHasInvaild.Text = "显示全部班次"; - this.chxHasInvaild.UseVisualStyleBackColor = true; - this.chxHasInvaild.CheckedChanged += new System.EventHandler(this.chxHasInvaild_CheckedChanged); - // - // btnShiftDelete - // - this.btnShiftDelete.Location = new System.Drawing.Point(381, 2); - this.btnShiftDelete.Margin = new System.Windows.Forms.Padding(2); - this.btnShiftDelete.Name = "btnShiftDelete"; - this.btnShiftDelete.Size = new System.Drawing.Size(56, 25); - this.btnShiftDelete.TabIndex = 11; - this.btnShiftDelete.Text = "删除"; - this.btnShiftDelete.UseVisualStyleBackColor = true; - this.btnShiftDelete.Click += new System.EventHandler(this.btnShiftDelete_Click); - // - // btnShiftFresh - // - this.btnShiftFresh.Location = new System.Drawing.Point(311, 2); - this.btnShiftFresh.Margin = new System.Windows.Forms.Padding(2); - this.btnShiftFresh.Name = "btnShiftFresh"; - this.btnShiftFresh.Size = new System.Drawing.Size(56, 25); - this.btnShiftFresh.TabIndex = 10; - this.btnShiftFresh.Text = "刷新"; - this.btnShiftFresh.UseVisualStyleBackColor = true; - this.btnShiftFresh.Click += new System.EventHandler(this.btnShiftFresh_Click); - // - // btnShiftSave - // - this.btnShiftSave.Location = new System.Drawing.Point(239, 2); - this.btnShiftSave.Margin = new System.Windows.Forms.Padding(2); - this.btnShiftSave.Name = "btnShiftSave"; - this.btnShiftSave.Size = new System.Drawing.Size(56, 25); - this.btnShiftSave.TabIndex = 9; - this.btnShiftSave.Text = "保存"; - this.btnShiftSave.UseVisualStyleBackColor = true; - this.btnShiftSave.Click += new System.EventHandler(this.btnShiftSave_Click); - // - // labelDoctorNurse - // - this.labelDoctorNurse.AutoSize = true; - this.labelDoctorNurse.Location = new System.Drawing.Point(9, 8); - this.labelDoctorNurse.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelDoctorNurse.Name = "labelDoctorNurse"; - this.labelDoctorNurse.Size = new System.Drawing.Size(53, 12); - this.labelDoctorNurse.TabIndex = 0; - this.labelDoctorNurse.Text = "班次设置"; - // - // panelTop - // - this.panelTop.Controls.Add(this.panelTopT); - this.panelTop.Dock = System.Windows.Forms.DockStyle.Top; - this.panelTop.Location = new System.Drawing.Point(0, 0); - this.panelTop.Margin = new System.Windows.Forms.Padding(2); - this.panelTop.Name = "panelTop"; - this.panelTop.Size = new System.Drawing.Size(1415, 34); - this.panelTop.TabIndex = 0; - // - // panelTopT - // - this.panelTopT.Controls.Add(this.btnPrintAttendance); - this.panelTopT.Controls.Add(this.dateTimePicker1); - this.panelTopT.Controls.Add(this.label1); - this.panelTopT.Controls.Add(this.btnAttendance); - this.panelTopT.Controls.Add(this.labelTitle); - this.panelTopT.Controls.Add(this.panel3); - this.panelTopT.Dock = System.Windows.Forms.DockStyle.Top; - this.panelTopT.Location = new System.Drawing.Point(0, 0); - this.panelTopT.Margin = new System.Windows.Forms.Padding(2); - this.panelTopT.Name = "panelTopT"; - this.panelTopT.Size = new System.Drawing.Size(1415, 34); - this.panelTopT.TabIndex = 2; - // - // btnPrintAttendance - // - this.btnPrintAttendance.Location = new System.Drawing.Point(957, 3); - this.btnPrintAttendance.Margin = new System.Windows.Forms.Padding(2); - this.btnPrintAttendance.Name = "btnPrintAttendance"; - this.btnPrintAttendance.Size = new System.Drawing.Size(91, 28); - this.btnPrintAttendance.TabIndex = 8; - this.btnPrintAttendance.Text = "打印出缺勤表"; - this.btnPrintAttendance.UseVisualStyleBackColor = true; - this.btnPrintAttendance.Click += new System.EventHandler(this.btnPrintAttendance_Click); - // - // dateTimePicker1 - // - this.dateTimePicker1.CustomFormat = "yyyy年MM月"; - this.dateTimePicker1.Format = System.Windows.Forms.DateTimePickerFormat.Custom; - this.dateTimePicker1.Location = new System.Drawing.Point(211, 6); - this.dateTimePicker1.Margin = new System.Windows.Forms.Padding(2); - this.dateTimePicker1.Name = "dateTimePicker1"; - this.dateTimePicker1.ShowUpDown = true; - this.dateTimePicker1.Size = new System.Drawing.Size(85, 21); - this.dateTimePicker1.TabIndex = 1; - this.dateTimePicker1.Value = new System.DateTime(2020, 2, 9, 0, 0, 0, 0); - this.dateTimePicker1.ValueChanged += new System.EventHandler(this.dateTimePicker1_ValueChanged); - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(168, 12); - this.label1.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(41, 12); - this.label1.TabIndex = 0; - this.label1.Text = "月份:"; - // - // btnAttendance - // - this.btnAttendance.Location = new System.Drawing.Point(837, 3); - this.btnAttendance.Margin = new System.Windows.Forms.Padding(2); - this.btnAttendance.Name = "btnAttendance"; - this.btnAttendance.Size = new System.Drawing.Size(98, 28); - this.btnAttendance.TabIndex = 11; - this.btnAttendance.Text = "填写出勤缺勤"; - this.btnAttendance.UseVisualStyleBackColor = true; - this.btnAttendance.Click += new System.EventHandler(this.btnAttendance_Click); - // - // labelTitle - // - this.labelTitle.AutoSize = true; - this.labelTitle.Font = new System.Drawing.Font("楷体", 15F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.labelTitle.Location = new System.Drawing.Point(333, 6); - this.labelTitle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - this.labelTitle.Name = "labelTitle"; - this.labelTitle.Size = new System.Drawing.Size(177, 20); - this.labelTitle.TabIndex = 3; - this.labelTitle.Text = "麻醉医生排班管理"; - // - // panel3 - // - this.panel3.Controls.Add(this.radioNurse); - this.panel3.Controls.Add(this.radioDoctor); - this.panel3.Location = new System.Drawing.Point(7, 2); - this.panel3.Margin = new System.Windows.Forms.Padding(2); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(141, 30); - this.panel3.TabIndex = 2; - // - // radioNurse - // - this.radioNurse.AutoSize = true; - this.radioNurse.Location = new System.Drawing.Point(93, 6); - this.radioNurse.Margin = new System.Windows.Forms.Padding(2); - this.radioNurse.Name = "radioNurse"; - this.radioNurse.Size = new System.Drawing.Size(47, 16); - this.radioNurse.TabIndex = 1; - this.radioNurse.Text = "护士"; - this.radioNurse.UseVisualStyleBackColor = true; - this.radioNurse.CheckedChanged += new System.EventHandler(this.radioNurse_CheckedChanged); - // - // radioDoctor - // - this.radioDoctor.AutoSize = true; - this.radioDoctor.Checked = true; - this.radioDoctor.Location = new System.Drawing.Point(7, 6); - this.radioDoctor.Margin = new System.Windows.Forms.Padding(2); - this.radioDoctor.Name = "radioDoctor"; - this.radioDoctor.Size = new System.Drawing.Size(71, 16); - this.radioDoctor.TabIndex = 0; - this.radioDoctor.TabStop = true; - this.radioDoctor.Text = "麻醉医生"; - this.radioDoctor.UseVisualStyleBackColor = true; - this.radioDoctor.CheckedChanged += new System.EventHandler(this.radioDoctor_CheckedChanged); - // - // dataGridViewTextBoxColumn1 - // - this.dataGridViewTextBoxColumn1.DataPropertyName = "ColUp"; - dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn1.DefaultCellStyle = dataGridViewCellStyle12; - this.dataGridViewTextBoxColumn1.HeaderText = "手术间"; - this.dataGridViewTextBoxColumn1.MinimumWidth = 6; - this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; - this.dataGridViewTextBoxColumn1.ReadOnly = true; - this.dataGridViewTextBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn1.Visible = false; - this.dataGridViewTextBoxColumn1.Width = 75; - // - // dataGridViewTextBoxColumn2 - // - this.dataGridViewTextBoxColumn2.DataPropertyName = "ColDown"; - dataGridViewCellStyle13.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn2.DefaultCellStyle = dataGridViewCellStyle13; - this.dataGridViewTextBoxColumn2.HeaderText = "开始日期"; - this.dataGridViewTextBoxColumn2.MinimumWidth = 6; - this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; - this.dataGridViewTextBoxColumn2.ReadOnly = true; - this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn2.Visible = false; - this.dataGridViewTextBoxColumn2.Width = 20; - // - // dataGridViewTextBoxColumn3 - // - this.dataGridViewTextBoxColumn3.DataPropertyName = "ROLE_NAME"; - this.dataGridViewTextBoxColumn3.HeaderText = "结束日期"; - this.dataGridViewTextBoxColumn3.MinimumWidth = 6; - this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3"; - this.dataGridViewTextBoxColumn3.ReadOnly = true; - this.dataGridViewTextBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn3.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable; - this.dataGridViewTextBoxColumn3.Visible = false; - this.dataGridViewTextBoxColumn3.Width = 80; - // - // dataGridViewComboBoxColumn1 - // - this.dataGridViewComboBoxColumn1.DataPropertyName = "OperationRoom"; - this.dataGridViewComboBoxColumn1.HeaderText = "1日"; - this.dataGridViewComboBoxColumn1.MaxDropDownItems = 12; - this.dataGridViewComboBoxColumn1.MinimumWidth = 6; - this.dataGridViewComboBoxColumn1.Name = "dataGridViewComboBoxColumn1"; - this.dataGridViewComboBoxColumn1.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn1.Sorted = true; - this.dataGridViewComboBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn1.Width = 70; - // - // dataGridViewComboBoxColumn2 - // - this.dataGridViewComboBoxColumn2.DataPropertyName = "Role"; - this.dataGridViewComboBoxColumn2.HeaderText = "2日"; - this.dataGridViewComboBoxColumn2.MinimumWidth = 6; - this.dataGridViewComboBoxColumn2.Name = "dataGridViewComboBoxColumn2"; - this.dataGridViewComboBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn2.Sorted = true; - this.dataGridViewComboBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn2.Width = 90; - // - // dataGridViewComboBoxColumn3 - // - this.dataGridViewComboBoxColumn3.DataPropertyName = "Date1"; - this.dataGridViewComboBoxColumn3.HeaderText = "3日"; - this.dataGridViewComboBoxColumn3.MinimumWidth = 6; - this.dataGridViewComboBoxColumn3.Name = "dataGridViewComboBoxColumn3"; - this.dataGridViewComboBoxColumn3.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn3.Sorted = true; - this.dataGridViewComboBoxColumn3.Width = 90; - // - // dataGridViewComboBoxColumn4 - // - this.dataGridViewComboBoxColumn4.DataPropertyName = "Date2"; - this.dataGridViewComboBoxColumn4.HeaderText = "4日"; - this.dataGridViewComboBoxColumn4.MinimumWidth = 6; - this.dataGridViewComboBoxColumn4.Name = "dataGridViewComboBoxColumn4"; - this.dataGridViewComboBoxColumn4.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn4.Sorted = true; - this.dataGridViewComboBoxColumn4.Width = 90; - // - // dataGridViewComboBoxColumn5 - // - this.dataGridViewComboBoxColumn5.DataPropertyName = "Date3"; - this.dataGridViewComboBoxColumn5.HeaderText = "5日"; - this.dataGridViewComboBoxColumn5.MinimumWidth = 6; - this.dataGridViewComboBoxColumn5.Name = "dataGridViewComboBoxColumn5"; - this.dataGridViewComboBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn5.Sorted = true; - this.dataGridViewComboBoxColumn5.Width = 90; - // - // dataGridViewComboBoxColumn6 - // - this.dataGridViewComboBoxColumn6.DataPropertyName = "Date4"; - this.dataGridViewComboBoxColumn6.HeaderText = "6日"; - this.dataGridViewComboBoxColumn6.MinimumWidth = 6; - this.dataGridViewComboBoxColumn6.Name = "dataGridViewComboBoxColumn6"; - this.dataGridViewComboBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn6.Sorted = true; - this.dataGridViewComboBoxColumn6.Width = 90; - // - // dataGridViewComboBoxColumn7 - // - this.dataGridViewComboBoxColumn7.DataPropertyName = "Date5"; - this.dataGridViewComboBoxColumn7.HeaderText = "7日"; - this.dataGridViewComboBoxColumn7.MinimumWidth = 6; - this.dataGridViewComboBoxColumn7.Name = "dataGridViewComboBoxColumn7"; - this.dataGridViewComboBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn7.Sorted = true; - this.dataGridViewComboBoxColumn7.Width = 90; - // - // dataGridViewComboBoxColumn8 - // - this.dataGridViewComboBoxColumn8.DataPropertyName = "Date6"; - this.dataGridViewComboBoxColumn8.HeaderText = "8日"; - this.dataGridViewComboBoxColumn8.MinimumWidth = 6; - this.dataGridViewComboBoxColumn8.Name = "dataGridViewComboBoxColumn8"; - this.dataGridViewComboBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn8.Sorted = true; - this.dataGridViewComboBoxColumn8.Width = 90; - // - // dataGridViewComboBoxColumn9 - // - this.dataGridViewComboBoxColumn9.DataPropertyName = "Date7"; - this.dataGridViewComboBoxColumn9.HeaderText = "9日"; - this.dataGridViewComboBoxColumn9.MinimumWidth = 6; - this.dataGridViewComboBoxColumn9.Name = "dataGridViewComboBoxColumn9"; - this.dataGridViewComboBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn9.Sorted = true; - this.dataGridViewComboBoxColumn9.Width = 90; - // - // dataGridViewComboBoxColumn10 - // - this.dataGridViewComboBoxColumn10.DataPropertyName = "Date8"; - this.dataGridViewComboBoxColumn10.HeaderText = "10日"; - this.dataGridViewComboBoxColumn10.MinimumWidth = 6; - this.dataGridViewComboBoxColumn10.Name = "dataGridViewComboBoxColumn10"; - this.dataGridViewComboBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn10.Sorted = true; - this.dataGridViewComboBoxColumn10.Width = 90; - // - // dataGridViewComboBoxColumn11 - // - this.dataGridViewComboBoxColumn11.DataPropertyName = "Date9"; - this.dataGridViewComboBoxColumn11.HeaderText = "9日"; - this.dataGridViewComboBoxColumn11.MinimumWidth = 6; - this.dataGridViewComboBoxColumn11.Name = "dataGridViewComboBoxColumn11"; - this.dataGridViewComboBoxColumn11.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn11.Sorted = true; - this.dataGridViewComboBoxColumn11.Width = 90; - // - // dataGridViewComboBoxColumn12 - // - this.dataGridViewComboBoxColumn12.DataPropertyName = "Date10"; - this.dataGridViewComboBoxColumn12.HeaderText = "10日"; - this.dataGridViewComboBoxColumn12.MinimumWidth = 6; - this.dataGridViewComboBoxColumn12.Name = "dataGridViewComboBoxColumn12"; - this.dataGridViewComboBoxColumn12.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn12.Sorted = true; - this.dataGridViewComboBoxColumn12.Width = 90; - // - // dataGridViewComboBoxColumn13 - // - this.dataGridViewComboBoxColumn13.DataPropertyName = "Day1"; - dataGridViewCellStyle14.BackColor = System.Drawing.Color.White; - this.dataGridViewComboBoxColumn13.DefaultCellStyle = dataGridViewCellStyle14; - this.dataGridViewComboBoxColumn13.HeaderText = "第1天"; - this.dataGridViewComboBoxColumn13.MinimumWidth = 6; - this.dataGridViewComboBoxColumn13.Name = "dataGridViewComboBoxColumn13"; - this.dataGridViewComboBoxColumn13.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn13.Sorted = true; - this.dataGridViewComboBoxColumn13.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn13.Width = 120; - // - // dataGridViewComboBoxColumn14 - // - this.dataGridViewComboBoxColumn14.DataPropertyName = "Day2"; - this.dataGridViewComboBoxColumn14.HeaderText = "第2天"; - this.dataGridViewComboBoxColumn14.MinimumWidth = 6; - this.dataGridViewComboBoxColumn14.Name = "dataGridViewComboBoxColumn14"; - this.dataGridViewComboBoxColumn14.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn14.Sorted = true; - this.dataGridViewComboBoxColumn14.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn14.Width = 120; - // - // dataGridViewComboBoxColumn15 - // - this.dataGridViewComboBoxColumn15.DataPropertyName = "Day3"; - this.dataGridViewComboBoxColumn15.HeaderText = "第3天"; - this.dataGridViewComboBoxColumn15.MinimumWidth = 6; - this.dataGridViewComboBoxColumn15.Name = "dataGridViewComboBoxColumn15"; - this.dataGridViewComboBoxColumn15.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn15.Sorted = true; - this.dataGridViewComboBoxColumn15.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn15.Width = 86; - // - // dataGridViewComboBoxColumn16 - // - this.dataGridViewComboBoxColumn16.DataPropertyName = "Day4"; - this.dataGridViewComboBoxColumn16.HeaderText = "第4天"; - this.dataGridViewComboBoxColumn16.MinimumWidth = 6; - this.dataGridViewComboBoxColumn16.Name = "dataGridViewComboBoxColumn16"; - this.dataGridViewComboBoxColumn16.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn16.Sorted = true; - this.dataGridViewComboBoxColumn16.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn16.Width = 86; - // - // dataGridViewComboBoxColumn17 - // - this.dataGridViewComboBoxColumn17.DataPropertyName = "Day5"; - this.dataGridViewComboBoxColumn17.HeaderText = "第5天"; - this.dataGridViewComboBoxColumn17.MinimumWidth = 6; - this.dataGridViewComboBoxColumn17.Name = "dataGridViewComboBoxColumn17"; - this.dataGridViewComboBoxColumn17.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn17.Sorted = true; - this.dataGridViewComboBoxColumn17.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn17.Width = 86; - // - // dataGridViewComboBoxColumn18 - // - this.dataGridViewComboBoxColumn18.DataPropertyName = "Day6"; - this.dataGridViewComboBoxColumn18.HeaderText = "第6天"; - this.dataGridViewComboBoxColumn18.MinimumWidth = 6; - this.dataGridViewComboBoxColumn18.Name = "dataGridViewComboBoxColumn18"; - this.dataGridViewComboBoxColumn18.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn18.Sorted = true; - this.dataGridViewComboBoxColumn18.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn18.Width = 86; - // - // dataGridViewComboBoxColumn19 - // - this.dataGridViewComboBoxColumn19.DataPropertyName = "Day7"; - this.dataGridViewComboBoxColumn19.HeaderText = "第7天"; - this.dataGridViewComboBoxColumn19.MinimumWidth = 6; - this.dataGridViewComboBoxColumn19.Name = "dataGridViewComboBoxColumn19"; - this.dataGridViewComboBoxColumn19.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn19.Sorted = true; - this.dataGridViewComboBoxColumn19.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn19.Width = 86; - // - // dataGridViewComboBoxColumn20 - // - this.dataGridViewComboBoxColumn20.DataPropertyName = "Day8"; - this.dataGridViewComboBoxColumn20.HeaderText = "第8天"; - this.dataGridViewComboBoxColumn20.MinimumWidth = 6; - this.dataGridViewComboBoxColumn20.Name = "dataGridViewComboBoxColumn20"; - this.dataGridViewComboBoxColumn20.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn20.Sorted = true; - this.dataGridViewComboBoxColumn20.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn20.Width = 86; - // - // dataGridViewComboBoxColumn21 - // - this.dataGridViewComboBoxColumn21.DataPropertyName = "Day9"; - this.dataGridViewComboBoxColumn21.HeaderText = "第9天"; - this.dataGridViewComboBoxColumn21.MinimumWidth = 6; - this.dataGridViewComboBoxColumn21.Name = "dataGridViewComboBoxColumn21"; - this.dataGridViewComboBoxColumn21.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn21.Sorted = true; - this.dataGridViewComboBoxColumn21.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn21.Width = 86; - // - // dataGridViewComboBoxColumn22 - // - this.dataGridViewComboBoxColumn22.DataPropertyName = "Date20"; - this.dataGridViewComboBoxColumn22.HeaderText = "20日"; - this.dataGridViewComboBoxColumn22.MinimumWidth = 6; - this.dataGridViewComboBoxColumn22.Name = "dataGridViewComboBoxColumn22"; - this.dataGridViewComboBoxColumn22.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn22.Sorted = true; - this.dataGridViewComboBoxColumn22.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn22.Width = 90; - // - // dataGridViewComboBoxColumn23 - // - this.dataGridViewComboBoxColumn23.DataPropertyName = "Date21"; - this.dataGridViewComboBoxColumn23.HeaderText = "21日"; - this.dataGridViewComboBoxColumn23.MinimumWidth = 6; - this.dataGridViewComboBoxColumn23.Name = "dataGridViewComboBoxColumn23"; - this.dataGridViewComboBoxColumn23.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn23.Sorted = true; - this.dataGridViewComboBoxColumn23.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn23.Width = 90; - // - // dataGridViewComboBoxColumn24 - // - this.dataGridViewComboBoxColumn24.DataPropertyName = "Date22"; - this.dataGridViewComboBoxColumn24.HeaderText = "22日"; - this.dataGridViewComboBoxColumn24.MinimumWidth = 6; - this.dataGridViewComboBoxColumn24.Name = "dataGridViewComboBoxColumn24"; - this.dataGridViewComboBoxColumn24.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn24.Sorted = true; - this.dataGridViewComboBoxColumn24.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn24.Width = 90; - // - // dataGridViewComboBoxColumn25 - // - this.dataGridViewComboBoxColumn25.DataPropertyName = "Date23"; - this.dataGridViewComboBoxColumn25.HeaderText = "23日"; - this.dataGridViewComboBoxColumn25.MinimumWidth = 6; - this.dataGridViewComboBoxColumn25.Name = "dataGridViewComboBoxColumn25"; - this.dataGridViewComboBoxColumn25.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn25.Sorted = true; - this.dataGridViewComboBoxColumn25.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn25.Width = 90; - // - // dataGridViewComboBoxColumn26 - // - this.dataGridViewComboBoxColumn26.DataPropertyName = "Date24"; - this.dataGridViewComboBoxColumn26.HeaderText = "24日"; - this.dataGridViewComboBoxColumn26.MinimumWidth = 6; - this.dataGridViewComboBoxColumn26.Name = "dataGridViewComboBoxColumn26"; - this.dataGridViewComboBoxColumn26.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn26.Sorted = true; - this.dataGridViewComboBoxColumn26.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn26.Width = 90; - // - // dataGridViewComboBoxColumn27 - // - this.dataGridViewComboBoxColumn27.DataPropertyName = "Date25"; - this.dataGridViewComboBoxColumn27.HeaderText = "25日"; - this.dataGridViewComboBoxColumn27.MinimumWidth = 6; - this.dataGridViewComboBoxColumn27.Name = "dataGridViewComboBoxColumn27"; - this.dataGridViewComboBoxColumn27.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn27.Sorted = true; - this.dataGridViewComboBoxColumn27.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn27.Width = 90; - // - // dataGridViewComboBoxColumn28 - // - this.dataGridViewComboBoxColumn28.DataPropertyName = "Date26"; - this.dataGridViewComboBoxColumn28.HeaderText = "26日"; - this.dataGridViewComboBoxColumn28.MinimumWidth = 6; - this.dataGridViewComboBoxColumn28.Name = "dataGridViewComboBoxColumn28"; - this.dataGridViewComboBoxColumn28.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn28.Sorted = true; - this.dataGridViewComboBoxColumn28.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn28.Width = 90; - // - // dataGridViewComboBoxColumn29 - // - this.dataGridViewComboBoxColumn29.DataPropertyName = "Date27"; - this.dataGridViewComboBoxColumn29.HeaderText = "27日"; - this.dataGridViewComboBoxColumn29.MinimumWidth = 6; - this.dataGridViewComboBoxColumn29.Name = "dataGridViewComboBoxColumn29"; - this.dataGridViewComboBoxColumn29.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn29.Sorted = true; - this.dataGridViewComboBoxColumn29.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn29.Width = 90; - // - // dataGridViewComboBoxColumn30 - // - this.dataGridViewComboBoxColumn30.DataPropertyName = "Date28"; - this.dataGridViewComboBoxColumn30.HeaderText = "28日"; - this.dataGridViewComboBoxColumn30.MinimumWidth = 6; - this.dataGridViewComboBoxColumn30.Name = "dataGridViewComboBoxColumn30"; - this.dataGridViewComboBoxColumn30.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn30.Sorted = true; - this.dataGridViewComboBoxColumn30.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn30.Width = 90; - // - // dataGridViewComboBoxColumn31 - // - this.dataGridViewComboBoxColumn31.DataPropertyName = "Date29"; - this.dataGridViewComboBoxColumn31.HeaderText = "29日"; - this.dataGridViewComboBoxColumn31.MinimumWidth = 6; - this.dataGridViewComboBoxColumn31.Name = "dataGridViewComboBoxColumn31"; - this.dataGridViewComboBoxColumn31.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn31.Sorted = true; - this.dataGridViewComboBoxColumn31.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn31.Width = 90; - // - // dataGridViewComboBoxColumn32 - // - this.dataGridViewComboBoxColumn32.DataPropertyName = "Date30"; - this.dataGridViewComboBoxColumn32.HeaderText = "30日"; - this.dataGridViewComboBoxColumn32.MinimumWidth = 6; - this.dataGridViewComboBoxColumn32.Name = "dataGridViewComboBoxColumn32"; - this.dataGridViewComboBoxColumn32.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn32.Sorted = true; - this.dataGridViewComboBoxColumn32.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn32.Width = 90; - // - // dataGridViewComboBoxColumn33 - // - this.dataGridViewComboBoxColumn33.DataPropertyName = "Date31"; - this.dataGridViewComboBoxColumn33.HeaderText = "31日"; - this.dataGridViewComboBoxColumn33.MinimumWidth = 6; - this.dataGridViewComboBoxColumn33.Name = "dataGridViewComboBoxColumn33"; - this.dataGridViewComboBoxColumn33.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn33.Sorted = true; - this.dataGridViewComboBoxColumn33.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn33.Width = 90; - // - // dataGridViewTextBoxColumn4 - // - this.dataGridViewTextBoxColumn4.DataPropertyName = "NAME"; - dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn4.DefaultCellStyle = dataGridViewCellStyle15; - this.dataGridViewTextBoxColumn4.HeaderText = "角色"; - this.dataGridViewTextBoxColumn4.MinimumWidth = 6; - this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4"; - this.dataGridViewTextBoxColumn4.ReadOnly = true; - this.dataGridViewTextBoxColumn4.Width = 98; - // - // dataGridViewTextBoxColumn5 - // - this.dataGridViewTextBoxColumn5.DataPropertyName = "Day1"; - dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; - this.dataGridViewTextBoxColumn5.DefaultCellStyle = dataGridViewCellStyle16; - this.dataGridViewTextBoxColumn5.HeaderText = "第1天"; - this.dataGridViewTextBoxColumn5.MinimumWidth = 6; - this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5"; - this.dataGridViewTextBoxColumn5.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn5.Width = 120; - // - // dataGridViewTextBoxColumn6 - // - this.dataGridViewTextBoxColumn6.DataPropertyName = "Day2"; - this.dataGridViewTextBoxColumn6.HeaderText = "第2天"; - this.dataGridViewTextBoxColumn6.MinimumWidth = 6; - this.dataGridViewTextBoxColumn6.Name = "dataGridViewTextBoxColumn6"; - this.dataGridViewTextBoxColumn6.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn6.Visible = false; - this.dataGridViewTextBoxColumn6.Width = 120; - // - // dataGridViewComboBoxColumn34 - // - this.dataGridViewComboBoxColumn34.DataPropertyName = "Day1"; - dataGridViewCellStyle17.BackColor = System.Drawing.Color.White; - this.dataGridViewComboBoxColumn34.DefaultCellStyle = dataGridViewCellStyle17; - this.dataGridViewComboBoxColumn34.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.ComboBox; - this.dataGridViewComboBoxColumn34.DisplayStyleForCurrentCellOnly = true; - this.dataGridViewComboBoxColumn34.HeaderText = "第1天"; - this.dataGridViewComboBoxColumn34.MinimumWidth = 6; - this.dataGridViewComboBoxColumn34.Name = "dataGridViewComboBoxColumn34"; - this.dataGridViewComboBoxColumn34.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn34.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn34.Width = 86; - // - // dataGridViewComboBoxColumn35 - // - this.dataGridViewComboBoxColumn35.DataPropertyName = "Day2"; - this.dataGridViewComboBoxColumn35.DisplayStyle = System.Windows.Forms.DataGridViewComboBoxDisplayStyle.Nothing; - this.dataGridViewComboBoxColumn35.HeaderText = "第2天"; - this.dataGridViewComboBoxColumn35.MinimumWidth = 6; - this.dataGridViewComboBoxColumn35.Name = "dataGridViewComboBoxColumn35"; - this.dataGridViewComboBoxColumn35.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn35.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn35.Width = 86; - // - // dataGridViewComboBoxColumn36 - // - this.dataGridViewComboBoxColumn36.DataPropertyName = "Day3"; - this.dataGridViewComboBoxColumn36.HeaderText = "第3天"; - this.dataGridViewComboBoxColumn36.MinimumWidth = 6; - this.dataGridViewComboBoxColumn36.Name = "dataGridViewComboBoxColumn36"; - this.dataGridViewComboBoxColumn36.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn36.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn36.Width = 86; - // - // dataGridViewComboBoxColumn37 - // - this.dataGridViewComboBoxColumn37.DataPropertyName = "Day4"; - this.dataGridViewComboBoxColumn37.HeaderText = "第4天"; - this.dataGridViewComboBoxColumn37.MinimumWidth = 6; - this.dataGridViewComboBoxColumn37.Name = "dataGridViewComboBoxColumn37"; - this.dataGridViewComboBoxColumn37.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn37.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn37.Width = 86; - // - // dataGridViewComboBoxColumn38 - // - this.dataGridViewComboBoxColumn38.DataPropertyName = "Day5"; - this.dataGridViewComboBoxColumn38.HeaderText = "第5天"; - this.dataGridViewComboBoxColumn38.MinimumWidth = 6; - this.dataGridViewComboBoxColumn38.Name = "dataGridViewComboBoxColumn38"; - this.dataGridViewComboBoxColumn38.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn38.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn38.Width = 86; - // - // dataGridViewComboBoxColumn39 - // - this.dataGridViewComboBoxColumn39.DataPropertyName = "Day6"; - this.dataGridViewComboBoxColumn39.HeaderText = "第6天"; - this.dataGridViewComboBoxColumn39.MinimumWidth = 6; - this.dataGridViewComboBoxColumn39.Name = "dataGridViewComboBoxColumn39"; - this.dataGridViewComboBoxColumn39.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn39.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn39.Width = 86; - // - // dataGridViewComboBoxColumn40 - // - this.dataGridViewComboBoxColumn40.DataPropertyName = "Day7"; - this.dataGridViewComboBoxColumn40.HeaderText = "第7天"; - this.dataGridViewComboBoxColumn40.MinimumWidth = 6; - this.dataGridViewComboBoxColumn40.Name = "dataGridViewComboBoxColumn40"; - this.dataGridViewComboBoxColumn40.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn40.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn40.Width = 86; - // - // dataGridViewComboBoxColumn41 - // - this.dataGridViewComboBoxColumn41.DataPropertyName = "Day8"; - this.dataGridViewComboBoxColumn41.HeaderText = "第8天"; - this.dataGridViewComboBoxColumn41.MinimumWidth = 6; - this.dataGridViewComboBoxColumn41.Name = "dataGridViewComboBoxColumn41"; - this.dataGridViewComboBoxColumn41.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn41.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn41.Width = 86; - // - // dataGridViewComboBoxColumn42 - // - this.dataGridViewComboBoxColumn42.DataPropertyName = "Day9"; - this.dataGridViewComboBoxColumn42.HeaderText = "第9天"; - this.dataGridViewComboBoxColumn42.MinimumWidth = 6; - this.dataGridViewComboBoxColumn42.Name = "dataGridViewComboBoxColumn42"; - this.dataGridViewComboBoxColumn42.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewComboBoxColumn42.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; - this.dataGridViewComboBoxColumn42.Width = 86; - // - // dataGridViewTextBoxColumn7 - // - this.dataGridViewTextBoxColumn7.DataPropertyName = "Day3"; - this.dataGridViewTextBoxColumn7.HeaderText = "第3天"; - this.dataGridViewTextBoxColumn7.MinimumWidth = 6; - this.dataGridViewTextBoxColumn7.Name = "dataGridViewTextBoxColumn7"; - this.dataGridViewTextBoxColumn7.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn7.Visible = false; - this.dataGridViewTextBoxColumn7.Width = 120; - // - // dataGridViewTextBoxColumn8 - // - this.dataGridViewTextBoxColumn8.DataPropertyName = "Day4"; - this.dataGridViewTextBoxColumn8.HeaderText = "第4天"; - this.dataGridViewTextBoxColumn8.MinimumWidth = 6; - this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; - this.dataGridViewTextBoxColumn8.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn8.Width = 120; - // - // dataGridViewTextBoxColumn9 - // - this.dataGridViewTextBoxColumn9.DataPropertyName = "Day5"; - this.dataGridViewTextBoxColumn9.HeaderText = "第5天"; - this.dataGridViewTextBoxColumn9.MinimumWidth = 6; - this.dataGridViewTextBoxColumn9.Name = "dataGridViewTextBoxColumn9"; - this.dataGridViewTextBoxColumn9.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn9.Width = 98; - // - // dataGridViewTextBoxColumn10 - // - this.dataGridViewTextBoxColumn10.DataPropertyName = "Day6"; - this.dataGridViewTextBoxColumn10.HeaderText = "第6天"; - this.dataGridViewTextBoxColumn10.MinimumWidth = 6; - this.dataGridViewTextBoxColumn10.Name = "dataGridViewTextBoxColumn10"; - this.dataGridViewTextBoxColumn10.Resizable = System.Windows.Forms.DataGridViewTriState.True; - this.dataGridViewTextBoxColumn10.Width = 98; - // // dataGridViewTextBoxColumn11 // this.dataGridViewTextBoxColumn11.DataPropertyName = "Day7"; @@ -2166,6 +2284,26 @@ this.dataGridViewTextBoxColumn17.ReadOnly = true; this.dataGridViewTextBoxColumn17.Width = 120; // + // btnupMonth + // + this.btnupMonth.Location = new System.Drawing.Point(210, 8); + this.btnupMonth.Name = "btnupMonth"; + this.btnupMonth.Size = new System.Drawing.Size(53, 28); + this.btnupMonth.TabIndex = 13; + this.btnupMonth.Text = "上一月"; + this.btnupMonth.UseVisualStyleBackColor = true; + this.btnupMonth.Click += new System.EventHandler(this.btnupMonth_Click); + // + // btnDownMonth + // + this.btnDownMonth.Location = new System.Drawing.Point(380, 8); + this.btnDownMonth.Name = "btnDownMonth"; + this.btnDownMonth.Size = new System.Drawing.Size(53, 28); + this.btnDownMonth.TabIndex = 13; + this.btnDownMonth.Text = "下一月"; + this.btnDownMonth.UseVisualStyleBackColor = true; + this.btnDownMonth.Click += new System.EventHandler(this.btnDownMonth_Click); + // // FrmScheduling2 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -2186,6 +2324,8 @@ ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.panel4.ResumeLayout(false); this.panel4.PerformLayout(); + this.panel3.ResumeLayout(false); + this.panel3.PerformLayout(); this.panelBodyT.ResumeLayout(false); this.panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.dgvShiftPlan)).EndInit(); @@ -2198,8 +2338,6 @@ this.panelTop.ResumeLayout(false); this.panelTopT.ResumeLayout(false); this.panelTopT.PerformLayout(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); this.ResumeLayout(false); } @@ -2353,6 +2491,11 @@ private System.Windows.Forms.DataGridViewComboBoxColumn Date31; private System.Windows.Forms.DataGridViewTextBoxColumn Remark; private System.Windows.Forms.CheckBox chxModified; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn43; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn44; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn45; + private System.Windows.Forms.DataGridViewComboBoxColumn dataGridViewComboBoxColumn46; + private System.Windows.Forms.DataGridViewCheckBoxColumn colChecked2; private System.Windows.Forms.DataGridViewTextBoxColumn ScheduleName; private System.Windows.Forms.DataGridViewTextBoxColumn Id; private System.Windows.Forms.DataGridViewComboBoxColumn Day1; @@ -2368,5 +2511,7 @@ private System.Windows.Forms.DataGridViewComboBoxColumn Day11; private System.Windows.Forms.DataGridViewComboBoxColumn Day12; private System.Windows.Forms.DataGridViewComboBoxColumn Day13; + private System.Windows.Forms.Button btnDownMonth; + private System.Windows.Forms.Button btnupMonth; } } \ No newline at end of file diff --git a/AIMS/OperationFront/FrmScheduling2.resx b/AIMS/OperationFront/FrmScheduling2.resx index 5e5943a..7ef9687 100644 --- a/AIMS/OperationFront/FrmScheduling2.resx +++ b/AIMS/OperationFront/FrmScheduling2.resx @@ -237,6 +237,9 @@ True + + True + True diff --git a/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs b/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs index 15ef948..664f246 100644 --- a/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs +++ b/AIMSEntity/BLL/AutoGenerate/BOperationRecord.cs @@ -4,25 +4,26 @@ using AIMSModel; using System.Collections; using System.Collections.Generic; using DrawGraph; +using System.Data.SqlClient; namespace AIMSBLL { public partial class BOperationRecord - { - #region 插入实体操作部份 - /// + { + #region 插入实体操作部份 + /// /// 插入实体 /// /// 实体类对象 /// 标识列值或影响的记录行数 - public static int Insert(OperationRecord operationRecord) - { - return DOperationRecord.Insert(operationRecord); - } - #endregion - - #region 删除实体操作 - /// + public static int Insert(OperationRecord operationRecord) + { + return DOperationRecord.Insert(operationRecord); + } + #endregion + + #region 删除实体操作 + /// /// 删除实体 /// /// 实体类对象 @@ -31,7 +32,7 @@ namespace AIMSBLL { return DOperationRecord.Delete(operationRecord); } - /// + /// /// 根据对象查询语句删除 /// /// 对象查询语句 @@ -39,23 +40,23 @@ namespace AIMSBLL /// 影响的记录行数 public static int Delete(string oql, ParameterList parameters) { - return DOperationRecord.Delete(oql,parameters); + return DOperationRecord.Delete(oql, parameters); } - #endregion - - #region 更新实体操作 - - /// + #endregion + + #region 更新实体操作 + + /// /// 更新实体 /// /// 实体类对象 /// 影响的记录行数 - public static int Update(OperationRecord operationRecord) - { - return DOperationRecord.Update(operationRecord); - } - - /// + public static int Update(OperationRecord operationRecord) + { + return DOperationRecord.Update(operationRecord); + } + + /// /// 根据对象查询语句更新实体 /// /// 对象查询语句 @@ -63,31 +64,43 @@ namespace AIMSBLL /// 影响的记录行数 public static int Update(string oql, ParameterList parameters) { - return DOperationRecord.Update(oql,parameters); + int Result = DOperationRecord.Update(oql, parameters); + if (Result > 0 && parameters != null && oql.Contains("Time") && parameters.Keys.Count > 0) + { + foreach (string key in parameters.Keys) + { + if (key.ToUpper() == "@ID") + { + DOperationRecord.UpdateTimeSpan(int.Parse(parameters[key].ToString())); + break; + } + } + } + return Result; } - #endregion - - #region 查询实体集合 - /// + #endregion + + #region 查询实体集合 + /// /// \查询实体集合 /// /// 实体类对象集合 public static List Select() { - return DOperationRecord.Select(); + return DOperationRecord.Select(); } - /// + /// /// 递归查询实体集合 /// - /// 递归类型 + /// 递归类型 /// 递归深度 /// 实体类对象集合 public static List Select(RecursiveType recursiveType, int recursiveDepth) { - return DOperationRecord.Select(recursiveType, recursiveDepth); + return DOperationRecord.Select(recursiveType, recursiveDepth); } - - /// + + /// /// 根据对象查询语句查询实体集合 /// /// 对象查询语句 @@ -95,25 +108,25 @@ namespace AIMSBLL /// 实体类对象集合 public static List Select(string oql, ParameterList parameters) { - return DOperationRecord.Select(oql, parameters); + return DOperationRecord.Select(oql, parameters); } - - /// + + /// /// 根据对象查询语句递归查询实体集合 /// /// 对象查询语句 /// 参数列表 - /// 递归类型 + /// 递归类型 /// 递归深度 /// 实体类对象集合 - public static List Select(string oql, ParameterList parameters,RecursiveType recursiveType, int recursiveDepth) + public static List Select(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) { - return DOperationRecord.Select(oql, parameters, recursiveType, recursiveDepth); + return DOperationRecord.Select(oql, parameters, recursiveType, recursiveDepth); } - #endregion - - #region 查询单个实体 - /// + #endregion + + #region 查询单个实体 + /// /// 更据对象查询语句查询单个实体 /// /// 对象查询语句 @@ -121,22 +134,22 @@ namespace AIMSBLL /// 实体对象 public static OperationRecord SelectSingle(string oql, ParameterList parameters) { - return DOperationRecord.SelectSingle(oql, parameters); + return DOperationRecord.SelectSingle(oql, parameters); } - /// + /// /// 更据对象查询语句递归查询单个实体 /// /// 对象查询语句 /// 参数列表 - /// 递归类型 + /// 递归类型 /// 递归深度 /// 实体对象 public static OperationRecord SelectSingle(string oql, ParameterList parameters, RecursiveType recursiveType, int recursiveDepth) { - return DOperationRecord.SelectSingle(oql, parameters, recursiveType, recursiveDepth); - } - - /// + return DOperationRecord.SelectSingle(oql, parameters, recursiveType, recursiveDepth); + } + + /// /// 按主键字段查询特定实体 /// /// 主键值 @@ -145,17 +158,17 @@ namespace AIMSBLL { return DOperationRecord.SelectSingle(id); } - - /// + + /// /// 更据主键递归查询单个实体 /// - /// 递归类型 + /// 递归类型 /// 递归深度 /// 实体对象 public static OperationRecord SelectSingle(int? id, RecursiveType recursiveType, int recursiveDepth) { - return DOperationRecord.SelectSingle(id, recursiveType, recursiveDepth); - } - #endregion + return DOperationRecord.SelectSingle(id, recursiveType, recursiveDepth); + } + #endregion } } diff --git a/AIMSEntity/BLL/Extension/BOperationRecord.cs b/AIMSEntity/BLL/Extension/BOperationRecord.cs index ed43a59..e3647b3 100644 --- a/AIMSEntity/BLL/Extension/BOperationRecord.cs +++ b/AIMSEntity/BLL/Extension/BOperationRecord.cs @@ -62,9 +62,31 @@ namespace AIMSBLL _record.Sex = OperationFrontdt.Rows[0]["Sex"].ToString(); _record.Age = OperationFrontdt.Rows[0]["Age"].ToString(); if (OperationFrontdt.Rows[0]["Height"].ToString() != "") - _record.Height = double.Parse(OperationFrontdt.Rows[0]["Height"].ToString()).ToString(); + { + double Height = 0; + bool isNum = double.TryParse(OperationFrontdt.Rows[0]["Height"].ToString(), out Height); + if (isNum == true) + { + _record.Height = Height.ToString(); + } + else + { + _record.Height = OperationFrontdt.Rows[0]["Height"].ToString(); + } + } if (OperationFrontdt.Rows[0]["Weight"].ToString() != "") - _record.Weight = double.Parse(OperationFrontdt.Rows[0]["Weight"].ToString()).ToString(); + { + double Weight = 0; + bool isNum = double.TryParse(OperationFrontdt.Rows[0]["Weight"].ToString(), out Weight); + if (isNum == true) + { + _record.Weight = Weight.ToString(); + } + else + { + _record.Weight = OperationFrontdt.Rows[0]["Weight"].ToString(); + } + } _record.Applydiagnose = OperationFrontdt.Rows[0]["ApplyDiagnoseInfoId"].ToString(); _record.Applyoperation = OperationFrontdt.Rows[0]["ApplyOperationInfoId"].ToString(); _record.OperationType = OperationFrontdt.Rows[0]["OperationType"].ToString(); diff --git a/AIMSEntity/DAL/Extension/DOperationApply.cs b/AIMSEntity/DAL/Extension/DOperationApply.cs index f95d055..424b7af 100644 --- a/AIMSEntity/DAL/Extension/DOperationApply.cs +++ b/AIMSEntity/DAL/Extension/DOperationApply.cs @@ -298,7 +298,7 @@ namespace AIMSDAL } 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"; + string strSql = " SELECT * from [dbo].[V_OperationRecordInfo] WHERE OrderOperationTime>='" + BegInData + "' and OrderOperationTime<'" + EndData + "' order by OperationRoomId,PlanOrder asc"; return HelperDB.DbHelperSQL.GetDataTable(strSql.ToString()); } diff --git a/AIMSEntity/DAL/Extension/DOperationRecord.cs b/AIMSEntity/DAL/Extension/DOperationRecord.cs index 117a734..a4ce362 100644 --- a/AIMSEntity/DAL/Extension/DOperationRecord.cs +++ b/AIMSEntity/DAL/Extension/DOperationRecord.cs @@ -50,6 +50,11 @@ namespace AIMSDAL "',OperateDate = '" + AIMSExtension.PublicMethod.SystemDate() + "' WHERE PatientId=" + PatientId + " and RecoverId='" + TypeId + "'"; HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); + } + public static void UpdateTimeSpan(int Id) + { + string strSql = " update OperationRecord set RoomTimeSpan=ISNULL(DATEDIFF(minute,InRoomTime,OutRoomTime),0),OperationTimeSpan=ISNULL(DATEDIFF(minute,OperationBeginTime,OperationEndTime),0),AnaesthesiaTimeSpan=ISNULL(DATEDIFF(minute,AnesthesiaBeginTime, AnesthesiaEndTime),0) where id ='" + Id+"' "; + HelperDB.DbHelperSQL.ExecNonQuery(strSql.ToString()); } public static void DeleteOperationRecordData(int RecorId, int PatientId, int TypeId) diff --git a/DocumentManagement/DocumentEntity/DocumentExtension.cs b/DocumentManagement/DocumentEntity/DocumentExtension.cs index fce8947..8849917 100644 --- a/DocumentManagement/DocumentEntity/DocumentExtension.cs +++ b/DocumentManagement/DocumentEntity/DocumentExtension.cs @@ -223,6 +223,9 @@ namespace DocumentManagement } } } +//100038004389 + +//https://wqs.jd.com/order/m.confirm.shtml?sceneval=2&bid=&wdref=https%3A%2F%2Fitem.m.jd.com%2Fproduct%2F100038004389.html%3Fsceneval%3D2%26jxsid%3D16698592780168569097&scene=jd&isCanEdit=1&EncryptInfo=&Token=&commlist=100038004389%2C%2C1%2C100038004389%2C1%2C0%2C0&locationid=1-72-2819&type=0&lg=0&supm=0&favorablerate=97&jxsid=16698592780168569097&login=1&r=0.9297322414368827#/index //var p = element.GetType().GetProperty("ID").GetValue(element, null); //string pID = p.ToString(); diff --git a/DrawGraph/AreaManage/BaseInfoTopManage.cs b/DrawGraph/AreaManage/BaseInfoTopManage.cs index 7c2ae0d..cf8c492 100644 --- a/DrawGraph/AreaManage/BaseInfoTopManage.cs +++ b/DrawGraph/AreaManage/BaseInfoTopManage.cs @@ -107,18 +107,25 @@ namespace DrawGraph public void SetBMI(bool IsUpdate = false) { - if (myOpeRecord.Height != null && myOpeRecord.Height != "" && myOpeRecord.Weight != null && myOpeRecord.Weight != "" && myOpeRecord.Weight != "卧床") + if (myOpeRecord.Height != null && myOpeRecord.Height != "" && myOpeRecord.Weight != null && myOpeRecord.Weight != "" && myOpeRecord.Height != "卧床" && myOpeRecord.Weight != "卧床") { - double hei = double.Parse(myOpeRecord.Height) / 100; - double wei = double.Parse(myOpeRecord.Weight); - double BMI = wei / hei / hei; - myOpeRecord.BMI = Math.Floor(BMI).ToString(); - template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); - } - else - { - myOpeRecord.BMI = ""; - template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); + double Weight = 0; + bool isNum = double.TryParse(myOpeRecord.Weight, out Weight); + double Height = 0; + bool isNum2 = double.TryParse(myOpeRecord.Height, out Height); + if (isNum == true && isNum2 == true && Height != 0 && Weight != 0) + { + double hei = Height / 100; + double wei = Weight; + double BMI = wei / hei / hei; + myOpeRecord.BMI = Math.Floor(BMI).ToString(); + template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); + } + else + { + myOpeRecord.BMI = ""; + template.SetObjValue(myOpeRecord, "OperationRecord.BMI", myOpeRecord.BMI.ToString(), myOpeRecord.BMI.ToString(), IsUpdate); + } } } /// diff --git a/DrawGraph/AreaManage/InstrumentDataManage.cs b/DrawGraph/AreaManage/InstrumentDataManage.cs index dca49ab..5fc038d 100644 --- a/DrawGraph/AreaManage/InstrumentDataManage.cs +++ b/DrawGraph/AreaManage/InstrumentDataManage.cs @@ -308,14 +308,14 @@ namespace DrawGraph { SetApplianceMethod(myOpeRecord.InstrumentList.ApplianceRecordList); } - if (myOpeRecord.InstrumentList.InstrumentNurse != null) + if (myOpeRecord.InstrumentList.InstrumentNurse != null && myOpeRecord.InstrumentList.InstrumentNurse != "") { template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.InstrumentNurse", myOpeRecord.InstrumentList.InstrumentNurse, myOpeRecord.InstrumentList.InstrumentNurse); - } - if (myOpeRecord.InstrumentList.TourNurse != null) + } + if (myOpeRecord.InstrumentList.TourNurse != null && myOpeRecord.InstrumentList.TourNurse != "") { template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.TourNurse", myOpeRecord.InstrumentList.TourNurse, myOpeRecord.InstrumentList.TourNurse); - } + } if (myOpeRecord.InstrumentList.Remark != null) { template.SetObjValue(myOpeRecord, "OperationRecord.InstrumentList.Remark", myOpeRecord.InstrumentList.Remark, myOpeRecord.InstrumentList.Remark);