Ejemplo n.º 1
0
 public EmployeeDay(EmployeeDayStateRecording entity)
     : this()
 {
     EmployeeDayProcessor.AssignDay(entity, this);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 public static EmployeeDayStateRecording CreateRecordingEntity(EmployeeDay day)
 {
     EmployeeDayStateRecording entity = new EmployeeDayStateRecording();
     return AssignToRecording(entity, day);
 }
Ejemplo n.º 4
0
 public static EmployeeDay CreateDay(EmployeeDayStateRecording entity)
 {
     EmployeeDay day = new EmployeeDay();
     return AssignDay(entity, day);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }