исправление имени

This commit is contained in:
dasha 2023-05-17 15:27:11 +04:00
parent fbff900bef
commit 47534e6672
5 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,5 @@
using HardwareShopBusinessLogic.OfficePackage;
using HardwareShopBusinessLogic.OfficePackage.HelperModels;
using HardwareShopContracts.BindingModels;
using HardwareShopContracts.BusinessLogicsContracts;
using HardwareShopContracts.StoragesContracts;
@ -79,7 +80,11 @@ namespace HardwareShopBusinessLogic.BusinessLogics.Storekeeper
public void SaveBuildGoodToExcelFile(ReportBindingModel model)
{
throw new NotImplementedException();
_saveToExcel.CreateGoodBuildsReport(new ExcelInfo
{
FileName = model.FileName,
Title = "Список суши"
});
}
public void SaveBuildGoodToWordFile(ReportBindingModel model)

View File

@ -27,8 +27,8 @@ namespace HardwareShopBusinessLogic.OfficePackage
CellToName = "C1"
});
uint rowIndex = 2;
foreach (var ss in info.GoodBuilds)
/*uint rowIndex = 2;
foreach (var ss in info.BuildGood)
{
InsertCellInWorksheet(new ExcelCellParameters
{
@ -75,7 +75,7 @@ namespace HardwareShopBusinessLogic.OfficePackage
StyleInfo = ExcelStyleInfoType.Text
});
rowIndex++;
}
}*/
SaveExcel(info);
}

View File

@ -29,15 +29,15 @@ namespace HardwareShopBusinessLogic.OfficePackage
}
});
foreach (var shop in info.Shops)
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" })
}
}*/
});
}

View File

@ -8,6 +8,6 @@ namespace HardwareShopBusinessLogic.OfficePackage.HelperModels
public string Title { get; set; } = string.Empty;
public List<ReportBuildGoodViewModel> GoodBuilds { get; set; } = new();
public List<ReportBuildGoodViewModel> BuildGood { get; set; } = new();
}
}

View File

@ -8,6 +8,6 @@ namespace HardwareShopBusinessLogic.OfficePackage.HelperModels
public string Title { get; set; } = string.Empty;
public List<ReportBuildGoodViewModel> GoodBuilds { get; set; } = new();
public List<ReportBuildGoodViewModel> BuildGood { get; set; } = new();
}
}