public void UpdatePool(VacationType pool, byte[] version) { PoolId = pool?.Id; Pool = pool; RowVersion = version; UpdatedOn = DateTimeOffset.Now; }
public VacationType(string name, int defaultleavedays, bool ispassing, VacationType pool) { Name = name; DefaultLeaveDays = defaultleavedays; IsPassing = ispassing; PoolId = pool?.Id; Pool = pool; CreatedOn = DateTimeOffset.Now; }
public AvailableVacationDays(int employee, int year, VacationType type, int value) { EmployeeId = employee; Year = year; VacationTypeId = type.Id; VacationType = type; Value = value; CreatedOn = DateTimeOffset.Now; }
public void Update(string name, int defaultleavedays, bool ispassing, VacationType pool, byte[] version) { Name = name; DefaultLeaveDays = defaultleavedays; IsPassing = ispassing; PoolId = pool?.Id; Pool = pool; RowVersion = version; UpdatedOn = DateTimeOffset.Now; }
public Vacation(int employee, string fullname, DateTimeOffset startdate, DateTimeOffset enddate, VacationType type, VacationState status) { EmployeeId = employee; EmployeeFullName = fullname; StartDate = startdate; EndDate = enddate; VacationTypeId = type.Id; VacationType = type; VacationStatusId = (int)status; CreatedOn = DateTimeOffset.Now; }
public VacationStatistics(int year, VacationType type, int currentyearavailabledays, int previousyearoverduedays, int totalvacationdays, int requested, int accepted, int rejected, int cancelled, int planned) { Year = year; Type = type; CurrentYearAvailableDays = currentyearavailabledays; PreviousYearOverdueDays = previousyearoverduedays; TotalVacationDays = totalvacationdays; Requested = requested; Accepted = accepted; Rejected = rejected; Cancelled = cancelled; Planned = planned; }