очень надеюсь что фффффссееее
This commit is contained in:
parent
29e33b79fe
commit
467fd77452
@ -37,7 +37,7 @@ namespace DiningRoomBusinessLogic.OfficePackage
|
||||
// Добавление заголовка для элементов компонента
|
||||
CreateRow(new PdfRowParameters
|
||||
{
|
||||
Texts = new List<string> { "","","Карта", "Блюдо" },
|
||||
Texts = new List<string> { "","","Алк. карта", "Блюдо" },
|
||||
Style = "NormalTitle",
|
||||
ParagraphAlignment = PdfParagraphAlignmentType.Center
|
||||
});
|
||||
@ -45,16 +45,20 @@ namespace DiningRoomBusinessLogic.OfficePackage
|
||||
// Добавление строк с элементами компонента
|
||||
foreach (var item in group)
|
||||
{
|
||||
CreateRow(new PdfRowParameters
|
||||
if(!string.IsNullOrEmpty(item.CardName) || !string.IsNullOrEmpty(item.ProductName))
|
||||
{
|
||||
Texts = new List<string>
|
||||
CreateRow(new PdfRowParameters
|
||||
{
|
||||
string.IsNullOrEmpty(item.CardName) ? "N/A" : item.CardName,
|
||||
string.IsNullOrEmpty(item.ProductName) ? "N/A" : item.ProductName
|
||||
Texts = new List<string>
|
||||
{
|
||||
"","",
|
||||
string.IsNullOrEmpty(item.CardName) ? "" : item.CardName,
|
||||
string.IsNullOrEmpty(item.ProductName) ? "" : item.ProductName
|
||||
},
|
||||
Style = "Normal",
|
||||
ParagraphAlignment = PdfParagraphAlignmentType.Left
|
||||
});
|
||||
Style = "Normal",
|
||||
ParagraphAlignment = PdfParagraphAlignmentType.Left
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -519,7 +519,7 @@ namespace DiningRoomUserApp.Controllers
|
||||
}
|
||||
|
||||
// Генерация HTML таблицы
|
||||
string table = "<h2 class=\"text-custom-color-1\">Отчет по компонентам</h2>";
|
||||
string table = "<h2 class=\"text-custom-color-1\">Отчет по продуктам</h2>";
|
||||
table += "<div class=\"table-responsive\">";
|
||||
table += "<table class=\"table table-striped table-bordered table-hover\">";
|
||||
table += "<thead class=\"table-dark\">";
|
||||
@ -527,7 +527,7 @@ namespace DiningRoomUserApp.Controllers
|
||||
table += "<th scope=\"col\">Продукт</th>";
|
||||
table += "<th scope=\"col\">Блюдо</th>";
|
||||
table += "<th scope=\"col\">Алкогольная Карта</th>";
|
||||
table += "<th scope=\"col\">Стоимость компонента</th>";
|
||||
table += "<th scope=\"col\">Стоимость продукта</th>";
|
||||
table += "</tr>";
|
||||
table += "</thead>";
|
||||
table += "<tbody>";
|
||||
|
@ -28,7 +28,7 @@
|
||||
<div class="down_word">
|
||||
Если у вас нет аккаунта то
|
||||
<a href="Register" class="word_registr">
|
||||
заригестрируйтесь
|
||||
зарегистрируйтесь
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user