|
|
@@ -914,7 +914,33 @@ namespace UAS_MES.PublicMethod
|
|
|
return CS_SetFinish(iMakeCode, iSourceCode, iSN, iUserCode, out oErrorMessage);
|
|
|
}
|
|
|
}
|
|
|
+ public static bool SetStepResult(string iMakeCode, string iSourceCode, string iSN, string iMPKind, string iResult, string iUserCode, out string oErrorMessage)
|
|
|
+ {
|
|
|
+ oErrorMessage = "";
|
|
|
+ string StepCode = dh.getFieldDataByCondition("Makeserial", "ms_stepcode", "ms_sncode='" + iSN + "'").ToString();
|
|
|
+ string CurrentStep = GetStepCodeBySource(iSourceCode);
|
|
|
+ if (StepCode == CurrentStep)
|
|
|
+ {
|
|
|
+ InsertMakeProcess(iSN, iMakeCode, iSourceCode, iMPKind, iResult, iUserCode);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return CS_SetResult(iMakeCode, iSourceCode, iSN, iUserCode,iResult, out oErrorMessage);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
+ public static bool CS_SetResult(string iMakeCode, string iSourceCode, string iSN, string iUserCode,string iResult, out string oErrorMessage)
|
|
|
+ {
|
|
|
+ oErrorMessage = "";
|
|
|
+ string[] param = new string[] { iMakeCode, iSourceCode, iSN, iUserCode,iResult, oErrorMessage };
|
|
|
+ dh.CallProcedure("CS_SETSTEPRESULT", ref param);
|
|
|
+ oErrorMessage = param[5];
|
|
|
+ if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
|
|
|
+ return true;
|
|
|
+ else
|
|
|
+ return false;
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 设置测试结果
|
|
|
/// </summary>
|