ОНО ДОЛЖНО РАБОТАТЬ

This commit is contained in:
Katanaa Die 2024-05-29 19:36:06 +04:00
parent 5e6dd8411a
commit 02643fd431
3 changed files with 15 additions and 14 deletions

View File

@ -48,6 +48,7 @@ namespace VetclinicBusinessLogic.OfficePackage
{
ColumnName = "B",
RowIndex = rowIndex,
Text = medication.DatePurchase.ToString(),
StyleInfo = ExcelStyleInfoType.TextWithBroder
});

View File

@ -55,7 +55,7 @@ namespace VetclinicBusinessLogic.OfficePackage
{
CreateRow(new PdfRowParameters
{
Texts = new List<string> { guidance.DrugName, "" },
Texts = new List<string> { guidance.DateCreate.ToString(), "", guidance.DrugName, "" },
Style = "Normal",
ParagraphAlignment = PdfParagraphAlignmentType.Center
});

View File

@ -37,19 +37,19 @@ namespace VetclinicBusinessLogic.OfficePackage
}
});
//foreach (var medicine in rec.Purchases)
//{
// CreateParagraph(new WordParagraph
// {
// Texts = new List<(string, WordTextProperties)>
// { (medicine.DateCreate.ToString(), new WordTextProperties { Size = "20", Bold=false})},
// TextProperties = new WordTextProperties
// {
// Size = "24",
// JustificationType = WordJustificationType.Both
// }
// });
//}
foreach (var medicine in rec.Purchases)
{
CreateParagraph(new WordParagraph
{
Texts = new List<(string, WordTextProperties)>
{ (medicine.DatePurchase.ToString(), new WordTextProperties { Size = "20", Bold=false})},
TextProperties = new WordTextProperties
{
Size = "24",
JustificationType = WordJustificationType.Both
}
});
}
}
SaveWord(info);
}