public select_time(IBookingDataService bookingDataService, IScheduleDataService scheduleDataService, IMapper mapper, IMasterScheduleDataService masterScheduleDataService)
 {
     _bookingDataService  = bookingDataService;
     _scheduleDataService = scheduleDataService;
     _mapper = mapper;
     _masterScheduleDataService = masterScheduleDataService;
 }
Ejemplo n.º 2
0
        public SchedulePresenter(IScheduleView view, IScheduleDataService scheduleDataService)
            : base(view)
        {
            Guard.WhenArgument(scheduleDataService, "scheduleDataService").IsNull().Throw();

            this.scheduleDataService = scheduleDataService;

            this.View.EventBindStudentScheduleData += this.BindStudentScheduleData;
            this.View.EventBindTeacherScheduleData += this.BindTeacherScheduleData;
        }
        public UpdateScheduleMaster(IMasterScheduleDataService masterScheduleDataService, IScheduleDataService scheduleDataService, IMapper mapper)
        {
            _masterScheduleDataService = masterScheduleDataService;
            _scheduleDataService       = scheduleDataService;
            _mapper = mapper;

            for (int i = 0; i < 10; i++)
            {
                NewIntervalViewModels.Add(new NewIntervalViewModel());
            }
        }
Ejemplo n.º 4
0
        public ScheduleUI(IScheduleDataService scheduleDataService,
                          IAppointmentDataService appointmentDataService)
        {
            _scheduleDataService    = scheduleDataService;
            _appointmentDataService = appointmentDataService;

            int currYear = DateTime.Now.Year;

            Years.Add(currYear.ToString());
            Years.Add((currYear + 1).ToString());

            TimeOfDay.Add("Morning");
            TimeOfDay.Add("Noon");
            TimeOfDay.Add("Afternoon");
            TimeOfDay.Add("No Preference");
        }
        public ManagingSchedulePresenter(
            IManagingScheduleView view,
            IScheduleDataService scheduleService,
            IClassOfStudentsManagementService classOfStudentsManagementService,
            ISubjectManagementService subjectManagementService)
            : base(view)
        {
            Guard.WhenArgument(scheduleService, "scheduleService").IsNull().Throw();
            Guard.WhenArgument(classOfStudentsManagementService, "classOfStudentsManagementService").IsNull().Throw();
            Guard.WhenArgument(subjectManagementService, "subjectManagementService").IsNull().Throw();

            this.scheduleService = scheduleService;
            this.classOfStudentsManagementService = classOfStudentsManagementService;
            this.subjectManagementService         = subjectManagementService;

            this.View.EventBindScheduleData          += this.BindScheduleData;
            this.View.EventBindAllClasses            += this.GetAllClasses;
            this.View.EventBindDaysOfWeek            += this.BindDaysOfWeek;
            this.View.EventBitSubjectForCurrentClass += this.BindSubjectsForSpecificClass;
            this.View.EventAddSubjectToSchedule      += this.AddSubjectToSchedule;
            this.View.EventRemoveSubjectFromSchedule += this.RemoveSubjectFromSchedule;
        }
 public CalendarOverview(IScheduleDataService scheduleDataService, IMapper mapper, IMasterScheduleDataService masterScheduleDataService)
 {
     _scheduleDataService = scheduleDataService;
     _mapper = mapper;
     _masterScheduleDataService = masterScheduleDataService;
 }
Ejemplo n.º 7
0
 public Calendar(IScheduleDataService scheduleDataService)
 {
     _scheduleDataService = scheduleDataService;
 }
Ejemplo n.º 8
0
 public ScheduleOverviewIndexModel(IScheduleDataService scheduleDataService, IMasterScheduleDataService masterScheduleDataService)
 {
     _scheduleDataService       = scheduleDataService;
     _masterScheduleDataService = masterScheduleDataService;
 }
Ejemplo n.º 9
0
 public UpdateSchedule(IScheduleDataService scheduleDataService, IBookingDataService bookingDataService)
 {
     _scheduleDataService = scheduleDataService;
     _bookingDataService  = bookingDataService;
 }
Ejemplo n.º 10
0
 public BookOrder(IUtilBookingDataService utilBookingDataService, IScheduleDataService scheduleDataService, IMasterScheduleDataService masterScheduleDataService)
 {
     _utilBookingDataService    = utilBookingDataService;
     _scheduleDataService       = scheduleDataService;
     _masterScheduleDataService = masterScheduleDataService;
 }
Ejemplo n.º 11
0
 public ReservationService(IReservationDataService reservationDataService, IScheduleDataService scheduleDataService)
 {
     _reservationDataService = reservationDataService;
     _scheduleDataService    = scheduleDataService;
 }
Ejemplo n.º 12
0
 public ScheduleService(IScheduleDataService scheduleDataService, IReservationDataService reservationDataService)
 {
     _scheduleDataService    = scheduleDataService;
     _reservationDataService = reservationDataService;
 }
Ejemplo n.º 13
0
 public CreateNewSchedule(IScheduleDataService scheduleDataService, IMasterScheduleDataService masterScheduleDataService, IMapper mapper)
 {
     _masterScheduleDataService = masterScheduleDataService;
     _mapper             = mapper;
     ScheduleDataService = scheduleDataService;
 }