feat(dal): в настройки добавлено поле EsppUnitTag

This commit is contained in:
Mikhail Trubnikov
2025-12-25 13:53:38 +10:00
parent 8c7c092a06
commit c7fdf9f97d
5 changed files with 3986 additions and 5 deletions

View File

@@ -190,11 +190,12 @@ namespace PARR.DAL.Context
Name = nameof(SettingsFromDb.TemplateNameConstantParts),
Description = "Список неизменных частей имени шаблона",
Value =
new List<TemplateNameConstantPart> {
new TemplateNameConstantPart { Name = "П-1", Value = "ЭИТИ" },
new TemplateNameConstantPart { Name = "П-2", Value = "ПАРР" }
}.ToJson()
}
new List<TemplateNameConstantPart> {
new TemplateNameConstantPart { Name = "П-1", Value = "ЭИТИ" },
new TemplateNameConstantPart { Name = "П-2", Value = "ПАРР" }
}.ToJson()
},
new { Name = nameof(SettingsFromDb.EsppUnitTag), Description = "Префикс тега в поле ЭК \"Дополнительная информация\"", Value = "ПАРР-" }
);
});
#endregion

View File

@@ -112,6 +112,11 @@ namespace PARR.DAL.Contracts
/// </summary>
public TimeSpan WeekendCacheTtl { get; set; } = new TimeSpan(0, 5, 0);
/// <summary>
/// Префикс тега в поле ЭК "Дополнительная информация"
/// </summary>
public string EsppUnitTag { get; set; } = string.Empty;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class settingsAddEsppUnitTag : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Settings",
columns: new[] { "Name", "Description", "Value" },
values: new object[] { "EsppUnitTag", "Префикс тега в поле ЭК \"Дополнительная информация\"", "ПАРР-" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Settings",
keyColumn: "Name",
keyValue: "EsppUnitTag");
}
}
}

View File

@@ -2537,6 +2537,12 @@ namespace PARR.DAL.Migrations
Name = "TemplateNameConstantParts",
Description = "Список неизменных частей имени шаблона",
Value = "[{\"Name\":\"П-1\",\"Value\":\"ЭИТИ\"},{\"Name\":\"П-2\",\"Value\":\"ПАРР\"}]"
},
new
{
Name = "EsppUnitTag",
Description = "Префикс тега в поле ЭК \"Дополнительная информация\"",
Value = "ПАРР-"
});
});