38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using _0_Framework.Application;
|
|
using _0_Framework.Domain;
|
|
using AccountManagement.Application.Contracts.Task;
|
|
using AccountManagement.Domain.TaskAgg;
|
|
|
|
namespace AccountManagement.Domain.TaskScheduleAgg;
|
|
|
|
public class TaskSchedule:EntityBase
|
|
{
|
|
public TaskSchedule(string count, TaskScheduleType type, TaskScheduleUnitType unitType, string unitNumber, DateTime lastEndTaskDate)
|
|
{
|
|
Count = count;
|
|
Type = type;
|
|
UnitType = unitType;
|
|
UnitNumber = unitNumber;
|
|
LastEndTaskDate = lastEndTaskDate;
|
|
IsActive = IsActive.False;
|
|
}
|
|
public string Count { get; private set; }
|
|
public TaskScheduleType Type { get; private set; }
|
|
public TaskScheduleUnitType UnitType { get; private set; }
|
|
public string UnitNumber { get; private set; }
|
|
public DateTime LastEndTaskDate { get; private set; }
|
|
public IsActive IsActive { get; private set; }
|
|
public List<Tasks> TasksList { get; set; }
|
|
|
|
public void SetLastEndTaskDate(DateTime lastEndTaskDate)
|
|
{
|
|
LastEndTaskDate = lastEndTaskDate;
|
|
}
|
|
|
|
public void DeActive()
|
|
{
|
|
IsActive = IsActive.False;
|
|
}
|
|
} |