Api/Brizco.Domain/Entities/ShiftPlans/ShiftPlan.cs

43 lines
1.6 KiB
C#
Raw Normal View History


namespace Brizco.Domain.Entities.ShiftPlans;
2023-09-15 12:37:02 +03:30
[AdaptTwoWays("[name]SDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget | MapType.Projection)]
[AdaptTwoWays("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Map | MapType.MapToTarget)]
[AdaptTo("[name]LDto", IgnoreAttributes = new[] { typeof(AdaptIgnoreAttribute) }, MapType = MapType.Projection)]
[GenerateMapper]
2023-09-15 12:37:02 +03:30
public partial class ShiftPlan : ApiEntity
{
public ShiftPlan()
{
}
internal ShiftPlan(DateTime planFor, Guid routineId,Guid shiftId,Guid supervisionId, Guid complexId)
2023-09-15 12:37:02 +03:30
{
2023-11-19 22:06:49 +03:30
PlanFor = planFor;
RoutineId = routineId;
ShiftId = shiftId;
SupervisorId = supervisionId;
ComplexId = complexId;
2023-09-15 12:37:02 +03:30
}
2023-11-19 22:06:49 +03:30
public DateTime PlanFor { get; internal set; }
2023-09-15 12:37:02 +03:30
public bool IsCompleted { get; internal set; }
public bool IsScheduled { get; internal set; }
public int CompletePercent { get; internal set; }
public string CompleteDescription { get; internal set; } = string.Empty;
public Guid ShiftId { get; internal set; }
public virtual Shift? Shift { get; internal set; }
2023-09-15 12:37:02 +03:30
2023-11-19 22:06:49 +03:30
public Guid RoutineId { get; internal set; }
2024-07-06 21:20:10 +03:30
public virtual Routine? Routine { get; internal set; }
2023-11-19 22:06:49 +03:30
public Guid ComplexId { get; internal set; }
2024-07-06 21:20:10 +03:30
public Complex? Complex { get; internal set; }
public Guid SupervisorId { get; internal set; }
public ApplicationUser? Supervisor { get; internal set; }
public List<ShiftPlanUser> Users { get; internal set; } = new();
2023-09-15 12:37:02 +03:30
}