吸嘴状态增加BIN

master
lhiven 11 months ago
parent 971f70a8ed
commit 1aaab752a7

@ -32,7 +32,7 @@ namespace Rs.MotionPlat.Commom
public static void Breakdown(string category,string detail) public static void Breakdown(string category,string detail)
{ {
string filename = $"{fileDir}\\{DateTime.Now.ToString("yyyyMMdd")}\\EventTracker_{DateTime.Now.ToString("yyyyMMdd")}.csv"; string filename = $"{fileDir}\\{DateTime.Now.ToString("yyyyMMdd")}\\Breakdown_{DateTime.Now.ToString("yyyyMMdd")}.csv";
string csvTitle = "Machin,Tester Category,Tester_Sequence_Item Detail,TimeStamp,Time(ms)\r\n"; string csvTitle = "Machin,Tester Category,Tester_Sequence_Item Detail,TimeStamp,Time(ms)\r\n";
if (!Directory.Exists(Path.GetDirectoryName(filename))) if (!Directory.Exists(Path.GetDirectoryName(filename)))
{ {

@ -34,6 +34,7 @@
this.NozzleIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.NozzleIndex = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Status = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.SN = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.SN = new System.Windows.Forms.DataGridViewTextBoxColumn();
this.BinName = new System.Windows.Forms.DataGridViewTextBoxColumn();
((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@ -50,7 +51,8 @@
this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
this.NozzleIndex, this.NozzleIndex,
this.Status, this.Status,
this.SN}); this.SN,
this.BinName});
this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill;
this.dataGridView1.Location = new System.Drawing.Point(0, 40); this.dataGridView1.Location = new System.Drawing.Point(0, 40);
this.dataGridView1.Name = "dataGridView1"; this.dataGridView1.Name = "dataGridView1";
@ -62,7 +64,7 @@
// NozzleIndex // NozzleIndex
// //
this.NozzleIndex.DataPropertyName = "Index"; this.NozzleIndex.DataPropertyName = "Index";
this.NozzleIndex.FillWeight = 15F; this.NozzleIndex.FillWeight = 5F;
this.NozzleIndex.HeaderText = "NozzleIndex"; this.NozzleIndex.HeaderText = "NozzleIndex";
this.NozzleIndex.Name = "NozzleIndex"; this.NozzleIndex.Name = "NozzleIndex";
// //
@ -80,6 +82,12 @@
this.SN.HeaderText = "SN"; this.SN.HeaderText = "SN";
this.SN.Name = "SN"; this.SN.Name = "SN";
// //
// BinName
//
this.BinName.FillWeight = 10F;
this.BinName.HeaderText = "BinName";
this.BinName.Name = "BinName";
//
// NozzleStatusFrm // NozzleStatusFrm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
@ -106,5 +114,6 @@
private System.Windows.Forms.DataGridViewTextBoxColumn NozzleIndex; private System.Windows.Forms.DataGridViewTextBoxColumn NozzleIndex;
private System.Windows.Forms.DataGridViewTextBoxColumn Status; private System.Windows.Forms.DataGridViewTextBoxColumn Status;
private System.Windows.Forms.DataGridViewTextBoxColumn SN; private System.Windows.Forms.DataGridViewTextBoxColumn SN;
private System.Windows.Forms.DataGridViewTextBoxColumn BinName;
} }
} }

@ -30,6 +30,7 @@ namespace Rs.MotionPlat
if(item.Product!=null) if(item.Product!=null)
{ {
this.dataGridView1.Rows[rowIndex].Cells[2].Value = item.Product.SN; this.dataGridView1.Rows[rowIndex].Cells[2].Value = item.Product.SN;
this.dataGridView1.Rows[rowIndex].Cells[3].Value = item.Product.Bin;
} }
} }

@ -129,4 +129,7 @@
<metadata name="SN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="SN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value> <value>True</value>
</metadata> </metadata>
<metadata name="BinName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
</root> </root>
Loading…
Cancel
Save