Browse Source

添加获取箱号方法

章政 8 years ago
parent
commit
5b13844147
1 changed files with 13 additions and 1 deletions
  1. 13 1
      UAS-MES/PublicMethod/LogicHandler.cs

+ 13 - 1
UAS-MES/PublicMethod/LogicHandler.cs

@@ -595,7 +595,7 @@ namespace UAS_MES.PublicMethod
             List<string> ExeSQL = new List<string>();
             GetStepCodeAndNameAndLineBySource(iSourceCode, ref CurrentStep, ref CurrentStepName, ref LineCode);
             //更新工序会上一执行步骤
-            sql.Clear(); 
+            sql.Clear();
             sql.Append("update makeserial set ms_nextstepcode=ms_stepcode,MS_STATUS=1,ms_sccode='" + iSourceCode + "' ");
             sql.Append("where ms_sncode in (select v_barcode from  mes_package_view where v_outboxcode='" + iOutBoxCode + "')");
             ExeSQL.Add(sql.ToString());
@@ -812,6 +812,18 @@ namespace UAS_MES.PublicMethod
                 return false;
         }
 
+        /// <summary>
+        /// 
+        /// </summary>
+        /// <returns></returns>
+        public static string GetPiInoutCode(string iCaller, string iType)
+        {
+            string Code = "";
+            string[] param = new string[] { iCaller, iType, Code };
+            dh.CallProcedure("SP_GETMAXNUMBER", ref param);
+            return param[2];
+        }
+
         /// <summary>
         /// 执行不良信息采集
         /// </summary>