From f656805650f0024d30ede19d8c32070f319ed507 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期日, 21 七月 2024 21:56:41 +0800 Subject: [PATCH] MES逻辑增加组织的判断和保存 --- Tiger.Business.MES/WorkAction/PrintLabel.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Tiger.Business.MES/WorkAction/PrintLabel.cs b/Tiger.Business.MES/WorkAction/PrintLabel.cs index bef9143..9d869bf 100644 --- a/Tiger.Business.MES/WorkAction/PrintLabel.cs +++ b/Tiger.Business.MES/WorkAction/PrintLabel.cs @@ -122,6 +122,8 @@ //璁板綍琛屼负鎿嶄綔璁板綍 var wipAct = new MES_WIP_ACT() { + AUTH_ORG = CurPosition.WorkBatch.WO.AUTH_ORG, + AUTH_PROD = CurPosition.CurLine.LINE_CODE, HIS_ID = CurPosition.CurWipSNHis.ID, SN = CurPosition.CurWipSN.SN, STATUS = CurPosition.CurWipSN.STATUS, @@ -179,7 +181,7 @@ case "GetSN": return CurPosition.CurWipSN.SN; case "GetBAS_ITEM": - return Biz.Db.Queryable<BAS_ITEM>().Where(q => q.ITEM_CODE == CurPosition.CurWipSN.ITEM_CODE).First()?.ToJson(); + return CurPosition.WorkBatch.Product.ToJson(); case "GetCustomer": return CurPosition.WorkBatch.Batch.ToJson(); default: -- Gitblit v1.9.3