feat(api): обновлен AppInWorkController под новый респонс, валидация для галки IsAutoDistributionEnabled

This commit is contained in:
Mikhail Trubnikov
2024-07-03 10:16:54 +10:00
parent cf5a465546
commit ff58a21cc5
11 changed files with 172 additions and 9 deletions

View File

@@ -15,7 +15,17 @@
public required string Solution { get; set; }
public DateTimeOffset NextRun { get; set; }
//public DateTimeOffset NextRun { get; set; }
/// <summary>
/// Дата начала работ
/// </summary>
public DateTimeOffset ReferenceDate { get; set; }
/// <summary>
/// Включить автораспределение
/// </summary>
public bool IsAutoDistributionEnabled { get; set; }
public bool IsAgent { get; set; }

View File

@@ -12,9 +12,13 @@
public required string Solution { get; set; }
public DateTimeOffset? LastRun { get; set; }
//public DateTimeOffset? LastRun { get; set; }
public DateTimeOffset NextRun { get; set; }
//public DateTimeOffset NextRun { get; set; }
public DateTimeOffset ReferenceDate { get; set; }
public bool IsAutoDistributionEnabled { get; set; }
public bool IsAgent { get; set; }
@@ -32,7 +36,7 @@
public ApplicationInWorkScheduleResponse? Schedule { get; set; }
public List<WorkGroupResponse>? WorkGroups { get; set; }
public List<WorkGroupResponse>? WorkGroups { get; set; }
}