2023-09-15 12:37:02 +03:30
|
|
|
|
namespace Brizco.Domain.Entities.Shift;
|
|
|
|
|
|
|
2023-09-18 15:41:41 +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 | MapType.Projection)]
|
|
|
|
|
|
[GenerateMapper]
|
2023-09-15 12:37:02 +03:30
|
|
|
|
public partial class ShiftPlan : ApiEntity
|
|
|
|
|
|
{
|
|
|
|
|
|
public ShiftPlan()
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2023-11-19 22:06:49 +03:30
|
|
|
|
internal ShiftPlan(DateTime planFor, Guid routineId,Guid shiftId)
|
2023-09-15 12:37:02 +03:30
|
|
|
|
{
|
2023-11-19 22:06:49 +03:30
|
|
|
|
PlanFor = planFor;
|
|
|
|
|
|
RoutineId = routineId;
|
2023-11-05 18:00:05 +03:30
|
|
|
|
ShiftId = shiftId;
|
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
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
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; }
|
|
|
|
|
|
public virtual Routine.Routine? Routine { get; internal set; }
|
|
|
|
|
|
|
2023-09-18 15:41:41 +03:30
|
|
|
|
public List<ShiftPlanUser> Users { get; internal set; } = new();
|
2023-09-15 12:37:02 +03:30
|
|
|
|
}
|