исправление имени
This commit is contained in:
parent
fbff900bef
commit
47534e6672
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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" })
|
||||
}
|
||||
}*/
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user