2025-09-09 17:19:41 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1.Responses
|
2025-06-25 14:17:34 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class JobBaseResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public Guid Id { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public required string Name { get; set; }
|
|
|
|
|
|
|
2025-09-11 16:03:51 +10:00
|
|
|
|
public int? MinValueRelationships { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int? MaxValueRelationships { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool? isParentRelationships { get; set; }
|
|
|
|
|
|
|
2025-06-25 14:17:34 +10:00
|
|
|
|
public required string TemplateNameMask { get; set; }
|
2025-08-22 11:25:51 +10:00
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public required string WorkName { get; set; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
|
|
|
|
|
public required string WorkGroupMask { get; set; }
|
2025-06-25 14:17:34 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
|
2025-06-25 14:17:34 +10:00
|
|
|
|
public class JobResponse : JobBaseResponse
|
|
|
|
|
|
{
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public TnkResponse? Tnk { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public JobGroupBaseResponse? Group { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public int? TemplatesCount { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<UnitFilterResponse>? UnitFilters { get; set; }
|
2025-06-25 14:17:34 +10:00
|
|
|
|
|
2025-12-08 14:23:08 +10:00
|
|
|
|
public JobAutoControlResponse? AutoControl { get; set; }
|
|
|
|
|
|
|
2025-12-26 11:21:45 +10:00
|
|
|
|
#region Статистика Old
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
//public TemplateStats? TemplateStatistics { get; set; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
//public ScheduleStats? ScheduleStatistics { get; set; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public class UnitFilterResponse
|
|
|
|
|
|
{
|
2025-09-10 10:40:12 +10:00
|
|
|
|
public required Guid Id { get; set; }
|
|
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public required string UnitFilterMask { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<FieldFilterResponse>? FieldFilters { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public List<RelationshipFilterResponse>? RelationshipFilters { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class FieldFilterResponse
|
|
|
|
|
|
{
|
2025-09-10 10:40:12 +10:00
|
|
|
|
public required Guid Id { get; set; }
|
|
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
public required FieldResponse Field { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? ValueMask { get; set; }
|
|
|
|
|
|
|
2025-12-26 11:21:45 +10:00
|
|
|
|
public bool IsInverse { get; set; }
|
|
|
|
|
|
|
2025-09-09 17:19:41 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class RelationshipFilterResponse
|
|
|
|
|
|
{
|
|
|
|
|
|
public required FieldResponse Field { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool? IsParent { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? ValueMask { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool? IsFullMatch { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool? IsInverse { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2025-07-01 17:20:48 +10:00
|
|
|
|
public class TemplateStats
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Активированных шаблонов
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Activated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Synchronized { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ошибок синхронизации (RobotStatus = 33/Error)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Errors { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class ScheduleStats
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Активированных шаблонов
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Activated { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Синхронизировано шаблонов (TaskStatus = 30/Ok)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Synchronized { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Ошибок синхронизации (RobotStatus = 33/Error)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int Errors { get; set; }
|
2025-06-25 14:17:34 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|