diff --git a/VeterinaryClinic/VeterinaryClinicBusinessLogics/OfficePackage/AbstractSaveToPdf.cs b/VeterinaryClinic/VeterinaryClinicBusinessLogics/OfficePackage/AbstractSaveToPdf.cs index 97bfad1..592dd23 100644 --- a/VeterinaryClinic/VeterinaryClinicBusinessLogics/OfficePackage/AbstractSaveToPdf.cs +++ b/VeterinaryClinic/VeterinaryClinicBusinessLogics/OfficePackage/AbstractSaveToPdf.cs @@ -57,7 +57,7 @@ namespace VeterinaryClinicBusinessLogics.OfficePackage // Записываем номер визита - дата CreateRow(new PdfRowParameters { - Texts = new List { view.Visit.Id.ToString(), " - ", view.Visit.Date.ToString() }, + Texts = new List { view.Visit.Id.ToString() + " - " + view.Visit.Date.ToString(), "", "" }, Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Left }); diff --git a/VeterinaryClinic/VeterinaryClinicBusinessLogics/VeterinaryClinicBusinessLogics.csproj b/VeterinaryClinic/VeterinaryClinicBusinessLogics/VeterinaryClinicBusinessLogics.csproj index c5c7d75..81fc52b 100644 --- a/VeterinaryClinic/VeterinaryClinicBusinessLogics/VeterinaryClinicBusinessLogics.csproj +++ b/VeterinaryClinic/VeterinaryClinicBusinessLogics/VeterinaryClinicBusinessLogics.csproj @@ -10,6 +10,7 @@ + diff --git a/VeterinaryClinic/VeterinaryClinicRestApi/Program.cs b/VeterinaryClinic/VeterinaryClinicRestApi/Program.cs index 45d0aaf..bb685de 100644 --- a/VeterinaryClinic/VeterinaryClinicRestApi/Program.cs +++ b/VeterinaryClinic/VeterinaryClinicRestApi/Program.cs @@ -6,9 +6,13 @@ using Microsoft.OpenApi.Models; using VeterinaryClinicBusinessLogics.OfficePackage.Implements; using VeterinaryClinicBusinessLogics.OfficePackage; using VeterinaryClinicBusinessLogics.MailWorker; +using System.Text; var builder = WebApplication.CreateBuilder(args); +// +Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); + builder.Logging.SetMinimumLevel(LogLevel.Trace); //builder.Logging.AddLog4Net("log4net.config"); diff --git a/VeterinaryClinic/VeterinaryClinicWebApp/Program.cs b/VeterinaryClinic/VeterinaryClinicWebApp/Program.cs index 816bbfa..5513c0c 100644 --- a/VeterinaryClinic/VeterinaryClinicWebApp/Program.cs +++ b/VeterinaryClinic/VeterinaryClinicWebApp/Program.cs @@ -6,9 +6,13 @@ using VeterinaryClinicContracts.StoragesContracts; using VeterinaryClinicDatabaseImplement.Implements; using VeterinaryClinicWebApp; using VeterinaryClinicBusinessLogics.MailWorker; +using System.Text; var builder = WebApplication.CreateBuilder(args); +// +Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); + // Add services to the container. builder.Services.AddControllersWithViews();