添加领料申请

This commit is contained in:
gongxh
2021-05-17 15:40:43 +08:00
parent e5774f9b86
commit 1c32ca4a40
8 changed files with 310 additions and 154 deletions

View File

@@ -7,11 +7,8 @@ namespace NX.ERP.U8.Mom
{
public class BomDAL
{
public IEnumerable<NX.ERP.Model.Response.MOM.Bom> GetList(string strWhere="", object Params = null)
{
var strSQL = @"select a.BomId,a.Version, 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
left join bom_parent as b on a.BomId=b.BomId
@@ -25,8 +22,6 @@ namespace NX.ERP.U8.Mom
{
strSQL += $" where {strWhere} ";
}
using (var conn = U8LoginContext.Instance.Connection)
{
var lookup = new Dictionary<int, Model.Response.MOM.Bom>();
@@ -41,24 +36,12 @@ namespace NX.ERP.U8.Mom
{
bom = _bom;
}
bom.OptionComponents.Add(comp);
return bom;
}, Params, null, true, "id", 10, System.Data.CommandType.Text); ;
return lookup.Values;
}
}