Эх сурвалжийг харах

添加调用箱号公用存储过程

章政 8 жил өмнө
parent
commit
a46f7749e8

+ 14 - 0
UAS-MES/PublicMethod/LogicHandler.cs

@@ -1430,5 +1430,19 @@ namespace UAS_MES.PublicMethod
             }
             return false;
         }
+
+        public static bool Packing(string iSN, string iOutBoxCode, bool iAutoNew, string iType, string iSource, string iUser, string iStandarqty, bool iInOrOut, out string oOutBoxCode, out string oErrMessage)
+        {
+            oErrMessage = "";
+            oOutBoxCode = "";
+            string[] param = new string[] { iSN, iOutBoxCode, iAutoNew ? "Y" : "N", iType, iSource, iUser, iStandarqty, iInOrOut ? "OUT" : "IN", oOutBoxCode, oErrMessage };
+            dh.CallProcedure("CS_PACKCARTON", ref param);
+            oOutBoxCode = param[8];
+            oErrMessage = param[9];
+            if (oErrMessage == "" || oErrMessage == null || oErrMessage == "null")
+                return true;
+            else
+                return false;
+        }
     }
 }