From 1aaab752a7bb6020ff14b9f9358ff9cbb9cb9821 Mon Sep 17 00:00:00 2001 From: lhiven Date: Wed, 10 Jul 2024 09:42:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=B8=E5=98=B4=E7=8A=B6=E6=80=81=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0BIN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.DeweyTester/Commom/DevLog.cs | 2 +- Rs.DeweyTester/NozzleStatusFrm.Designer.cs | 13 +++++++++++-- Rs.DeweyTester/NozzleStatusFrm.cs | 1 + Rs.DeweyTester/NozzleStatusFrm.resx | 3 +++ 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Rs.DeweyTester/Commom/DevLog.cs b/Rs.DeweyTester/Commom/DevLog.cs index 84bfc5a..70988ab 100644 --- a/Rs.DeweyTester/Commom/DevLog.cs +++ b/Rs.DeweyTester/Commom/DevLog.cs @@ -32,7 +32,7 @@ namespace Rs.MotionPlat.Commom 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"; if (!Directory.Exists(Path.GetDirectoryName(filename))) { diff --git a/Rs.DeweyTester/NozzleStatusFrm.Designer.cs b/Rs.DeweyTester/NozzleStatusFrm.Designer.cs index a6c7f1b..0ca5085 100644 --- a/Rs.DeweyTester/NozzleStatusFrm.Designer.cs +++ b/Rs.DeweyTester/NozzleStatusFrm.Designer.cs @@ -34,6 +34,7 @@ this.NozzleIndex = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.Status = 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(); this.SuspendLayout(); // @@ -50,7 +51,8 @@ this.dataGridView1.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { this.NozzleIndex, this.Status, - this.SN}); + this.SN, + this.BinName}); this.dataGridView1.Dock = System.Windows.Forms.DockStyle.Fill; this.dataGridView1.Location = new System.Drawing.Point(0, 40); this.dataGridView1.Name = "dataGridView1"; @@ -62,7 +64,7 @@ // NozzleIndex // this.NozzleIndex.DataPropertyName = "Index"; - this.NozzleIndex.FillWeight = 15F; + this.NozzleIndex.FillWeight = 5F; this.NozzleIndex.HeaderText = "NozzleIndex"; this.NozzleIndex.Name = "NozzleIndex"; // @@ -80,6 +82,12 @@ this.SN.HeaderText = "SN"; this.SN.Name = "SN"; // + // BinName + // + this.BinName.FillWeight = 10F; + this.BinName.HeaderText = "BinName"; + this.BinName.Name = "BinName"; + // // NozzleStatusFrm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -106,5 +114,6 @@ private System.Windows.Forms.DataGridViewTextBoxColumn NozzleIndex; private System.Windows.Forms.DataGridViewTextBoxColumn Status; private System.Windows.Forms.DataGridViewTextBoxColumn SN; + private System.Windows.Forms.DataGridViewTextBoxColumn BinName; } } \ No newline at end of file diff --git a/Rs.DeweyTester/NozzleStatusFrm.cs b/Rs.DeweyTester/NozzleStatusFrm.cs index 86b1e38..870fba3 100644 --- a/Rs.DeweyTester/NozzleStatusFrm.cs +++ b/Rs.DeweyTester/NozzleStatusFrm.cs @@ -30,6 +30,7 @@ namespace Rs.MotionPlat if(item.Product!=null) { this.dataGridView1.Rows[rowIndex].Cells[2].Value = item.Product.SN; + this.dataGridView1.Rows[rowIndex].Cells[3].Value = item.Product.Bin; } } diff --git a/Rs.DeweyTester/NozzleStatusFrm.resx b/Rs.DeweyTester/NozzleStatusFrm.resx index bbeb034..45b2b0e 100644 --- a/Rs.DeweyTester/NozzleStatusFrm.resx +++ b/Rs.DeweyTester/NozzleStatusFrm.resx @@ -129,4 +129,7 @@ True + + True + \ No newline at end of file