Esempio n. 1
0
 /// <summary>
 /// this is the default constructor for the Skill service
 /// </summary>
 /// <param name="unityContainer">object of unity container interface for dependency injection </param>
 public FeatureService(IFeatureRepository featureRepository, ILevelRepository levelRepository, IEmployeeRepository employeeRepository, ILevelService levelService)
 {
     _levelRepository    = levelRepository;
     _featureRepository  = featureRepository;
     _employeeRepository = employeeRepository;
     _levelService       = levelService;
 }
Esempio n. 2
0
 public TypeController(ITypeService tserv, ILevelService lserv, ICourseService cserv, ISectionService sserv)
 {
     this.typeService    = tserv;
     this.levelService   = lserv;
     this.courseService  = cserv;
     this.sectionService = sserv;
 }
 public UserController(IUserService userService, ILevelService levelService, IDormOptiontypeService DOService, IDormSettingService DSSerivce)
 {
     this._UserService  = userService;
     this._LevelService = levelService;
     this._DOService    = DOService;
     this._DSService    = DSSerivce;
 }
Esempio n. 4
0
 public LogController(ILogService logService, ILevelService levelService, ISystemService systemService, IMapper mapper)
 {
     _logService    = logService;
     _levelService  = levelService;
     _systemService = systemService;
     _mapper        = mapper;
 }
 /// <summary>
 /// 经纪人管理初始化
 /// </summary>
 /// <param name="clientInfoService">clientInfoService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="brokerService">brokerService</param>
 /// <param name="partnerlistService">partnerlistService</param>
 /// <param name="recommendagentService">recommendagentService</param>
 /// <param name="roleService">roleService</param>
 /// <param name="MessageService">MessageService</param>
 /// <param name="userService">userService</param>
 public BrokerInfoController(IClientInfoService clientInfoService,
     IWorkContext workContext,
     IBrokerService brokerService,
     IPartnerListService partnerlistService,
     IRecommendAgentService recommendagentService,
     IRoleService roleService,
     IMessageDetailService MessageService,
     IUserService userService,
     IBrokeAccountService brokerAccountService,
     IEventOrderService eventOrderService,
     IInviteCodeService inviteCodeService,
     ILevelService levelService,
     IAgentBillService agentBillService,
     IEventService eventService
     )
 {
     _clientInfoService = clientInfoService;
     _workContext = workContext;
     _brokerService = brokerService;
     _partnerlistService = partnerlistService;
     _recommendagentService = recommendagentService;
     _roleService = roleService;
     _MessageService = MessageService;
     _userService = userService;
     _brokerAccountService = brokerAccountService;
     _eventOrderService = eventOrderService;
     _inviteCodeService = inviteCodeService;
     _levelService = levelService;
     _agentBillService = agentBillService;
     _eventService = eventService;
 }
Esempio n. 6
0
 public LevelController(ILevelService levelService,
                        IDataProtectionProvider dataProtectionProvider,
                        DataProtecionPurposeStrings dataProtecionPurposeStrings)
 {
     this.levelService = levelService;
     protector         = dataProtectionProvider.CreateProtector(dataProtecionPurposeStrings.EmployeeIdRouteValue);
 }
 public UserEmployeeController()
 {
     _employeeService             = new EmployeeService();
     _officeTypeServices          = new OfficeServices();
     _departmentServices          = new DepartmentService();
     _designationServices         = new DesignationService();
     _leaveRuleServices           = new LeaveRuleService();
     _levelServices               = new LevelService();
     _sectionServices             = new SectionService();
     _employeeService             = new EmployeeService();
     _jobTypeservices             = new JobTypeService();
     _rankServices                = new RankService();
     _shiftService                = new ShiftService();
     _serviceEventService         = new ServiceEventGroupService();
     _groupServices               = new GroupService();
     _moduleService               = new ModuleService();
     _bgGroupService              = new BusinessGroupService();
     _ethService                  = new EthnicityService();
     _religionService             = new ReligionService();
     _employeeVisitService        = new EmployeeVisitService();
     _countryService              = new CountryService();
     _rolesService                = new RolesService();
     _empPrizeService             = new EmployeePrizeService();
     _jobHistoryService           = new JobHistoryService();
     _officeService               = new OfficeServices();
     _remoteService               = new RemoteAreaService();
     _employeeTrainingService     = new EmployeeTrainingService();
     _serviceEventSubGroupService = new ServiceEventSubGroupService();
     _empEducationService         = new EmpEducationService();
     _empFamilyService            = new EmpFamilyService();
     _educationLevel              = new EducationLevelService();
 }
Esempio n. 8
0
 public MemberController(IMemberService memberService, IUserService userService, IRoleService roleService, ILevelService levelService)
 {
     _memberService = memberService;
     _userService   = userService;
     _roleService   = roleService;
     _levelService  = levelService;
 }
Esempio n. 9
0
 public AdminController
 (
     ISteamService steamService,
     IPricingServiceFactory pricingServiceFactory,
     ISettingsService settingsService,
     ILevelService levelService,
     IRepoServiceFactory repoServiceFactory,
     IStaffService staffService,
     IChatService chatService,
     ITicketService ticketService,
     IGrpcService grpcService,
     IItemTransferService itemTransferService,
     IUserService userService
 )
 {
     _steamService          = steamService;
     _pricingServiceFactory = pricingServiceFactory;
     _settingsService       = settingsService;
     _levelService          = levelService;
     _repoServiceFactory    = repoServiceFactory;
     _staffService          = staffService;
     _chatService           = chatService;
     _ticketService         = ticketService;
     _grpcService           = grpcService;
     _itemTransferService   = itemTransferService;
     _userService           = userService;
 }
Esempio n. 10
0
 /// <summary>
 /// 经纪人管理初始化
 /// </summary>
 /// <param name="clientInfoService">clientInfoService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="brokerService">brokerService</param>
 /// <param name="partnerlistService">partnerlistService</param>
 /// <param name="recommendagentService">recommendagentService</param>
 /// <param name="roleService">roleService</param>
 /// <param name="MessageService">MessageService</param>
 /// <param name="userService">userService</param>
 public BrokerInfoController(IClientInfoService clientInfoService,
                             IWorkContext workContext,
                             IBrokerService brokerService,
                             IPartnerListService partnerlistService,
                             IRecommendAgentService recommendagentService,
                             IRoleService roleService,
                             IMessageDetailService MessageService,
                             IUserService userService,
                             IBrokeAccountService brokerAccountService,
                             IEventOrderService eventOrderService,
                             IInviteCodeService inviteCodeService,
                             ILevelService levelService,
                             IAgentBillService agentBillService,
                             IEventService eventService
                             )
 {
     _clientInfoService     = clientInfoService;
     _workContext           = workContext;
     _brokerService         = brokerService;
     _partnerlistService    = partnerlistService;
     _recommendagentService = recommendagentService;
     _roleService           = roleService;
     _MessageService        = MessageService;
     _userService           = userService;
     _brokerAccountService  = brokerAccountService;
     _eventOrderService     = eventOrderService;
     _inviteCodeService     = inviteCodeService;
     _levelService          = levelService;
     _agentBillService      = agentBillService;
     _eventService          = eventService;
 }
Esempio n. 11
0
        public MemberController(IMemberService memberService, IUserService userService, IRoleService roleService, ILevelService levelService)
		{
			_memberService = memberService;
            _userService = userService;
            _roleService = roleService;
            _levelService = levelService;
        }
Esempio n. 12
0
        public LeaveTypeController()
        {
            _departmentServices              = new DepartmentService();
            _designationServices             = new DesignationService();
            _moduleService                   = new ModuleService();
            _officeService                   = new OfficeServices();
            _bgService                       = new BusinessGroupService();
            _leaveTypeService                = new LeaveTypeService();
            _leaveRuleService                = new LeaveRuleService();
            _leaveRuleDetailService          = new LeaveRuleDetailService();
            _levelService                    = new LevelService();
            _darbandiService                 = new DarbandiService();
            _officeTypeService               = new OfficeTypeService();
            _rankService                     = new RankService();
            _rolesService                    = new RolesService();
            _roleAccessService               = new RolesAccessService();
            _leaveYearService                = new LeaveYearService();
            _sectionService                  = new SectionService();
            _shifService                     = new ShiftService();
            _shiftDayService                 = new ShiftDayService();
            _ethnicityService                = new EthnicityService();
            _jobTypeService                  = new JobTypeService();
            _educationLevelService           = new EducationLevelService();
            _rolesBusinessGroupAccessService = new RolesBusinessGroupAccessService();

            _fiscalService = new FiscalService();
        }
Esempio n. 13
0
    public static void RegisterService(IService service)
    {
        if (service is IInputService)
        {
            InputService = service as IInputService;
        }

        if (service is IUIService)
        {
            UIService = service as IUIService;
        }

        if (service is ILevelService)
        {
            LevelService = service as ILevelService;
        }

        if (service is IDataService)
        {
            DataService = service as IDataService;
        }

        if (service is IPlayerService)
        {
            PlayerService = service as IPlayerService;
        }

        Services.Add(service);
        service.InitService();
    }
Esempio n. 14
0
 public FightService(
     IHeroService heroService,
     IHealthService healthService,
     IResourcePouchService resourcePouchService,
     IChronometerService chronometerService,
     ILevelService levelService,
     IStatisticsService statisticsService,
     IMonsterService monsterService,
     INotificationService notificationService,
     IEquipmentService equipmentService,
     IAmuletBagService amuletBagService,
     FarmHeroesDbContext context,
     IMapper mapper)
 {
     this.heroService          = heroService;
     this.healthService        = healthService;
     this.resourcePouchService = resourcePouchService;
     this.chronometerService   = chronometerService;
     this.levelService         = levelService;
     this.statisticsService    = statisticsService;
     this.monsterService       = monsterService;
     this.notificationService  = notificationService;
     this.equipmentService     = equipmentService;
     this.amuletBagService     = amuletBagService;
     this.context = context;
     this.mapper  = mapper;
 }
Esempio n. 15
0
 public LevelController(ILevelService levelProvider,
                        ILevelCategoryService levelCategoryProvider,
                        IMapper mapper)
 {
     _levelProvider         = levelProvider;
     _levelCategoryProvider = levelCategoryProvider;
     _mapper = mapper;
 }
Esempio n. 16
0
 public LevelGroupService(IRepository <LevelGroup> levelGroupRepository, ILevelService levelService, IDbContext dbContext, IResourceManager resourceManager, ILogger logger)
 {
     _levelGroupRepository = levelGroupRepository;
     _levelService         = levelService;
     _dbContext            = dbContext;
     _resourceManager      = resourceManager;
     _logger = logger;
 }
Esempio n. 17
0
 public OCCategoriesController(IOCCategoryService OCCategoryService,
                               ILevelService levelService,
                               ICategoryService categoryService)
 {
     _OCCategoryService = OCCategoryService;
     _levelService      = levelService;
     _categoryService   = categoryService;
 }
Esempio n. 18
0
 public EditLevelView(Pool pool, ILevelService levelService, IViewService viewService, IPathService pathService, IEnemyService enemyService)
     : base("EditorView/Level/EditLevelView")
 {
     this.pool = pool;
     this.levelService = levelService;
     this.viewService = viewService;
     EditLevelView.pathService = pathService;
     EditLevelView.enemyService = enemyService;
 }
Esempio n. 19
0
 public CategoryKPILevelController(ICategoryKPILevelService categoryKPILevelService, ILevelService levelService,
                                   IKPILevelService kPILevelService,
                                   ICategoryService categoryService)
 {
     _categoryKPILevelService = categoryKPILevelService;
     _kPILevelService         = kPILevelService;
     _categoryService         = categoryService;
     _levelService            = levelService;
 }
Esempio n. 20
0
 public InformationController()
 {
     languageServ = new LanguageServiceImpl();
     countryServ  = new CountryServiceImpl();
     levelServ    = new LevelServiceImpl();
     rolServ      = new RolServiceImpl();
     taskServ     = new TaskServiceImpl();
     wishServ     = new WishServiceImpl();
 }
Esempio n. 21
0
 public ShopService(FarmHeroesDbContext context, IMapper mapper, IInventoryService inventoryService, IResourcePouchService resourcePouchService, ILevelService levelService, ITempDataDictionaryFactory tempDataDictionaryFactory, IHttpContextAccessor httpContext)
 {
     this.context                   = context;
     this.mapper                    = mapper;
     this.inventoryService          = inventoryService;
     this.resourcePouchService      = resourcePouchService;
     this.levelService              = levelService;
     this.tempDataDictionaryFactory = tempDataDictionaryFactory;
     this.httpContext               = httpContext;
 }
Esempio n. 22
0
 public PlayerControlController(IUserService userService, IHeroService heroService, ILevelService levelService, IHealthService healthService, IResourcePouchService resourcePouchService, ICharacteristicsService characteristicsService, IChronometerService chronometerService)
 {
     this.userService            = userService;
     this.heroService            = heroService;
     this.levelService           = levelService;
     this.healthService          = healthService;
     this.resourcePouchService   = resourcePouchService;
     this.characteristicsService = characteristicsService;
     this.chronometerService     = chronometerService;
 }
Esempio n. 23
0
        // Start is called before the first frame update
        void Start()
        {
            uiController.SetServiceManager(this);
            playerService = new PlayerService(playerPrefab, bombPrefab, this);
            enemyService  = new EnemyService(enemyPrefab, this);
            levelService  = new LevelService(fixedBlock, breableBlock, enemyService, playerService);
            enemyService.SetLevelService(levelService);

            levelService.GenerateLevel();
        }
Esempio n. 24
0
 public KPIController(IKPIService KPIService,
                      ILevelService levelService,
                      IKPILevelService kpiLevelService,
                      ICategoryService categoryService)
 {
     _KPIService      = KPIService;
     _levelService    = levelService;
     _kpiLevelService = kpiLevelService;
     _categoryService = categoryService;
 }
Esempio n. 25
0
 public EmployeeController(IEmployeeService employeeService,
                           IDepartmentService departmentService,
                           ILevelService levelService,
                           IDataProtectionProvider dataProtectionProvider,
                           DataProtecionPurposeStrings dataProtecionPurposeStrings)
 {
     this.employeeService   = employeeService;
     this.departmentService = departmentService;
     this.levelService      = levelService;
     protector = dataProtectionProvider.CreateProtector(dataProtecionPurposeStrings.EmployeeIdRouteValue);
 }
Esempio n. 26
0
 public TaskController(
     IExerciseService exerciseService,
     ILevelService levelService,
     IQuestionService questionService,
     UserManager <ApplicationUser> userManager)
 {
     _exerciseService = exerciseService;
     _levelService    = levelService;
     _questionService = questionService;
     _userManager     = userManager;
 }
Esempio n. 27
0
 public RecipesController(IRecipeService recipeService, ILikeRepository likeRepository, IMarkService markService,
                          IMapper mapper, IUserRepository userRepository, IMealService mealService, ILevelService levelService)
 {
     this.recipeService  = recipeService;
     this.userRepository = userRepository;
     this.likeRepository = likeRepository;
     this.levelService   = levelService;
     this.mealService    = mealService;
     this.markService    = markService;
     this.mapper         = mapper;
 }
Esempio n. 28
0
        public ErrorOccurrenceController(IMapper mapper, CentralErroContexto contexto,
                                         IErrorOcurrenceService erroService,

                                         ILevelService levelService,
                                         IEnvironmentService environmentService)
        {
            _mapper             = mapper;
            _contexto           = contexto;
            _erroService        = erroService;
            _levelService       = levelService;
            _environmentService = environmentService;
        }
Esempio n. 29
0
        public void Configure(MiNetServer server)
        {
            var logger = new Logger(logLevel: LogLevel.Debug);
            var stats  = new Stats();

            _levelService = new LevelService(server);

            _server = new TcpHost(new IPEndPoint(IPAddress.Any, 19137), logger, stats);
            _server.AddService <ILevelService>(_levelService);
            _server.Open();
            Log.InfoFormat("Dev Tools LevelService Started");
        }
Esempio n. 30
0
 public KpiController(IKpiService service,
                      ILevelService levelService,
                      IRoleGroupService roleGroupService,
                      IPillarService pillarService,
                      IDropdownService dropdownService)
 {
     _kpiService       = service;
     _levelService     = levelService;
     _roleGroupService = roleGroupService;
     _pillarService    = pillarService;
     _dropdownService  = dropdownService;
 }
Esempio n. 31
0
        public PlayerController(PlayerView playerPref, GameObject bombPrefab
                                , Vector2 pos, PlayerService playerService
                                , ILevelService levelService)
        {
            this.levelService  = levelService;
            this.playerService = playerService;
            this.bombPrefab    = bombPrefab;
            GameObject player = Object.Instantiate(playerPref.gameObject, pos, Quaternion.identity);

            playerView = player.GetComponent <PlayerView>();
            playerView.SetController(this);
        }
Esempio n. 32
0
 public FarmService(IHeroService heroService, IResourcePouchService resourcePouchService, IStatisticsService statisticsService, ILevelService levelService, IChronometerService chronometerService, INotificationService notificationService, IAmuletBagService amuletBagService, ITempDataDictionaryFactory tempDataDictionaryFactory, IHttpContextAccessor context)
 {
     this.heroService               = heroService;
     this.resourcePouchService      = resourcePouchService;
     this.statisticsService         = statisticsService;
     this.levelService              = levelService;
     this.chronometerService        = chronometerService;
     this.notificationService       = notificationService;
     this.amuletBagService          = amuletBagService;
     this.tempDataDictionaryFactory = tempDataDictionaryFactory;
     this.context = context;
 }
Esempio n. 33
0
 public KpiController(IKpiService service,
     ILevelService levelService,
     IRoleGroupService roleGroupService,
     IPillarService pillarService,
     IDropdownService dropdownService)
 {
     _kpiService = service;
     _levelService = levelService;
     _roleGroupService = roleGroupService;
     _pillarService = pillarService;
     _dropdownService = dropdownService;
 }
Esempio n. 34
0
 public BattlefieldService(IHeroService heroService, IChronometerService chronometerService, ILevelService levelService, IResourcePouchService resourcePouchService, IStatisticsService statisticsService, INotificationService notificationService, FarmHeroesDbContext dbContext, IMapper mapper, IDailyLimitsService dailyLimitsService, IAmuletBagService amuletBagService)
 {
     this.heroService          = heroService;
     this.chronometerService   = chronometerService;
     this.levelService         = levelService;
     this.resourcePouchService = resourcePouchService;
     this.statisticsService    = statisticsService;
     this.notificationService  = notificationService;
     this.dailyLimitsService   = dailyLimitsService;
     this.amuletBagService     = amuletBagService;
     this.dbContext            = dbContext;
     this.mapper = mapper;
 }
Esempio n. 35
0
 /// <summary>
 /// andmin推荐平台流程处理
 /// </summary>
 /// <param name="brokerRecClientService">brokerRecClientService</param>
 /// <param name="brokerService">brokerService</param>
 /// <param name="userService">userService</param>
 /// <param name="workContext">workContext</param>
 /// <param name="orderService">orderService</param>
 /// <param name="orderDetailService">orderDetailService</param>
 /// <param name="levelService">levelService</param>
 /// <param name="roleService">roleService</param>
 /// <param name="productService">productService</param>
 public AdminRecomController(IBrokerRECClientService brokerRecClientService,
     IBrokerService brokerService,
     IUserService userService,
     IWorkContext workContext,
     IOrderService orderService,
     IOrderDetailService orderDetailService,
     ILevelService levelService,
     IRoleService roleService,
     IProductService productService
     )
 {
     _productService = productService;
     _brokerRecClientService = brokerRecClientService;
     _brokerService = brokerService;
     _userService = userService;
     _workContext = workContext;
     _orderService = orderService;
     _orderDetailService = orderDetailService;
     _levelService = levelService;
     _roleService = roleService;
 }
Esempio n. 36
0
 public UserController(IUserService userService,
     IAuthenticationService authenticationService,
     IWorkContext workContext,
     IBrokerService brokerService,
     IRoleService roleService,
     ILevelService levelService,
     IMessageDetailService MessageService,
     IRecommendAgentService recommendagentService,
     IMemberService memService
     )
 {
     _userService = userService;
     _authenticationService = authenticationService;
     _workContext = workContext;
     _brokerService = brokerService;
     _roleService = roleService;
     _levelService = levelService;
     _MessageService = MessageService;
     _recommendagentService = recommendagentService;
     _memService = memService;
 }
Esempio n. 37
0
 private void createServices()
 {
     timeService = new TimeService();
     eventService = new EventService();
     uiFactoryService = new UIFactoryService();
     wwwService = new FakeWwwService();//controller.GameObject.AddComponent<WwwService>();
     viewService = new ViewService(eventService, uiFactoryService);
     loadService = new LoadService(eventService);
     gameService = new GameService(pool, viewService);
     pathService = new PathService(pool, wwwService, eventService);
     levelService = new LevelService(wwwService, eventService);
     enemyService = new EnemyService(pool, wwwService, eventService);
     bonusService = new BonusService(pool, wwwService, eventService);
     difficultyService = new DifficultyService(pool, wwwService, eventService);
     infoService = new InfoService(viewService, uiFactoryService, eventService);
     settingsService = new SettingsService(pool);
     translationService = new TranslationService(settingsService);
     languageService = new LanguageService(wwwService, eventService);
     analyticsService = new AnalyticsService(settingsService);
     shipService = new ShipService(timeService, eventService);
     gamerService = new GamerService(eventService);
     currencyService = new CurrencyService(eventService, gamerService);
     iapService = new IAPService(eventService);
     adService = new AdService(currencyService);
     shopService = new ShopService(currencyService, eventService, iapService);
     updateables.Add(infoService);
 }
Esempio n. 38
0
 public LevelController(ILevelService levelService)
 {
     _levelService = levelService;
 }
Esempio n. 39
0
        public Form1(IProgramService iProgramService, IScheduleService iScheduleService, ISaleService iSaleService,
            IReportService iReportService, ILevelService iLevelService, ITimeSettingService iTimeSettingService)
        {
            InitializeComponent();
            _iProgramService = iProgramService;
            _iScheduleService = iScheduleService;
            _iSaleService = iSaleService;
            _iReportService = iReportService;
            _iLevelService = iLevelService;
            _iTimeSettingService = iTimeSettingService;
            dateTimePicker1.Format = DateTimePickerFormat.Custom;
            dateTimePicker2.Format = DateTimePickerFormat.Custom;
            dateTimePicker3.Format = DateTimePickerFormat.Custom;
            dateTimePicker4.Format = DateTimePickerFormat.Custom;
            dateTimePicker6.Format = DateTimePickerFormat.Custom;
            dateTimePicker7.Format = DateTimePickerFormat.Custom;
            dateTimePicker1.CustomFormat = "dd-MM-yyyy";
            dateTimePicker1.CustomFormat = "dd-MM-yyyy";
            dateTimePicker2.CustomFormat = "dd-MM-yyyy";
            dateTimePicker3.CustomFormat = "dd-MM-yyyy";
            dateTimePicker4.CustomFormat = "dd-MM-yyyy";
            dateTimePicker6.CustomFormat = "dd-MM-yyyy";
            dateTimePicker7.CustomFormat = "dd-MM-yyyy";

            dateTimePicker5.Format = DateTimePickerFormat.Time;
            dateTimePicker5.ShowUpDown = true;

            var all = _iProgramService.GetAll().ToList();
            start = DateTime.Today;
            end = DateTime.Today;
            reportStart = DateTime.Today;
            reportEnd = DateTime.Today;
            culture = new System.Globalization.CultureInfo("fr-FR", true);
            var levelList = _iLevelService.GetAll().ToList();
            var a = levelList.Where(x => x.Name == "A").OrderByDescending(x=>x.UpdateDate).FirstOrDefault();
            if (a != null && a.Begin.HasValue) {
                textBox4.Text = a.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));
                textBox7.Text = a.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));

                var b = levelList.Where(x => x.Name == "B").OrderByDescending(x => x.UpdateDate).FirstOrDefault();
                textBox5.Text = b.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));
                textBox8.Text = b.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));
                var c = levelList.Where(x => x.Name == "C").OrderByDescending(x => x.UpdateDate).FirstOrDefault();
                textBox6.Text = c.Begin.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));
                textBox9.Text = c.End.Value.ToString("N", CultureInfo.CreateSpecificCulture("en-US"));
            }
            var timesetting = _iTimeSettingService.GetAll().OrderByDescending(x=>x.UpdateDate).FirstOrDefault();
            if (timesetting != null)
            {
                dateTimePicker5.Value = timesetting.time;
            }
            else
            {
                dateTimePicker5.Value = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 6, 0, 0);
            }
            changeTimeGraph();

            ComboboxItem item1 = new ComboboxItem();
            item1.Text = "Quantity";
            item1.Value = 1;
            ComboboxItem item2 = new ComboboxItem();
            item2.Text = "Efficiency";
            item2.Value = 2;
            comboBox1.Items.Add(item1);
            comboBox1.Items.Add(item2);
            comboBox1.SelectedIndex = 0;
            mode = 1;
        }
Esempio n. 40
0
 public RoleGroupController(IRoleGroupService roleService, ILevelService levelService)
 {
     _roleGroupService = roleService;
     _levelService = levelService;
 }