Browse Source

EDI和发运对比报表增加虚拟总成号和生产码类型

master
zhouhongjun 7 months ago
parent
commit
e3445d0cc8
  1. 18
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SeEidCompareReport.cs
  2. 9
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SeEdiCompareExportBaseService.cs

18
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SeEidCompareReport.cs

@ -53,6 +53,18 @@ namespace Win.Sfs.SettleAccount.Reports
[ExporterHeader(DisplayName = "物料描述")]
public string MaterialDes { get; set; }
/// <summary>
/// 虚拟总成号
/// </summary>
[Display(Name = "虚拟总成号")]
[ExporterHeader(DisplayName = "虚拟总成号")]
public string MatchNumber { get; set; }
/// <summary>
/// 生产码类型
/// </summary>
[Display(Name = "生产码类型")]
[ExporterHeader(DisplayName = "生产码类型")]
public string CodeType { get; set; }
/// <summary>
/// WMS发货数量
/// </summary>
[Display(Name = "WMS发货数量")]
@ -131,12 +143,6 @@ namespace Win.Sfs.SettleAccount.Reports
[ExporterHeader(DisplayName = "客户下线时间", Format = "yyyy-MM-dd")]
public DateTime? AssemblyDate { get; set; }
/// <summary>
/// 小总成号
/// </summary>
[Display(Name = "小总成号")]
[ExporterHeader(DisplayName = "小总成号")]
public string MatchNumber { get; set; }
/// <summary>
/// 注塑码
/// </summary>
[Display(Name = "注塑码")]

9
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SeEdiCompareExportBaseService.cs

@ -119,6 +119,8 @@ namespace SettleAccount.Job.Services.Report
MaterialDes = t.Max(t => t.PartDesc),
SEQty = t.Sum(t => t.Qty),
InjectionCode = t.Max(t => t.InjectionCode),
MatchNumber = t.Max(t => t.MatchNumber),
CodeType= t.Max(t => t.CodeType),
DiffDesc = "WMS有发货EDI无订单"
}).ToList();
//有EDI有发运
@ -154,7 +156,9 @@ namespace SettleAccount.Job.Services.Report
ErpToLoc = groupItem.Max(t => t.ErpToLoc),
CustPartCode = groupItem.Max(t => t.CustPartCode),
PartDesc = groupItem.Max(t => t.PartDesc),
InjectionCode = groupItem.Max(t => t.InjectionCode)
InjectionCode = groupItem.Max(t => t.InjectionCode),
MatchNumber = groupItem.Max(t => t.MatchNumber),
CodeType = groupItem.Max(t => t.CodeType)
};
var haveEdiHaveSeList = (from edi in ediGroup
join se in seGroup
@ -180,8 +184,9 @@ namespace SettleAccount.Job.Services.Report
SEQty = se.Qty,
EdiQty = edi.Qty,
AssemblyDate = default,
MatchNumber = default,
InjectionCode = se.InjectionCode,
MatchNumber =se.MatchNumber,
CodeType =se.CodeType,
DiffDesc = "WMS有发货EDI有订单"
}).ToList();
haveEdiHaveSeList.ForEach(t => t.SequenceNumber = GetSequenceNumberDate(t.SequenceNumber));

Loading…
Cancel
Save