From a7496b3785a33c14079b859c88b91a537c454cd5 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期二, 06 八月 2024 20:03:49 +0800 Subject: [PATCH] 增加不良记录的保存 --- Tiger.Business.MES/iERP/U9C_MES.cs | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Tiger.Business.MES/iERP/U9C_MES.cs b/Tiger.Business.MES/iERP/U9C_MES.cs index 7614f96..ead57d8 100644 --- a/Tiger.Business.MES/iERP/U9C_MES.cs +++ b/Tiger.Business.MES/iERP/U9C_MES.cs @@ -123,13 +123,15 @@ if (di != null) { var orgId = di["Org"] == null ? "" : di["Org"].ToString(); + var itemId = di["ItemMaster"] == null ? "" : di["ItemMaster"].ToString(); + var basItem = Biz.Db.Queryable <BAS_ITEM>().Where(x=>x.ID == itemId).First(); BIZ_MES_WO woItem = new() { ORDER_NO = di["DocNo"] == null ? "" : di["DocNo"].ToString(), ORDER_TYPE = di["DocTypeCode"] == null ? 0 : di["DocTypeCode"].ToInt32(), PLAN_QTY = di["ProductQty"] == null ? 0 : di["ProductQty"].ToInt32(), CUST_CODE = di["CustomerCode"] == null ? "" : di["CustomerCode"].ToString(), - ITEM_CODE = di["ItemMaster"] == null ? "" : di["ItemMaster"].ToString(), + ITEM_CODE = basItem != null? basItem.ITEM_CODE: "", CREATE_TIME = di["CreatedOn"].ToDateTime(), UPDATE_TIME = di["ModifiedOn"].ToDateTime(), PLAN_START_TIME = di["CheckDate"].ToDateTime(), -- Gitblit v1.9.3