лр4 коммит 4

This commit is contained in:
Катя Ихонкина 2023-03-23 13:38:17 +04:00
parent ec4d190d0a
commit 09dd8c0577
3 changed files with 11 additions and 17 deletions

View File

@ -13,20 +13,14 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage
public void CreateDoc(PdfInfo info)
{
CreatePdf(info);
CreateParagraph(new PdfParagraph
{
Text = info.Title,
Style =
"NormalTitle",
ParagraphAlignment = PdfParagraphAlignmentType.Center
});
CreateParagraph(new PdfParagraph
{
Text = $"с{ info.DateFrom.ToShortDateString() } по { info.DateTo.ToShortDateString() }", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Center});
CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm" });
CreateParagraph(new PdfParagraph { Text = info.Title, Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center });
CreateParagraph(new PdfParagraph { Text = $"с{info.DateFrom.ToShortDateString()} по {info.DateTo.ToShortDateString()}", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Center });
CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm", "3cm" });
CreateRow(new PdfRowParameters
{
Texts = new List<string> { "Номер", "Дата заказа", "ЖБИ","Сумма" },
Texts = new List<string> { "Номер", "Дата заказа", "ЖБИ", "Статус", "Сумма" },
Style = "NormalTitle",
ParagraphAlignment = PdfParagraphAlignmentType.Center
});
@ -34,7 +28,7 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage
{
CreateRow(new PdfRowParameters
{
Texts = new List<string> { order.Id.ToString(), order.DateCreate.ToShortDateString(), order.ReinforcedName, order.Sum.ToString() },
Texts = new List<string> { order.Id.ToString(), order.DateCreate.ToShortDateString(), order.ReinforcedName, order.OrderStatus, order.Sum.ToString() },
Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Left
});

View File

@ -27,7 +27,7 @@ namespace PrecastConcretePlantBusinessLogic.OfficePackage
{
CreateParagraph(new WordParagraph
{
Texts = new List<(string, WordTextProperties)> { (component.ReinforcedName, new WordTextProperties { Size = "24", }), (". Цена: " + component.Price.ToString(), new WordTextProperties { Size = "24", }) },
Texts = new List<(string, WordTextProperties)> { (component.ReinforcedName, new WordTextProperties { Bold = true, Size = "24", }), (". Цена: " + component.Price.ToString(), new WordTextProperties { Size = "24", }) },
TextProperties = new WordTextProperties
{
Size = "24",