diff --git a/NX.ERP.U8/Mom/MomOrderDAL.cs b/NX.ERP.U8/Mom/MomOrderDAL.cs index 13dab4d..cbfdb55 100644 --- a/NX.ERP.U8/Mom/MomOrderDAL.cs +++ b/NX.ERP.U8/Mom/MomOrderDAL.cs @@ -7,7 +7,12 @@ namespace NX.ERP.U8.Mom { public class MomOrderDAL { - + /// + /// + /// + /// + /// + /// public IEnumerable GetList(string strWhere = "", object param = null) { using (var conn = U8LoginContext.Instance.Connection) @@ -56,7 +61,11 @@ namespace NX.ERP.U8.Mom } - + /// + /// + /// + /// + /// public IEnumerable QueryOrders(NX.ERP.Model.Request.MomOrder Params) { if (Params == null) @@ -80,7 +89,12 @@ namespace NX.ERP.U8.Mom }); } - + /// + /// + /// + /// + /// + /// public IEnumerable GetOrders(string strWhere = "", object Param = null) { using (var conn = U8LoginContext.Instance.Connection) @@ -117,7 +131,11 @@ namespace NX.ERP.U8.Mom } } - + /// + /// + /// + /// + /// public IEnumerable QueryDetails(NX.ERP.Model.Request.MomOrder Params) { if (Params == null) @@ -141,12 +159,16 @@ 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, - 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 + 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, + 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 from v_st_moallocate @@ -158,8 +180,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)) AND (1>0) AND (1>0) AND ( 1>0 )"; if (!string.IsNullOrEmpty(strWhere)) { strSql += $" and {strWhere} "; diff --git a/NX.ERP.WebAPi/Web.Debug.config b/NX.ERP.WebAPi/Web.Debug.config index e984717..4bffb9d 100644 --- a/NX.ERP.WebAPi/Web.Debug.config +++ b/NX.ERP.WebAPi/Web.Debug.config @@ -3,19 +3,28 @@ - - - - + +