From 15662d05c2e2a8620cdabf9038c94f7b64a106d2 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周一, 02 9月 2024 09:33:16 +0800
Subject: [PATCH] 修复

---
 DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs |   15 ++++++++++++++-
 1 files changed, 14 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 6c27978..11c91d4 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/WorkPieceInfoManager.cs
@@ -230,6 +230,7 @@
                             {
                                 pro.EndTime = DateTimeHelper.GetDateTime();
                                 pro.UpdatedUserName = loginfo.MonitoringPoint;
+                                pro.UpdateDataCapturePointCname = loginfo.DataCapturePointCname;
                                 pro.UpdatedTime = DateTimeHelper.GetDateTime();
                                 pro.Remarks = "鍙堜竴娆′笂绾匡紝鏇存柊缁撴潫鏃堕棿";
                             }
@@ -253,8 +254,10 @@
 
                             new_process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
                             new_process.CreatedUserName = loginfo.MonitoringPoint;
+                            new_process.DataCapturePointCname = loginfo.DataCapturePointCname;
                             new_process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             new_process.UpdatedUserName = loginfo.MonitoringPoint;
+                            new_process.UpdateDataCapturePointCname = loginfo.DataCapturePointCname;
                             new_process.UpdatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             new_process.OperationType = OperationType.鐢熶骇.ToString();
                             new_process.Remarks = "";
@@ -787,8 +790,10 @@
 
                             process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
                             process.CreatedUserName = ResetUpdatedUserName(logMiddle);
+                            process.DataCapturePointCname = logMiddle.DataCapturePointCname;
                             process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             process.UpdatedUserName = ResetUpdatedUserName(logMiddle);
+                            process.UpdateDataCapturePointCname = logMiddle.DataCapturePointCname;
                             process.UpdatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             process.OperationType = OperationType.鐢熶骇.ToString();
                             process.QualityDataInfoID = qualityData.Id;
@@ -799,6 +804,7 @@
                         {//鍏朵粬鐨勯兘鍙槸淇敼
                             pro.QualityDataInfoID = qualityData.Id;
                             pro.UpdatedUserName = ResetUpdatedUserName(logMiddle);
+                            pro.UpdateDataCapturePointCname = logMiddle.DataCapturePointCname;
                             pro.UpdatedTime = DateTimeHelper.GetDateTime();
 
                             //涓嶅啀榛樿璧嬪�间负鍚堟牸 銆怑ditby shaocx,2024-08-16銆�
@@ -812,7 +818,7 @@
                             if (logMiddle.WorkingProcedure == "OP60")
                             {
                                 pro.CreatedUserName = ResetUpdatedUserName(logMiddle);
-
+                                pro.DataCapturePointCname = logMiddle.DataCapturePointCname;
                             }
                         }
 
@@ -1032,6 +1038,7 @@
                             pro.EndTime = DateTimeHelper.GetDateTime();
                             pro.Remarks = (pro.Remarks ?? "") + "NOOK缁撴潫";
                             pro.UpdatedUserName = loginfo.MonitoringPoint;
+                            pro.UpdateDataCapturePointCname = loginfo.DataCapturePointCname;
                             pro.UpdatedTime = DateTimeHelper.GetDateTime();
                         }
 
@@ -1131,6 +1138,7 @@
                             pro.EndTime = DateTimeHelper.GetDateTime();
                             pro.Remarks = (pro.Remarks ?? "") + "SPC鎶芥缁撴潫";
                             pro.UpdatedUserName = loginfo.MonitoringPoint;
+                            pro.UpdateDataCapturePointCname = loginfo.DataCapturePointCname;
                             pro.UpdatedTime = DateTimeHelper.GetDateTime();
                         }
                         //姣忔SPC 閮芥彃鍏ヨ拷婧〃
@@ -1142,8 +1150,10 @@
                         process.QualityState = (int)QualityState.Suspected;
                         process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
                         process.CreatedUserName = loginfo.MonitoringPoint;
+                        process.DataCapturePointCname = loginfo.DataCapturePointCname;
                         process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                         process.UpdatedUserName = loginfo.MonitoringPoint;
+                        process.UpdateDataCapturePointCname = loginfo.DataCapturePointCname;
                         process.UpdatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                         process.Remarks = "宸ヤ欢SPC鎶芥鎺ㄥ嚭";
                         db.WorkPieceProcess.Add(process);
@@ -1386,8 +1396,10 @@
                                 process.QualityState = WorkPieceInfoManager.GetQualityStateValue(logMiddle.QualityState);
                             }
                             process.CreatedUserName = logMiddle.MonitoringPoint;
+                            process.DataCapturePointCname = logMiddle.DataCapturePointCname;
                             process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             process.UpdatedUserName = logMiddle.MonitoringPoint;
+                            process.UpdateDataCapturePointCname = logMiddle.DataCapturePointCname;
                             process.UpdatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
                             process.OperationType = OperationType.鐢熶骇.ToString();
                             process.Remarks = "";
@@ -1414,6 +1426,7 @@
                             }
                             pro.EndTime = DateTimeHelper.GetDateTime();
                             pro.UpdatedUserName = logMiddle.MonitoringPoint;
+                            pro.UpdateDataCapturePointCname = logMiddle.DataCapturePointCname;
                             pro.UpdatedTime = DateTimeHelper.GetDateTime();
                             if (logMiddle.WorkingProcedure.Equals("OP80"))
                             {

--
Gitblit v1.9.3