2025-07-01 17:20:48 +10:00
|
|
|
|
namespace PARR.API.Contracts.V1.Requests
|
|
|
|
|
|
{
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public record JobRequest
|
2025-07-01 17:20:48 +10:00
|
|
|
|
{
|
2025-09-16 15:27:26 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required Guid TnkId { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required Guid GroupId { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string Name { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public int? MinValueRelationships { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public int? MaxValueRelationships { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public bool? IsParentRelationships { get; init; }
|
2025-08-22 11:25:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public JobRelationships? Relationships { get; init; }
|
2025-08-22 11:25:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string TemplateNameMask { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string WorkGroupMask { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string WorkName { get; init; }
|
2026-01-13 14:36:07 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string ResponseAreaMask { get; init; }
|
2025-12-08 14:23:08 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//#region AutoControl
|
2025-12-08 14:23:08 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public bool IsEnableAutoControl { get; set; }
|
2025-12-08 14:23:08 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public bool InitUsedTemplateState { get; set; }
|
2025-12-08 14:23:08 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//public bool InitUsedScheduleState { get; set; }
|
2025-12-08 14:23:08 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
//#endregion
|
|
|
|
|
|
|
|
|
|
|
|
public JobAutoControlRequest? AutoControl { get; init; }
|
|
|
|
|
|
|
|
|
|
|
|
public required List<UnitFilterRequest> UnitFilters { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public record JobRelationships
|
|
|
|
|
|
{
|
|
|
|
|
|
public int MinValueRelationships { get; init; }
|
|
|
|
|
|
|
|
|
|
|
|
public int MaxValueRelationships { get; init; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsParentRelationships { get; init; }
|
|
|
|
|
|
}
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public record UnitFilterRequest
|
2025-09-11 16:03:51 +10:00
|
|
|
|
{
|
2025-09-24 10:08:50 +10:00
|
|
|
|
///// <summary>
|
|
|
|
|
|
///// Id = null в методе Create, в Update обязателен
|
|
|
|
|
|
///// </summary>
|
|
|
|
|
|
//public Guid? Id { get; set; }
|
2025-09-16 15:27:26 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public required string UnitFilterMask { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public List<FieldFilterRequest>? FieldFilters { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public List<RelationshipFilterRequest>? RelationshipFilters { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public record FieldFilterRequest
|
2025-09-11 16:03:51 +10:00
|
|
|
|
{
|
2025-09-16 15:27:26 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public Guid FieldId { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public string? ValueMask { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public bool IsInverse { get; init; } = false;
|
2025-12-26 11:21:45 +10:00
|
|
|
|
|
2025-09-11 16:03:51 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public record RelationshipFilterRequest
|
2025-09-11 16:03:51 +10:00
|
|
|
|
{
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public Guid FieldId { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public bool? IsParent { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public string? ValueMask { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public bool? IsFullMatch { get; init; }
|
2025-09-11 16:03:51 +10:00
|
|
|
|
|
2026-06-19 11:19:43 +10:00
|
|
|
|
public bool? IsInverse { get; init; }
|
2025-07-01 17:20:48 +10:00
|
|
|
|
}
|
2025-09-11 16:03:51 +10:00
|
|
|
|
}
|