示例#1
0
 public void UpdatePool(VacationType pool, byte[] version)
 {
     PoolId     = pool?.Id;
     Pool       = pool;
     RowVersion = version;
     UpdatedOn  = DateTimeOffset.Now;
 }
示例#2
0
 public VacationType(string name, int defaultleavedays, bool ispassing, VacationType pool)
 {
     Name             = name;
     DefaultLeaveDays = defaultleavedays;
     IsPassing        = ispassing;
     PoolId           = pool?.Id;
     Pool             = pool;
     CreatedOn        = DateTimeOffset.Now;
 }
示例#3
0
 public AvailableVacationDays(int employee, int year, VacationType type, int value)
 {
     EmployeeId     = employee;
     Year           = year;
     VacationTypeId = type.Id;
     VacationType   = type;
     Value          = value;
     CreatedOn      = DateTimeOffset.Now;
 }
示例#4
0
 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;
 }
示例#5
0
 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;
 }