From f12084241b438c025550d4f9337935abf9a52c81 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期六, 10 八月 2024 19:17:25 +0800 Subject: [PATCH] 在制品的生产信息的关联使用在制品的ID来关联,优化生产信息保存逻辑 --- Tiger.Business.MES/WorkAction/WipExtInfo.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/WipExtInfo.cs b/Tiger.Business.MES/WorkAction/WipExtInfo.cs index 1854d85..7f445e4 100644 --- a/Tiger.Business.MES/WorkAction/WipExtInfo.cs +++ b/Tiger.Business.MES/WorkAction/WipExtInfo.cs @@ -54,6 +54,7 @@ AUTH_ORG = wipSN.AUTH_ORG, AUTH_PROD = wipSN.AUTH_PROD, SN = wipSN.SN, + WIP_ID = wipSN.ID, }); } } @@ -133,7 +134,6 @@ } //閮芥病鏈夌墿鏂欓獙璇侀�氳繃锛屽垯杩斿洖閿欒淇℃伅 - } catch (System.Exception ex) { @@ -162,6 +162,7 @@ { AUTH_ORG = CurPosition.WorkBatch.WO.AUTH_ORG, AUTH_PROD = CurPosition.CurLine.LINE_CODE, + WIP_ID = wipSn.ID, HIS_ID = CurPosition.CurWipSNHiss.First(q => q.SN == wipSn.SN).ID, SN = wipSn.SN, STATUS = wipSn.STATUS, @@ -179,7 +180,11 @@ POST_CODE = wipSn.POST_CODE, OPER_CODE = wipSn.OPER_CODE, SEGMENT = wipSn.SEGMENT, + FLOW_SN = wipSn.FLOW_SN, TRAY_SN = wipSn.TRAY_SN, + INNER_SN = wipSn.INNER_SN, + CARTON_SN = wipSn.CARTON_SN, + PALLET_SN = wipSn.PALLET_SN, OPERATION_TIME = DateTime.Now, SFTS_CODE = wipSn.SFTS_CODE, SFT_CODE = wipSn.SFT_CODE, -- Gitblit v1.9.3