添加产品名称

This commit is contained in:
gongxh
2021-03-29 14:41:40 +08:00
parent 494f5bda7c
commit 62d941f622
2 changed files with 4 additions and 2 deletions

View File

@@ -22,6 +22,8 @@ namespace NX.ERP.Model.MOM
public DateTime ProductOrderDate { get; set; }
public string ProductName { get; set; }
public string ProductCode { get; set; }
[Newtonsoft.Json.JsonIgnore]

View File

@@ -179,7 +179,7 @@ namespace NX.ERP.U8.Mom
/// <returns></returns>
public IEnumerable<Model.MOM.MomDetail> GetDetails(string strWhere = "", object Param = null)
{
var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,
var strSql = @"select b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoCode as ProductOrderNo,b.MakeDate as ProductOrderDate,b.InvCode as ProductCode,b.InvName as ProductName ,b.Qty as Qty,
d.AllocateId as id ,d.AllocateId as AllocateId,b.MoDId as ProductOrderDtlId,d.InvCode as MaterialCode,b.MoId as ProductOrderId, d.IssQty as IssQty,d.Qty
FROM v_st_mom_orderdetail b INNER JOIN
(SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode
@@ -192,7 +192,7 @@ namespace NX.ERP.U8.Mom
Where b.byproductflag=0
and ISNULL(b.Status,0) = 3
and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1
and isnull(b.sfcflag,0) =1)) AND (1>0) AND (1>0) AND ( 1>0 )";
and isnull(b.sfcflag,0) =1)) ";
if (!string.IsNullOrEmpty(strWhere))
{
strSql += $" and {strWhere} ";