|
|
@@ -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>
|