|
@@ -33,6 +33,9 @@ namespace MOKA_Factory_Tools
|
|
|
|
|
|
public static string FactoryName = "Unknown";
|
|
|
|
|
|
+ private static string lastOrder = "";
|
|
|
+ private static Dictionary<string, string> AsacSNDict = new Dictionary<string, string>();
|
|
|
+
|
|
|
//public static string LocalMacAddress = GetMacAddress();
|
|
|
/// <summary>
|
|
|
/// 获取活动网卡硬件地址
|
|
@@ -1987,6 +1990,18 @@ namespace MOKA_Factory_Tools
|
|
|
Directory.CreateDirectory(path);
|
|
|
}
|
|
|
|
|
|
+ if ( !lastOrder.Equals(ordernum) )
|
|
|
+ {
|
|
|
+ lastOrder = ordernum;
|
|
|
+ AsacSNDict.Clear();
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( AsacSNDict.ContainsKey(sn) )
|
|
|
+ {
|
|
|
+ if ( AsacSNDict[sn].Equals(acasid) )
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
string fileName = path + "\\" + ordernum + ".txt";
|
|
|
string msg = string.Format("{0};{1}", sn, acasid);
|
|
|
var stream = new StreamWriter(fileName, true);
|