Пример #1
0
 public EmployeeDay(EmployeeDayStateRecording entity)
     : this()
 {
     EmployeeDayProcessor.AssignDay(entity, this);
 }
Пример #2
0
 public static bool IsEqual(EmployeeDayStateRecording entity, EmployeeDay day)
 {
     return (entity.EmployeeID == day.EmployeeId) &&
         (entity.Date == day.Date) &&
         (entity.SumOfAddHours == day.CountDailyAdditionalCharges) &&
         (entity.AllreadyPlannedHours == day.CountDailyPlannedWorkingHours) &&
         (entity.WorkingHours == day.CountDailyWorkingHours) &&
         (entity.StoreWorldId == day.StoreWorldId);
 }
Пример #3
0
 public static EmployeeDayStateRecording CreateRecordingEntity(EmployeeDay day)
 {
     EmployeeDayStateRecording entity = new EmployeeDayStateRecording();
     return AssignToRecording(entity, day);
 }
Пример #4
0
 public static EmployeeDay CreateDay(EmployeeDayStateRecording entity)
 {
     EmployeeDay day = new EmployeeDay();
     return AssignDay(entity, day);
 }
Пример #5
0
 public static EmployeeDayStateRecording AssignToRecording(EmployeeDayStateRecording entity, EmployeeDay day)
 {
     //entity.ID = day.ID;
     entity.EmployeeID = day.EmployeeId;
     entity.Date = day.Date;
     entity.SumOfAddHours = day.CountDailyAdditionalCharges;
     entity.AllreadyPlannedHours = day.CountDailyPlannedWorkingHours;
     entity.WorkingHours = day.CountDailyWorkingHours;
     entity.StoreWorldId = day.StoreWorldId;
     return entity;
 }
Пример #6
0
 public static EmployeeDay AssignDay(EmployeeDayStateRecording entity, EmployeeDay day)
 {
     //day.ID = entity.ID;
     day.EmployeeId = entity.EmployeeID;
     day.Date = entity.Date;
     day.CountDailyAdditionalCharges = entity.SumOfAddHours;
     day.CountDailyPlannedWorkingHours = entity.AllreadyPlannedHours;
     day.CountDailyWorkingHours = entity.WorkingHours;
     day.StoreWorldId = entity.StoreWorldId;
     return day;
 }