2023-09-18 15:41:41 +03:30
|
|
|
|
namespace Brizco.Domain.Entities.Shift;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
|
|
|
|
|
|
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
|
2023-12-12 14:54:19 +03:30
|
|
|
|
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
|
|
|
|
|
|
[AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
|
2023-09-18 09:45:02 +03:30
|
|
|
|
[GenerateMapper]
|
2023-09-15 12:37:02 +03:30
|
|
|
|
public partial class Shift : ApiEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
public Shift() { }
|
|
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
internal Shift(string title, string description, TimeSpan startAt, TimeSpan endAt,Guid complexId)
|
2023-09-15 12:37:02 +03:30
|
|
|
|
{
|
|
|
|
|
|
Title = title;
|
|
|
|
|
|
Description = description;
|
|
|
|
|
|
StartAt = startAt;
|
|
|
|
|
|
EndAt = endAt;
|
2023-09-18 15:41:41 +03:30
|
|
|
|
ComplexId = complexId;
|
2023-09-15 12:37:02 +03:30
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public string Title { get; internal set; } = string.Empty;
|
|
|
|
|
|
public TimeSpan StartAt { get; internal set; }
|
|
|
|
|
|
public TimeSpan EndAt { get; internal set; }
|
|
|
|
|
|
public string Description { get; internal set; } = string.Empty;
|
2023-09-15 12:37:02 +03:30
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public Guid ComplexId { get; set; }
|
|
|
|
|
|
public Complex.Complex? Complex { get; set; }
|
|
|
|
|
|
|
2023-11-13 14:42:49 +03:30
|
|
|
|
public List<ShiftDay> Days { get; internal set; } = new();
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public List<ShiftPlan> Plans { get; internal set; } = new();
|
2023-11-13 14:42:49 +03:30
|
|
|
|
public List<ShiftRoutine> Routines { get; internal set; } = new();
|
2023-09-15 12:37:02 +03:30
|
|
|
|
}
|