fix ReportBindingModel

This commit is contained in:
Zakharov_Rostislav 2024-05-26 15:31:18 +04:00
parent e0f920010b
commit 0a5f6483e0
3 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,6 @@
using BankBusinessLogic.OfficePackage;
using BankBusinessLogic.OfficePackage.DocumentModels;
using BankContracts.BindingModels;
using BankContracts.BusinessLogicsContracts;
using BankContracts.SearchModels;
using BankContracts.StoragesContracts;
@ -45,8 +46,11 @@ namespace BankBusinessLogic.BusinessLogic
_saveToWord.CreateDoc(new WordInfo
{
FileName = model.FileName,
Title = "Список кузнечных изделий",
Manufactures = _ManufactureStorage.GetFullList()
Title = "Список заявок",
Requests = CreateReportRequests(new AccountSearchModel
{
SelectedAccountIds = model.SelectedAccountIds,
}),
});
}
#endregion

View File

@ -12,5 +12,6 @@ namespace BankBusinessLogic.OfficePackage.DocumentModels
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public List<ReportTransfersViewModel> Transfers { get; set; } = new();
}
public List<ReportRequestsViewModel> Requests { get; set; } = new();
}
}

View File

@ -11,5 +11,6 @@ namespace BankContracts.BindingModels
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
public List<int>? SelectedAccountIds { get; set; }
}
}