|
@@ -104,8 +104,7 @@ namespace MOKA_Factory_Tools
|
|
|
this.mainform.KeyDownEvent += new KeyDownHandler(SetFocus);
|
|
|
if (midListNow.rokuCustomer != null)
|
|
|
ProductMsg_Text.Text = "Roku:";
|
|
|
- //if (functionSetting.NTF)
|
|
|
- if (CommonMethod.GetLoginAccout().Equals("HuiZhou",StringComparison.OrdinalIgnoreCase))
|
|
|
+ if (functionSetting.NTF)
|
|
|
ntfBLL = new NTFBLL();
|
|
|
}
|
|
|
|
|
@@ -766,7 +765,7 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
|
|
|
#region 只有惠州工厂才启用G客户防呆措施;
|
|
|
- if (CommonMethod.GetLoginAccout().Equals("Huizhou", StringComparison.OrdinalIgnoreCase))
|
|
|
+ if (FunctionSettingNow.NTF)
|
|
|
{
|
|
|
StringBuilder strValue = new StringBuilder(256);
|
|
|
// 获取上一次的SN号;
|
|
@@ -3911,7 +3910,7 @@ namespace MOKA_Factory_Tools
|
|
|
{
|
|
|
Thread.Sleep(writeDoneNow.PIDWriteDelay);//MS6586切完PID需要强制等待3s
|
|
|
}
|
|
|
- if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay))
|
|
|
+ if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay, CommonMethod.IsEDIDCopy(midListNow)))
|
|
|
{
|
|
|
int readpid2 = CommonMethod.BytelisttoInt(data);
|
|
|
if (readpid2.ToString() != ProjectIDText.Text)
|
|
@@ -3949,7 +3948,7 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay))
|
|
|
+ if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay, CommonMethod.IsEDIDCopy(midListNow)))
|
|
|
{
|
|
|
int readpid = CommonMethod.BytelisttoInt(data);
|
|
|
if (readpid.ToString() != ProjectIDText.Text)
|
|
@@ -3967,7 +3966,7 @@ namespace MOKA_Factory_Tools
|
|
|
Thread.Sleep(writeDoneNow.PIDWriteDelay);//MS6586切完PID需要强制等待3s
|
|
|
}
|
|
|
Log.WriteInfoLog("Check projectID...");
|
|
|
- if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay))
|
|
|
+ if (SerialCMD.GetProjectID(TVPort, out result, out data, out error, SerailDelay, CommonMethod.IsEDIDCopy(midListNow)))
|
|
|
{
|
|
|
int readpid2 = CommonMethod.BytelisttoInt(data);
|
|
|
if (readpid2.ToString() != ProjectIDText.Text)
|
|
@@ -4679,7 +4678,7 @@ namespace MOKA_Factory_Tools
|
|
|
Thread.Sleep(FunctionSettingNow.Wait_after_completion);
|
|
|
end:
|
|
|
#region 只有惠州工厂才启用G客户防呆措施;
|
|
|
- if (CommonMethod.GetLoginAccout().Equals("Huizhou", StringComparison.OrdinalIgnoreCase))
|
|
|
+ if (FunctionSettingNow.NTF)
|
|
|
{
|
|
|
string strLastResult = "";
|
|
|
string strLastSN = CommonMethod.ReadProfileString("MOKAFactoryTools", "LastGSN", "");
|