public ChangeJobAssignSheduleCommand(Guid id, IEnumerable <DayPerWeekModel> dayPerWeekList, int repeatsPerWeek, ChangedByRole changedBy, bool isLocalIntervalChanged) : base(id.ToString())
 {
     DayPerWeekList         = dayPerWeekList;
     RepeatsPerWeek         = repeatsPerWeek;
     ChangedBy              = changedBy;
     IsLocalIntervalChanged = isLocalIntervalChanged;
 }
 public JobAssignCopyCommonInfoCommand(Guid id,
                                       int tillYear,
                                       IEnumerable <WeekModel> weekList,
                                       IEnumerable <DayPerWeekModel> dayPerWeekList,
                                       int repeatsPerWeek,
                                       ChangedByRole changedByRole,
                                       List <Responsible> jobResponsibleList) : base(id.ToString())
 {
     TillYear           = tillYear;
     WeekList           = weekList;
     DayPerWeekList     = dayPerWeekList;
     RepeatsPerWeek     = repeatsPerWeek;
     ChangedByRole      = changedByRole;
     JobResponsibleList = jobResponsibleList;
 }
예제 #3
0
        public JobAssignDomain(string id, List <Guid> housingDepartmentIdList, string description, int tillYear, int repeatsPerWeek, RoleType createdByRole,
                               ChangedByRole changedByRole, IEnumerable <WeekModel> weekList, List <UploadFileModel> uploadList, IEnumerable <DayPerWeekModel> dayPerWeekList, List <string> jobIds, bool isGlobal, bool isLocked, List <Responsible> jorResponsibleList)
        {
            Id = id;

            RaiseEvent(new JobAssignCreatedFromGlobalEvent
            {
                HousingDepartmentIdList = housingDepartmentIdList,
                IsEnabled          = true,
                Description        = description,
                TillYear           = tillYear,
                RepeatsPerWeek     = repeatsPerWeek,
                IsLocked           = isLocked,
                CreatedByRole      = createdByRole,
                ChangedByRole      = changedByRole,
                WeekList           = weekList,
                UploadList         = uploadList,
                DayPerWeekList     = dayPerWeekList,
                JobIdList          = jobIds,
                IsGlobal           = isGlobal,
                JobResponsibleList = jorResponsibleList
            });
        }
예제 #4
0
 public SaveDaysPerWeekCommand(Guid id, IEnumerable <DayPerWeekModel> dayPerWeekList, ChangedByRole changedByRole) : base(id.ToString())
 {
     DayPerWeekList = dayPerWeekList;
     ChangedByRole  = changedByRole;
 }
 public ChangeJobAssignWeeksCommand(Guid id, IEnumerable <WeekModel> weekList, ChangedByRole changedByRole, bool isLocalIntervalChanged) : base(id.ToString())
 {
     WeekList               = weekList;
     ChangedByRole          = changedByRole;
     IsLocalIntervalChanged = isLocalIntervalChanged;
 }
예제 #6
0
 public ChangeJobAssignAllWeeksCommand(Guid id, ChangedByRole changedByRole, IEnumerable <WeekModel> weekList) : base(id.ToString())
 {
     WeekList      = weekList;
     ChangedByRole = changedByRole;
 }
 public ChangeJobAssignTillYearCommand(Guid id, int tillYear, ChangedByRole changedByRole, bool isLocalIntervalChanged) : base(id.ToString())
 {
     TillYear               = tillYear;
     ChangedByRole          = changedByRole;
     IsLocalIntervalChanged = isLocalIntervalChanged;
 }
예제 #8
0
 public static JobAssignDomain Create(string id, List <Guid> housingDepartmentIdList, string description, int tillYear, int repeatsPerWeek, RoleType createdByRole,
                                      ChangedByRole changedByRole, IEnumerable <WeekModel> weekList, List <UploadFileModel> uploadList, IEnumerable <DayPerWeekModel> dayPerWeekList, List <string> jobIds, bool isGlobal, bool isLocked, List <Responsible> jobResponsibleList)
 {
     return(new JobAssignDomain(id, housingDepartmentIdList, description, tillYear, repeatsPerWeek,
                                createdByRole, changedByRole, weekList, uploadList, dayPerWeekList, jobIds, isGlobal, isLocked, jobResponsibleList));
 }
예제 #9
0
 public void CopyCommonJobAssignInfo(int tillYear, IEnumerable <WeekModel> weekList,
                                     IEnumerable <DayPerWeekModel> dayPerWeekList, int repeatsPerWeek, ChangedByRole changedByRole)
 {
     RaiseEvent(new CopyCommonJobAssignInfoEvent
     {
         ChangedByRole  = changedByRole,
         DayPerWeekList = dayPerWeekList,
         TillYear       = tillYear,
         RepeatsPerWeek = repeatsPerWeek,
         WeekList       = weekList
     });
 }
예제 #10
0
 public void ChangeJobShedule(IEnumerable <DayPerWeekModel> dayPerWeekList, int repeatsPerWeek, ChangedByRole changedBy, bool isLocalIntervalChanged)
 {
     RaiseEvent(new JobAssignSheduleChangedEvent
     {
         DayPerWeekList         = dayPerWeekList,
         RepeatsPerWeek         = repeatsPerWeek,
         ChangedBy              = changedBy,
         IsLocalIntervalChanged = isLocalIntervalChanged
     });
 }
예제 #11
0
 public void SaveDaysPerWeek(IEnumerable <DayPerWeekModel> dayPerWeekList, ChangedByRole changedByRole)
 {
     RaiseEvent(new JobAssignSaveDaysPerWeekEvent {
         DayPerWeekList = dayPerWeekList, ChangedByRole = changedByRole
     });
 }
예제 #12
0
 public void ChangeAllWeeks(IEnumerable <WeekModel> weeks, ChangedByRole changedByRole)
 {
     RaiseEvent(new JobAssignAllWeeksChangedEvent {
         Weeks = weeks, ChangedByRole = changedByRole
     });
 }
예제 #13
0
 public void ChangeWeeks(IEnumerable <WeekModel> weeks, ChangedByRole changedByRole, bool isLocalIntervalChanged)
 {
     RaiseEvent(new JobAssignWeeksChangedEvent {
         Weeks = weeks, ChangedByRole = changedByRole, IsLocalIntervalChanged = isLocalIntervalChanged
     });
 }
예제 #14
0
 public void ChangeTillYear(int tillYear, ChangedByRole changedByRole, bool isLocalIntervalChanged)
 {
     RaiseEvent(new JobAssignTillYearChangedEvent {
         TillYear = tillYear, ChangedByRole = changedByRole, IsLocalIntervalChanged = isLocalIntervalChanged
     });
 }