|
@@ -862,12 +862,12 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
if (StepCode == CurrentStep)
|
|
|
{
|
|
|
InsertMakeProcess(iSN, iMakeCode, iSourceCode, iMPKind, iResult, iUserCode);
|
|
|
- return true;
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return CS_SetResult(iMakeCode, iSourceCode, iSN, iUserCode, iResult, out oErrorMessage);
|
|
|
+
|
|
|
}
|
|
|
+ return CS_SetResult(iMakeCode, iSourceCode, iSN, iUserCode, iResult, out oErrorMessage);
|
|
|
}
|
|
|
|
|
|
public static bool SetStepResult(string iMakeCode, string iSourceCode, string iSN, string iMPKind, string iResult, string iUserCode, out string oErrorMessage)
|
|
@@ -1017,8 +1017,8 @@ namespace UAS_MES_NEW.PublicMethod
|
|
|
dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_status=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "' ");
|
|
|
else
|
|
|
dh.UpdateByCondition("makeserial", "ms_nextstepcode='',ms_paststep = ms_paststep ||'," + StepCode + "',ms_reworkstatus=3", "ms_sncode='" + iSnCode + "' and ms_makecode='" + iMakeCode + "'");
|
|
|
- SetTestResult(iMakeCode, iSourceCode, iSnCode, "不良采集", "NG", iUserCode, out oErrorMessage);
|
|
|
}
|
|
|
+ SetTestResult(iMakeCode, iSourceCode, iSnCode, "不良采集", "NG", iUserCode, out oErrorMessage);
|
|
|
}
|
|
|
return true;
|
|
|
}
|