| | |
| | | namespace iWare_SCADA_BusinessLogical |
| | | { |
| | | /// <summary> |
| | | /// OP60测量完成标记验证 |
| | | /// OP60测量完成标记验证(纯属于 监控用) |
| | | /// </summary> |
| | | public class DataCaptureHandler_OP6002: DataCaptureHandler |
| | | public class DataCaptureHandler_OP6002 : DataCaptureHandler |
| | | { |
| | | public static readonly DataCaptureHandler_OP6002 Instance = new DataCaptureHandler_OP6002(); |
| | | |
| | |
| | | wplog.MonitoringPoint = DataCapturePointCode; |
| | | wplog.CreatedTime = DateTimeHelper.GetDateTime(); |
| | | wplog.CreatedUserName = DataCapturePointCode; |
| | | wplog.UpdatedUserName = Environment.MachineName+"自动" + Thread.CurrentThread.ManagedThreadId.ToString(); |
| | | wplog.UpdatedUserName = Environment.MachineName + "自动" + Thread.CurrentThread.ManagedThreadId.ToString(); |
| | | wplog.UpdatedTime = DateTimeHelper.GetDateTime(); |
| | | wplog.IsDeleted = false; |
| | | wplog.QualityType = QualityType.Online.ToString(); |
| | |
| | | else if (valuecolb.ToString().ToUpper().Equals("TRUE")) |
| | | { |
| | | wplog.CreatedUserName = "OP6002BB"; |
| | | code = plcService.ReadValuePointV2("DB2050.76.0", typeof(string),22)?.ToString(); |
| | | code = plcService.ReadValuePointV2("DB2050.76.0", typeof(string), 22)?.ToString(); |
| | | quality = plcService.ReadValuePointV2("DB2050.6.0", typeof(string), 2)?.ToString(); |
| | | } |
| | | else if (valuecolc.ToString().ToUpper().Equals("TRUE")) |
| | |
| | | wplog.CreatedUserName = "OP6002EE"; |
| | | } |
| | | |
| | | wplog.WorkPieceID= code; |
| | | wplog.WorkPieceID = code; |
| | | wplog.Remarks = $"{valuecola.ToString().ToUpper()}|{valuecolb.ToString().ToUpper()}|{valuecolc.ToString().ToUpper()}|{valuecold.ToString().ToUpper()} 质量结果:{quality}"; |
| | | //更新WorkPieceInfo表以及插入WorkPieceLog表和WorkPieceInfoLog表 |
| | | |