|
|
|
@ -34,7 +34,7 @@ namespace Rs.MotionPlat.Commom
|
|
|
|
|
File.AppendAllText(filename, csvTitle);
|
|
|
|
|
}
|
|
|
|
|
string v = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString().Replace(".","_");
|
|
|
|
|
string content = $"{v},{GlobalVar.SiteID},{GlobalVar.ProjectID},{GlobalVar.MachineID},{DateTime.Now.ToString("dd/MM/yyyy")},{DateTime.Now.ToString("HH:mm:ss")},{GlobalVar.LotName.Replace("\r\n", "")},OP,{keyword},{errorcode},{errormsg},{message}\r\n";
|
|
|
|
|
string content = $"{v},{GlobalVar.SiteID},{GlobalVar.ProjectID},{GlobalVar.MachineID},{DateTime.Now.ToString("dd/MM/yyyy")},{DateTime.Now.ToString("HH:mm:ss")},{GlobalVar.LotName.Replace("\r\n", "")},OP,{keyword},{errorcode},\"{errormsg}\",{message}\r\n";
|
|
|
|
|
File.AppendAllText(filename, content);
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|