This commit is contained in:
dasha 2023-05-17 15:45:20 +04:00
parent 786d2de669
commit f1a9439c55
3 changed files with 10 additions and 10 deletions

View File

@ -80,20 +80,20 @@ namespace HardwareShopBusinessLogic.BusinessLogics.Storekeeper
public void SaveBuildGoodToExcelFile(ReportBindingModel model, List<GoodViewModel> goods)
{
_saveToExcel.CreateGoodBuildReport(new ExcelInfo
_saveToExcel.CreateBuildGoodReport(new ExcelInfo
{
FileName = model.FileName,
Title = "Список суши",
Title = "Cписок сборок по выбранным товарам",
BuildGood = GetBuildGood(goods)
});
}
public void SaveBuildGoodToWordFile(ReportBindingModel model, List<GoodViewModel> goods)
{
_saveToWord.CreateGoodBuildReport(new WordInfo
_saveToWord.CreateBuildGoodReport(new WordInfo
{
FileName = model.FileName,
Title = "Список суши",
Title = "Cписок сборок по выбранным товарам",
BuildGood = GetBuildGood(goods)
});
}

View File

@ -9,7 +9,7 @@ namespace HardwareShopBusinessLogic.OfficePackage
/// Создание отчета по сборкам в выбранных товарах
/// </summary>
/// <param name="info"></param>
public void CreateGoodBuildReport(ExcelInfo info)
public void CreateBuildGoodReport(ExcelInfo info)
{
CreateExcel(info);

View File

@ -5,7 +5,7 @@ namespace HardwareShopBusinessLogic.OfficePackage
{
public abstract class AbstractSaveToWord
{
public void CreateGoodBuildReport(WordInfo info)
public void CreateBuildGoodReport(WordInfo info)
{
CreateWord(info);
@ -29,17 +29,17 @@ namespace HardwareShopBusinessLogic.OfficePackage
}
});
foreach (var shop in info.BuildGood)
/*foreach (var shop in info.BuildGood)
{
rows.Add(new WordRow
{
/*Rows = new List<(string, WordTextProperties)> {
Rows = new List<(string, WordTextProperties)> {
(shop.ShopName, new WordTextProperties { Size = "24" }),
(shop.Address, new WordTextProperties { Size = "24" }),
(shop.DateOpening.ToShortDateString(), new WordTextProperties { Size = "24" })
}*/
});
}
});
}*/
CreateTable(rows);