فهرست منبع

添加存储过程

章政 6 سال پیش
والد
کامیت
cef7bc51ca
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      UAS-出货标签管理(贸易版)/PublicMethod/LogicHandler.cs

+ 14 - 0
UAS-出货标签管理(贸易版)/PublicMethod/LogicHandler.cs

@@ -19,5 +19,19 @@ namespace UAS_LabelMachine.PublicMethod
             oDatecode = param[8];
             oLotno = param[9];
         }
+
+        public static void GetTimeFromDatecode(DataHelper dh, string iDatecode, string iCustcode, out string oYear, out string oMonth, out string oDay, out string oDate)
+        {
+            oYear = "0";
+            oMonth = "0";
+            oDay = "0";
+            oDate = "19000101";
+            string[] param = new string[] { iDatecode, iCustcode, oYear, oMonth, oDay, oDate };
+            dh.CallProcedure("GETTIMEFROMDATECODE", ref param);
+            oYear = param[2];
+            oMonth = param[3];
+            oDay = param[4];
+            oDate = param[5];
+        }
     }
 }