|
@@ -898,16 +898,19 @@ namespace MOKA_Factory_Tools
|
|
#endregion
|
|
#endregion
|
|
|
|
|
|
#if !SIMULATION && !OD_VER
|
|
#if !SIMULATION && !OD_VER
|
|
- if (CommonMethod.GetLoginAccout().Equals("Sanhua", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
+ if (FunctionSettingNow.EnableSanhuaMES)
|
|
{
|
|
{
|
|
- string message = string.Empty;
|
|
|
|
- if ( !SanhuaMethod.ProductRouteCheck(SN, out message) )
|
|
|
|
|
|
+ if (CommonMethod.GetLoginAccout().Equals("Sanhua", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
{
|
|
- Verify dlg = new Verify(string.Format("{0} ProductRouteCheck faild: {1} ", SN, message));
|
|
|
|
- dlg.ShowDialog();
|
|
|
|
- SNText.Enabled = true;
|
|
|
|
- SNText.Text = "";
|
|
|
|
- return;
|
|
|
|
|
|
+ string message = string.Empty;
|
|
|
|
+ if (!SanhuaMethod.ProductRouteCheck(SN, out message))
|
|
|
|
+ {
|
|
|
|
+ Verify dlg = new Verify(string.Format("{0} ProductRouteCheck faild: {1} ", SN, message));
|
|
|
|
+ dlg.ShowDialog();
|
|
|
|
+ SNText.Enabled = true;
|
|
|
|
+ SNText.Text = "";
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|
|
@@ -5038,24 +5041,30 @@ namespace MOKA_Factory_Tools
|
|
{// 只有抄写成功,才输出ACASID;
|
|
{// 只有抄写成功,才输出ACASID;
|
|
CommonMethod.ExportSNACASID(orderNow, SN, strACASID);
|
|
CommonMethod.ExportSNACASID(orderNow, SN, strACASID);
|
|
|
|
|
|
- if (!SanhuaMethod.UploadIdcData(SN, strACASID, out error))
|
|
|
|
|
|
+ if (FunctionSettingNow.EnableSanhuaMES)
|
|
{
|
|
{
|
|
- TestResult = 0;
|
|
|
|
- ErrMsg = string.Format("{0} UploadIdcData fail! {1}", SN, error);
|
|
|
|
- Log.WriteErrorLog(ErrMsg);
|
|
|
|
- goto end;
|
|
|
|
|
|
+ if (!SanhuaMethod.UploadIdcData(SN, strACASID, out error))
|
|
|
|
+ {
|
|
|
|
+ TestResult = 0;
|
|
|
|
+ ErrMsg = string.Format("{0} UploadIdcData fail! {1}", SN, error);
|
|
|
|
+ Log.WriteErrorLog(ErrMsg);
|
|
|
|
+ goto end;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if (CommonMethod.GetLoginAccout().Equals("Sanhua", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
|
+ if (FunctionSettingNow.EnableSanhuaMES)
|
|
{
|
|
{
|
|
- // 由于抄写成功才会输出ACASID,所以result参数在此固定为OK/PASS
|
|
|
|
- if (!SanhuaMethod.ProductMoveNext(SN, "OK", "", out error))
|
|
|
|
|
|
+ if (CommonMethod.GetLoginAccout().Equals("Sanhua", StringComparison.OrdinalIgnoreCase))
|
|
{
|
|
{
|
|
- TestResult = 0;
|
|
|
|
- ErrMsg = string.Format("{0} ProductMoveNext fail! {1}", SN, error);
|
|
|
|
- Log.WriteErrorLog(ErrMsg);
|
|
|
|
- goto end;
|
|
|
|
|
|
+ // 由于抄写成功才会输出ACASID,所以result参数在此固定为OK/PASS
|
|
|
|
+ if (!SanhuaMethod.ProductMoveNext(SN, "OK", "", out error))
|
|
|
|
+ {
|
|
|
|
+ TestResult = 0;
|
|
|
|
+ ErrMsg = string.Format("{0} ProductMoveNext fail! {1}", SN, error);
|
|
|
|
+ Log.WriteErrorLog(ErrMsg);
|
|
|
|
+ goto end;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|