ISEbd-21 Melnikov I. O. Lab Work 04 Advanced #28

Closed
Igor-Melnikov wants to merge 19 commits from lab4adv into lab3adv
3 changed files with 7 additions and 5 deletions
Showing only changes of commit 66fec616b7 - Show all commits

View File

@ -88,8 +88,8 @@ namespace BlacksmithWorkShopBusinessLogic.BusinessLogics
_saveToWord.CreateDoc(new WordInfo
{
FileName = model.FileName,
Title = "Список компонент",
Components = _componentStorage.GetFullList()
Title = "Список изделий",
Manufactures = _manufactureStorage.GetFullList()
});
}
/// <summary>

View File

@ -20,13 +20,15 @@ namespace BlacksmithWorkshopBusinessLogic.OfficePackage
JustificationType = WordJustificationType.Center
}
});
foreach (var component in info.Components)
foreach (var manufacture in info.Manufactures)
{
CreateParagraph(new WordParagraph
{
Texts = new List<(string, WordTextProperties)>
{
(component.ComponentName, new WordTextProperties { Size = "24", })
(manufacture.ManufactureName, new WordTextProperties { Bold = true, Size = "24", }),
(" ", new WordTextProperties { Size = "24"}),
(manufacture.Price.ToString(), new WordTextProperties { Size = "24" })
},
TextProperties = new WordTextProperties
{

View File

@ -6,6 +6,6 @@ namespace BlacksmithWorkshopBusinessLogic.OfficePackage.HelperModels
{
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public List<ComponentViewModel> Components { get; set; } = new();
public List<ManufactureViewModel> Manufactures { get; set; } = new();
}
}