添加最后修改日期字段
This commit is contained in:
@@ -14,5 +14,8 @@ namespace NX.ERP.Model.Request
|
|||||||
|
|
||||||
public string ProductOrderendID { get; set; }
|
public string ProductOrderendID { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
public DateTime? ModifyDate { get; set; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ namespace NX.ERP.Model.MOM
|
|||||||
public ICollection<MoAllocate> Allocates { get; set; } = new List<MoAllocate>();
|
public ICollection<MoAllocate> Allocates { get; set; } = new List<MoAllocate>();
|
||||||
|
|
||||||
|
|
||||||
|
public DateTime? ModifyDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -143,6 +143,10 @@ namespace NX.ERP.Model.Response.Store
|
|||||||
|
|
||||||
private ICollection<MaterialAppDetail> materialAppVouchsLst = new List<MaterialAppDetail>();
|
private ICollection<MaterialAppDetail> materialAppVouchsLst = new List<MaterialAppDetail>();
|
||||||
|
|
||||||
|
|
||||||
|
public DateTime? ModifyDate { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public int Id { get => id; set => id = value; }
|
public int Id { get => id; set => id = value; }
|
||||||
public string Code { get => code; set => code = value; }
|
public string Code { get => code; set => code = value; }
|
||||||
public DateTime Date { get => date; set => date = value; }
|
public DateTime Date { get => date; set => date = value; }
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace NX.ERP.U8.Mom
|
|||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
string strSQL = @"select
|
string strSQL = @"select
|
||||||
a.MoId as ProductOrderId,a.moCode as ProductOrderNo,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
a.MoId as ProductOrderId,a.moCode as ProductOrderNo,ISNULL( ModifyDate,createDate) as ModifyDate,a.CreateDate as ProductDate,a.CreateUser as PreparedBy,
|
||||||
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,
|
b.MoId as id ,b.MoDId as ProductOrderDtlId,b.MoId as ProductOrderId,b.MoTypeId,d.DueDate,ISNULL( b.MDeptCode,'53') as MDeptCode,a.MoCode as ProductOrderNo,
|
||||||
a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.SortSeq,b.SoCode,
|
a.CreateDate as ProductOrderDate,b.InvCode as ProductCode,b.Qty as Qty,b.SortSeq,b.SoCode,
|
||||||
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty,
|
c.AllocateId as id ,c.AllocateId as AllocateId,c.MoDId as ProductOrderDtlId,c.InvCode as MaterialCode,b.MoId as ProductOrderId, c.IssQty as IssQty,c.Qty,
|
||||||
@@ -95,11 +95,19 @@ namespace NX.ERP.U8.Mom
|
|||||||
{
|
{
|
||||||
where.Add(" a.MoId >= @ProductOrderendID ");
|
where.Add(" a.MoId >= @ProductOrderendID ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Params.ModifyDate!=null)
|
||||||
|
{
|
||||||
|
where.Add(" ISNULL( a.ModifyDate,createDate) >= @ModifyDate ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return this.GetList(string.Join(" and ", where.ToArray()), new
|
return this.GetList(string.Join(" and ", where.ToArray()), new
|
||||||
{
|
{
|
||||||
ProductCode = $"%{Params.ProductCode}%",
|
ProductCode = $"%{Params.ProductCode}%",
|
||||||
ProductOrderNo = $"{Params.ProductOrderNo}",
|
ProductOrderNo = $"{Params.ProductOrderNo}",
|
||||||
ProductOrderendID = $"{Params.ProductOrderendID}"
|
ProductOrderendID = Params.ProductOrderendID,
|
||||||
|
ModifyDate=Params.ModifyDate
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,10 +141,6 @@ FROM MaterialAppVouch a
|
|||||||
public void Provide(NX.ERP.Model.Request.MaterialAppProvide provide)
|
public void Provide(NX.ERP.Model.Request.MaterialAppProvide provide)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
using (var conn = U8LoginContext.Instance.Connection)
|
using (var conn = U8LoginContext.Instance.Connection)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ namespace NX.ERP.WebAPi.Controllers.Store
|
|||||||
return dal.GetList();
|
return dal.GetList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
[Route("api/MaterialApp/PendingList")]
|
[Route("api/MaterialApp/PendingList")]
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
|
|
||||||
|
|||||||
@@ -17,15 +17,11 @@ namespace NX.ERP.WebAPi.Controllers.System
|
|||||||
{
|
{
|
||||||
var AccID = ConfigurationManager.AppSettings["AccId"];
|
var AccID = ConfigurationManager.AppSettings["AccId"];
|
||||||
//NX.ERP.U8.U8LoginContext.Instance.PassWord = System.Configuration.ConfigurationManager.AppSettings["Password"];
|
//NX.ERP.U8.U8LoginContext.Instance.PassWord = System.Configuration.ConfigurationManager.AppSettings["Password"];
|
||||||
|
|
||||||
//NX.ERP.U8.U8LoginContext.Instance.UserId = System.Configuration.ConfigurationManager.AppSettings["UserId"];
|
//NX.ERP.U8.U8LoginContext.Instance.UserId = System.Configuration.ConfigurationManager.AppSettings["UserId"];
|
||||||
|
|
||||||
var Server =ConfigurationManager.AppSettings["Server"];
|
var Server =ConfigurationManager.AppSettings["Server"];
|
||||||
var _login = new NX.ERP.U8.U8LoginContext(Server, AccID);
|
var _login = new NX.ERP.U8.U8LoginContext(Server, AccID);
|
||||||
_login.Login(loginEntity.UserId, loginEntity.Password);
|
_login.Login(loginEntity.UserId, loginEntity.Password);
|
||||||
return _login.loginId;
|
return _login.loginId;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="server" value="10.0.0.12" />
|
<add key="server" value="10.0.0.12" />
|
||||||
<add key="AccId" value="u8-2@001" />
|
<add key="AccId" value="u8-2@001" />
|
||||||
<add key="UserId" value="wx995" />
|
<add key="UserId" value="wx997" />
|
||||||
<add key="Password" value="1" />
|
<add key="Password" value="1" />
|
||||||
<add key="EaiPort" value="80" />
|
<add key="EaiPort" value="80" />
|
||||||
<add key="EaiPath" value="U8EAI/import.asp" />
|
<add key="EaiPath" value="U8EAI/import.asp" />
|
||||||
|
|||||||
Reference in New Issue
Block a user