瀏覽代碼

修复检验申请导出excel异常

LT069288 3 月之前
父節點
當前提交
d8faf23818
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      UniformMaterialManagementSystem/ViewModels/InspectApplyPageViewModel.cs

+ 1 - 1
UniformMaterialManagementSystem/ViewModels/InspectApplyPageViewModel.cs

@@ -482,7 +482,7 @@ namespace UniformMaterialManagementSystem.ViewModels
         [RelayCommand]
         private void ExportDetail()
         {
-            InspectApplyUtil.ExportBatchDetail(InspectApplyDetails, SelectedCompany.Name, SelectedMaterial.Name, BatchNo);
+            InspectApplyUtil.ExportBatchDetail(InspectApplyDetails, SelectedCompany?.Name, SelectedMaterial?.Name, BatchNo);
         }
 
         /// <summary>