yhluo 1 день назад
Родитель
Сommit
112afdc65e

+ 6 - 1
UAS_MES_WEIP/FunctionCode/Make/Make_SMTStencil.cs

@@ -1,4 +1,5 @@
-using System;
+using NPOI.Util.Collections;
+using System;
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
@@ -172,6 +173,10 @@ namespace UAS_MES_NEW.Make
                 sql.Append("Stencil where st_code='" + SU_DEVCODE.Text + "'");
                 dh.ExecuteSql(sql.ToString(), "insert");
                 dh.ExecuteSql($"update Stencil set ST_USESTATUS='在线',ST_LINE = '{li_code.Text}' where st_code='" + SU_DEVCODE.Text + "'", "update");
+
+                //dh.ExecuteSql($@"UPDATE product SET pr_pcbacount = (SELECT st_combinenumber FROM stencil WHERE st_code = '{SU_DEVCODE.Text}')
+                //            WHERE pr_code = (SELECT ma_prodcode FROM make WHERE ma_code = '{ma_code.Text}')", "update");
+
                 MessageBox.Show("上线成功");
                 st_table.SelectedItem = null;
                 SU_DEVCODE.Text = "";

BIN
UAS_MES_WEIP/Resources/5600c803afc2d.png