补料表
This commit is contained in:
@@ -13,5 +13,7 @@ namespace NX.ERP.Model.Request
|
|||||||
|
|
||||||
public string SoCode { get; set; }
|
public string SoCode { get; set; }
|
||||||
|
|
||||||
|
public List<string> inumsc { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -419,6 +419,25 @@ namespace NX.ERP.U8.Pmc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public IEnumerable<object> Inventorybu(NX.ERP.Model.Request.Inventoryall info1)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
using (var conn = NX.ERP.U8.U8LoginContext.Instance.Connection)
|
||||||
|
{
|
||||||
|
DynamicParameters sp = new DynamicParameters(info1);
|
||||||
|
var sql = $@"Usp_BO_ExpandByParent_BU_20210208 ";
|
||||||
|
foreach (var item in info1.inumsc)
|
||||||
|
{
|
||||||
|
|
||||||
|
sql = sql +"'"+ item + "'" + ","; }
|
||||||
|
sql = sql.Substring(0, sql.Length - 1);
|
||||||
|
|
||||||
|
|
||||||
|
return conn.Query<object>(sql, new { inumsc = info1.inumsc });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,15 @@ namespace NX.ERP.WebAPi.Controllers
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
[HttpPost]
|
||||||
|
[Route("api/Pmc/Inventorybu")]
|
||||||
|
public IEnumerable<object> Inventorybu(NX.ERP.Model.Request.Inventoryall info)
|
||||||
|
{
|
||||||
|
var PmcQuery = new NX.ERP.U8.Pmc.PmcQuery();
|
||||||
|
return PmcQuery.Inventorybu(info);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user