|
@@ -28,21 +28,21 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
- System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
|
this.pbClose = new System.Windows.Forms.PictureBox();
|
|
|
this.dgvLog = new System.Windows.Forms.DataGridView();
|
|
|
- this.ColCutHoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
- this.ColStep = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
- this.ColTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
- this.ColState = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
this.panel2 = new System.Windows.Forms.Panel();
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.lblLogCount = new System.Windows.Forms.Label();
|
|
|
+ this.ColCutHoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
+ this.ColTime = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
+ this.ColStep = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
+ this.ColState = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
|
this.panel1.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pbClose)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dgvLog)).BeginInit();
|
|
@@ -93,46 +93,46 @@
|
|
|
this.dgvLog.AllowUserToDeleteRows = false;
|
|
|
this.dgvLog.AllowUserToResizeColumns = false;
|
|
|
this.dgvLog.AllowUserToResizeRows = false;
|
|
|
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
|
- dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
|
|
|
- dataGridViewCellStyle5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
- dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.HighlightText;
|
|
|
- dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
- dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
- this.dgvLog.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
|
|
|
+ dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
|
+ dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
|
|
|
+ dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
+ dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
+ this.dgvLog.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
|
|
|
this.dgvLog.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
this.dgvLog.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
|
|
this.ColCutHoleName,
|
|
|
- this.ColStep,
|
|
|
this.ColTime,
|
|
|
+ this.ColStep,
|
|
|
this.ColState});
|
|
|
- dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
- dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
|
|
|
- dataGridViewCellStyle6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
- dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
|
- dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.HighlightText;
|
|
|
- dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
- dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
- this.dgvLog.DefaultCellStyle = dataGridViewCellStyle6;
|
|
|
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Window;
|
|
|
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.ControlText;
|
|
|
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
+ this.dgvLog.DefaultCellStyle = dataGridViewCellStyle2;
|
|
|
this.dgvLog.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
this.dgvLog.EnableHeadersVisualStyles = false;
|
|
|
this.dgvLog.Location = new System.Drawing.Point(0, 30);
|
|
|
this.dgvLog.MultiSelect = false;
|
|
|
this.dgvLog.Name = "dgvLog";
|
|
|
this.dgvLog.ReadOnly = true;
|
|
|
- dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
- 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.HighlightText;
|
|
|
- dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
- dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
- this.dgvLog.RowHeadersDefaultCellStyle = dataGridViewCellStyle7;
|
|
|
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
|
|
|
+ dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Control;
|
|
|
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
|
+ dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
|
|
|
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
|
|
|
+ this.dgvLog.RowHeadersDefaultCellStyle = dataGridViewCellStyle3;
|
|
|
this.dgvLog.RowHeadersVisible = false;
|
|
|
this.dgvLog.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing;
|
|
|
- dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
- this.dgvLog.RowsDefaultCellStyle = dataGridViewCellStyle8;
|
|
|
+ dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
+ this.dgvLog.RowsDefaultCellStyle = dataGridViewCellStyle4;
|
|
|
this.dgvLog.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.SystemColors.WindowText;
|
|
|
this.dgvLog.RowTemplate.Height = 23;
|
|
|
this.dgvLog.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
|
|
@@ -145,46 +145,6 @@
|
|
|
this.dgvLog.TabStop = false;
|
|
|
this.dgvLog.SelectionChanged += new System.EventHandler(this.dgvLog_SelectionChanged);
|
|
|
//
|
|
|
- // ColCutHoleName
|
|
|
- //
|
|
|
- this.ColCutHoleName.DataPropertyName = "CutHoleName";
|
|
|
- this.ColCutHoleName.HeaderText = "切孔名称";
|
|
|
- this.ColCutHoleName.Name = "ColCutHoleName";
|
|
|
- this.ColCutHoleName.ReadOnly = true;
|
|
|
- this.ColCutHoleName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
- this.ColCutHoleName.Visible = false;
|
|
|
- this.ColCutHoleName.Width = 180;
|
|
|
- //
|
|
|
- // ColStep
|
|
|
- //
|
|
|
- this.ColStep.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
- this.ColStep.DataPropertyName = "Name";
|
|
|
- this.ColStep.HeaderText = "步骤名称";
|
|
|
- this.ColStep.Name = "ColStep";
|
|
|
- this.ColStep.ReadOnly = true;
|
|
|
- this.ColStep.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
- this.ColStep.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
- //
|
|
|
- // ColTime
|
|
|
- //
|
|
|
- this.ColTime.DataPropertyName = "Time";
|
|
|
- this.ColTime.HeaderText = "完成时间";
|
|
|
- this.ColTime.Name = "ColTime";
|
|
|
- this.ColTime.ReadOnly = true;
|
|
|
- this.ColTime.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
- this.ColTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
- this.ColTime.Width = 180;
|
|
|
- //
|
|
|
- // ColState
|
|
|
- //
|
|
|
- this.ColState.DataPropertyName = "state";
|
|
|
- this.ColState.HeaderText = "状态";
|
|
|
- this.ColState.Name = "ColState";
|
|
|
- this.ColState.ReadOnly = true;
|
|
|
- this.ColState.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
- this.ColState.Visible = false;
|
|
|
- this.ColState.Width = 180;
|
|
|
- //
|
|
|
// panel2
|
|
|
//
|
|
|
this.panel2.BackColor = System.Drawing.Color.White;
|
|
@@ -219,6 +179,45 @@
|
|
|
this.lblLogCount.TabIndex = 0;
|
|
|
this.lblLogCount.Text = "0条";
|
|
|
//
|
|
|
+ // ColCutHoleName
|
|
|
+ //
|
|
|
+ this.ColCutHoleName.DataPropertyName = "HoleName";
|
|
|
+ this.ColCutHoleName.HeaderText = "切孔名称";
|
|
|
+ this.ColCutHoleName.Name = "ColCutHoleName";
|
|
|
+ this.ColCutHoleName.ReadOnly = true;
|
|
|
+ this.ColCutHoleName.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
+ this.ColCutHoleName.Width = 180;
|
|
|
+ //
|
|
|
+ // ColTime
|
|
|
+ //
|
|
|
+ this.ColTime.DataPropertyName = "Time";
|
|
|
+ this.ColTime.HeaderText = "操作时间";
|
|
|
+ this.ColTime.Name = "ColTime";
|
|
|
+ this.ColTime.ReadOnly = true;
|
|
|
+ this.ColTime.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
+ this.ColTime.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
+ this.ColTime.Width = 180;
|
|
|
+ //
|
|
|
+ // ColStep
|
|
|
+ //
|
|
|
+ this.ColStep.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
|
|
|
+ this.ColStep.DataPropertyName = "Message";
|
|
|
+ this.ColStep.HeaderText = "描述";
|
|
|
+ this.ColStep.Name = "ColStep";
|
|
|
+ this.ColStep.ReadOnly = true;
|
|
|
+ this.ColStep.Resizable = System.Windows.Forms.DataGridViewTriState.False;
|
|
|
+ this.ColStep.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
+ //
|
|
|
+ // ColState
|
|
|
+ //
|
|
|
+ this.ColState.DataPropertyName = "State";
|
|
|
+ this.ColState.HeaderText = "状态";
|
|
|
+ this.ColState.Name = "ColState";
|
|
|
+ this.ColState.ReadOnly = true;
|
|
|
+ this.ColState.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
|
|
|
+ this.ColState.Visible = false;
|
|
|
+ this.ColState.Width = 180;
|
|
|
+ //
|
|
|
// UControl_Log
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
@@ -247,10 +246,10 @@
|
|
|
private System.Windows.Forms.Label lblLogCount;
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
private System.Windows.Forms.DataGridView dgvLog;
|
|
|
+ private System.Windows.Forms.PictureBox pbClose;
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColCutHoleName;
|
|
|
- private System.Windows.Forms.DataGridViewTextBoxColumn ColStep;
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColTime;
|
|
|
+ private System.Windows.Forms.DataGridViewTextBoxColumn ColStep;
|
|
|
private System.Windows.Forms.DataGridViewTextBoxColumn ColState;
|
|
|
- private System.Windows.Forms.PictureBox pbClose;
|
|
|
}
|
|
|
}
|