feat(api,dal): в настройки добавлено поле ScheduleExcludeCalendar. Обновлен response для robot task
This commit is contained in:
4032
PARR.DAL/Migrations/20251204014500_updateSettings.Designer.cs
generated
Normal file
4032
PARR.DAL/Migrations/20251204014500_updateSettings.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
63
PARR.DAL/Migrations/20251204014500_updateSettings.cs
Normal file
63
PARR.DAL/Migrations/20251204014500_updateSettings.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updateSettings : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "ScheduleExclude");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "Initiator",
|
||||
column: "Value",
|
||||
value: "АКСЕНОВ АЛЕКСАНДР ЕВГЕНЬЕВИЧ (AKSENOVAE@GVC.OAO.RZD)");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ "ScheduleExcludeCalendar", "Расписание регламентной работы - Календарь", "8x5 (8.00-17.00)" },
|
||||
{ "ScheduleExcludeType", "Расписание регламентной работы - Тип исключения", "Выполнить ТОЛЬКО В указанном календаре" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "ScheduleExcludeCalendar");
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "ScheduleExcludeType");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "Settings",
|
||||
keyColumn: "Name",
|
||||
keyValue: "Initiator",
|
||||
column: "Value",
|
||||
value: "СТАРОСТИНА СВЕТЛАНА БОРИСОВНА (STAROSTINASB@GVC.OAO.RZD)");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Settings",
|
||||
columns: new[] { "Name", "Description", "Value" },
|
||||
values: new object[] { "ScheduleExclude", "Расписание регламентной работы - Тип исключения", "Нет исключений" });
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2514,7 +2514,7 @@ namespace PARR.DAL.Migrations
|
||||
{
|
||||
Name = "Initiator",
|
||||
Description = "Инициатор регламентной работы, указывается при создании шаблона в ЕСПП.",
|
||||
Value = "СТАРОСТИНА СВЕТЛАНА БОРИСОВНА (STAROSTINASB@GVC.OAO.RZD)"
|
||||
Value = "АКСЕНОВ АЛЕКСАНДР ЕВГЕНЬЕВИЧ (AKSENOVAE@GVC.OAO.RZD)"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -2554,9 +2554,15 @@ namespace PARR.DAL.Migrations
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ScheduleExclude",
|
||||
Name = "ScheduleExcludeType",
|
||||
Description = "Расписание регламентной работы - Тип исключения",
|
||||
Value = "Нет исключений"
|
||||
Value = "Выполнить ТОЛЬКО В указанном календаре"
|
||||
},
|
||||
new
|
||||
{
|
||||
Name = "ScheduleExcludeCalendar",
|
||||
Description = "Расписание регламентной работы - Календарь",
|
||||
Value = "8x5 (8.00-17.00)"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user