From 1cdca2ba97c3d77ec08306cfe7efceb17ddc56cf Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 03 7月 2024 09:39:03 +0800
Subject: [PATCH] 特殊处理OP70,因为OP70没有测量,默认合格 [Editby shaocx,2024-07-03]

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs
index ce2ffd3..ebfcda2 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs
@@ -229,6 +229,11 @@
 
                         process.QualityState = info.QualityState.HasValue ? info.QualityState.Value : (int)QualityState.OK;
 
+                        if (process.WorkingProcedureCurrent == WorkingProcedureForHMI.OP70.ToString())
+                        { //鐗规畩澶勭悊OP70锛屽洜涓篛P70娌℃湁娴嬮噺锛岄粯璁ゅ悎鏍� [Editby shaocx,2024-07-03]
+                            process.QualityState = (int)QualityState.OK;
+                        }
+
                         process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
                         process.CreatedUserName = loginfo.MonitoringPoint;
                         process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);

--
Gitblit v1.9.3