yhluo 3 дней назад
Родитель
Сommit
80394c0a35

+ 13 - 0
UAS_MES_WEIP/FunctionCode/Make/Make_BurnInspection.Designer.cs

@@ -82,6 +82,7 @@
             this.check_code = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dot_detail = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.ic_detail = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.update_time = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.inspect_time = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.inspect_name = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.panel1.SuspendLayout();
@@ -349,6 +350,7 @@
             this.check_code,
             this.dot_detail,
             this.ic_detail,
+            this.update_time,
             this.inspect_time,
             this.inspect_name});
             this.DataBox.Dock = System.Windows.Forms.DockStyle.Fill;
@@ -698,6 +700,15 @@
             this.ic_detail.ReadOnly = true;
             this.ic_detail.Width = 150;
             // 
+            // update_time
+            // 
+            this.update_time.DataPropertyName = "update_time";
+            this.update_time.HeaderText = "烧录时间";
+            this.update_time.MinimumWidth = 8;
+            this.update_time.Name = "update_time";
+            this.update_time.ReadOnly = true;
+            this.update_time.Width = 150;
+            // 
             // inspect_time
             // 
             this.inspect_time.DataPropertyName = "inspect_time";
@@ -705,6 +716,7 @@
             this.inspect_time.MinimumWidth = 8;
             this.inspect_time.Name = "inspect_time";
             this.inspect_time.ReadOnly = true;
+            this.inspect_time.Visible = false;
             this.inspect_time.Width = 150;
             // 
             // inspect_name
@@ -796,6 +808,7 @@
         private System.Windows.Forms.DataGridViewTextBoxColumn check_code;
         private System.Windows.Forms.DataGridViewTextBoxColumn dot_detail;
         private System.Windows.Forms.DataGridViewTextBoxColumn ic_detail;
+        private System.Windows.Forms.DataGridViewTextBoxColumn update_time;
         private System.Windows.Forms.DataGridViewTextBoxColumn inspect_time;
         private System.Windows.Forms.DataGridViewTextBoxColumn inspect_name;
     }

+ 26 - 6
UAS_MES_WEIP/FunctionCode/Make/Make_BurnInspection.cs

@@ -96,7 +96,7 @@ namespace UAS_MES_NEW.Make
             //    DgvDs.Clear();
             //}
             dt = (DataTable)dh.ExecuteSql($@"SELECT * FROM (SELECT a.burn_id,a.burn_lotno,a.work_order,
-                a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,
+                a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,a.update_time,
                 b.inspect_time,b.inspect_name,b.inspect_res
                 FROM burn_info a LEFT JOIN burn_inspect b ON a.burn_id = b.burnid
                 WHERE 1 = 1 {SQL.ToString()}) WHERE inspect_res IS NULL", "select");
@@ -141,7 +141,7 @@ namespace UAS_MES_NEW.Make
 
             if (DataBox.Rows.Count == 0)
             {
-                ShowMsg(0, $"请选择工单筛选出烧录信息");
+                ShowMsg(0, $"请选择筛选出待抽检的烧录信息");
                 return;
             }
             if (string.IsNullOrEmpty(BurnLotnoVal.Text))
@@ -149,7 +149,13 @@ namespace UAS_MES_NEW.Make
                 ShowMsg(0, $"请扫描烧录批号");
                 return;
             }
+            if (string.IsNullOrEmpty(InspectNumVal.Text))
+            {
+                ShowMsg(0, $"请输入抽检数量");
+                return;
+            }
 
+            burnId = "";
             foreach (DataGridViewRow item in DataBox.Rows)
             {
                 string currLotNo = item.Cells["burn_lotno"].Value.ToString();
@@ -161,7 +167,7 @@ namespace UAS_MES_NEW.Make
 
             if (string.IsNullOrEmpty(burnId))
             {
-                ShowMsg(0, $"请抽检所查询中烧录批号");
+                ShowMsg(0, $"请抽检筛选出的烧录批号");
                 return;
             }
 
@@ -186,8 +192,22 @@ namespace UAS_MES_NEW.Make
                 CurrQtyVal.Text = dt.Rows[0]["allqty"].ToString();
             }
 
+            SQL.Clear();
+            if (!string.IsNullOrEmpty(ma_code.Text))
+            {
+                SQL.Append($"AND a.work_order = '{ma_code.Text}'");
+            }
+            if (DateTimeCheck.Checked)
+            {
+                string startTime = StartDateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
+                string endTime = EndDateTime.Value.ToString("yyyy-MM-dd HH:mm:ss");
+                if (!string.IsNullOrEmpty(startTime) && !string.IsNullOrEmpty(endTime))
+                {
+                    SQL.Append($"AND a.update_time between to_date('{startTime}','YYYY-MM-DD HH24:MI:SS') AND to_date('{endTime}','YYYY-MM-DD HH24:MI:SS')");
+                }
+            }
             dt = (DataTable)dh.ExecuteSql($@"SELECT * FROM (SELECT a.burn_id,a.burn_lotno,a.work_order,
-                a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,
+                a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,a.update_time,
                 b.inspect_time,b.inspect_name,b.inspect_res
                 FROM burn_info a LEFT JOIN burn_inspect b ON a.burn_id = b.burnid
                 WHERE 1 = 1 {SQL.ToString()}) WHERE inspect_res IS NULL", "select");
@@ -246,7 +266,7 @@ namespace UAS_MES_NEW.Make
             if (!string.IsNullOrEmpty(ma_code.Text) || DateTimeCheck.Checked)
             {
                 dt = (DataTable)dh.ExecuteSql($@"SELECT * FROM (SELECT a.burn_id,a.burn_lotno,a.work_order,
-                    a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,
+                    a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,a.update_time,
                     b.inspect_time,b.inspect_name,b.inspect_res
                     FROM burn_info a LEFT JOIN burn_inspect b ON a.burn_id = b.burnid
                     WHERE 1 = 1 {searchSql.ToString()}) WHERE inspect_res IS NULL", "select");
@@ -281,7 +301,7 @@ namespace UAS_MES_NEW.Make
             if (!string.IsNullOrEmpty(ma_code.Text) || DateTimeCheck.Checked)
             {
                 dt = (DataTable)dh.ExecuteSql($@"SELECT * FROM (SELECT a.burn_id,a.burn_lotno,a.work_order,
-                    a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,
+                    a.line,a.burn_software,a.check_code,a.dot_detail,a.burn_qty,a.ic_detail,a.update_time,
                     b.inspect_time,b.inspect_name,b.inspect_res
                     FROM burn_info a LEFT JOIN burn_inspect b ON a.burn_id = b.burnid
                     WHERE 1 = 1 {searchSql.ToString()}) WHERE inspect_res IS NULL", "select");

+ 3 - 0
UAS_MES_WEIP/FunctionCode/Make/Make_BurnInspection.resx

@@ -147,6 +147,9 @@
   <metadata name="ic_detail.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>
+  <metadata name="update_time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>True</value>
+  </metadata>
   <metadata name="inspect_time.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     <value>True</value>
   </metadata>

+ 44 - 30
UAS_MES_WEIP/FunctionCode/Make/Make_PcbClean.Designer.cs

@@ -32,6 +32,8 @@
             this.LineLab = new System.Windows.Forms.Label();
             this.LineVal = new System.Windows.Forms.ComboBox();
             this.TopBox = new System.Windows.Forms.Panel();
+            this.SpecVal = new System.Windows.Forms.TextBox();
+            this.SpecLab = new System.Windows.Forms.Label();
             this.EmployeeVal = new System.Windows.Forms.TextBox();
             this.EmployeeLab = new System.Windows.Forms.Label();
             this.SideLab = new System.Windows.Forms.Label();
@@ -42,7 +44,7 @@
             this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
             this.RightBox = new System.Windows.Forms.Panel();
             this.ClearMsg = new System.Windows.Forms.Button();
-            this.SpecLab = new System.Windows.Forms.Label();
+            this.WoVal = new System.Windows.Forms.TextBox();
             this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
@@ -60,7 +62,6 @@
             this.LockMakeCode = new UAS_MES_NEW.CustomControl.CustomCheckBox.LockCheckBox();
             this.dataGridViewTextBoxColumn7 = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
-            this.SpecVal = new System.Windows.Forms.TextBox();
             this.TopBox.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.DataBox)).BeginInit();
             this.tableLayoutPanel1.SuspendLayout();
@@ -71,7 +72,7 @@
             // 
             this.ms_makecode_label.AutoSize = true;
             this.ms_makecode_label.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.ms_makecode_label.Location = new System.Drawing.Point(31, 31);
+            this.ms_makecode_label.Location = new System.Drawing.Point(31, 76);
             this.ms_makecode_label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.ms_makecode_label.Name = "ms_makecode_label";
             this.ms_makecode_label.Size = new System.Drawing.Size(75, 28);
@@ -82,7 +83,7 @@
             // 
             this.LineLab.AutoSize = true;
             this.LineLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.LineLab.Location = new System.Drawing.Point(389, 31);
+            this.LineLab.Location = new System.Drawing.Point(43, 21);
             this.LineLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.LineLab.Name = "LineLab";
             this.LineLab.Size = new System.Drawing.Size(54, 28);
@@ -93,13 +94,15 @@
             // 
             this.LineVal.Cursor = System.Windows.Forms.Cursors.Hand;
             this.LineVal.FormattingEnabled = true;
-            this.LineVal.Location = new System.Drawing.Point(432, 29);
+            this.LineVal.Location = new System.Drawing.Point(86, 19);
             this.LineVal.Name = "LineVal";
             this.LineVal.Size = new System.Drawing.Size(160, 32);
             this.LineVal.TabIndex = 145;
+            this.LineVal.SelectedIndexChanged += new System.EventHandler(this.LineVal_SelectedIndexChanged);
             // 
             // TopBox
             // 
+            this.TopBox.Controls.Add(this.WoVal);
             this.TopBox.Controls.Add(this.SpecVal);
             this.TopBox.Controls.Add(this.SpecLab);
             this.TopBox.Controls.Add(this.EmployeeVal);
@@ -119,9 +122,28 @@
             this.TopBox.Size = new System.Drawing.Size(1280, 201);
             this.TopBox.TabIndex = 153;
             // 
+            // SpecVal
+            // 
+            this.SpecVal.Location = new System.Drawing.Point(430, 61);
+            this.SpecVal.Multiline = true;
+            this.SpecVal.Name = "SpecVal";
+            this.SpecVal.Size = new System.Drawing.Size(420, 61);
+            this.SpecVal.TabIndex = 189;
+            // 
+            // SpecLab
+            // 
+            this.SpecLab.AutoSize = true;
+            this.SpecLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+            this.SpecLab.Location = new System.Drawing.Point(358, 76);
+            this.SpecLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.SpecLab.Name = "SpecLab";
+            this.SpecLab.Size = new System.Drawing.Size(96, 28);
+            this.SpecLab.TabIndex = 188;
+            this.SpecLab.Text = "机型信息";
+            // 
             // EmployeeVal
             // 
-            this.EmployeeVal.Location = new System.Drawing.Point(824, 30);
+            this.EmployeeVal.Location = new System.Drawing.Point(478, 20);
             this.EmployeeVal.Name = "EmployeeVal";
             this.EmployeeVal.Size = new System.Drawing.Size(113, 31);
             this.EmployeeVal.TabIndex = 182;
@@ -130,7 +152,7 @@
             // 
             this.EmployeeLab.AutoSize = true;
             this.EmployeeLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.EmployeeLab.Location = new System.Drawing.Point(771, 31);
+            this.EmployeeLab.Location = new System.Drawing.Point(425, 21);
             this.EmployeeLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.EmployeeLab.Name = "EmployeeLab";
             this.EmployeeLab.Size = new System.Drawing.Size(75, 28);
@@ -141,7 +163,7 @@
             // 
             this.SideLab.AutoSize = true;
             this.SideLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SideLab.Location = new System.Drawing.Point(610, 31);
+            this.SideLab.Location = new System.Drawing.Point(264, 21);
             this.SideLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.SideLab.Name = "SideLab";
             this.SideLab.Size = new System.Drawing.Size(54, 28);
@@ -155,14 +177,15 @@
             this.SideVal.Items.AddRange(new object[] {
             "A面",
             "B面"});
-            this.SideVal.Location = new System.Drawing.Point(656, 30);
+            this.SideVal.Location = new System.Drawing.Point(310, 20);
             this.SideVal.Name = "SideVal";
             this.SideVal.Size = new System.Drawing.Size(89, 32);
             this.SideVal.TabIndex = 157;
+            this.SideVal.SelectedIndexChanged += new System.EventHandler(this.SideVal_SelectedIndexChanged);
             // 
             // SnVal
             // 
-            this.SnVal.Location = new System.Drawing.Point(86, 121);
+            this.SnVal.Location = new System.Drawing.Point(86, 131);
             this.SnVal.Name = "SnVal";
             this.SnVal.Size = new System.Drawing.Size(243, 31);
             this.SnVal.TabIndex = 155;
@@ -172,7 +195,7 @@
             // 
             this.SnLab.AutoSize = true;
             this.SnLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SnLab.Location = new System.Drawing.Point(26, 121);
+            this.SnLab.Location = new System.Drawing.Point(26, 131);
             this.SnLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
             this.SnLab.Name = "SnLab";
             this.SnLab.Size = new System.Drawing.Size(75, 28);
@@ -241,16 +264,12 @@
             this.ClearMsg.UseVisualStyleBackColor = true;
             this.ClearMsg.Click += new System.EventHandler(this.ClearMsg_Click);
             // 
-            // SpecLab
+            // WoVal
             // 
-            this.SpecLab.AutoSize = true;
-            this.SpecLab.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.SpecLab.Location = new System.Drawing.Point(954, 30);
-            this.SpecLab.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.SpecLab.Name = "SpecLab";
-            this.SpecLab.Size = new System.Drawing.Size(96, 28);
-            this.SpecLab.TabIndex = 188;
-            this.SpecLab.Text = "机型信息";
+            this.WoVal.Location = new System.Drawing.Point(86, 76);
+            this.WoVal.Name = "WoVal";
+            this.WoVal.Size = new System.Drawing.Size(243, 31);
+            this.WoVal.TabIndex = 190;
             // 
             // dataGridViewTextBoxColumn1
             // 
@@ -380,7 +399,7 @@
             this.ma_code.Condition = null;
             this.ma_code.DBTitle = null;
             this.ma_code.FormName = null;
-            this.ma_code.Location = new System.Drawing.Point(86, 30);
+            this.ma_code.Location = new System.Drawing.Point(889, 75);
             this.ma_code.Name = "ma_code";
             this.ma_code.Power = null;
             this.ma_code.ReturnData = null;
@@ -391,18 +410,20 @@
             this.ma_code.TableName = null;
             this.ma_code.Tag = "ma_code";
             this.ma_code.TextBoxEnable = true;
+            this.ma_code.Visible = false;
             // 
             // LockMakeCode
             // 
             this.LockMakeCode.AutoSize = true;
             this.LockMakeCode.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
             this.LockMakeCode.LeaveEvent = false;
-            this.LockMakeCode.Location = new System.Drawing.Point(310, 32);
+            this.LockMakeCode.Location = new System.Drawing.Point(1101, 77);
             this.LockMakeCode.Name = "LockMakeCode";
             this.LockMakeCode.Size = new System.Drawing.Size(72, 28);
             this.LockMakeCode.TabIndex = 153;
             this.LockMakeCode.Text = "锁定";
             this.LockMakeCode.UseVisualStyleBackColor = true;
+            this.LockMakeCode.Visible = false;
             // 
             // dataGridViewTextBoxColumn7
             // 
@@ -422,14 +443,6 @@
             this.dataGridViewTextBoxColumn8.ReadOnly = true;
             this.dataGridViewTextBoxColumn8.Width = 150;
             // 
-            // SpecVal
-            // 
-            this.SpecVal.Location = new System.Drawing.Point(1026, 15);
-            this.SpecVal.Multiline = true;
-            this.SpecVal.Name = "SpecVal";
-            this.SpecVal.Size = new System.Drawing.Size(420, 61);
-            this.SpecVal.TabIndex = 189;
-            // 
             // Make_PcbClean
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F);
@@ -487,5 +500,6 @@
         private System.Windows.Forms.Label EmployeeLab;
         private System.Windows.Forms.Label SpecLab;
         private System.Windows.Forms.TextBox SpecVal;
+        private System.Windows.Forms.TextBox WoVal;
     }
 }

+ 42 - 10
UAS_MES_WEIP/FunctionCode/Make/Make_PcbClean.cs

@@ -42,6 +42,23 @@ namespace UAS_MES_NEW.Make
             dh = SystemInf.dh;
 
             SpecVal.Enabled = false;
+            WoVal.Enabled = false;
+
+            dt = (DataTable)dh.ExecuteSql($@"SELECT li_code,li_name FROM line WHERE li_statuscode = 'AUDITED'
+                AND li_wccode = 'SMT' ORDER BY substr(li_code, 0, 2) DESC, 
+                substr(li_code,length('HY-1') - 1,length('HY-1'))", "select");
+            if (dt.Rows.Count > 0)
+            {
+                foreach(DataRow item in dt.Rows)
+                {
+                    LineVal.Items.Add(item["li_code"].ToString());
+                }
+            }
+            else
+            {
+                ShowMsg(0, $"未找到启动线体");
+                return;
+            }
         }
             
         private void Ma_code_DbChange(object sender, EventArgs e)
@@ -89,11 +106,11 @@ namespace UAS_MES_NEW.Make
             if (e.KeyCode != Keys.Enter) return;
             SnVal.Text = SnVal.Text.Trim();
 
-            if (string.IsNullOrEmpty(ma_code.Text))
-            {
-                ShowMsg(0, $"请选择清洗归属工单号");
-                return;
-            }
+            //if (string.IsNullOrEmpty(ma_code.Text))
+            //{
+            //    ShowMsg(0, $"请选择清洗归属工单号");
+            //    return;
+            //}
 
             if (LineVal.SelectedIndex == -1)
             {
@@ -114,28 +131,43 @@ namespace UAS_MES_NEW.Make
             }
 
             sql.Clear();
-            sql.Append($@"select * from smtbind where sb_barcode = '{SnVal.Text}' and sb_makecode = '{ma_code.Text}'");
+            sql.Append($@"select * from smtbind where sb_barcode = '{SnVal.Text}'");
             dt = (DataTable)dh.ExecuteSql(sql.GetString(), "select");
             if (dt.Rows.Count == 0)
             {
-                ShowMsg(0, $"工单中:{ma_code.Text} 中序列号:{SnVal.Text} 未进行拼板绑定");
+                ShowMsg(0, $"序列号:{SnVal.Text} 未绑定拼板");
                 return;
             }
+            WoVal.Text = dt.Rows[0]["SB_MAKECODE"].ToString();
+
+            dt = (DataTable)dh.ExecuteSql($@"select * from make,product where ma_code = '{WoVal.Text}' and ma_prodcode = pr_code", "select");
+            SpecVal.Text = dt.Rows[0]["PR_SPEC"].ToString();
 
             dh.ExecuteSql($@"INSERT INTO sn_clean (CLEAN_ID,SN,WORK_ORDER,LINE,SIDE,UPDATE_TIME,UPDATE_NAME)
-                VALUES (CLEAN_ID_SEQ.NEXTVAL, '{SnVal.Text}','{ma_code.Text}','{LineVal.Text}','{SideVal.Text}',sysdate,'{EmployeeVal.Text}')", "insert");
+                VALUES (CLEAN_ID_SEQ.NEXTVAL, '{SnVal.Text}','{WoVal.Text}','{LineVal.Text}','{SideVal.Text}',sysdate,'{EmployeeVal.Text}')", "insert");
             ShowMsg(1, $"序列号:{SnVal.Text} 已记录清洗");
             SnVal.Focus();
             SnVal.SelectAll();
             SnVal.Text = "";
 
-            dt = (DataTable)dh.ExecuteSql($@"SELECT sn, work_order,line,side,update_time,update_name FROM sn_clean WHERE work_order = '{ma_code.Text}'", "select");
-            if (dt.Rows.Count > 0)
+            dt = (DataTable)dh.ExecuteSql($@"SELECT sn, work_order,line,side,update_time,update_name FROM sn_clean WHERE line = '{LineVal.Text}' AND side = '{SideVal.Text}' ORDER BY update_time DESC", "select");
+            DataBox.DataSource = dt;
+        }
+
+        private void LineVal_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            if(LineVal.SelectedIndex != -1 && SideVal.SelectedIndex != -1)
             {
+                dt = (DataTable)dh.ExecuteSql($@"SELECT sn, work_order,line,side,update_time,update_name FROM sn_clean WHERE line = '{LineVal.Text}' AND side = '{SideVal.Text}' ORDER BY update_time DESC", "select");
                 DataBox.DataSource = dt;
             }
         }
 
+        private void SideVal_SelectedIndexChanged(object sender, EventArgs e)
+        {
+            LineVal_SelectedIndexChanged(null, null);
+        }
+
         private void ClearMsg_Click(object sender, EventArgs e)
         {
             OperateResult.Clear();