界面增加列
This commit is contained in:
+23
-150
@@ -282,6 +282,7 @@ namespace JY.Inspection
|
|||||||
|
|
||||||
private void InitDgvBColumns()
|
private void InitDgvBColumns()
|
||||||
{
|
{
|
||||||
|
List<DataGridViewColumn> colDefList = new List<DataGridViewColumn>();
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column6 = new DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column6 = new DataGridViewTextBoxColumn();
|
||||||
Column6.DataPropertyName = "TD";
|
Column6.DataPropertyName = "TD";
|
||||||
@@ -290,6 +291,7 @@ namespace JY.Inspection
|
|||||||
Column6.Name = "Column6";
|
Column6.Name = "Column6";
|
||||||
Column6.ReadOnly = true;
|
Column6.ReadOnly = true;
|
||||||
Column6.Width = 52;
|
Column6.Width = 52;
|
||||||
|
colDefList.Add(Column6);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column8 = new DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column8 = new DataGridViewTextBoxColumn();
|
||||||
Column8.DataPropertyName = "WorkShift";
|
Column8.DataPropertyName = "WorkShift";
|
||||||
@@ -298,6 +300,7 @@ namespace JY.Inspection
|
|||||||
Column8.Name = "Column8";
|
Column8.Name = "Column8";
|
||||||
Column8.ReadOnly = true;
|
Column8.ReadOnly = true;
|
||||||
Column8.Width = 52;
|
Column8.Width = 52;
|
||||||
|
colDefList.Add(Column8);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column31 = new DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column31 = new DataGridViewTextBoxColumn();
|
||||||
Column31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
Column31 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
@@ -307,6 +310,7 @@ namespace JY.Inspection
|
|||||||
Column31.Name = "Column31";
|
Column31.Name = "Column31";
|
||||||
Column31.ReadOnly = true;
|
Column31.ReadOnly = true;
|
||||||
Column31.Width = 52;
|
Column31.Width = 52;
|
||||||
|
colDefList.Add(Column31);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column26 = new DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column26 = new DataGridViewTextBoxColumn();
|
||||||
Column26.DataPropertyName = "ArrivalBarCode";
|
Column26.DataPropertyName = "ArrivalBarCode";
|
||||||
@@ -315,6 +319,7 @@ namespace JY.Inspection
|
|||||||
Column26.Name = "Column26";
|
Column26.Name = "Column26";
|
||||||
Column26.ReadOnly = true;
|
Column26.ReadOnly = true;
|
||||||
Column26.Width = 64;
|
Column26.Width = 64;
|
||||||
|
colDefList.Add(Column26);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
Column7.DataPropertyName = "DepartureBarCode";
|
Column7.DataPropertyName = "DepartureBarCode";
|
||||||
@@ -323,6 +328,7 @@ namespace JY.Inspection
|
|||||||
Column7.Name = "Column7";
|
Column7.Name = "Column7";
|
||||||
Column7.ReadOnly = true;
|
Column7.ReadOnly = true;
|
||||||
Column7.Width = 64;
|
Column7.Width = 64;
|
||||||
|
colDefList.Add(Column7);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column27 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
Column27.DataPropertyName = "TMDB";
|
Column27.DataPropertyName = "TMDB";
|
||||||
@@ -331,6 +337,7 @@ namespace JY.Inspection
|
|||||||
Column27.Name = "Column27";
|
Column27.Name = "Column27";
|
||||||
Column27.ReadOnly = true;
|
Column27.ReadOnly = true;
|
||||||
Column27.Width = 64;
|
Column27.Width = 64;
|
||||||
|
colDefList.Add(Column27);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column25 = new DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column25 = new DataGridViewTextBoxColumn();
|
||||||
Column25.DataPropertyName = "OutTime";
|
Column25.DataPropertyName = "OutTime";
|
||||||
@@ -339,133 +346,22 @@ namespace JY.Inspection
|
|||||||
Column25.Name = "Column25";
|
Column25.Name = "Column25";
|
||||||
Column25.ReadOnly = true;
|
Column25.ReadOnly = true;
|
||||||
Column25.Width = 64;
|
Column25.Width = 64;
|
||||||
|
colDefList.Add(Column25);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column9 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
#region CCD结果
|
||||||
Column9.DataPropertyName = "CCD1";
|
|
||||||
Column9.HeaderText = "正面(2D/3D)";
|
|
||||||
Column9.MinimumWidth = 6;
|
|
||||||
Column9.Name = "Column9";
|
|
||||||
Column9.ReadOnly = true;
|
|
||||||
Column9.Width = 86;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column10= new System.Windows.Forms.DataGridViewTextBoxColumn();
|
foreach (var propName in ConstValue.CCD_SDict.Keys)
|
||||||
Column10.DataPropertyName = "CCD2";
|
{
|
||||||
Column10.HeaderText = "反面(2D/3D)";
|
DataGridViewColumn col = new DataGridViewTextBoxColumn();
|
||||||
Column10.MinimumWidth = 6;
|
col.DataPropertyName = propName;
|
||||||
Column10.Name = "Column10";
|
col.HeaderText = ConstValue.CCD_SDict[propName];
|
||||||
Column10.ReadOnly = true;
|
col.MinimumWidth = 6;
|
||||||
Column10.Width = 86;
|
col.Name = $"Col_ccd_{propName}";
|
||||||
|
col.ReadOnly = true;
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column11 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
colDefList.Add(col);
|
||||||
Column11.DataPropertyName = "CCD3";
|
}
|
||||||
Column11.HeaderText = "左侧面(2D/3D)";
|
#endregion
|
||||||
Column11.MinimumWidth = 6;
|
|
||||||
Column11.Name = "Column11";
|
|
||||||
Column11.ReadOnly = true;
|
|
||||||
Column11.Width = 98;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column12 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column12.DataPropertyName = "CCD4";
|
|
||||||
Column12.HeaderText = "右侧面(2D/3D)";
|
|
||||||
Column12.MinimumWidth = 6;
|
|
||||||
Column12.Name = "Column12";
|
|
||||||
Column12.ReadOnly = true;
|
|
||||||
Column12.Width = 98;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column13 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column13.DataPropertyName = "CCD5";
|
|
||||||
Column13.HeaderText = "顶面(2D/3D)";
|
|
||||||
Column13.MinimumWidth = 6;
|
|
||||||
Column13.Name = "Column13";
|
|
||||||
Column13.ReadOnly = true;
|
|
||||||
Column13.Width = 86;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column14 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column14.DataPropertyName = "CCD6";
|
|
||||||
Column14.HeaderText = "底面(2D/3D)";
|
|
||||||
Column14.MinimumWidth = 6;
|
|
||||||
Column14.Name = "Column14";
|
|
||||||
Column14.ReadOnly = true;
|
|
||||||
Column14.Width = 86;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column15 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column15.DataPropertyName = "CCD7";
|
|
||||||
Column15.HeaderText = "底棱边WE1";
|
|
||||||
Column15.MinimumWidth = 6;
|
|
||||||
Column15.Name = "Column15";
|
|
||||||
Column15.ReadOnly = true;
|
|
||||||
Column15.Width = 85;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column16 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column16.DataPropertyName = "CCD8";
|
|
||||||
Column16.HeaderText = "底棱边WE2";
|
|
||||||
Column16.MinimumWidth = 6;
|
|
||||||
Column16.Name = "Column16";
|
|
||||||
Column16.ReadOnly = true;
|
|
||||||
Column16.Width = 85;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column17 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column17.DataPropertyName = "CCD9";
|
|
||||||
Column17.HeaderText = "底棱边WE3";
|
|
||||||
Column17.MinimumWidth = 6;
|
|
||||||
Column17.Name = "Column17";
|
|
||||||
Column17.ReadOnly = true;
|
|
||||||
Column17.Width = 85;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column18 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column18.DataPropertyName = "CCD10";
|
|
||||||
Column18.HeaderText = "底棱边WE4";
|
|
||||||
Column18.MinimumWidth = 6;
|
|
||||||
Column18.Name = "Column18";
|
|
||||||
Column18.ReadOnly = true;
|
|
||||||
Column18.Width = 85;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column19 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column19.DataPropertyName = "CCD11";
|
|
||||||
Column19.HeaderText = "中棱边ME1";
|
|
||||||
Column19.MinimumWidth = 6;
|
|
||||||
Column19.Name = "Column19";
|
|
||||||
Column19.ReadOnly = true;
|
|
||||||
Column19.Width = 84;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column20 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column20.DataPropertyName = "CCD12";
|
|
||||||
Column20.HeaderText = "中棱边ME2";
|
|
||||||
Column20.MinimumWidth = 6;
|
|
||||||
Column20.Name = "Column20";
|
|
||||||
Column20.ReadOnly = true;
|
|
||||||
Column20.Width = 84;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column21 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column21.DataPropertyName = "CCD13";
|
|
||||||
Column21.HeaderText = "中棱边ME3";
|
|
||||||
Column21.MinimumWidth = 6;
|
|
||||||
Column21.Name = "Column21";
|
|
||||||
Column21.ReadOnly = true;
|
|
||||||
Column21.Width = 84;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column23 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column23.DataPropertyName = "CCD14";
|
|
||||||
Column23.HeaderText = "中棱边ME4";
|
|
||||||
Column23.MinimumWidth = 6;
|
|
||||||
Column23.Name = "Column23";
|
|
||||||
Column23.ReadOnly = true;
|
|
||||||
Column23.Width = 84;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column28 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column28.DataPropertyName = "CCD15";
|
|
||||||
Column28.HeaderText = "极柱(POS/NEG)";
|
|
||||||
Column28.MinimumWidth = 8;
|
|
||||||
Column28.Name = "Column28";
|
|
||||||
Column28.ReadOnly = true;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column29 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
|
||||||
Column29.DataPropertyName = "CCD16";
|
|
||||||
Column29.HeaderText = "防爆阀(PRO)";
|
|
||||||
Column29.MinimumWidth = 8;
|
|
||||||
Column29.Name = "Column29";
|
|
||||||
Column29.ReadOnly = true;
|
|
||||||
Column29.Width = 89;
|
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column22 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
Column22.DataPropertyName = "Result";
|
Column22.DataPropertyName = "Result";
|
||||||
@@ -474,6 +370,7 @@ namespace JY.Inspection
|
|||||||
Column22.Name = "Column22";
|
Column22.Name = "Column22";
|
||||||
Column22.ReadOnly = true;
|
Column22.ReadOnly = true;
|
||||||
Column22.Width = 64;
|
Column22.Width = 64;
|
||||||
|
colDefList.Add(Column22);
|
||||||
|
|
||||||
DataGridViewTextBoxColumn Column24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
DataGridViewTextBoxColumn Column24 = new System.Windows.Forms.DataGridViewTextBoxColumn();
|
||||||
Column24.DataPropertyName = "Remark";
|
Column24.DataPropertyName = "Remark";
|
||||||
@@ -482,33 +379,9 @@ namespace JY.Inspection
|
|||||||
Column24.Name = "Column24";
|
Column24.Name = "Column24";
|
||||||
Column24.ReadOnly = true;
|
Column24.ReadOnly = true;
|
||||||
Column24.Width = 52;
|
Column24.Width = 52;
|
||||||
|
colDefList.Add(Column24);
|
||||||
|
|
||||||
this.dgvDataShow_B.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
|
this.dgvDataShow_B.Columns.AddRange(colDefList.ToArray());
|
||||||
Column6,
|
|
||||||
Column8,
|
|
||||||
Column31,
|
|
||||||
Column26,
|
|
||||||
Column7,
|
|
||||||
Column27,
|
|
||||||
Column25,
|
|
||||||
Column9,
|
|
||||||
Column10,
|
|
||||||
Column11,
|
|
||||||
Column12,
|
|
||||||
Column13,
|
|
||||||
Column14,
|
|
||||||
Column15,
|
|
||||||
Column16,
|
|
||||||
Column17,
|
|
||||||
Column18,
|
|
||||||
Column19,
|
|
||||||
Column20,
|
|
||||||
Column21,
|
|
||||||
Column23,
|
|
||||||
Column28,
|
|
||||||
Column29,
|
|
||||||
Column22,
|
|
||||||
Column24});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user