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:
Joseph Doherty
2026-01-06 23:38:30 -05:00
parent a6b7f646b1
commit 8883fb2680
2 changed files with 28 additions and 18 deletions
@@ -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; }
}