From a4203bd56ca5c375e467836ec0fb989bf523e9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=B0=20=E6=9C=B1?= <501697962@qq.com> Date: Fri, 3 Sep 2021 15:44:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A1=8C=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- NX.ERP.Model/Response/MOM/MoAllocate.cs | 2 ++ NX.ERP.U8/Mom/MomOrderDAL.cs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/NX.ERP.Model/Response/MOM/MoAllocate.cs b/NX.ERP.Model/Response/MOM/MoAllocate.cs index b2bd6fb..58c5045 100644 --- a/NX.ERP.Model/Response/MOM/MoAllocate.cs +++ b/NX.ERP.Model/Response/MOM/MoAllocate.cs @@ -20,6 +20,8 @@ namespace NX.ERP.Model.MOM public string MaterialName { get; set; } + public string irowno { get; set; } + public string MaterialSpecsModel { get; set; } public double Qty { get => qty; set => qty = value; } public int ProductOrderId { get => modid; set => modid = value; } diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index 402fda1..89babf1 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -259,7 +259,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.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 + 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,Allocate.SortSeq as irowno FROM v_st_mom_orderdetail b INNER JOIN (SELECT modid as m_modid,allocateid,CREJECTCODE,IssQty,Qty,InvCode from v_st_moallocate @@ -268,6 +268,8 @@ namespace NX.ERP.U8.Mom and (ISNULL(Qty,0)-ISNULL(IssQty,0)+ISNULL(ReplenishQty,0))>0 and isnull(RequisitionFlag,0) = 0 and 1=1) d ON b.modid= d.m_modid + left join mom_moallocate + Allocate WITH (NOLOCK) ON Allocate.AllocateId= d.AllocateId Where b.byproductflag=0 and ISNULL(b.Status,0) = 3 and ( isnull(b.bWorkshopTrans,0) = 0 or (isnull(b.bWorkshopTrans,0) =1