rename
This commit is contained in:
parent
786d2de669
commit
f1a9439c55
@ -80,20 +80,20 @@ namespace HardwareShopBusinessLogic.BusinessLogics.Storekeeper
|
|||||||
|
|
||||||
public void SaveBuildGoodToExcelFile(ReportBindingModel model, List<GoodViewModel> goods)
|
public void SaveBuildGoodToExcelFile(ReportBindingModel model, List<GoodViewModel> goods)
|
||||||
{
|
{
|
||||||
_saveToExcel.CreateGoodBuildReport(new ExcelInfo
|
_saveToExcel.CreateBuildGoodReport(new ExcelInfo
|
||||||
{
|
{
|
||||||
FileName = model.FileName,
|
FileName = model.FileName,
|
||||||
Title = "Список суши",
|
Title = "Cписок сборок по выбранным товарам",
|
||||||
BuildGood = GetBuildGood(goods)
|
BuildGood = GetBuildGood(goods)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SaveBuildGoodToWordFile(ReportBindingModel model, List<GoodViewModel> goods)
|
public void SaveBuildGoodToWordFile(ReportBindingModel model, List<GoodViewModel> goods)
|
||||||
{
|
{
|
||||||
_saveToWord.CreateGoodBuildReport(new WordInfo
|
_saveToWord.CreateBuildGoodReport(new WordInfo
|
||||||
{
|
{
|
||||||
FileName = model.FileName,
|
FileName = model.FileName,
|
||||||
Title = "Список суши",
|
Title = "Cписок сборок по выбранным товарам",
|
||||||
BuildGood = GetBuildGood(goods)
|
BuildGood = GetBuildGood(goods)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ namespace HardwareShopBusinessLogic.OfficePackage
|
|||||||
/// Создание отчета по сборкам в выбранных товарах
|
/// Создание отчета по сборкам в выбранных товарах
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="info"></param>
|
/// <param name="info"></param>
|
||||||
public void CreateGoodBuildReport(ExcelInfo info)
|
public void CreateBuildGoodReport(ExcelInfo info)
|
||||||
{
|
{
|
||||||
CreateExcel(info);
|
CreateExcel(info);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ namespace HardwareShopBusinessLogic.OfficePackage
|
|||||||
{
|
{
|
||||||
public abstract class AbstractSaveToWord
|
public abstract class AbstractSaveToWord
|
||||||
{
|
{
|
||||||
public void CreateGoodBuildReport(WordInfo info)
|
public void CreateBuildGoodReport(WordInfo info)
|
||||||
{
|
{
|
||||||
CreateWord(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.Add(new WordRow
|
||||||
{
|
{
|
||||||
/*Rows = new List<(string, WordTextProperties)> {
|
Rows = new List<(string, WordTextProperties)> {
|
||||||
(shop.ShopName, new WordTextProperties { Size = "24" }),
|
(shop.ShopName, new WordTextProperties { Size = "24" }),
|
||||||
(shop.Address, new WordTextProperties { Size = "24" }),
|
(shop.Address, new WordTextProperties { Size = "24" }),
|
||||||
(shop.DateOpening.ToShortDateString(), new WordTextProperties { Size = "24" })
|
(shop.DateOpening.ToShortDateString(), new WordTextProperties { Size = "24" })
|
||||||
}*/
|
}
|
||||||
});
|
});
|
||||||
}
|
}*/
|
||||||
|
|
||||||
CreateTable(rows);
|
CreateTable(rows);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user