diff --git a/PARR.DAL/Models/Job/JobGroup.cs b/PARR.DAL/Models/Job/JobGroup.cs
index b77c15c9..af7f0b3d 100644
--- a/PARR.DAL/Models/Job/JobGroup.cs
+++ b/PARR.DAL/Models/Job/JobGroup.cs
@@ -1,6 +1,7 @@
using Microsoft.EntityFrameworkCore;
using PARR.DAL.Context;
using PARR.DAL.Models.Base;
+using PARR.DAL.Settings;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -35,7 +36,22 @@ namespace PARR.DAL.Models.Job
///
/// Поле Подробное описания шаблона АСУ ЕСПП
///
- public required string FullDescription { get; set; }
+ private string _fullDescription = string.Empty;
+ public required string FullDescription
+ {
+ get
+ {
+ //В полное описание подставляем префикс, для дальнейшего поиска наряда
+ return $"{_fullDescription}\r\n{PrefixSettings.PrefixWithoutVariable}";
+ }
+ set
+ {
+ //удаляем префикс, если он есть
+ //_fullDescription = value.Replace($"\r\n{PrefixSettings.PrefixWithoutVariable}", string.Empty);
+ _fullDescription = value.Replace($"{PrefixSettings.PrefixWithoutVariable}", string.Empty).TrimEnd();
+ }
+ }
+ //public required string FullDescription { get; set; }
///
/// Поле Решение описания шаблона АСУ ЕСПП
diff --git a/PARR.TemplateGeneratorWorker/TemplateGenerator.cs b/PARR.TemplateGeneratorWorker/TemplateGenerator.cs
index e3256814..f5368a16 100644
--- a/PARR.TemplateGeneratorWorker/TemplateGenerator.cs
+++ b/PARR.TemplateGeneratorWorker/TemplateGenerator.cs
@@ -74,7 +74,7 @@ namespace PARR.TemplateGeneratorWorker
if (!await templateService.CreateAsync(template) || !await templateService.CommitAsync(new HistoryInitiator { InitiatorComment = "Запрос на генерацию с тестового шаблона", InitiatorParrComponentId = ParrComponentsEnum.TemplateGenerator }))
{
- logger.LogError($"Ошибка при создании шаблона: Name: {template.Name}, {nameof(template.Job)}: {template.Job}, {nameof(template.Unit)}: {template.UnitId}");
+ logger.LogError($"Ошибка при создании шаблона: Name: {template.Name}, {nameof(template.Job)}: {template.JobId}, {nameof(template.Unit)}: {template.UnitId}");
}
else
{