| | |
| | | using iWare_SCADA_BusinessLogical.BLL; |
| | | using iWare.Wms.Core; |
| | | using iWare_SCADA_BusinessLogical.BLL; |
| | | using iWare_SCADA_BusinessLogical.Utils; |
| | | using iWare_SCADA_Model; |
| | | using System; |
| | |
| | | |
| | | wplog = EntityPropHelper.Mapper<WorkPieceLog, WorkPieceInfo>(info); |
| | | wplog.Id = Yitter.IdGenerator.YitIdHelper.NextId(); |
| | | wplog.Remarks = "HMI更新工件质量信息"; |
| | | |
| | | //1:合格 2:不合格 3:疑似" |
| | | QualityStateEnum qualityStateEnum = (QualityStateEnum)Enum.Parse(typeof(QualityStateEnum), QualityState.ToString()); |
| | | wplog.Remarks = $"HMI更新工件质量信息,修改为[{qualityStateEnum.ToString()}]"; |
| | | wplog.PieceLogType = (int)PieceLogTypeEnum.HMI修改质量状态; |
| | | wplog.PieceLogTypeName = PieceLogTypeEnum.HMI修改质量状态.ToString(); |
| | | wplog.OnlineTime =info.WorkPieceinitOnlineTime; |
| | | |
| | | db.WorkPieceLog.Add(wplog); |