瀏覽代碼

记录称重公共方法

shim 8 年之前
父節點
當前提交
e132dc8334
共有 1 個文件被更改,包括 6 次插入2 次删除
  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)
         {
-
-            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);
         }