feat(dal): в settingsFromDb добавлен параметр JobIdForUnusedTemplates

This commit is contained in:
Mikhail Trubnikov
2025-12-30 12:16:51 +10:00
parent aaf349cd22
commit 469fa56f9e
5 changed files with 4132 additions and 1 deletions

View File

@@ -203,7 +203,8 @@ namespace PARR.DAL.Context
new TemplateNameConstantPart { Name = "П-2", Value = "ПАРР" }
}.ToJson()
},
new { Name = nameof(SettingsFromDb.EsppUnitTag), Description = "Префикс тега в поле ЭК \"Дополнительная информация\"", Value = АРР_" }
new { Name = nameof(SettingsFromDb.EsppUnitTag), Description = "Префикс тега в поле ЭК \"Дополнительная информация\"", Value = АРР_" },
new { Name = nameof(SettingsFromDb.JobIdForUnusedTemplates), Description = "Job в который перемещаем ниспользованные шаблоны", Value = "8f85a91c-a223-4686-bb69-1f0ee73624f2" }
);
});
#endregion

View File

@@ -117,6 +117,11 @@ namespace PARR.DAL.Contracts
/// </summary>
public string EsppUnitTag { get; set; } = string.Empty;
/// <summary>
/// Job в который перемещаем ниспользованные шаблоны
/// </summary>
public Guid JobIdForUnusedTemplates { get; set; }
}
}

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 settingsAddJobIdForUnusedTemplates : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Settings",
columns: new[] { "Name", "Description", "Value" },
values: new object[] { "JobIdForUnusedTemplates", "Job в который перемещаем ниспользованные шаблоны", "8f85a91c-a223-4686-bb69-1f0ee73624f2" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Settings",
keyColumn: "Name",
keyValue: "JobIdForUnusedTemplates");
}
}
}

View File

@@ -2659,6 +2659,12 @@ namespace PARR.DAL.Migrations
Name = "EsppUnitTag",
Description = "Префикс тега в поле ЭК \"Дополнительная информация\"",
Value = АРР_"
},
new
{
Name = "JobIdForUnusedTemplates",
Description = "Job в который перемещаем ниспользованные шаблоны",
Value = "8f85a91c-a223-4686-bb69-1f0ee73624f2"
});
});