From b0510098af3547cead89bb608e8dcd9b58db2057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=20=D0=94?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=BB=D0=BE=D0=B2?= Date: Wed, 29 May 2024 23:48:13 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B3=D1=80=D1=83=D0=B7=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=BF=D0=B4=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/AbstractSaveToPdf.cs | 2 +- .../VeterinaryClinicBusinessLogics.csproj | 1 + VeterinaryClinic/VeterinaryClinicRestApi/Program.cs | 4 ++++ VeterinaryClinic/VeterinaryClinicWebApp/Program.cs | 4 ++++ 4 files changed, 10 insertions(+), 1 deletion(-) 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();