From a8d53fb17a110a7910e0019e58d6b89a83ecbf8f Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 28 8月 2024 14:37:58 +0800 Subject: [PATCH] 优化 --- DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs | 9 +++++++++ 1 files changed, 9 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 cb9e60a..02fd821 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,7 @@ //姣忔鎵弿涓婄嚎閮芥彃鍏ヨ拷婧〃 WorkPieceProcess new_process = new WorkPieceProcess(); new_process = EntityPropHelper.Mapper<WorkPieceProcess, WorkPieceInfo>(info); + QualityStateHelper.ResetQualityNoOkForNewProcess(ref new_process); new_process.StartTime = DateTimeHelper.GetDateTime(); //涓嶅啀榛樿璧嬪�间负鍚堟牸 銆怑ditby shaocx,2024-08-16銆� @@ -738,6 +739,7 @@ WorkPieceProcess process = new WorkPieceProcess(); process = EntityPropHelper.Mapper<WorkPieceProcess, WorkPieceInfo>(pieceInfo); + QualityStateHelper.ResetQualityNoOkForNewProcess(ref process); process.StartTime = DateTimeHelper.GetDateTime(); //涓嶅啀榛樿璧嬪�间负鍚堟牸 銆怑ditby shaocx,2024-08-16銆� @@ -1098,6 +1100,7 @@ //姣忔SPC 閮芥彃鍏ヨ拷婧〃 WorkPieceProcess process = new WorkPieceProcess(); process = EntityPropHelper.Mapper<WorkPieceProcess, WorkPieceInfo>(cur_db_info); + QualityStateHelper.ResetQualityNoOkForNewProcess(ref process); process.StartTime = DateTimeHelper.GetDateTime(); process.OperationType = OperationType.SPC.ToString(); process.QualityState = (int)QualityState.Suspected; @@ -1331,6 +1334,7 @@ { WorkPieceProcess process = new WorkPieceProcess(); process = EntityPropHelper.Mapper<WorkPieceProcess, WorkPieceInfo>(info); + QualityStateHelper.ResetQualityNoOkForNewProcess(ref process); process.Id = Yitter.IdGenerator.YitIdHelper.NextId(); process.StartTime = DateTimeHelper.GetDateTime(); process.EndTime = DateTimeHelper.GetDateTime(); @@ -1363,6 +1367,11 @@ } else { + if (logMiddle.WorkingProcedure.Equals("OP80")) + {//OP80鐨勮川閲忔暟鎹槸鍚庢潵鑾峰彇鏂囦欢鎼炵殑 + //璐ㄦ鏁版嵁锛屽啀鑰冭檻 鍙﹀涓ょ鐘舵�� 銆怑ditby shaocx,2024-08-27銆� + QualityStateHelper.SetQualityStateForOP80(logMiddle, ref info, ref pro); + } if (op80id > 0) { pro.QualityDataInfoID = op80id; -- Gitblit v1.9.3