fix ReportBindingModel
This commit is contained in:
parent
e0f920010b
commit
0a5f6483e0
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user