曲线回读+测试报告导出前期工作

This commit is contained in:
hsc
2026-07-24 16:31:27 +08:00
parent c592bcd272
commit 07218fc737
16 changed files with 211 additions and 39 deletions

View File

@@ -1,5 +1,6 @@
using Logger;
using MahApps.Metro.Controls;
using Model;
using Model.Entity;
using Model.Models;
using NLog.Targets;
@@ -26,24 +27,46 @@ namespace ExportModule.ViewModels
{
#region
public bool KeepAlive => true;
private ObservableCollection<TestReportModel> _testReportModelList = new();
public ObservableCollection<TestReportModel> TestReportModelList
{
get { return _testReportModelList; }
set { SetProperty(ref _testReportModelList, value); }
}
#endregion
#region
#endregion
public ICommand LoadedCommand { get; set; }
#region
ITestReportService _testReportService { get; set; }
#endregion
public ExportViewModel(IContainerProvider containerProvider) : base(containerProvider)
{
_testReportService = containerProvider.Resolve<ITestReportService>();
LoadedCommand = new AsyncDelegateCommand(OnLoad);
}
#region
private async Task OnLoad()
{
var result=await _testReportService.GetFilterList();
if (result.IsSuccess)
{
IList<TestReportModel> reportList = result.Data;
TestReportModelList = new ObservableCollection<TestReportModel>(reportList);
}
else
{
TestReportModelList = new();
}
}
#endregion
#region