From cb3203c45644a0185f6921f7c34f2f2255617746 Mon Sep 17 00:00:00 2001 From: "GukSang.Jin" Date: Fri, 6 Mar 2026 11:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=BC=E5=87=BA=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WindowsFormsApp6/MainForm.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WindowsFormsApp6/MainForm.cs b/WindowsFormsApp6/MainForm.cs index 756b564..e5ccc0a 100644 --- a/WindowsFormsApp6/MainForm.cs +++ b/WindowsFormsApp6/MainForm.cs @@ -1936,6 +1936,7 @@ namespace WindowsFormsApp6 string operatorName = textBox6.Text.Trim(); string instrument = textBox4.Text.Trim(); string deviceNumber = textBox5.Text.Trim(); + string datafile = textBox8.Text.Trim(); string testTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // 第一行信息 @@ -2027,7 +2028,7 @@ namespace WindowsFormsApp6 cell27.CellStyle = styles.dataStyle; ICell cell28 = infoRow2.CreateCell(9); - cell28.SetCellValue(""); + cell28.SetCellValue(string.IsNullOrEmpty(datafile) ? "" : datafile ); cell28.CellStyle = styles.yellowStyle; }