fix errors
This commit is contained in:
commit
2538483f76
@ -79,10 +79,23 @@ namespace BankBusinessLogic.BusinessLogic
|
||||
_saveToWord.CreateDoc(new WordInfo
|
||||
{
|
||||
FileName = model.FileName,
|
||||
Title = "Список кузнечных изделий",
|
||||
Title = "Список переводов",
|
||||
Transfers = CreateReportTransfers(new CardSearchModel
|
||||
{
|
||||
SelectedCardIds = model.SelectedCardsIds
|
||||
SelectedCardIds = model.SelectedCardIds
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
public void SaveTransfersToExcelFile(ReportBindingModel model)
|
||||
{
|
||||
_saveToExcel.CreateReport(new ExcelInfo
|
||||
{
|
||||
FileName = model.FileName,
|
||||
Title = "Список переводов",
|
||||
Transfers = CreateReportTransfers(new CardSearchModel
|
||||
{
|
||||
SelectedCardIds = model.SelectedCardIds
|
||||
})
|
||||
});
|
||||
}
|
||||
@ -93,6 +106,22 @@ namespace BankBusinessLogic.BusinessLogic
|
||||
{
|
||||
return _cardStorage.GetReportOperationsRequestsList(model);
|
||||
}
|
||||
|
||||
public void SaveOperationsRequestsToPdfFile(ReportBindingModel model)
|
||||
{
|
||||
_saveToPdf.CreateDoc(new PdfInfo
|
||||
{
|
||||
FileName = model.FileName,
|
||||
Title = "Отчет по картам",
|
||||
DateFrom = model.DateFrom!.Value,
|
||||
DateTo = model.DateTo!.Value,
|
||||
OperationsRequests = CreateReportOperationsRequests(new CardSearchModel
|
||||
{
|
||||
DateFrom = model.DateFrom.Value,
|
||||
DateTo = model.DateTo.Value,
|
||||
})
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region//отчеты по счетам за период с расшифровкой по переводам и выдачам в формате pdf
|
||||
|
@ -12,6 +12,6 @@ namespace BankContracts.BindingModels
|
||||
public DateTime? DateFrom { get; set; }
|
||||
public DateTime? DateTo { get; set; }
|
||||
public List<int>? SelectedAccountIds { get; set; }
|
||||
public List<int>? SelectedCardsIds { get; set; }
|
||||
public List<int>? SelectedCardIds { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -65,11 +65,11 @@ namespace BankDatabaseImplement.Implements
|
||||
{
|
||||
CardNumber = c.Number,
|
||||
SenderOperations = context.Operations
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.SenderCardId == model.Id)
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.SenderCardId == c.Id)
|
||||
.Select(t => t.GetViewModel)
|
||||
.ToList(),
|
||||
RecipientOperations = context.Operations
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.RecipientCardId == model.Id)
|
||||
.Where(x => x.OperationTime >= model.DateFrom && x.OperationTime <= model.DateTo && x.RecipientCardId == c.Id)
|
||||
.Select(t => t.GetViewModel)
|
||||
.ToList(),
|
||||
Requests = context.Requests
|
||||
|
Loading…
x
Reference in New Issue
Block a user