示例#1
0
 public DemoQuery(IEmpInfoService empInfoService,
                  ITeacherService teacherService,
                  ILessonPlanService lessonPlanService)
 {
     Field <ListGraphType <EmpInfoType> >("newEmployees", "当日新入职员工", null, context => empInfoService.GetResolvers(context));
     Field <TeacherType>("teacher", "根据HrCode查询老师信息", teacherService.GetArguments(), context => teacherService.GetResolvers(context));
     Field <ListGraphType <LessonPlanType> >("lessonPlan", "查询教案", lessonPlanService.GetArguments(), context => lessonPlanService.GetResolvers(context));
 }
示例#2
0
        public TeacherType(ILessonPlanService lessonPlanService)
        {
            _lessonPlanService = lessonPlanService;

            Name        = "Teacher";
            Description = "老师(用户)";
            Field(t => t.UserId).Description("用户Id");
            Field(t => t.DisplayName, nullable: true).Description("老师姓名");
            Field(t => t.Grade, nullable: true).Description("年级");
            Field(t => t.WorkLocation).Description("工作地点");
            Field <ListGraphType <LessonPlanType> >(nameof(Teacher.LessonPlans), "老师名下的教案", _lessonPlanService.GetArguments(), context => _lessonPlanService.GetResolvers(context));
        }
示例#3
0
 public LessonPlanController(ILessonPlanService lessonPlanService)
 {
     this._lessonPlanService = lessonPlanService;
 }
示例#4
0
 public LessonPlanController(ILessonPlanService lessonplanService)
 {
     _lessonplanService = lessonplanService;
 }
示例#5
0
 public DemoMutation(ILessonPlanService lessonPlanService)
 {
     Field <LessonPlanType>("CreateLessonPlan", "新建教案", lessonPlanService.GetInputArguments(), context => lessonPlanService.GetMutationResolvers(context));
 }
示例#6
0
 public ServiceLocatorSchool(IServiceLocatorMaster serviceLocatorMaster)
     : base(serviceLocatorMaster.Context)
 {
     this.serviceLocatorMaster = serviceLocatorMaster;
     personService             = new PersonService(this);
     addressSerivce            = new AddressService(this);
     gradeLevelService         = new GradeLevelService(this);
     markingPeriodService      = new MarkingPeriodService(this);
     classService                  = new ClassService(this);
     schoolYearService             = new SchoolYearService(this);
     announcementQnAService        = new AnnouncementQnAService(this);
     announcementAttachmentService = new AnnouncementAttachmentService(this);
     phoneService                  = new PhoneService(this);
     privateMessageService         = new PrivateMessageService(this);
     roomService                          = new RoomService(this);
     periodService                        = new PeriodService(this);
     calendarDateService                  = new CalendarDateService(this);
     dayTypeService                       = new DayTypeService(this);
     classPeriodService                   = new ClassPeriodService(this);
     notificationService                  = new NotificationService(this);
     attendanceReasonService              = new AttendanceReasonService(this);
     attendanceService                    = new AttendanceService(this);
     studentParentService                 = new StudentParentService(this);
     studentAnnouncementService           = new StudentAnnouncementService(this);
     classClassAnnouncementTypeService    = new ClassClassAnnouncementTypeService(this);
     infractionService                    = new InfractionService(this);
     applicationSchoolService             = new ApplicationSchoolService(this);
     disciplineService                    = new DisciplineService(this);
     gradingStatisticService              = new GradingStatisticService(this);
     schoolService                        = new SchoolService(this);
     schoolPersonService                  = new SchoolPersonService(this);
     standardService                      = new StandardService(this);
     alphaGradeService                    = new AlphaGradeService(this);
     alternateScoreService                = new AlternateScoreService(this);
     gradingPeriodService                 = new GradingPeriodService(this);
     syncService                          = new SyncService(this);
     gradingStandardService               = new GradingStandardService(this);
     reportService                        = new ReportingService(this);
     gradingCommentService                = new GradingCommentService(this);
     gradingScaleService                  = new GradingScaleService(this);
     classroomOptionService               = new ClassroomOptionService(this);
     personEmailService                   = new PersonEmailService(this);
     schoolDbService                      = new DbService(Context != null ? Context.SchoolConnectionString : null);
     scheduledTimeSlotService             = new ScheduledTimeSlotService(this);
     studentService                       = new StudentService(this);
     staffService                         = new StaffService(this);
     userSchoolService                    = new UserSchoolService(this);
     bellScheduleService                  = new BellScheduleService(this);
     practiceGradeService                 = new PracticeGradeService(this);
     attendanceMonthService               = new AttendanceMonthService(this);
     gradedItemService                    = new GradedItemService(this);
     announcementAttributeService         = new AnnouncementAttributeService(this);
     announcementAssignedAttributeService = new AnnouncementAssignedAttributeService(this);
     contactService                       = new ContactService(this);
     teacherCommentService                = new TeacherCommentService(this);
     dbMaintenanceService                 = new DbMaintenanceService(this);
     groupService                         = new GroupService(this);
     courseTypeService                    = new CourseTypeService(this);
     settingsService                      = new SettingsService(this);
     lpGalleryCategoryService             = new LPGalleryCategoryService(this);
     lessonPlanService                    = new LessonPlanService(this);
     classAnnouncementService             = new ClassAnnouncementService(this);
     adminAnnouncementService             = new AdminAnnouncementService(this);
     announcementFetchService             = new AnnouncementFetchService(this);
     leService                       = new LEService(this);
     attachementService              = new AttachmentService(this);
     personSettingService            = new PersonSettingService(this);
     studentCustomAlertDetailService = new StudentCustomAlertDetailService(this);
     panoramaSettingsService         = new PanoramaSettingsService(this);
     standardizedTestService         = new StandardizedTestService(this);
     supplementalAnnouncementService = new SupplementalAnnouncementService(this);
     ethnicityService                = new EthnicityService(this);
     languageService                 = new LanguageService(this);
     countryService                  = new CountryService(this);
     announcementCommentService      = new AnnouncementCommentService(this);
     appSettingService               = new AppSettingService(this);
     limitedEnglishService           = new LimitedEnglishService(this);
     schoolProgramService            = new SchoolProgramService(this);
     studentSchoolProgramService     = new StudentSchoolProgramService(this);
     mealTypeService                 = new MealTypeService(this);
     lunchCountService               = new LunchCountService(this);
 }