|
|
@ -38,6 +38,11 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
/// <summary>
|
|
|
|
/// 获取结算、发运比对数据
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 获取全量有结算无发运的数据
|
|
|
|
/// 获取全量无结算有发运的数据
|
|
|
|
/// 获取当期有结算有发运的数据
|
|
|
|
/// </remarks>
|
|
|
|
public List<SaSeCompareDiff> GetSaSeCompareDataJis<TSaDetail, TSeDetail>(EnumBusinessType businessType, int version, DateTime seStartDateTime, DateTime seEndDateTime) |
|
|
|
where TSaDetail : SA_BASE |
|
|
|
where TSeDetail : JisSeBase |
|
|
@ -147,6 +152,12 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
return haveSaHaveSeList.Union(haveSaNotHaveSeList).Union(notHaveSaHaveSeList).ToList(); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 区分比对类型
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 根据 是否有结算、是否有发运数据区分类型<see cref="EnumPubSaSeCompareCategory"/>
|
|
|
|
/// </remarks>
|
|
|
|
public virtual void HandlePubSaSeCompareDiffList(List<SaSeCompareDiff> saSeCompareDiffs) |
|
|
|
{ |
|
|
|
saSeCompareDiffs.ForEach(p => |
|
|
@ -189,6 +200,12 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
/// <summary>
|
|
|
|
/// 二次比对
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 检索出有 有结算无发运 和 无结算有发运的数据
|
|
|
|
/// 根据厂内零件号替换关系替换发运数据的厂内零件号
|
|
|
|
/// 再次对比
|
|
|
|
/// </remarks>
|
|
|
|
/// <returns>二次对比上的数据</returns>
|
|
|
|
public virtual List<SaSeCompareDiff> HandleSecondCompare(List<SaSeCompareDiff> saSeCompareDiffs, EnumBusinessType businessType) |
|
|
|
{ |
|
|
|
//二次匹配上的记录
|
|
|
@ -275,8 +292,10 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 结算数据处理
|
|
|
|
/// 结算详情表写入库位、替换零件号
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 对比上发运的结算数据写入库位、替换零件号(开票使用)
|
|
|
|
/// </remarks>
|
|
|
|
public virtual void HandleSaDetails<TCanSa, TNotSa>(List<SaSeCompareDiff> saSeCompareDiffs, EnumBusinessType businessType, int version) |
|
|
|
where TCanSa : SA_CAN_BASE |
|
|
|
where TNotSa : SA_NOT_BASE |
|
|
@ -319,8 +338,10 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 处理结算数据
|
|
|
|
/// 结算、发运对比上的数据修改结算详情表匹配类型
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 对比上发运的结算数据修改匹配类型
|
|
|
|
/// </remarks>
|
|
|
|
public virtual void HandleSaDetailsMain<T>(List<SaSeCompareDiff> saSeCompareDiffs, EnumBusinessType businessType, int version) where T : SA_BASE |
|
|
|
{ |
|
|
|
var haveSaHaveSes = saSeCompareDiffs.FindAll(t => t.Category == EnumPubSaSeCompareCategory.HaveSaHaveSe); |
|
|
@ -353,6 +374,9 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
/// <summary>
|
|
|
|
/// 创建导出文件结构
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
/// 根据导出Excel配置的最大行数分Sheel
|
|
|
|
/// </remarks>
|
|
|
|
public ExcelExporter BindExcelExporter<T>(List<T> saSeCompareDetailExports, string businessTypeDisplayName) where T : SaSeCompareDetailReport, new() |
|
|
|
{ |
|
|
|
//详情Sheet行数
|
|
|
@ -467,6 +491,5 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
{ |
|
|
|
_hubContext.Clients.All.ServerToClient("SaSeCompare", "refresh", ""); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|