| | |
| | | using MES.Service.DB; |
| | | using System.Data; |
| | | using System.Globalization; |
| | | using AngleSharp.Dom; |
| | | using MES.Service.DB; |
| | | using MES.Service.Dto.webApi; |
| | | using MES.Service.Modes; |
| | | using SqlSugar; |
| | | using System.Data; |
| | | using System.Globalization; |
| | | |
| | | namespace MES.Service.service.BasicData; |
| | | |
| | |
| | | { |
| | | salesOrderSub.Id = single.Id; |
| | | } |
| | | var mesLinkU9 = Db.Queryable<MesLinkU9>() |
| | | .Where(x => x.U9Id == erpDto.FMaterialId |
| | | && x.OrgId == erpDto.FSupplyOrg |
| | | && x.TableType == "MES_ITEMS").First(); |
| | | |
| | | if (mesLinkU9 != null) salesOrderSub.MaterialId = mesLinkU9.MesId; |
| | | |
| | | |
| | | var mesLinkU92 = Db.Queryable<MesLinkU9>() |
| | | .Where(x => x.U9Id == erpDto.FProject |
| | | && x.OrgId == erpDto.FSupplyOrg |
| | | && x.TableType == "MES_PROJECT").First(); |
| | | |
| | | if (mesLinkU92 != null) salesOrderSub.FProject = mesLinkU92.MesId; |
| | | |
| | | salesOrderSubList.Add(salesOrderSub); |
| | | } |