コード例 #1
0
 public CommonController(
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWebHelper webHelper,
     IDateTimeHelper dateTimeHelper,
     ILanguageService languageService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IPermissionService permissionService,
     ILocalizationService localizationService,
     ISearchTermService searchTermService,
     ISettingService settingService,
     IStoreService storeService,
     CatalogSettings catalogSettings,
     HttpContextBase httpContext,
     IMaintenanceService maintenanceService)
 {
     this._customerService     = customerService;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._dateTimeHelper      = dateTimeHelper;
     this._languageService     = languageService;
     this._workContext         = workContext;
     this._storeContext        = storeContext;
     this._permissionService   = permissionService;
     this._localizationService = localizationService;
     this._searchTermService   = searchTermService;
     this._settingService      = settingService;
     this._storeService        = storeService;
     this._catalogSettings     = catalogSettings;
     this._httpContext         = httpContext;
     this._maintenanceService  = maintenanceService;
 }
コード例 #2
0
 public CommonController(ICommonModelFactory commonModelFactory,
                         ICustomerService customerService,
                         IDateTimeHelper dateTimeHelper,
                         ILanguageService languageService,
                         ILocalizationService localizationService,
                         IMaintenanceService maintenanceService,
                         INopFileProvider fileProvider,
                         IPermissionService permissionService,
                         IShoppingCartService shoppingCartService,
                         IStaticCacheManager cacheManager,
                         IUrlRecordService urlRecordService,
                         IWebHelper webHelper,
                         IWorkContext workContext)
 {
     this._commonModelFactory  = commonModelFactory;
     this._customerService     = customerService;
     this._dateTimeHelper      = dateTimeHelper;
     this._languageService     = languageService;
     this._localizationService = localizationService;
     this._maintenanceService  = maintenanceService;
     this._fileProvider        = fileProvider;
     this._permissionService   = permissionService;
     this._shoppingCartService = shoppingCartService;
     this._cacheManager        = cacheManager;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._workContext         = workContext;
 }
コード例 #3
0
 public SettingController(IAddressService addressService,
                          IUserActivityService userActivityService,
                          IUserService userService,
                          IEncryptionService encryptionService,
                          IFulltextService fulltextService,
                          IGenericAttributeService genericAttributeService,
                          ILocalizedEntityService localizedEntityService,
                          ILocalizationService localizationService,
                          IMaintenanceService maintenanceService,
                          IPermissionService permissionService,
                          IPictureService pictureService,
                          ISettingModelFactory settingModelFactory,
                          ISettingService settingService,
                          IWorkContext workContext,
                          NopConfig config)
 {
     this._addressService          = addressService;
     this._userActivityService     = userActivityService;
     this._userService             = userService;
     this._encryptionService       = encryptionService;
     this._fulltextService         = fulltextService;
     this._genericAttributeService = genericAttributeService;
     this._localizedEntityService  = localizedEntityService;
     this._localizationService     = localizationService;
     this._maintenanceService      = maintenanceService;
     this._permissionService       = permissionService;
     this._pictureService          = pictureService;
     this._settingModelFactory     = settingModelFactory;
     this._settingService          = settingService;
     this._workContext             = workContext;
     this._config = config;
 }
        public DrLabHospitalRegistrationViewModel(IMaintenanceService maintenanceService)
        {
            this.maintenanceService = maintenanceService;


            GetModelItems();
        }
コード例 #5
0
ファイル: HomeService.cs プロジェクト: sap-sh/t
 public HomeService(IMaintenanceService maintenanceService,
 ISystemUpdateService systemUpdateService, IServerService serverService)
 {
     _systemUpdateService = systemUpdateService;
     _maintenanceService = maintenanceService;
     _serverService = serverService;
 }
 public BackgroundDownloaderService(ILogger <BackgroundDownloaderService> logger, IDownloadManagementService downloadManager, IQueueService <DownloadRequestBM> requestQueue, IMaintenanceService maintenanceService)
 {
     this.logger             = logger;
     this.downloadManager    = downloadManager;
     this.requestQueue       = requestQueue;
     this.maintenanceService = maintenanceService;
 }
コード例 #7
0
 public bool ValidUpdateObject(Maintenance maintenance, IItemService _itemService, IItemTypeService _itemTypeService,
                           IUserService _userService, ICustomerService _customerService, IMaintenanceService _maintenanceService)
 {
     maintenance.Errors.Clear();
     VUpdateObject(maintenance, _itemService, _itemTypeService, _userService, _customerService, _maintenanceService);
     return isValid(maintenance);
 }
コード例 #8
0
 public CommonController(//IShoppingCartService shoppingCartService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWebHelper webHelper,
     IDateTimeHelper dateTimeHelper,
     ILanguageService languageService,
     IWorkContext workContext,
     IPermissionService permissionService,
     ILocalizationService localizationService,
     ISearchTermService searchTermService,
     IMaintenanceService maintenanceService,
     IHostingEnvironment hostingEnvironment,
     IStaticCacheManager cacheManager)
 {
     //this._shoppingCartService = shoppingCartService;
     this._customerService     = customerService;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._dateTimeHelper      = dateTimeHelper;
     this._languageService     = languageService;
     this._workContext         = workContext;
     this._permissionService   = permissionService;
     this._localizationService = localizationService;
     this._searchTermService   = searchTermService;
     this._maintenanceService  = maintenanceService;
     this._hostingEnvironment  = hostingEnvironment;
     this._cacheManager        = cacheManager;
 }
コード例 #9
0
 public CommonController(ICommonModelFactory commonModelFactory,
                         ICustomerService customerService,
                         INopDataProvider dataProvider,
                         IDateTimeHelper dateTimeHelper,
                         ILanguageService languageService,
                         ILocalizationService localizationService,
                         IMaintenanceService maintenanceService,
                         INopFileProvider fileProvider,
                         INotificationService notificationService,
                         IPermissionService permissionService,
                         IQueuedEmailService queuedEmailService,
                         IShoppingCartService shoppingCartService,
                         IStaticCacheManager staticCacheManager,
                         IUrlRecordService urlRecordService,
                         IWebHelper webHelper,
                         IWorkContext workContext)
 {
     _commonModelFactory  = commonModelFactory;
     _customerService     = customerService;
     _dataProvider        = dataProvider;
     _dateTimeHelper      = dateTimeHelper;
     _languageService     = languageService;
     _localizationService = localizationService;
     _maintenanceService  = maintenanceService;
     _fileProvider        = fileProvider;
     _notificationService = notificationService;
     _permissionService   = permissionService;
     _queuedEmailService  = queuedEmailService;
     _shoppingCartService = shoppingCartService;
     _staticCacheManager  = staticCacheManager;
     _urlRecordService    = urlRecordService;
     _webHelper           = webHelper;
     _workContext         = workContext;
 }
コード例 #10
0
 public ItemType VDeleteObject(ItemType itemType, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(itemType, _maintenanceService);
     if (itemType.Errors.Any()) { return itemType; }
     VHasItem(itemType, _itemService);
     return itemType;
 }
コード例 #11
0
 public SettingController(ISettingService settingService,
                          IPictureService pictureService,
                          ILocalizationService localizationService,
                          IDateTimeHelper dateTimeHelper,
                          IEncryptionService encryptionService,
                          IThemeProvider themeProvider,
                          ICustomerService customerService,
                          ICustomerActivityService customerActivityService,
                          IPermissionService permissionService,
                          IFulltextService fulltextService,
                          IMaintenanceService maintenanceService,
                          IWorkContext workContext,
                          IGenericAttributeService genericAttributeService,
                          ILanguageService languageService,
                          ILocalizedEntityService localizedEntityService, ICategoryService categoryService)
 {
     _settingService          = settingService;
     _pictureService          = pictureService;
     _localizationService     = localizationService;
     _dateTimeHelper          = dateTimeHelper;
     _encryptionService       = encryptionService;
     _themeProvider           = themeProvider;
     _customerService         = customerService;
     _customerActivityService = customerActivityService;
     _permissionService       = permissionService;
     _fulltextService         = fulltextService;
     _maintenanceService      = maintenanceService;
     _workContext             = workContext;
     _genericAttributeService = genericAttributeService;
     _languageService         = languageService;
     _localizedEntityService  = localizedEntityService;
     _categoryService         = categoryService;
 }
コード例 #12
0
 public MaintenanceController(
     IMaintenanceService maintenanceService,
     IPredefinedTextTemplateService predefinedTextTemplateService)
 {
     _maintenanceService            = maintenanceService;
     _predefinedTextTemplateService = predefinedTextTemplateService;
 }
コード例 #13
0
 public SettingController(ISettingService settingService,
     ICountryService countryService, IStateProvinceService stateProvinceService,
     IAddressService addressService, ITaxCategoryService taxCategoryService,
     ICurrencyService currencyService, IPictureService pictureService, 
     ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
     IOrderService orderService, IEncryptionService encryptionService,
     IThemeProvider themeProvider, ICustomerService customerService, 
     ICustomerActivityService customerActivityService, IPermissionService permissionService,
     IWebHelper webHelper, IFulltextService fulltextService, 
     IMaintenanceService maintenanceService, IStoreService storeService,
     IWorkContext workContext, IGenericAttributeService genericAttributeService)
 {
     this._settingService = settingService;
     this._countryService = countryService;
     this._stateProvinceService = stateProvinceService;
     this._addressService = addressService;
     this._taxCategoryService = taxCategoryService;
     this._currencyService = currencyService;
     this._pictureService = pictureService;
     this._localizationService = localizationService;
     this._dateTimeHelper = dateTimeHelper;
     this._orderService = orderService;
     this._encryptionService = encryptionService;
     this._themeProvider = themeProvider;
     this._customerService = customerService;
     this._customerActivityService = customerActivityService;
     this._permissionService = permissionService;
     this._webHelper = webHelper;
     this._fulltextService = fulltextService;
     this._maintenanceService = maintenanceService;
     this._storeService = storeService;
     this._workContext = workContext;
     this._genericAttributeService = genericAttributeService;
 }
コード例 #14
0
 public ItemModel()
 {
     itemService = new ItemService(new ItemRepository(), new ItemValidator());
     customerService = new CustomerService(new CustomerRepository(), new CustomerValidator());
     itemTypeService = new ItemTypeService(new ItemTypeRepository(), new ItemTypeValidator());
     maintenanceService = new MaintenanceService(new MaintenanceRepository(), new MaintenanceValidator());
 }
コード例 #15
0
 public Customer VDeleteObject(Customer customer, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(customer, _maintenanceService);
     if (customer.Errors.Any()) { return customer; }
     VHasItem(customer, _itemService);
     return customer;
 }
コード例 #16
0
 public SettingModelFactory(IAddressAttributeModelFactory addressAttributeModelFactory,
                            IAddressService addressService,
                            IBaseAdminModelFactory baseAdminModelFactory,
                            IUserAttributeModelFactory userAttributeModelFactory,
                            IDateTimeHelper dateTimeHelper,
                            IFulltextService fulltextService,
                            ILocalizedModelFactory localizedModelFactory,
                            IGenericAttributeService genericAttributeService,
                            ILocalizationService localizationService,
                            IMaintenanceService maintenanceService,
                            IPictureService pictureService,
                            ISettingService settingService,
                            IThemeProvider themeProvider,
                            IWorkContext workContext)
 {
     this._addressAttributeModelFactory = addressAttributeModelFactory;
     this._addressService            = addressService;
     this._baseAdminModelFactory     = baseAdminModelFactory;
     this._userAttributeModelFactory = userAttributeModelFactory;
     this._dateTimeHelper            = dateTimeHelper;
     this._fulltextService           = fulltextService;
     this._localizedModelFactory     = localizedModelFactory;
     this._genericAttributeService   = genericAttributeService;
     this._localizationService       = localizationService;
     this._maintenanceService        = maintenanceService;
     this._pictureService            = pictureService;
     this._settingService            = settingService;
     this._themeProvider             = themeProvider;
     this._workContext = workContext;
 }
コード例 #17
0
ファイル: Reports.cs プロジェクト: peccatun/WinForms
 public Reports()
 {
     InitializeComponent();
     logger             = new Logger.Logger();
     maintenanceService = new MaintenanceService();
     con = new OdbcConnection(GlobalConstants.ConnectionsString);
     com = new OdbcCommand(" ", con);
 }
コード例 #18
0
ファイル: HomeController.cs プロジェクト: sap-sh/t
 public HomeController(IMaintenanceService maintenanceService, ISystemUpdateService systemUpdateService, IServerService serverService, IServerDetailService serverDetailService, IHomeService homeService)
 {
     _maintenanceService = maintenanceService;
     _serverService = serverService;
     _serverDetailService = serverDetailService;
     _systemUpdateService = systemUpdateService;
     _homeService = homeService;
 }
コード例 #19
0
 public HomeController(IMapper mapper, IBookService book, ICategoryService category, ITagService tag, IMaintenanceService maintenance)
 {
     Mapper             = mapper;
     BookService        = book;
     CategoryService    = category;
     TagService         = tag;
     MaintenanceService = maintenance;
 }
コード例 #20
0
 public MaintenanceController(UserManager <User> userManager,
                              IMaintenanceService maintenanceService,
                              ILogger <MaintenanceController> logger)
     : base(userManager)
 {
     this._maintenanceService = maintenanceService;
     this._logger             = logger;
 }
コード例 #21
0
 public ItemType VHasMaintenance(ItemType itemType, IMaintenanceService _maintenanceService)
 {
     IList<Maintenance> list = _maintenanceService.GetObjectsByItemTypeId(itemType.Id);
     if (list.Any())
     {
         itemType.Errors.Add("Maintenance", "Tidak boleh ada yang terasosiakan dengan itemType");
     }
     return itemType;
 }
コード例 #22
0
 public DbUser VHasMaintenance(DbUser user, IMaintenanceService _maintenanceService)
 {
     IList<Maintenance> list = _maintenanceService.GetObjectsByUserId(user.Id);
     if (list.Any())
     {
         user.Errors.Add("Maintenance", "Tidak boleh ada yang terasosiakan dengan user");
     }
     return user;
 }
コード例 #23
0
 public Item VHasMaintenance(Item item, IMaintenanceService _maintenanceService)
 {
     IList<Maintenance> maintenances = _maintenanceService.GetObjectsByItemId(item.Id);
     if (maintenances.Any())
     {
         item.Errors.Add("Maintenances", "Tidak boleh terasosiasi dengan maintenance");
     }
     return item;
 }
コード例 #24
0
 public Customer VHasMaintenance(Customer customer, IMaintenanceService _maintenanceService)
 {
     IList<Maintenance> list = _maintenanceService.GetObjectsByCustomerId(customer.Id);
     if (list.Any())
     {
         customer.Errors.Add("Maintenance", "Tidak boleh ada yang terasosiakan dengan customer");
     }
     return customer;
 }
コード例 #25
0
 public MaintenanceController(SignInManager <ExtendedIdentityUser> signInManager, UserManager <ExtendedIdentityUser> userManager,
                              ILogger <AccountController> logger, IQueryService queryService, IMaintenanceService maintenanceService)
 {
     _signInManager      = signInManager;
     _userManager        = userManager;
     _logger             = logger;
     _maintenanceService = maintenanceService;
     _queryService       = queryService;
     _mapper             = this.GetMapper();
 }
コード例 #26
0
 public AccountController(
     IEmailSender emailSender,
     ISmsSender smsSender,
     IAccountService accountService,
     IMaintenanceService maintenanceService)
 {
     _emailSender        = emailSender;
     _smsSender          = smsSender;
     _accountService     = accountService;
     _maintenanceService = maintenanceService;
 }
コード例 #27
0
 public CommonController(IDateTimeHelper dateTimeHelper, HttpContextBase httpContext, IWorkContext workContext, IWebHelper webHelper, IPermissionService permissionService, ILocalizationService localizationService, ILanguageService languageService, IMaintenanceService maintenanceService)
 {
     _dateTimeHelper      = dateTimeHelper;
     _httpContext         = httpContext;
     _workContext         = workContext;
     _webHelper           = webHelper;
     _permissionService   = permissionService;
     _localizationService = localizationService;
     _languageService     = languageService;
     _maintenanceService  = maintenanceService;
 }
コード例 #28
0
 public PatientController(IPatientService patientService,
                          IOtherService otherService,
                          ITestsService testService,
                          IDhlRegistrationService dhlRegistrationService,
                          IMaintenanceService maintenanceService)
 {
     this.patientService         = patientService;
     this.otherService           = otherService;
     this.testService            = testService;
     this.dhlRegistrationService = dhlRegistrationService;
     this.maintenanceService     = maintenanceService;
 }
コード例 #29
0
 public CommonModelFactory(AdminAreaSettings adminAreaSettings,
                           CatalogSettings catalogSettings,
                           CurrencySettings currencySettings,
                           IActionContextAccessor actionContextAccessor,
                           ICurrencyService currencyService,
                           ICustomerService customerService,
                           IDateTimeHelper dateTimeHelper,
                           IExternalAuthenticationService externalAuthenticationService,
                           IGSFileProvider fileProvider,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IMeasureService measureService,
                           IPluginFinder pluginFinder,
                           ISearchTermService searchTermService,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWidgetService widgetService,
                           IWorkContext workContext,
                           MeasureSettings measureSettings,
                           TaxSettings taxSettings)
 {
     this._adminAreaSettings             = adminAreaSettings;
     this._catalogSettings               = catalogSettings;
     this._currencySettings              = currencySettings;
     this._actionContextAccessor         = actionContextAccessor;
     this._currencyService               = currencyService;
     this._customerService               = customerService;
     this._dateTimeHelper                = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._fileProvider        = fileProvider;
     this._httpContextAccessor = httpContextAccessor;
     this._languageService     = languageService;
     this._localizationService = localizationService;
     this._maintenanceService  = maintenanceService;
     this._measureService      = measureService;
     this._pluginFinder        = pluginFinder;
     this._searchTermService   = searchTermService;
     this._storeContext        = storeContext;
     this._storeService        = storeService;
     this._urlHelperFactory    = urlHelperFactory;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._widgetService       = widgetService;
     this._workContext         = workContext;
     this._measureSettings     = measureSettings;
     this._taxSettings         = taxSettings;
 }
コード例 #30
0
 public CommonModelFactory(CatalogSettings catalogSettings,
                           CurrencySettings currencySettings,
                           IActionContextAccessor actionContextAccessor,
                           ICurrencyService currencyService,
                           ICustomerService customerService,
                           IDateTimeHelper dateTimeHelper,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IMeasureService measureService,
                           IOrderService orderService,
                           IPaymentService paymentService,
                           IProductService productService,
                           IReturnRequestService returnRequestService,
                           ISearchTermService searchTermService,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWorkContext workContext,
                           MeasureSettings measureSettings,
                           INopFileProvider fileProvider)
 {
     this._catalogSettings       = catalogSettings;
     this._currencySettings      = currencySettings;
     this._actionContextAccessor = actionContextAccessor;
     this._currencyService       = currencyService;
     this._customerService       = customerService;
     this._dateTimeHelper        = dateTimeHelper;
     this._httpContextAccessor   = httpContextAccessor;
     this._languageService       = languageService;
     this._localizationService   = localizationService;
     this._maintenanceService    = maintenanceService;
     this._measureService        = measureService;
     this._orderService          = orderService;
     this._paymentService        = paymentService;
     this._productService        = productService;
     this._returnRequestService  = returnRequestService;
     this._searchTermService     = searchTermService;
     this._storeContext          = storeContext;
     this._storeService          = storeService;
     this._urlHelperFactory      = urlHelperFactory;
     this._urlRecordService      = urlRecordService;
     this._webHelper             = webHelper;
     this._workContext           = workContext;
     this._measureSettings       = measureSettings;
     this._fileProvider          = fileProvider;
 }
コード例 #31
0
ファイル: CommonController.cs プロジェクト: thophamhuu/APIWB
 public CommonController(ISearchTermService searchTermService, IPdfService pdfService, IMaintenanceService maintenanceService, IGenericAttributeService genericAttributeService,
                         IFulltextService fulltextService, IAddressService addressService, IAddressAttributeService addressAttributeService, IAddressAttributeParser addressAttributeParser,
                         IAddressAttributeFormatter addressAttributeFormatter)
 {
     this._searchTermService         = searchTermService;
     this._pdfService                = pdfService;
     this._maintenanceService        = maintenanceService;
     this._genericAttributeService   = genericAttributeService;
     this._fulltextService           = fulltextService;
     this._addressService            = addressService;
     this._addressAttributeService   = addressAttributeService;
     this._addressAttributeParser    = addressAttributeParser;
     this._addressAttributeFormatter = addressAttributeFormatter;
 }
コード例 #32
0
ファイル: CommonController.cs プロジェクト: lwj4126380/nop
 public CommonController(IPaymentService paymentService,
                         IShippingService shippingService,
                         IShoppingCartService shoppingCartService,
                         ICurrencyService currencyService,
                         IMeasureService measureService,
                         ICustomerService customerService,
                         IUrlRecordService urlRecordService,
                         IWebHelper webHelper,
                         CurrencySettings currencySettings,
                         MeasureSettings measureSettings,
                         IDateTimeHelper dateTimeHelper,
                         ILanguageService languageService,
                         IWorkContext workContext,
                         IStoreContext storeContext,
                         IPermissionService permissionService,
                         ILocalizationService localizationService,
                         ISearchTermService searchTermService,
                         ISettingService settingService,
                         IStoreService storeService,
                         CatalogSettings catalogSettings,
                         HttpContextBase httpContext,
                         IMaintenanceService maintenanceService,
                         IOrderReportService orderReportService)
 {
     this._paymentService      = paymentService;
     this._shippingService     = shippingService;
     this._shoppingCartService = shoppingCartService;
     this._currencyService     = currencyService;
     this._measureService      = measureService;
     this._customerService     = customerService;
     this._urlRecordService    = urlRecordService;
     this._webHelper           = webHelper;
     this._currencySettings    = currencySettings;
     this._measureSettings     = measureSettings;
     this._dateTimeHelper      = dateTimeHelper;
     this._languageService     = languageService;
     this._workContext         = workContext;
     this._storeContext        = storeContext;
     this._permissionService   = permissionService;
     this._localizationService = localizationService;
     this._searchTermService   = searchTermService;
     this._settingService      = settingService;
     this._storeService        = storeService;
     this._catalogSettings     = catalogSettings;
     this._httpContext         = httpContext;
     this._maintenanceService  = maintenanceService;
     this._orderReportService  = orderReportService;
 }
コード例 #33
0
 public MaintenanceAdminController(
     IMaintenanceService maintenanceService,
     IShapeFactory shapeFactory,
     ISiteService siteService,
     IOrchardServices orchardServices,
     IContentManager contentManager,
     INotifier notifier)
 {
     _maintenanceService = maintenanceService;
     _shapeFactory       = shapeFactory;
     _siteService        = siteService;
     _contentManager     = contentManager;
     _orchardServices    = orchardServices;
     T         = NullLocalizer.Instance;
     _notifier = notifier;
 }
コード例 #34
0
 public HomeController(
     IReservationService reservationService,
     IMaintenanceService maintenanceService,
     IReservationRepository reservationRepository,
     IMaintenanceRepository maintenanceRepository,
     ICarRepository carRepository,
     ICustomerRepository customerRepository,
     IServiceTypeRepository serviceTypeRepository)
 {
     this.reservationService    = reservationService;
     this.maintenanceService    = maintenanceService;
     this.reservationRepository = reservationRepository;
     this.maintenanceRepository = maintenanceRepository;
     this.carRepository         = carRepository;
     this.customerRepository    = customerRepository;
     this.serviceTypeRepository = serviceTypeRepository;
 }
コード例 #35
0
 public AddMaintenanceForm()
 {
     InitializeComponent();
     logger              = new Logger.Logger();
     oilService          = new OilService();
     taxService          = new TaxService();
     tiresService        = new TiresService();
     clutchService       = new ClutchService();
     batteryService      = new BatteryService();
     reviewService       = new ReviewService();
     coolantService      = new CoolantService();
     oilFilterService    = new OilFilterService();
     brakeFluidService   = new BrakeFluidService();
     rearBrakesService   = new RearBrakesService();
     frontBrakesService  = new FrontBrakesService();
     maintenanceService  = new MaintenanceService();
     contributionService = new ContributionService();
 }
コード例 #36
0
 public MaintenanceManager(ICardManager cardManager,
                           IPolicyManager policyManager,
                           IApiResourceManager resourceManager,
                           ISaleManager saleManager,
                           IMaintenanceService maintenanceService,
                           ICreditCardManager creditCardManager,
                           ITillCloseManager tillCloseManager,
                           IUtilityService utilityService,
                           ILoginManager loginManager,
                           IFuelService fuelService)
 {
     _cardManager        = cardManager;
     _policyManager      = policyManager;
     _resourceManager    = resourceManager;
     _saleManager        = saleManager;
     _maintenanceService = maintenanceService;
     _creditCardManager  = creditCardManager;
     _tillCloseManager   = tillCloseManager;
     _utilityService     = utilityService;
     _loginManager       = loginManager;
     _fuelService        = fuelService;
 }
コード例 #37
0
 public CommonModelFactory(AdminAreaSettings adminAreaSettings,
                           IActionContextAccessor actionContextAccessor,
                           IUserService userService,
                           IDateTimeHelper dateTimeHelper,
                           IExternalAuthenticationService externalAuthenticationService,
                           INopFileProvider fileProvider,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IPluginFinder pluginFinder,
                           ISearchTermService searchTermService,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWidgetService widgetService,
                           IWorkContext workContext)
 {
     this._adminAreaSettings             = adminAreaSettings;
     this._actionContextAccessor         = actionContextAccessor;
     this._userService                   = userService;
     this._dateTimeHelper                = dateTimeHelper;
     this._externalAuthenticationService = externalAuthenticationService;
     this._fileProvider                  = fileProvider;
     this._httpContextAccessor           = httpContextAccessor;
     this._languageService               = languageService;
     this._localizationService           = localizationService;
     this._maintenanceService            = maintenanceService;
     this._pluginFinder                  = pluginFinder;
     this._searchTermService             = searchTermService;
     this._urlHelperFactory              = urlHelperFactory;
     this._urlRecordService              = urlRecordService;
     this._webHelper     = webHelper;
     this._widgetService = widgetService;
     this._workContext   = workContext;
 }
コード例 #38
0
 public MaintenanceController(IMaintenanceService maintenanceService, HealthCheckService healthCheckService)
 {
     _maintenanceService = maintenanceService;
     _healthCheckService = healthCheckService;
 }
コード例 #39
0
 public bool ValidDeleteObject(DbUser user, IMaintenanceService _maintenanceService)
 {
     user.Errors.Clear();
     VDeleteObject(user, _maintenanceService);
     return isValid(user);
 }
コード例 #40
0
 public CommonController(IPaymentService paymentService,
     IShippingService shippingService,
     IShoppingCartService shoppingCartService,
     ICurrencyService currencyService,
     IMeasureService measureService,
     ICustomerService customerService,
     IUrlRecordService urlRecordService,
     IWebHelper webHelper,
     CurrencySettings currencySettings,
     MeasureSettings measureSettings,
     IDateTimeHelper dateTimeHelper,
     ILanguageService languageService,
     IWorkContext workContext,
     IStoreContext storeContext,
     IPermissionService permissionService,
     ILocalizationService localizationService,
     ISearchTermService searchTermService,
     ISettingService settingService,
     IStoreService storeService,
     CatalogSettings catalogSettings,
     HttpContextBase httpContext,
     IMaintenanceService maintenanceService)
 {
     this._paymentService = paymentService;
     this._shippingService = shippingService;
     this._shoppingCartService = shoppingCartService;
     this._currencyService = currencyService;
     this._measureService = measureService;
     this._customerService = customerService;
     this._urlRecordService = urlRecordService;
     this._webHelper = webHelper;
     this._currencySettings = currencySettings;
     this._measureSettings = measureSettings;
     this._dateTimeHelper = dateTimeHelper;
     this._languageService = languageService;
     this._workContext = workContext;
     this._storeContext = storeContext;
     this._permissionService = permissionService;
     this._localizationService = localizationService;
     this._searchTermService = searchTermService;
     this._settingService = settingService;
     this._storeService = storeService;
     this._catalogSettings = catalogSettings;
     this._httpContext = httpContext;
     this._maintenanceService = maintenanceService;
 }
コード例 #41
0
 public MaintenancePartDriver(IMaintenanceService maintenance, ShellSettings shellSettings)
 {
     _maintenance   = maintenance;
     _shellSettings = shellSettings;
 }
コード例 #42
0
 public Item VDeleteObject(Item item, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(item, _maintenanceService);
     return item;
 }
コード例 #43
0
 public bool ValidUpdateObject(Item item, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     item.Errors.Clear();
     VUpdateObject(item, _itemService, _maintenanceService);
     return isValid(item);
 }
コード例 #44
0
 public bool ValidDeleteObject(ItemType itemType, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     itemType.Errors.Clear();
     VDeleteObject(itemType, _itemService, _maintenanceService);
     return isValid(itemType);
 }
コード例 #45
0
 public Item UpdateObject(Item item, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     return (item = _validator.ValidUpdateObject(item, _itemService, _maintenanceService) ? _repository.UpdateObject(item) : item);
 }
コード例 #46
0
 public Maintenance VUpdateCustomer(Maintenance maintenance, IMaintenanceService _maintenanceService)
 {
     Maintenance databasemaintenance = _maintenanceService.GetObjectById(maintenance.Id);
     if (maintenance.CustomerId != databasemaintenance.CustomerId)
     {
         maintenance.Errors.Add("CustomerId", "Tidak boleh diubah");
     }
     return maintenance;
 }
コード例 #47
0
 public DbUser SoftDeleteObject(DbUser user, IMaintenanceService _maintenanceService)
 {
     return (user = _validator.ValidDeleteObject(user, _maintenanceService) ? _repository.SoftDeleteObject(user) : user);
 }
コード例 #48
0
 public Maintenance VUpdateObject(Maintenance maintenance, IItemService _itemService, IItemTypeService _itemTypeService,
                           IUserService _userService, ICustomerService _customerService, IMaintenanceService _maintenanceService)
 {
     VNotFinished(maintenance);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasItem(maintenance, _itemService, _customerService);
     if (maintenance.Errors.Any()) { return maintenance; }
     VUpdateCustomer(maintenance, _maintenanceService);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasItemType(maintenance, _itemService, _itemTypeService);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasUser(maintenance, _userService);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasRequestDate(maintenance);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasComplaint(maintenance);
     if (maintenance.Errors.Any()) { return maintenance; }
     VHasCase(maintenance);
     return maintenance;
 }
コード例 #49
0
        public SettingController(ISettingService settingService,
            ICountryService countryService, IStateProvinceService stateProvinceService,
            IAddressService addressService, ITaxCategoryService taxCategoryService,
            ICurrencyService currencyService, IPictureService pictureService, 
            ILocalizationService localizationService, IDateTimeHelper dateTimeHelper,
            IOrderService orderService, IEncryptionService encryptionService,
            IThemeProvider themeProvider, ICustomerService customerService, 
            ICustomerActivityService customerActivityService, IPermissionService permissionService,
            IWebHelper webHelper, IFulltextService fulltextService, 
            IMaintenanceService maintenanceService, BlogSettings blogSettings,
            ForumSettings forumSettings, NewsSettings newsSettings,
            ShippingSettings shippingSettings, TaxSettings taxSettings,
            CatalogSettings catalogSettings, RewardPointsSettings rewardPointsSettings,
            CurrencySettings currencySettings, OrderSettings orderSettings,
            ShoppingCartSettings shoppingCartSettings, MediaSettings mediaSettings,
            CustomerSettings customerSettings, AddressSettings addressSettings,
            DateTimeSettings dateTimeSettings, StoreInformationSettings storeInformationSettings,
            SeoSettings seoSettings,SecuritySettings securitySettings, PdfSettings pdfSettings,
            LocalizationSettings localizationSettings, AdminAreaSettings adminAreaSettings,
            CaptchaSettings captchaSettings, ExternalAuthenticationSettings externalAuthenticationSettings,
            CommonSettings commonSettings)
        {
            this._settingService = settingService;
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._addressService = addressService;
            this._taxCategoryService = taxCategoryService;
            this._currencyService = currencyService;
            this._pictureService = pictureService;
            this._localizationService = localizationService;
            this._dateTimeHelper = dateTimeHelper;
            this._orderService = orderService;
            this._encryptionService = encryptionService;
            this._themeProvider = themeProvider;
            this._customerService = customerService;
            this._customerActivityService = customerActivityService;
            this._permissionService = permissionService;
            this._webHelper = webHelper;
            this._fulltextService = fulltextService;
            this._maintenanceService = maintenanceService;

            this._blogSettings = blogSettings;
            this._forumSettings = forumSettings;
            this._newsSettings = newsSettings;
            this._shippingSettings = shippingSettings;
            this._taxSettings = taxSettings;
            this._catalogSettings = catalogSettings;
            this._rewardPointsSettings = rewardPointsSettings;
            this._currencySettings = currencySettings;
            this._orderSettings = orderSettings;
            this._shoppingCartSettings = shoppingCartSettings;
            this._mediaSettings = mediaSettings;
            this._customerSettings = customerSettings;
            this._addressSettings = addressSettings;
            this._dateTimeSettings = dateTimeSettings;
            this._storeInformationSettings = storeInformationSettings;
            this._seoSettings = seoSettings;
            this._securitySettings = securitySettings;
            this._pdfSettings = pdfSettings;
            this._localizationSettings = localizationSettings;
            this._adminAreaSettings = adminAreaSettings;
            this._captchaSettings = captchaSettings;
            this._externalAuthenticationSettings = externalAuthenticationSettings;
            this._commonSettings = commonSettings;
        }
コード例 #50
0
 public bool ValidDeleteObject(Item item, IMaintenanceService _maintenanceService)
 {
     item.Errors.Clear();
     VDeleteObject(item, _maintenanceService);
     return isValid(item);
 }
コード例 #51
0
 public Customer SoftDeleteObject(Customer customer, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     return (customer = _validator.ValidDeleteObject(customer, _itemService, _maintenanceService) ? _repository.SoftDeleteObject(customer) : customer);
 }
コード例 #52
0
 public Maintenance UpdateObject(Maintenance maintenance, IItemService _itemService, IItemTypeService _itemTypeService,
                           IUserService _userService, ICustomerService _customerService, IMaintenanceService _maintenanceService)
 {
     return (maintenance = _validator.ValidUpdateObject(maintenance, _itemService, _itemTypeService, _userService, _customerService, _maintenanceService) ? _repository.UpdateObject(maintenance) : maintenance);
 }
コード例 #53
0
 public MaintenanceHostedService(ILogger <MaintenanceHostedService> logger, IMaintenanceService maintenanceService)
 {
     this.logger             = logger;
     this.maintenanceService = maintenanceService;
 }
コード例 #54
0
 public ItemType SoftDeleteObject(ItemType itemType, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     return (itemType = _validator.ValidDeleteObject(itemType, _itemService, _maintenanceService) ? _repository.SoftDeleteObject(itemType) : itemType);
 }
コード例 #55
0
 public Item SoftDeleteObject(Item item, IMaintenanceService _maintenanceService)
 {
     return (item = _validator.ValidDeleteObject(item, _maintenanceService) ? _repository.SoftDeleteObject(item) : item);
 }
コード例 #56
0
        public SettingController(
            ICountryService countryService,
			IStateProvinceService stateProvinceService,
            IAddressService addressService,
			ITaxCategoryService taxCategoryService,
			IPictureService pictureService, 
            IDateTimeHelper dateTimeHelper,
            IOrderService orderService,
			IEncryptionService encryptionService,
            IThemeRegistry themeRegistry,
			ICustomerService customerService, 
            ICustomerActivityService customerActivityService,
            IFulltextService fulltextService,
			IMaintenanceService maintenanceService,
			IGenericAttributeService genericAttributeService,
			ILocalizedEntityService localizedEntityService,
			ILanguageService languageService,
			IDeliveryTimeService deliveryTimesService,
			ICommonServices services)
        {
            this._countryService = countryService;
            this._stateProvinceService = stateProvinceService;
            this._addressService = addressService;
            this._taxCategoryService = taxCategoryService;
            this._pictureService = pictureService;
            this._dateTimeHelper = dateTimeHelper;
            this._orderService = orderService;
            this._encryptionService = encryptionService;
            this._themeRegistry = themeRegistry;
            this._customerService = customerService;
            this._customerActivityService = customerActivityService;
            this._fulltextService = fulltextService;
            this._maintenanceService = maintenanceService;
            this._genericAttributeService = genericAttributeService;
            this._localizedEntityService = localizedEntityService;
            this._languageService = languageService;
            this._deliveryTimesService = deliveryTimesService;
            this._services = services;
        }
コード例 #57
0
ファイル: MaintenanceController.cs プロジェクト: sap-sh/t
 public MaintenanceController(IMaintenanceService maintenanceService)
 {
     _maintenanceService = maintenanceService;
 }
コード例 #58
0
 public DbUser VDeleteObject(DbUser user, IMaintenanceService _maintenanceService)
 {
     VHasMaintenance(user, _maintenanceService);
     return user;
 }
コード例 #59
0
 public CommonModelFactory(AdminAreaSettings adminAreaSettings,
                           CatalogSettings catalogSettings,
                           CurrencySettings currencySettings,
                           IActionContextAccessor actionContextAccessor,
                           IAuthenticationPluginManager authenticationPluginManager,
                           ICurrencyService currencyService,
                           ICustomerService customerService,
                           IDateTimeHelper dateTimeHelper,
                           INopFileProvider fileProvider,
                           IExchangeRatePluginManager exchangeRatePluginManager,
                           IHttpContextAccessor httpContextAccessor,
                           ILanguageService languageService,
                           ILocalizationService localizationService,
                           IMaintenanceService maintenanceService,
                           IMeasureService measureService,
                           IOrderService orderService,
                           IPaymentPluginManager paymentPluginManager,
                           IPickupPluginManager pickupPluginManager,
                           IPluginService pluginService,
                           IProductService productService,
                           IReturnRequestService returnRequestService,
                           ISearchTermService searchTermService,
                           IShippingPluginManager shippingPluginManager,
                           IStaticCacheManager cacheManager,
                           IStoreContext storeContext,
                           IStoreService storeService,
                           ITaxPluginManager taxPluginManager,
                           IUrlHelperFactory urlHelperFactory,
                           IUrlRecordService urlRecordService,
                           IWebHelper webHelper,
                           IWidgetPluginManager widgetPluginManager,
                           IWorkContext workContext,
                           MeasureSettings measureSettings,
                           NopConfig nopConfig,
                           NopHttpClient nopHttpClient,
                           ProxySettings proxySettings)
 {
     _adminAreaSettings           = adminAreaSettings;
     _catalogSettings             = catalogSettings;
     _currencySettings            = currencySettings;
     _actionContextAccessor       = actionContextAccessor;
     _authenticationPluginManager = authenticationPluginManager;
     _currencyService             = currencyService;
     _customerService             = customerService;
     _dateTimeHelper            = dateTimeHelper;
     _exchangeRatePluginManager = exchangeRatePluginManager;
     _httpContextAccessor       = httpContextAccessor;
     _languageService           = languageService;
     _localizationService       = localizationService;
     _maintenanceService        = maintenanceService;
     _measureService            = measureService;
     _fileProvider          = fileProvider;
     _orderService          = orderService;
     _paymentPluginManager  = paymentPluginManager;
     _pickupPluginManager   = pickupPluginManager;
     _pluginService         = pluginService;
     _productService        = productService;
     _returnRequestService  = returnRequestService;
     _searchTermService     = searchTermService;
     _shippingPluginManager = shippingPluginManager;
     _cacheManager          = cacheManager;
     _storeContext          = storeContext;
     _storeService          = storeService;
     _taxPluginManager      = taxPluginManager;
     _urlHelperFactory      = urlHelperFactory;
     _urlRecordService      = urlRecordService;
     _webHelper             = webHelper;
     _widgetPluginManager   = widgetPluginManager;
     _workContext           = workContext;
     _measureSettings       = measureSettings;
     _nopConfig             = nopConfig;
     _nopHttpClient         = nopHttpClient;
     _proxySettings         = proxySettings;
 }
コード例 #60
0
 public bool ValidDeleteObject(Customer customer, IItemService _itemService, IMaintenanceService _maintenanceService)
 {
     customer.Errors.Clear();
     VDeleteObject(customer, _itemService, _maintenanceService);
     return isValid(customer);
 }