This commit is contained in:
杰 朱
2022-03-05 15:00:07 +08:00
parent 7e7a737b78
commit c8e7c403e4
4 changed files with 25 additions and 2 deletions

View File

@@ -15,6 +15,8 @@ namespace NX.ERP.Model.Request
public string ProductOrderendID { get; set; } public string ProductOrderendID { get; set; }
public string OrderDetailSortSeq { get; set; }
public DateTime? ModifyDate { get; set; } public DateTime? ModifyDate { get; set; }
public long? Pubufts { get; set; } public long? Pubufts { get; set; }

View File

@@ -28,6 +28,11 @@ namespace NX.ERP.Model.MOM
//public string UnitCode { get; set; } //public string UnitCode { get; set; }
public double Issqty { get; set; } public double Issqty { get; set; }
public bool IsCollected
{ get { if (Qty == Issqty) { return true; } else { return false; } }
}
[Newtonsoft.Json.JsonIgnore] [Newtonsoft.Json.JsonIgnore]
public MomDetail momDetail { get; set; } public MomDetail momDetail { get; set; }

View File

@@ -108,6 +108,10 @@ namespace NX.ERP.U8.Mom
{ {
where.Add(" a.moCode in @ProductOrderNo "); where.Add(" a.moCode in @ProductOrderNo ");
} }
if (Params.OrderDetailSortSeq != null)
{
where.Add(" b.SortSeq = @OrderDetailSortSeq ");
}
if (!string.IsNullOrEmpty(Params.ProductOrderendID)) if (!string.IsNullOrEmpty(Params.ProductOrderendID))
{ {
where.Add(" a.MoId >= @ProductOrderendID "); where.Add(" a.MoId >= @ProductOrderendID ");
@@ -144,7 +148,8 @@ namespace NX.ERP.U8.Mom
Params.ProductOrderendID, Params.ProductOrderendID,
Params.ModifyDate, Params.ModifyDate,
Params.Pubufts, Params.Pubufts,
Params.Status Params.Status,
Params.OrderDetailSortSeq
}); });
} }
@@ -172,6 +177,11 @@ namespace NX.ERP.U8.Mom
{ {
where.Add(" a.moCode in @ProductOrderNo "); where.Add(" a.moCode in @ProductOrderNo ");
} }
if (Params.OrderDetailSortSeq != null)
{
where.Add(" a.MoSeq = @OrderDetailSortSeq ");
}
if (!string.IsNullOrEmpty(Params.ProductOrderendID)) if (!string.IsNullOrEmpty(Params.ProductOrderendID))
{ {
where.Add(" a.MoId >= @ProductOrderendID "); where.Add(" a.MoId >= @ProductOrderendID ");
@@ -180,6 +190,7 @@ namespace NX.ERP.U8.Mom
{ {
ProductCode = $"%{Params.ProductCode}%", ProductCode = $"%{Params.ProductCode}%",
ProductOrderNo = Params.ProductOrderNo, ProductOrderNo = Params.ProductOrderNo,
OrderDetailSortSeq= Params.OrderDetailSortSeq,
ProductOrderendID = $"{Params.ProductOrderendID}" ProductOrderendID = $"{Params.ProductOrderendID}"
}); });
} }
@@ -320,6 +331,10 @@ namespace NX.ERP.U8.Mom
{ {
where.Add(" b.moCode in @ProductOrderNo "); where.Add(" b.moCode in @ProductOrderNo ");
} }
if (Params.OrderDetailSortSeq != null)
{
where.Add(" b.MoSeq = @OrderDetailSortSeq ");
}
if (!string.IsNullOrEmpty(Params.ProductOrderendID)) if (!string.IsNullOrEmpty(Params.ProductOrderendID))
{ {
where.Add(" b.MoId >= @ProductOrderendID "); where.Add(" b.MoId >= @ProductOrderendID ");
@@ -328,6 +343,7 @@ namespace NX.ERP.U8.Mom
{ {
ProductCode = $"%{Params.ProductCode}%", ProductCode = $"%{Params.ProductCode}%",
ProductOrderNo = Params.ProductOrderNo, ProductOrderNo = Params.ProductOrderNo,
OrderDetailSortSeq=Params.OrderDetailSortSeq,
ProductOrderendID = $"{Params.ProductOrderendID}" ProductOrderendID = $"{Params.ProductOrderendID}"
}); });
} }

View File

@@ -7,7 +7,7 @@
<appSettings> <appSettings>
<add key="ApiDbName" value="MES_SUBMIT" /> <add key="ApiDbName" value="MES_SUBMIT" />
<add key="server" value="10.0.0.12" /> <add key="server" value="10.0.0.12" />
<add key="AccId" value="u8-2@007" /> <add key="AccId" value="u8-2@001" />
<add key="UserId" value="wx997" /> <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" />