|
|
@@ -384,7 +384,7 @@ namespace MES_Interface
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return CS_SetFinish(iMakeCode, iSourceCode, iSN, iUserCode, out oErrorMessage);
|
|
|
+ return CS_SetFinish(iMakeCode, iSourceCode, iSN, iUserCode, iResult, out oErrorMessage);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -404,11 +404,11 @@ namespace MES_Interface
|
|
|
return SetStepFinish(iMakeCode, iSourceCode, iSN, iMPKind, iResult, iUserCode, iErrCode, out oErrorMessage);
|
|
|
}
|
|
|
|
|
|
- private bool CS_SetFinish(string iMakeCode, string iSourceCode, string iSN, string iUserCode, out string oErrorMessage)
|
|
|
+ private bool CS_SetFinish(string iMakeCode, string iSourceCode, string iSN, string iUserCode,string iResult, out string oErrorMessage)
|
|
|
{
|
|
|
oErrorMessage = "";
|
|
|
- string[] param = new string[] { iMakeCode, iSourceCode, iSN, iUserCode, oErrorMessage };
|
|
|
- dh.CallProcedure("CS_SETSTEPFINISH", ref param);
|
|
|
+ string[] param = new string[] { iMakeCode, iSourceCode, iSN, iUserCode, iResult, oErrorMessage };
|
|
|
+ dh.CallProcedure("CS_SETSTEPRESULT", ref param);
|
|
|
oErrorMessage = param[4];
|
|
|
if (oErrorMessage == "" || oErrorMessage == null || oErrorMessage == "null")
|
|
|
return true;
|