添加产品名称
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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} ";
|
||||
|
||||
Reference in New Issue
Block a user