Selaa lähdekoodia

修复检验申请导出excel异常

LT069288 3 kuukautta sitten
vanhempi
commit
d8faf23818

+ 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>