| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | Log4NetHelper.WriteErrorLog(logType, $" OP80质量数据采集异常:{e.Message} {e.StackTrace}"); |
| | | Log4NetHelper.WriteErrorLog(logType, $" OP80质量数据采集异常:{e.Message} {e.StackTrace}", e); |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | //files = files.OrderByDescending(o => o.LastWriteTime).ToList(); |
| | | files = files.OrderBy(o => o.LastWriteTime).ToList();//时间升序 |
| | | Log4NetHelper.WriteErrorLog(logType, $"OP80下线完成读取到文件{files.Count()}个工件{pieceProcess.WorkPieceID} "); |
| | | Log4NetHelper.WriteInfoLog(logType, $"OP80下线完成读取到文件{files.Count()}个工件{pieceProcess.WorkPieceID} "); |
| | | |
| | | bool isGetQcSuccess = false; |
| | | |
| | |
| | | { |
| | | var file = findFiles.First(); |
| | | |
| | | Log4NetHelper.WriteErrorLog(logType, $"OP80下线完成读取到文件{file.Name},是指定的工件{pieceProcess.WorkPieceID}"); |
| | | Log4NetHelper.WriteInfoLog(logType, $"OP80下线完成读取到文件{file.Name},是指定的工件{pieceProcess.WorkPieceID}"); |
| | | |
| | | WorkPieceLogMiddle wplog = new WorkPieceLogMiddle(); |
| | | wplog.WorkPieceID = pieceProcess.WorkPieceID; |