Przeglądaj źródła

记录称重公共方法

shim 8 lat temu
rodzic
commit
e132dc8334
1 zmienionych plików z 6 dodań i 2 usunięć
  1. 6 2
      UAS-MES/PublicMethod/LogicHandler.cs

+ 6 - 2
UAS-MES/PublicMethod/LogicHandler.cs

@@ -1313,8 +1313,12 @@ namespace UAS_MES.PublicMethod
 
 
         public static void RecordProdWeight(string iSN, string iType, string iScanValue, float iWeight, string iUnit, string iLineCode, string iPrCode, string iSource, string iUser)
         public static void RecordProdWeight(string iSN, string iType, string iScanValue, float iWeight, string iUnit, string iLineCode, string iPrCode, string iSource, string iUser)
         {
         {
-
-            sql.Append("");
+            //记录重量
+            sql.Clear();
+            sql.Append("insert into weightlog(wl_id,wl_type,wl_scancode,wl_weight,wl_unit,wl_linecode,");
+            sql.Append("wl_prodcode,wl_sccode,wl_indate,wl_inman) values (weightlog_seq.nextval,:type,:palletcode,");
+            sql.Append(":weight,:unit,:linecode,:prodcode,:sccode,sysdate,:inman)");
+            dh.ExecuteSql(sql.ToString(), "insert", iType,iScanValue, iWeight,iUnit, User.UserLineCode, iPrCode, iSource, iUser);
         }
         }