2023-09-15 16:32:46 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1.Responses
|
|
|
|
|
|
{
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public class TemplateBaseResponse
|
2023-09-15 16:32:46 +10:00
|
|
|
|
{
|
2023-09-20 09:13:46 +10:00
|
|
|
|
public Guid Id { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2023-09-15 16:32:46 +10:00
|
|
|
|
public required string Name { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2023-10-06 15:13:40 +10:00
|
|
|
|
public bool IsActiveTemplate { get; set; }
|
2023-09-15 16:32:46 +10:00
|
|
|
|
|
2025-06-27 13:42:13 +10:00
|
|
|
|
public bool IsActiveSchedule { get; set; }
|
2024-05-08 11:48:03 +10:00
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public string? ScheduleEsppId { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public DateTimeOffset? LastRun { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public DateTimeOffset NextRun { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2026-02-03 16:15:19 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// NextRun с учетом ЗО
|
|
|
|
|
|
/// </summary>
|
2026-02-04 09:11:35 +10:00
|
|
|
|
public DateTimeOffset? NextRunResponseAreaInLocal { get; set; }
|
2026-02-03 16:15:19 +10:00
|
|
|
|
|
|
|
|
|
|
public bool IsResponseAreaTimezone { get; set; }
|
2023-09-20 12:09:07 +10:00
|
|
|
|
|
2026-01-13 14:36:07 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Рабочая группа (формируется из шорткода)
|
|
|
|
|
|
/// </summary>
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public string? WorkGroup { get; set; }
|
2026-01-13 14:36:07 +10:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// ЗО, формируется из шорткода
|
|
|
|
|
|
/// </summary>
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public string? ResponseArea { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public UnitWithAttributesResponse? Unit { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public TemplateStatusTypeResponse? StatusType { get; set; }
|
2026-01-13 14:36:07 +10:00
|
|
|
|
|
2023-10-17 16:59:53 +10:00
|
|
|
|
public TemplateAgentResponse? Agent { get; set; }
|
|
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public List<RobotConfigurationResponse>? SyncStatus { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public int OrderCount { get; set; }
|
2023-10-17 16:59:53 +10:00
|
|
|
|
|
2024-07-05 12:42:01 +10:00
|
|
|
|
public bool IsAutoDistributionEnabled { get; set; }
|
2026-01-29 16:53:00 +10:00
|
|
|
|
}
|
2025-12-29 12:30:09 +10:00
|
|
|
|
|
2023-09-20 09:13:46 +10:00
|
|
|
|
|
2026-01-29 16:53:00 +10:00
|
|
|
|
public class TemplateListResponse : TemplateBaseResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class TemplateResponse : TemplateBaseResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public required string Category { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Initiator { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string ClosingCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string ShortDescription { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string FullDescription { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Solution { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string TemplateDuration { get; set; }
|
2023-09-20 09:13:46 +10:00
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public JobResponse? Job { get; set; }
|
2025-06-25 14:17:34 +10:00
|
|
|
|
|
2023-09-20 09:13:46 +10:00
|
|
|
|
public ProcessResponse? Process { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2023-09-20 09:13:46 +10:00
|
|
|
|
public SubprocessResponse? Subprocess { get; set; }
|
2025-06-27 13:42:13 +10:00
|
|
|
|
|
2023-09-20 09:13:46 +10:00
|
|
|
|
public TnkResponse? Tnk { get; set; }
|
|
|
|
|
|
|
2023-10-12 12:06:47 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Расписание
|
|
|
|
|
|
/// </summary>
|
2023-10-12 09:10:10 +10:00
|
|
|
|
public EsppScheduleResponse? Schedule { get; set; }
|
2024-05-08 10:16:42 +10:00
|
|
|
|
|
2025-12-26 11:21:45 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Тип исклчения
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ScheduleExcludeTypeResponse? ScheduleExcludeType { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Тип исключения - календарь
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ScheduleExcludeTypeCalendarResponse? ScheduleExcludeTypeCalendar { get; set; }
|
|
|
|
|
|
|
2026-01-22 14:05:48 +10:00
|
|
|
|
public JobGroupDistributionConfigResponse? DistributionConfig { get; set; }
|
2023-09-18 12:08:40 +10:00
|
|
|
|
}
|
2023-09-15 16:32:46 +10:00
|
|
|
|
}
|