2023-11-18 22:23:23 +03:30
|
|
|
|
using Brizco.Domain.Entities.User;
|
2023-09-15 12:37:02 +03:30
|
|
|
|
|
2023-09-18 09:45:02 +03:30
|
|
|
|
namespace Brizco.Domain.Entities.Task;
|
|
|
|
|
|
|
|
|
|
|
|
public partial class Activity : Task
|
2023-09-15 12:37:02 +03:30
|
|
|
|
{
|
2023-09-18 09:45:02 +03:30
|
|
|
|
|
|
|
|
|
|
public Activity()
|
|
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Activity(
|
|
|
|
|
|
ActivityStatus status,
|
|
|
|
|
|
DateTime doneAt,
|
|
|
|
|
|
string performanceDescription,
|
|
|
|
|
|
TaskType type,
|
|
|
|
|
|
bool isDisposable,
|
|
|
|
|
|
DateTime setFor,
|
|
|
|
|
|
bool hasDisposed,
|
|
|
|
|
|
int amount,
|
|
|
|
|
|
PurchaseAmountType amountType,
|
|
|
|
|
|
string title,
|
2023-09-18 15:41:41 +03:30
|
|
|
|
string description,
|
2023-11-18 22:23:23 +03:30
|
|
|
|
Guid complexId,
|
2023-12-09 09:54:34 +03:30
|
|
|
|
TaskScheduleType scheduleType) : base(type, isDisposable, setFor, hasDisposed, amount, amountType, title, description, complexId, scheduleType)
|
2023-09-18 09:45:02 +03:30
|
|
|
|
{
|
|
|
|
|
|
Status = status;
|
|
|
|
|
|
DoneAt = doneAt;
|
|
|
|
|
|
PerformanceDescription = performanceDescription;
|
2023-12-16 14:07:33 +03:30
|
|
|
|
IsActivity = true;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
}
|
2023-11-18 22:23:23 +03:30
|
|
|
|
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public ActivityStatus Status { get; internal set; }
|
|
|
|
|
|
public DateTime DoneAt { get; internal set; }
|
|
|
|
|
|
public bool IsDone { get; internal set; }
|
2023-12-09 09:54:34 +03:30
|
|
|
|
public string UnDoneReason { get; internal set; } = string.Empty;
|
2023-09-18 09:45:02 +03:30
|
|
|
|
public string PerformanceDescription { get; internal set; } = string.Empty;
|
2023-11-18 22:23:23 +03:30
|
|
|
|
public Guid UserId { get; internal set; }
|
|
|
|
|
|
public ApplicationUser? User { get; internal set; }
|
2023-11-20 18:30:01 +03:30
|
|
|
|
|
|
|
|
|
|
public Guid ShiftId { get; internal set; }
|
|
|
|
|
|
public Shift.Shift? Shift { get; internal set; }
|
2023-09-15 12:37:02 +03:30
|
|
|
|
}
|