|
|
@@ -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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|