From 62d941f6227032f9c06ec8135a8479bde8120edc Mon Sep 17 00:00:00 2001 From: gongxh Date: Mon, 29 Mar 2021 14:41:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=A7=E5=93=81=E5=90=8D?= =?UTF-8?q?=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.Model/Response/MOM/MomDetail.cs | 2 ++ NX.ERP.U8/Mom/MomOrderDAL.cs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NX.ERP.Model/Response/MOM/MomDetail.cs b/NX.ERP.Model/Response/MOM/MomDetail.cs index 23f51ca..30cbb37 100644 --- a/NX.ERP.Model/Response/MOM/MomDetail.cs +++ b/NX.ERP.Model/Response/MOM/MomDetail.cs @@ -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] diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index 5449597..fe4ff36 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -179,7 +179,7 @@ namespace NX.ERP.U8.Mom /// public IEnumerable 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} ";