public TimetableServiceWithEmail(ITimetableService innerTimetableService, IEmailService emailService)
		{
			if (innerTimetableService == null) throw new ArgumentNullException("Inner timetable service");
			if (emailService == null) throw new ArgumentNullException("Email service");
			_innerTimetableService = innerTimetableService;
			_emailService = emailService;
		}
 public LoadtestsController(ITimetableService timetableService)
 {
     if (timetableService == null)
     {
         throw new ArgumentNullException("ITimetableService");
     }
     _timetableService = timetableService;
 }
        public CleanerTimetable(CleanerForm f4, ITimetableService timetableService)
        {
            _timetableService = timetableService;

            _f4 = f4;

            _f4.Load += Form1_Load;

            _dataGridTimetable = _f4.DataGridtimetable;
        }
 public TimetableCommands(
     IContentManager contentManager,
     IMembershipService membershipService,
     ITimetableService TimetableService,
     IMenuService menuService) {
     _contentManager = contentManager;
     _membershipService = membershipService;
     _TimetableService = TimetableService;
     _menuService = menuService;
 }
        public manage_timetablesPresenter(IKernel kernel, Imanage_timetables view, IRepository <Timetable> timetablerepository, ITimetableService timetableservice)
        {
            _kernel = kernel;
            _view   = view;
            _timetablerepository = timetablerepository;
            _timetableservice    = timetableservice;

            _view.Show_goback         += Show_goback;
            _view.Show_edit_timetable += Show_edit_timetable;
            _view.Remove_timetable    += Remove_timetable;
            _view.Add_timetable       += Add_timetable;
        }
Exemple #6
0
 public TimetableServiceWithEmail(ITimetableService innerTimetableService, IEmailService emailService)
 {
     if (innerTimetableService == null)
     {
         throw new ArgumentNullException("Inner timetable service");
     }
     if (emailService == null)
     {
         throw new ArgumentNullException("Email service");
     }
     _innerTimetableService = innerTimetableService;
     _emailService          = emailService;
 }
 public TimetableAppointmentController(
     IOrchardServices services, 
     ITimetableService TimetableService, 
     ITimetableAppointmentService TimetableAppointmentService,
     IFeedManager feedManager,
     IShapeFactory shapeFactory,
     IAuthenticationService authService) {
     _services = services;
     _TimetableService = TimetableService;
     _TimetableAppointmentService = TimetableAppointmentService;
     _feedManager = feedManager;
     _authService = authService;
     T = NullLocalizer.Instance;
     Shape = shapeFactory;
 }
        public TimetableAppointmentPartHandler(ITimetableService TimetableService, ITimetableAppointmentService TimetableAppointmentService, RequestContext requestContext) {
            _TimetableService = TimetableService;
            _TimetableAppointmentService = TimetableAppointmentService;

            OnGetDisplayShape<TimetableAppointmentPart>(SetModelProperties);
            OnGetEditorShape<TimetableAppointmentPart>(SetModelProperties);
            OnUpdateEditorShape<TimetableAppointmentPart>(SetModelProperties);

            OnCreated<TimetableAppointmentPart>((context, part) => UpdateTimetableAppointmentCount(part));
            OnPublished<TimetableAppointmentPart>((context, part) => UpdateTimetableAppointmentCount(part));
            OnUnpublished<TimetableAppointmentPart>((context, part) => UpdateTimetableAppointmentCount(part));
            OnVersioned<TimetableAppointmentPart>((context, part, newVersionPart) => UpdateTimetableAppointmentCount(newVersionPart));
            OnRemoved<TimetableAppointmentPart>((context, part) => UpdateTimetableAppointmentCount(part));

            OnRemoved<TimetablePart>(
                (context, b) =>
                TimetableAppointmentService.Get(context.ContentItem.As<TimetablePart>()).ToList().ForEach(
                    TimetableAppointment => context.ContentManager.Remove(TimetableAppointment.ContentItem)));
        }
Exemple #9
0
        public ScheduleMan(IUnitOfWork unitOfWork, ITimetableService timetableService) : base(unitOfWork)
        {
            this.timetableService = timetableService;

            this.ScheduleBoard = new ScheduleBoard();

            config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <Organization.Models.ClassGroup, ClassGroupSchedule>(); //.ForMember(x => x.TrainingProgram, y => y.Ignore());
                cfg.CreateMap <TrainingProgram.Models.TrainingProgram, TrainingProgramSchedule>();
                cfg.CreateMap <Organization.Models.ClassRoom, ClassRoomSchedule>();
                cfg.CreateMap <TrainingProgram.Models.Course, CourseSchedule>().ForMember(x => x.TrainingProgram, y => y.Ignore());
                cfg.CreateMap <Schedule.Models.Timetable, TimetableModel>();
                cfg.CreateMap <ClassCourse, ClassCourseSchedule>();
                cfg.CreateMap <CourseSection, CourseSectionSchedule>();
                cfg.CreateMap <Account.Models.Teacher, TeacherScheduleModel>();
                cfg.CreateMap <Account.Models.Account, Account.Models.AccountModel>();
                cfg.CreateMap <Account.Models.Profile, Account.Models.ProfileModel>();
                cfg.CreateMap <Application.Models.User, Application.Models.UserView>();
            });
        }
 public TimetableController(
     IOrchardServices services, 
     ITimetableService TimetableService,
     ITimetableAppointmentService TimetableAppointmentService,
     ITimetableSlugConstraint TimetableSlugConstraint,
     IFeedManager feedManager, 
     IShapeFactory shapeFactory,
     IWorkContextAccessor workContextAccessor,
     IEnumerable<IHomePageProvider> homePageProviders,
     ISiteService siteService) {
     _services = services;
     _TimetableService = TimetableService;
     _TimetableAppointmentService = TimetableAppointmentService;
     _TimetableSlugConstraint = TimetableSlugConstraint;
     _feedManager = feedManager;
     _workContextAccessor = workContextAccessor;
     _siteService = siteService;
     _routableHomePageProvider = homePageProviders.SingleOrDefault(p => p.GetProviderName() == RoutableHomePageProvider.Name);
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
 }
Exemple #11
0
        public KatinaSchedulingService(IUnitOfWork unitOfWork, ITimetableService timetableService) : base(unitOfWork)
        {
            this.timetableService = timetableService;

            this.ScheduleBoard = new ScheduleBoard();

            config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <Organization.Models.ClassGroup, ClassGroupSchedule>(); //.ForMember(x => x.TrainingProgram, y => y.Ignore());
                cfg.CreateMap <TrainingProgram.Models.TrainingProgram, TrainingProgramSchedule>();
                cfg.CreateMap <Organization.Models.ClassRoom, ClassRoomSchedule>().ForMember(x => x.Courses, y => y.Ignore());;
                cfg.CreateMap <TrainingProgram.Models.Course, CourseSchedule>().ForMember(x => x.TrainingProgram, y => y.Ignore());
                cfg.CreateMap <Schedule.Models.Timetable, TimetableModel>();
                cfg.CreateMap <ClassCourse, ClassCourseSchedule>(); //.ForMember(x => x.ClassRoom, y => y.Ignore()); ;
                cfg.CreateMap <CourseSection, CourseSectionSchedule>().ForMember(x => x.Timetable, y => y.Ignore());
                cfg.CreateMap <Schedule.Models.ScheduleEvent, StoneCastle.Schedule.Models.ScheduleEventModel>().ForMember(x => x.SchedulingTable, y => y.Ignore());
                cfg.CreateMap <Account.Models.Teacher, StoneCastle.Scheduler.Models.TeacherScheduleModel>().ForMember(dest => dest.FullName, opt => opt.MapFrom(src => $"{src.Account.Profile.FirstName} {src.Account.Profile.LastName}"));
                cfg.CreateMap <Account.Models.Account, Account.Models.AccountModel>();
                cfg.CreateMap <Account.Models.Profile, Account.Models.ProfileModel>();
                cfg.CreateMap <Application.Models.User, Application.Models.UserView>();
            });
        }
Exemple #12
0
 public AdminMenu(ITimetableService TimetableService) {
     _TimetableService = TimetableService;
 }
 public TimetableController(ITimetableService timetableService,
                            ILogger <TimetableController> logger)
 {
     _timetableService = timetableService;
     _logger           = logger;
 }
 public TimetableController(IRepository <Timetable> repository, ITimetableService timetableService) : base(repository)
 {
     this.timetableService = timetableService;
 }
		public LoadtestsController(ITimetableService timetableService)
		{
			if (timetableService == null) throw new ArgumentNullException("ITimetableService");
			_timetableService = timetableService;
		}
Exemple #16
0
 public TimetableController(ITimetableService timetableService, IMapper mapper)
 {
     _timetableService = timetableService;
     _mapper           = mapper;
 }
Exemple #17
0
 public WorkerManagerActivity()
 {
     timetableService = MainApplication.Container.Resolve <ITimetableService>();
 }
 public TimetableSlugConstraintUpdator(ITimetableSlugConstraint TimetableSlugConstraint, ITimetableService TimetableService) {
     _TimetableSlugConstraint = TimetableSlugConstraint;
     _TimetableService = TimetableService;
 }
 public TimetableController(ITimetableService serv)
 {
     timetableService = serv;
 }
Exemple #20
0
 public TimetableActivity()
 {
     timetableService = MainApplication.Container.Resolve <ITimetableService>();
 }
Exemple #21
0
 public SubjectService(ApplicationContext context, ITimetableService timetableService)
 {
     Context          = context;
     TimetableService = timetableService;
 }