Compare commits

..

No commits in common. "b4eb8cd606cf73a3aebbd41d896d933696e6cfe1" and "370cbb6699a3d9fd9b9f1f35121d153f331984ea" have entirely different histories.

View File

@ -2,6 +2,7 @@
using BankBusinessLogic.OfficePackage.HelperEnums;
using BankBusinessLogic.OfficePackage.HelperModels;
using BankContracts.ViewModels;
using BlacksmithWorkshopBusinessLogic.OfficePackage.HelperModels;
using System;
using System.Collections.Generic;
using System.Linq;
@ -49,36 +50,25 @@ namespace BankBusinessLogic.OfficePackage
public void CreateTransfersDoc(WordInfo info)
{
CreateWord(info);
List<List<string>> table = new List<List<string>>();
List<ReportTransfersViewModel> reports = info.Transfers;
foreach (ReportTransfersViewModel report in reports)
List<List<string>> list = new List<List<string>>();
foreach (var shop in info.Shops)
{
foreach(TransferViewModel transfer in report.Transfers)
var ls = new List<string>
{
List<string> row = new List<string>
{
report.CardNumber,
transfer.Id.ToString(),
transfer.Sum.ToString(),
transfer.TransferTime.ToString(),
transfer.SenderAccountNumber,
transfer.RecipientAccountNumber,
};
table.Add(row);
}
shop.ShopName,
shop.Address,
shop.OpeningDate.ToShortDateString()
};
list.Add(ls);
}
var wordTable = new WordTable
{
Headers = new List<string> {
"Номер карты",
"Номер перевода",
"Сумма",
"Время перевода",
"Карта отправителя",
"Карта получателя"
},
Columns = 6,
RowText = table
"Название",
"Адрес",
"Дата открытия"},
Columns = 3,
RowText = list
};
CreateTable(wordTable);
SaveWord(info);