BOM 和MO 添加名称个物料规格

This commit is contained in:
gongxh
2021-06-04 14:48:56 +08:00
parent 43b9e3473a
commit cd8d10ddae
8 changed files with 36 additions and 28 deletions

View File

@@ -18,8 +18,8 @@ namespace NX.ERP.U8.Mom
/// <returns></returns>
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(string strWhere="", object Params = null)
{
var strSQL = @"select ISNULL(a.ModifyDate,CreateDate) ModifyDate,CONVERT(BIGINT,a.Ufts) AS pubufts,a.BomId,a.Version,a.Status, a.VersionDesc,a.BomType,c.InvCode as ParentCode ,' ' as id ,d.BomId, d.SortSeq,
e.InvCode as ComponentCode ,d.BaseQtyN, d.BaseQtyD ,f.WIPType,d.EffBegDate,d.EffEndDate from bom_bom as a
var strSQL = @"select ISNULL(a.ModifyDate,CreateDate) ModifyDate,CONVERT(BIGINT,a.Ufts) AS pubufts,a.BomId,a.Version,a.Status, a.VersionDesc,a.BomType,c.InvCode as ParentCode ,x.cInvName as ParentName ,x.cInvStd as ParentSpecsModel,' ' as id ,d.BomId, d.SortSeq,
e.InvCode as ComponentCode ,y.cInvName as ComponentName,y.cInvStd as ComponentSpecsModel ,d.BaseQtyN, d.BaseQtyD ,f.WIPType,d.EffBegDate,d.EffEndDate from bom_bom as a
left join bom_parent as b on a.BomId=b.BomId
left join bas_part as c on b.ParentId=c.PartId
left join Inventory as x on c.InvCode=x.cInvCode