From ab38044fbe6d0df224a2bae5aeb949bc4491916c Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 12 9月 2024 09:03:51 +0800
Subject: [PATCH] 1
---
DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/2_QualityInfoCompleteManager.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/2_QualityInfoCompleteManager.cs b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/2_QualityInfoCompleteManager.cs
index 8a04177..c391f66 100644
--- a/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/2_QualityInfoCompleteManager.cs
+++ b/DataCapture/iWare_SCADA_DataCapture/iWare_SCADA_BusinessLogical/BLL/Important/2_QualityInfoCompleteManager.cs
@@ -5,6 +5,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using System.Web.UI.WebControls;
namespace iWare_SCADA_BusinessLogical.BLL.Important
{
@@ -303,6 +304,7 @@
process.Id = Yitter.IdGenerator.YitIdHelper.NextId();
process.CreatedUserName = WorkPieceInfoManager.ResetUpdatedUserName(logMiddle);
+ process.JiaJuGongWei = process.JiaJuGongWei;
process.DataCapturePointCname = logMiddle.DataCapturePointCname;
process.CreatedTime = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Local);
process.UpdatedUserName = WorkPieceInfoManager.ResetUpdatedUserName(logMiddle);
@@ -425,6 +427,16 @@
{
db.QualityDataInfo.Add(WorkPieceInfoManager.GetAddQualityDataInfo(qualityData));
}
+
+ //鏇存柊琛╓orkPieceProcess
+ var pro_70 = db.WorkPieceProcess.Where(o => o.WorkPieceID == logMiddle.WorkPieceID && o.WorkingProcedureCurrent == "OP70"
+ ).OrderByDescending(o => o.StartTime).FirstOrDefault();
+
+ if (pro_70 != null)
+ {
+ pro_70.Update70Flag = 2;
+ }
+
db.SaveChanges();//淇濆瓨鏁版嵁
}
else
--
Gitblit v1.9.3