Browse Source

三方比对报表增加虚拟总成和生产码类型

master
zhouhongjun 7 months ago
parent
commit
501e7f94ac
  1. 15
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SaSeEdiCompareDetailReport.cs
  2. 10
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SaSeEdiCompareDiff.cs
  3. 17
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisBBACSaSeEdiCompareExportService.cs
  4. 17
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs

15
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SaSeEdiCompareDetailReport.cs

@ -82,6 +82,21 @@ namespace Win.Sfs.SettleAccount.Reports
[Display(Name = "物料描述")]
[ExporterHeader(DisplayName = "物料描述")]
public string PartCodeDesc { 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>
/// 厂内物料号
/// </summary>

10
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/SaSeEdiCompareDiff.cs

@ -115,6 +115,16 @@ namespace Win.Sfs.SettleAccount.Reports
[Display(Name = "物料描述")]
public string PartCodeDesc { get; set; }
/// <summary>
/// 虚拟总成号
/// </summary>
[Display(Name = "虚拟总成号")]
public string MatchNumber { get; set; }
/// <summary>
/// 生产码类型
/// </summary>
[Display(Name = "生产码类型")]
public string CodeType { get; set; }
/// <summary>
/// 厂内物料号
/// </summary>
[Display(Name = "厂内物料号")]

17
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisBBACSaSeEdiCompareExportService.cs

@ -205,7 +205,9 @@ namespace SettleAccount.Job.Services.Report
ShippingDate = groupItem.Max(t => t.ShippingDate),
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLoc = groupItem.Max(t => t.ToLoc),
ErpToLoc = groupItem.Max(t => t.ErpToLoc)
ErpToLoc = groupItem.Max(t => t.ErpToLoc),
MatchNumber = groupItem.Max(t => t.MatchNumber),
CodeType = groupItem.Max(t => t.CodeType)
}).Where(t => t.Qty > 0M);
//Edi
//var ediGroup = from edi in _settleAccountDbContext.Set<BBAC_SE_EDI>()
@ -245,7 +247,9 @@ namespace SettleAccount.Job.Services.Report
se.ToLoc,
se.ErpToLoc,
EdiQty = edi.Qty,
EdiCustomerPartCode = edi.LU
EdiCustomerPartCode = edi.LU,
se.MatchNumber,
se.CodeType
};
var saSeCompareLeft = from sa in saGroup
join seEdi in seEdiGroup
@ -271,7 +275,10 @@ namespace SettleAccount.Job.Services.Report
EdiCustomerPartCode = seEdi.EdiCustomerPartCode,
CustomerPartCode = sa.LU,
Site = sa.Site,
Price = sa.Price
Price = sa.Price,
MatchNumber= seEdi.MatchNumber,
CodeType = seEdi.CodeType
};
var saSeCompareRight = from seEdi in seEdiGroup
join sa in saGroup
@ -297,7 +304,9 @@ namespace SettleAccount.Job.Services.Report
EdiCustomerPartCode = seEdi.EdiCustomerPartCode,
CustomerPartCode = sa.LU ?? seEdi.LU,
Site = sa.Site,
Price = sa.Price
Price = sa.Price,
MatchNumber = seEdi.MatchNumber,
CodeType = seEdi.CodeType
};
var saSeCompareFullJoin = saSeCompareLeft.Union(saSeCompareRight).ToList();

17
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs

@ -197,7 +197,9 @@ namespace SettleAccount.Job.Services.Report
ShippingDate = groupItem.Max(t => t.ShippingDate),
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLoc = groupItem.Max(t => t.ToLoc),
ErpToLoc = groupItem.Max(t => t.ErpToLoc)
ErpToLoc = groupItem.Max(t => t.ErpToLoc),
MatchNumber = groupItem.Max(t => t.MatchNumber),
CodeType = groupItem.Max(t => t.CodeType)
}).Where(t => t.Qty > 0M);
//Edi
@ -259,7 +261,9 @@ namespace SettleAccount.Job.Services.Report
se.ToLoc,
se.ErpToLoc,
EdiQty = edi.Qty,
EdiCustomerPartCode = edi.LU
EdiCustomerPartCode = edi.LU,
se.MatchNumber,
se.CodeType
};
//var ediSeGroup = from edi in ediGroup
@ -309,7 +313,9 @@ namespace SettleAccount.Job.Services.Report
EdiCustomerPartCode = seEdi.EdiCustomerPartCode,
CustomerPartCode = sa.LU,
Site = sa.Site,
Price = sa.Price
Price = sa.Price,
MatchNumber = seEdi.MatchNumber,
CodeType = seEdi.CodeType
};
var saSeCompareRight = from seEdi in seEdiGroup
join sa in saGroup
@ -335,7 +341,10 @@ namespace SettleAccount.Job.Services.Report
EdiCustomerPartCode = seEdi.EdiCustomerPartCode,
CustomerPartCode = sa.LU ?? seEdi.LU,
Site = sa.Site,
Price = sa.Price
Price = sa.Price,
MatchNumber = seEdi.MatchNumber,
CodeType = seEdi.CodeType
};
var saSeCompareFullJoin = saSeCompareLeft.Union(saSeCompareRight).ToList();
var ediCheck= ediGroup.ToList();

Loading…
Cancel
Save