diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToPdf.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToPdf.cs new file mode 100644 index 0000000..11d3bfd --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToPdf.cs @@ -0,0 +1,22 @@ +using VeterinaryBusinessLogic.OfficePackage.HelperModels; + +namespace VeterinaryBusinessLogic.OfficePackage +{ + public abstract class AbstractSaveToPdf + { + /// Создание pdf-файла + protected abstract void CreatePdf(PdfInfo info); + + /// Создание параграфа с текстом + protected abstract void CreateParagraph(PdfParagraph paragraph); + + /// Создание таблицы + protected abstract void CreateTable(List columns); + + /// Создание и заполнение строки + protected abstract void CreateRow(PdfRowParameters rowParameters); + + /// Сохранение файла + protected abstract void SavePdf(PdfInfo info); + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToWord.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToWord.cs new file mode 100644 index 0000000..95b25e0 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/AbstractSaveToWord.cs @@ -0,0 +1,19 @@ +using VeterinaryBusinessLogic.OfficePackage.HelperModels; + +namespace VeterinaryBusinessLogic.OfficePackage +{ + public abstract class AbstractSaveToWord + { + /// Создание doc-файла + protected abstract void CreateWord(WordInfo info); + + /// Создание абзаца с текстом + protected abstract void CreateParagraph(WordParagraph paragraph); + + ///Создание таблицы + protected abstract void CreateTable(WordParagraph paragraph); + + /// Сохранение файла + protected abstract void SaveWord(WordInfo info); + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToPdf.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToPdf.cs new file mode 100644 index 0000000..b804a26 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToPdf.cs @@ -0,0 +1,15 @@ +using MigraDoc.DocumentObjectModel; +using MigraDoc.DocumentObjectModel.Tables; +using MigraDoc.Rendering; + +namespace VeterinaryBusinessLogic.OfficePackage.Implements +{ + public class SaveToPdf + { + private Document? _document; + + private Section? _section; + + private Table? _table; + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToWord.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToWord.cs new file mode 100644 index 0000000..c068a11 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Implements/SaveToWord.cs @@ -0,0 +1,13 @@ +using DocumentFormat.OpenXml.Packaging; +using DocumentFormat.OpenXml.Wordprocessing; + +namespace VeterinaryBusinessLogic.OfficePackage.Implements +{ + public class SaveToWord + { + private WordprocessingDocument? _wordDocument; + + private Body? _docBody; + + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj index cb0a8ba..8af590c 100644 --- a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj +++ b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj @@ -7,15 +7,13 @@ + + - - - -