refactor(ExcelIO): migrate ExcelExportService to Core models and FluentTableWriter
- Replace AttributeTableWriter with FluentTableWriter in ExcelExportService - Inject ExcelMapRegistry for fluent map lookups - Use registry.GetMap<T>().TabName instead of reflection-based attribute reading - Update ExcelIO SearchModel to reference Core result types via aliases - Remove System.Reflection import (no longer needed) - Add JdeScoping.Core.Models.SearchResults import for result types
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
using CoreSearchResult = JdeScoping.Core.Models.SearchResults.SearchResult;
|
||||
using CoreMisSearchResult = JdeScoping.Core.Models.SearchResults.MisSearchResult;
|
||||
using CoreMisNonMatchSearchResult = JdeScoping.Core.Models.SearchResults.MisNonMatchSearchResult;
|
||||
|
||||
namespace JdeScoping.ExcelIO.Models.Reporting;
|
||||
|
||||
/// <summary>
|
||||
@@ -128,15 +132,15 @@ public class SearchModel
|
||||
/// <summary>
|
||||
/// Work order search results.
|
||||
/// </summary>
|
||||
public List<SearchResult> Results { get; set; } = [];
|
||||
public List<CoreSearchResult> Results { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// MIS results.
|
||||
/// </summary>
|
||||
public List<MisSearchResult>? MisResults { get; set; }
|
||||
public List<CoreMisSearchResult>? MisResults { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// MIS no match found results.
|
||||
/// </summary>
|
||||
public List<MisNonMatchSearchResult>? MisNonMatchResults { get; set; }
|
||||
public List<CoreMisNonMatchSearchResult>? MisNonMatchResults { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user