From e659c3243c6c368e193b4c06dcce5f20b829a447 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周二, 03 9月 2024 11:40:56 +0800 Subject: [PATCH] //特殊处理OP05上线,因为他是根据文本列表内容上线的 【Editby shaocx,2024-09-03】 --- DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 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 944f141..76feee4 100644 --- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs +++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs @@ -237,6 +237,15 @@ pro.Remarks = "鍙堜竴娆′笂绾匡紝鏇存柊缁撴潫鏃堕棿"; } } + //鐗规畩澶勭悊OP05涓婄嚎锛屽洜涓轰粬鏄牴鎹枃鏈垪琛ㄥ唴瀹逛笂绾跨殑 銆怑ditby shaocx,2024-09-03銆� + if (loginfo.WorkingProcedure.Equals("OP05")) + { + var op05Proccss = db.WorkPieceProcess.Where(o => o.WorkPieceID == loginfo.WorkPieceID && o.WorkingProcedureCurrent == loginfo.WorkingProcedure).FirstOrDefault(); + if (op05Proccss != null) + { + isNeedAddNewProcess = false;//涓嶉渶瑕佹柊澧炰簡 + } + } if (isNeedAddNewProcess) { //姣忔鎵弿涓婄嚎閮芥彃鍏ヨ拷婧〃 @@ -263,7 +272,7 @@ new_process.UpdatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local); new_process.OperationType = OperationType.鐢熶骇.ToString(); new_process.Remarks = ""; - new_process.MyRemarks = "璇荤爜涓婄嚎鏃讹紝濡傛灉鎵句笉鍒板氨鏂板缓"; + new_process.MyRemarks = "璇荤爜涓婄嚎鏃讹紝姣忔鎵弿涓婄嚎閮芥彃鍏ヨ拷婧〃"; if (loginfo.WorkingProcedure.Equals("OP05")) { new_process.EndTime = new_process.StartTime; -- Gitblit v1.9.3