From 61d7293afb72e294931b4838c5b946b4be072abd Mon Sep 17 00:00:00 2001 From: hsc Date: Thu, 27 Aug 2026 14:51:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ExportModule/ViewModels/ExportViewModel.cs | 6 ++++++ ExportModule/Views/ExportView.xaml | 12 ++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/ExportModule/ViewModels/ExportViewModel.cs b/ExportModule/ViewModels/ExportViewModel.cs index 6e957d3..962b200 100644 --- a/ExportModule/ViewModels/ExportViewModel.cs +++ b/ExportModule/ViewModels/ExportViewModel.cs @@ -82,6 +82,7 @@ namespace ExportModule.ViewModels public ICommand LoadedCommand { get; } public ICommand QueryCommand { get; } public ICommand ExportCommand { get; } + public ICommand ExportReportCommand { get; } #endregion #region 私有字段 @@ -95,6 +96,7 @@ namespace ExportModule.ViewModels LoadedCommand = new AsyncDelegateCommand(OnLoad); QueryCommand = new AsyncDelegateCommand(OnQuery); ExportCommand = new AsyncDelegateCommand(OnExport); + ExportReportCommand = new AsyncDelegateCommand(OnExportReportCommand); } #region 命令处理 @@ -183,6 +185,10 @@ namespace ExportModule.ViewModels await Task.Run(() => ExportToExcel(dialog.FileName, entities)); ShowInfoMessageBox($"导出完成,共 {entities.Count} 条步骤记录,已保存至:{dialog.FileName}", () => { }); } + private async Task OnExportReportCommand() + { + + } #endregion diff --git a/ExportModule/Views/ExportView.xaml b/ExportModule/Views/ExportView.xaml index ce5ac3a..fc97f7b 100644 --- a/ExportModule/Views/ExportView.xaml +++ b/ExportModule/Views/ExportView.xaml @@ -60,6 +60,7 @@ + @@ -109,13 +110,20 @@ Margin="4,0" VerticalAlignment="Center"/>