|
|
@@ -30,13 +30,15 @@ |
|
|
|
{ |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle(); |
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = 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(); |
|
|
|
this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); |
|
|
|
this.StudenTree = new System.Windows.Forms.TreeView(); |
|
|
|
this.dgvStudent = new System.Windows.Forms.DataGridView(); |
|
|
|
this.任务名称 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
|
this.任务状态 = new System.Windows.Forms.DataGridViewTextBoxColumn(); |
|
|
|
this.操作 = new System.Windows.Forms.DataGridViewButtonColumn(); |
|
|
|
this.tableLayoutPanel1.SuspendLayout(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvStudent)).BeginInit(); |
|
|
@@ -70,6 +72,8 @@ |
|
|
|
// |
|
|
|
// dgvStudent |
|
|
|
// |
|
|
|
this.dgvStudent.AllowUserToAddRows = false; |
|
|
|
this.dgvStudent.AllowUserToDeleteRows = false; |
|
|
|
this.dgvStudent.AllowUserToResizeColumns = false; |
|
|
|
this.dgvStudent.AllowUserToResizeRows = false; |
|
|
|
dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
|
@@ -84,28 +88,34 @@ |
|
|
|
dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; |
|
|
|
this.dgvStudent.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; |
|
|
|
this.dgvStudent.ColumnHeadersHeight = 40; |
|
|
|
this.dgvStudent.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; |
|
|
|
this.dgvStudent.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { |
|
|
|
this.任务名称, |
|
|
|
this.任务状态, |
|
|
|
this.操作}); |
|
|
|
this.dgvStudent.Dock = System.Windows.Forms.DockStyle.Fill; |
|
|
|
this.dgvStudent.EnableHeadersVisualStyles = false; |
|
|
|
this.dgvStudent.Location = new System.Drawing.Point(205, 3); |
|
|
|
this.dgvStudent.MultiSelect = false; |
|
|
|
this.dgvStudent.Name = "dgvStudent"; |
|
|
|
dataGridViewCellStyle5.BackColor = System.Drawing.Color.WhiteSmoke; |
|
|
|
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Black; |
|
|
|
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
|
|
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.WhiteSmoke; |
|
|
|
this.dgvStudent.RowsDefaultCellStyle = dataGridViewCellStyle5; |
|
|
|
this.dgvStudent.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.AutoSizeToAllHeaders; |
|
|
|
dataGridViewCellStyle6.BackColor = System.Drawing.Color.WhiteSmoke; |
|
|
|
dataGridViewCellStyle6.ForeColor = System.Drawing.Color.Black; |
|
|
|
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
|
|
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.Color.WhiteSmoke; |
|
|
|
this.dgvStudent.RowsDefaultCellStyle = dataGridViewCellStyle6; |
|
|
|
this.dgvStudent.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(0)))), ((int)(((byte)(0))))); |
|
|
|
this.dgvStudent.RowTemplate.DefaultCellStyle.SelectionBackColor = System.Drawing.SystemColors.Highlight; |
|
|
|
this.dgvStudent.RowTemplate.DefaultCellStyle.SelectionForeColor = System.Drawing.Color.WhiteSmoke; |
|
|
|
this.dgvStudent.RowTemplate.Height = 33; |
|
|
|
this.dgvStudent.RowTemplate.ReadOnly = true; |
|
|
|
this.dgvStudent.RowTemplate.Resizable = System.Windows.Forms.DataGridViewTriState.False; |
|
|
|
this.dgvStudent.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.CellSelect; |
|
|
|
this.dgvStudent.Size = new System.Drawing.Size(466, 432); |
|
|
|
this.dgvStudent.TabIndex = 1; |
|
|
|
this.dgvStudent.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.DgvStudent_CellContentClick); |
|
|
|
this.dgvStudent.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.DgvStudent_CellFormatting); |
|
|
|
this.dgvStudent.RowPostPaint += new System.Windows.Forms.DataGridViewRowPostPaintEventHandler(this.DgvStudent_RowPostPaint); |
|
|
|
// |
|
|
|
// 任务名称 |
|
|
|
// |
|
|
@@ -116,22 +126,32 @@ |
|
|
|
this.任务名称.DefaultCellStyle = dataGridViewCellStyle3; |
|
|
|
this.任务名称.HeaderText = "任务名称"; |
|
|
|
this.任务名称.Name = "任务名称"; |
|
|
|
this.任务名称.ReadOnly = true; |
|
|
|
// |
|
|
|
// 任务状态 |
|
|
|
// |
|
|
|
this.任务状态.DataPropertyName = "Statu"; |
|
|
|
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
|
|
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F); |
|
|
|
this.任务状态.DefaultCellStyle = dataGridViewCellStyle4; |
|
|
|
this.任务状态.HeaderText = "任务状态"; |
|
|
|
this.任务状态.Name = "任务状态"; |
|
|
|
this.任务状态.ReadOnly = true; |
|
|
|
// |
|
|
|
// 操作 |
|
|
|
// |
|
|
|
this.操作.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill; |
|
|
|
dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
|
|
dataGridViewCellStyle4.BackColor = System.Drawing.Color.DarkSeaGreen; |
|
|
|
dataGridViewCellStyle4.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|
|
|
dataGridViewCellStyle4.ForeColor = System.Drawing.Color.Transparent; |
|
|
|
dataGridViewCellStyle4.NullValue = "查看详情"; |
|
|
|
dataGridViewCellStyle4.SelectionBackColor = System.Drawing.Color.Transparent; |
|
|
|
dataGridViewCellStyle4.SelectionForeColor = System.Drawing.Color.Transparent; |
|
|
|
this.操作.DefaultCellStyle = dataGridViewCellStyle4; |
|
|
|
dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter; |
|
|
|
dataGridViewCellStyle5.BackColor = System.Drawing.Color.DarkSeaGreen; |
|
|
|
dataGridViewCellStyle5.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); |
|
|
|
dataGridViewCellStyle5.ForeColor = System.Drawing.Color.Transparent; |
|
|
|
dataGridViewCellStyle5.NullValue = "查看详情"; |
|
|
|
dataGridViewCellStyle5.SelectionBackColor = System.Drawing.Color.Transparent; |
|
|
|
dataGridViewCellStyle5.SelectionForeColor = System.Drawing.Color.Transparent; |
|
|
|
this.操作.DefaultCellStyle = dataGridViewCellStyle5; |
|
|
|
this.操作.FlatStyle = System.Windows.Forms.FlatStyle.Flat; |
|
|
|
this.操作.HeaderText = "操作"; |
|
|
|
this.操作.Name = "操作"; |
|
|
|
this.操作.Resizable = System.Windows.Forms.DataGridViewTriState.True; |
|
|
|
this.操作.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.Automatic; |
|
|
|
this.操作.Text = ""; |
|
|
|
// |
|
|
@@ -155,6 +175,7 @@ |
|
|
|
private System.Windows.Forms.TreeView StudenTree; |
|
|
|
private System.Windows.Forms.DataGridView dgvStudent; |
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn 任务名称; |
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn 任务状态; |
|
|
|
private System.Windows.Forms.DataGridViewButtonColumn 操作; |
|
|
|
} |
|
|
|
} |