From 525dfb4adc6afd6f6a256150a451a3420588fa8d Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周三, 03 12月 2025 11:39:19 +0800
Subject: [PATCH] 消警处理
---
DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/1_ReadQRcodeManager.cs | 21 +++++++++++++++------
1 files changed, 15 insertions(+), 6 deletions(-)
diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/1_ReadQRcodeManager.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/1_ReadQRcodeManager.cs
index e205a38..a34fd66 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/1_ReadQRcodeManager.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/1_ReadQRcodeManager.cs
@@ -54,11 +54,15 @@
else
{
//瀛樺湪 琛� WorkPieceInfo鏈夛紝浣嗘槸 WorkPieceProcess杩欎釜宸ュ簭涓嶅瓨鍦ㄧ殑鎯呭喌 銆怑ditby shaocx,2024-09-06銆�
- //if (info.WorkingProcedureCurrent.Equals("OP05"))
- //{
- // loginfo.Remarks = $"璇诲彇浜岀淮鐮亄loginfo.WorkPieceID ?? "绌�"} OP05宸ュ簭閲嶅璇诲彇浜�";
- // return;
- //}
+ if (info.WorkingProcedureCurrent.Equals("OP05"))
+ {
+ //鍒ゆ柇05鏁版嵁鏄惁瀛樺湪
+ var pro_05 = db.WorkPieceProcess.Where(o => o.WorkPieceID == loginfo.WorkPieceID && o.WorkingProcedureCurrent == "OP05").FirstOrDefault();
+ if (pro_05 != null)
+ {
+ return;//涓嶉澶勭悊
+ }
+ }
}
if ((loginfo.WorkingProcedure.Equals("OP05") && isAddWorkPieceInfo == false))
{//瀛樺湪 琛� WorkPieceInfo鏈夛紝浣嗘槸 WorkPieceProcess杩欎釜宸ュ簭涓嶅瓨鍦ㄧ殑鎯呭喌
@@ -141,6 +145,7 @@
new_process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
new_process.CreatedUserName = loginfo.MonitoringPoint;
+ new_process.JiaJuGongWei = loginfo.JiaJuGongWei;
new_process.DataCapturePointCname = loginfo.DataCapturePointCname;
new_process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
new_process.UpdatedUserName = loginfo.MonitoringPoint;
@@ -246,7 +251,11 @@
finally
{
loginfo.Id = Yitter.IdGenerator.YitIdHelper.NextId();
- db.WorkPieceLog.Add(loginfo);
+
+ if (!loginfo.WorkingProcedure.Equals("OP05"))
+ {//OP05 涓嶈褰曟棩蹇椾簡
+ db.WorkPieceLog.Add(loginfo);
+ }
//淇濆瓨鏁版嵁搴撶殑寮傚父鎹曟崏 [Editby shaocx,2024-08-29]
try
--
Gitblit v1.9.3