| | |
| | | using iWare_SCADA_BusinessLogical.BLL; |
| | | using iWare_SCADA_BusinessLogical.BLL.Important; |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using iWare_SCADA_Model; |
| | | using System; |
| | |
| | | wplog.WorkingProcedure = WorkingProcedure; |
| | | wplog.EquipmentID = _dataCaptureConfig.EquipmentID; |
| | | wplog.MonitoringPoint = DataCapturePointCode; |
| | | //wplog.CreatedUserName = DataCapturePointCode; |
| | | SystemBussinessHelper.SetWorkPieceLogMiddleForCreatedUserName(ref wplog, DataCapturePointCode, DataCapturePointCname); |
| | | wplog.CreatedTime = DateTimeHelper.GetDateTime(); |
| | | wplog.CreatedUserName = DataCapturePointCode; |
| | | wplog.UpdatedTime = DateTimeHelper.GetDateTime(); |
| | | wplog.UpdatedUserName = Environment.MachineName + "自动" + Thread.CurrentThread.ManagedThreadId.ToString(); |
| | | wplog.OnlineTime = DateTimeHelper.GetDateTime(); |
| | |
| | | { |
| | | Log4NetHelper.WriteInfoLog(PLCManger.GetLogTypeForWorkingProcedure(WorkingProcedure), $" {DataCapturePointCode}工序1监控读码标记 读取工件码数据{wplog.WorkPieceID}推出原因[{wplog.OP10Flag}]"); |
| | | |
| | | WorkPieceInfoManager.WorkPiecePushOff(wplog, LogType.PLCOP10); |
| | | WorkPiecePushOffManager.WorkPiecePushOff(wplog, LogType.PLCOP10); |
| | | threadStatusMonitor.Threadstatue = 1; |
| | | wplog.Remarks = (wplog.Remarks ?? "") + $"推出原因[{wplog.OP10Flag}] NOOK"; |
| | | wplog.Remarks = $"推出原因[{wplog.OP10Flag}] NOOK"; |
| | | } |
| | | //else if (wplog.OP10Flag == 2 || wplog.OP10Flag == 3) |
| | | else |
| | | { |
| | | Log4NetHelper.WriteInfoLog(PLCManger.GetLogTypeForWorkingProcedure(WorkingProcedure), $" {DataCapturePointCode}工序23监控读码标记 读取工件码数据{wplog.WorkPieceID}推出原因[{wplog.OP10Flag}]"); |
| | | |
| | | WorkPieceInfoManager.WorkPieceSPCPushOff(wplog, LogType.PLCOP10); |
| | | wplog.Remarks = (wplog.Remarks ?? "") + $"推出原因[{wplog.OP10Flag}] SPC"; |
| | | WorkPieceSPCPushOffManager.WorkPieceSPCPushOff(wplog, LogType.PLCOP10); |
| | | wplog.Remarks = $"推出原因[{wplog.OP10Flag}] SPC"; |
| | | threadStatusMonitor.Threadstatue = 1; |
| | | } |
| | | |