fix errors

This commit is contained in:
Zakharov_Rostislav 2024-05-26 15:56:24 +04:00
parent 4dc0725936
commit 931c363b81
3 changed files with 7 additions and 6 deletions

View File

@ -82,7 +82,7 @@ namespace BankBusinessLogic.BusinessLogic
Title = "Список кузнечных изделий",
Transfers = CreateReportTransfers(new CardSearchModel
{
SelectedCardIds = model.S
SelectedCardIds = model.SelectedCardsIds
})
});
}

View File

@ -37,17 +37,17 @@ namespace BankBusinessLogic.OfficePackage
{
ColumnName = "A",
RowIndex = rowIndex,
Text = transfer.ComputerName,
Text = "",
StyleInfo = ExcelStyleInfoType.Text
});
rowIndex++;
foreach (var component in transfer.Components)
foreach (var component in transfer.Transfers)
{
InsertCellInWorksheet(new ExcelCellParameters
{
ColumnName = "B",
RowIndex = rowIndex,
Text = component.Item1,
Text = "",
StyleInfo =
ExcelStyleInfoType.TextWithBroder
});
@ -55,7 +55,7 @@ namespace BankBusinessLogic.OfficePackage
{
ColumnName = "C",
RowIndex = rowIndex,
Text = component.Item2.ToString(),
Text = "",
StyleInfo =
ExcelStyleInfoType.TextWithBroder
});
@ -72,7 +72,7 @@ namespace BankBusinessLogic.OfficePackage
{
ColumnName = "C",
RowIndex = rowIndex,
Text = transfer.TotalCount.ToString(),
Text = "",
StyleInfo = ExcelStyleInfoType.Text
});
rowIndex++;

View File

@ -12,5 +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; }
}
}