fix(esppTemplateSync): Имя шаблона переводится в верхний регистр для правильного сравнения с объектом из ЕСПП

This commit is contained in:
Mikhail Kuznetsov
2025-11-28 15:32:06 +10:00
parent 09de164dcd
commit 7e708e4aee
16 changed files with 70 additions and 70 deletions

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -95,7 +95,7 @@ namespace PARR.EsppScheduleSync
var esppObjectFromDb = new EsppObjectSchedule
{
TemplateName = template.Name,
TemplateName = template.Name.ToUpper(),
Code = template.ScheduleEsppId ?? "",
ScheduleName = template.Name,
IsActive = template.IsActiveSchedule,
@@ -204,7 +204,7 @@ namespace PARR.EsppScheduleSync
return null;
}
var templateName = splittedContent[6];
var templateName = splittedContent[6].ToUpper();
var scheduleName = splittedContent[2];
if (!IsValidName(templateName) || !IsValidName(scheduleName))

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -84,7 +84,7 @@ namespace PARR.EsppTemplateSync
{
var templateFromDb = new EsppObjectTemplate
{
TemplateName = template.Name,
TemplateName = template.Name.ToUpper(),
IsActive = template.IsActiveTemplate,
//WorkGroup = template.Host!.WorkGroup!,
WorkGroup = template.Unit!.BaseFields!.WorkGroup!,
@@ -155,7 +155,7 @@ namespace PARR.EsppTemplateSync
var templateFromEspp = new EsppObjectTemplate
{
TemplateName = templateName,
TemplateName = templateName.ToUpper(),
IsActive = isActive,
WorkGroup = workGroup,
ShortDescription = shortDescription,

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -95,7 +95,7 @@ namespace PARR.TemplateGeneratorWorker
var template = new Template
{
Id = Guid.NewGuid(),
Name = templateName,
Name = templateName.ToUpper(),
UnitId = query.UnitId,
JobId = query.JobId,
IsActiveTemplate = query.IsActiveTemplate ?? false,

View File

@@ -11,11 +11,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{

View File

@@ -10,11 +10,11 @@
},
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Debug"
}
"Default": "Information",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"WriteTo": [
{