服务端的TigerApi 框架,基于.NET6 2024 版本
Ben Lin
2024-07-24 4651b8084dff20870148cc9f9c521d777a78ffb5
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(),