public FareTemplateController(IPermissionService permissionService, IFareTemplateService faretemplateservice, IStateProvinceService stateprovinceservice, ICityService cityservice, IStreetService streetservice)
 {
     _permissionService = permissionService;
     _faretemplateservice = faretemplateservice;
     _stateprovinceservice = stateprovinceservice;
     _cityservice = cityservice;
     _streetservice = streetservice;
 }
 public FareTemplateController(IPermissionService permissionService, IFareTemplateService faretemplateservice, IStateProvinceService stateprovinceservice, ICityService cityservice, IStreetService streetservice)
 {
     _permissionService    = permissionService;
     _faretemplateservice  = faretemplateservice;
     _stateprovinceservice = stateprovinceservice;
     _cityservice          = cityservice;
     _streetservice        = streetservice;
 }
Exemplo n.º 3
0
 public CalculationService(IRateService rateService, IDiscountDocumentService discountDocumentService,
                           IAccountService accountService, IStreetService streetService, ISearchService searchService)
 {
     _rateService             = rateService;
     _discountDocumentService = discountDocumentService;
     _accountService          = accountService;
     _streetService           = streetService;
     _searchService           = searchService;
 }
Exemplo n.º 4
0
 public StreetController(IDistrictService districtService,
                         IProvinceService provinceService,
                         IWardService wardService,
                         IStreetService streetService)
 {
     _districtService = districtService;
     _provinceService = provinceService;
     _wardService     = wardService;
     _streetService   = streetService;
 }
        public StreetController(
            IStreetService IStreetServiceService,

            IUnitOfWork UnitOfWork
            )
        {
            this.iStreetServiceService = IStreetServiceService;

            this.unitOfWork = UnitOfWork;
        }
Exemplo n.º 6
0
 public ExcelDataLoader(IImportService <List <ImportDataRow> > import, IDistrictService districtService, IStreetService streetService, IAccountService accountService,
                        IConfiguration <ExcelConfiguration> configuration, IBrokenRecordsReport brokenRecordsReport)
 {
     _import              = import;
     _districtService     = districtService;
     _streetService       = streetService;
     _accountService      = accountService;
     _configuration       = configuration;
     _brokenRecordsReport = brokenRecordsReport;
 }
Exemplo n.º 7
0
 public AddressService(
     IEfRepository <Address> addressRepo,
     ITownService townService,
     IStreetService streetService,
     ISaveContext context)
 {
     this.addressRepo   = addressRepo;
     this.townService   = townService;
     this.streetService = streetService;
     this.context       = context;
 }
Exemplo n.º 8
0
 public PageService(
     IEnumerable <IElementValidator> validators,
     IPageHelper pageHelper,
     ISessionHelper sessionHelper,
     IAddressService addressService,
     IFileUploadService fileUploadService,
     IStreetService streetService,
     IOrganisationService organisationService,
     IDistributedCacheWrapper distributedCache,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
     IWebHostEnvironment environment,
     ISuccessPageFactory successPageFactory,
     IPageFactory pageFactory,
     IBookingService bookingService,
     ISchemaFactory schemaFactory,
     IIncomingDataHelper incomingDataHelper,
     IActionsWorkflow actionsWorkflow,
     IAddAnotherService addAnotherService,
     IFormAvailabilityService formAvailabilityService,
     ILogger <IPageService> logger,
     IEnumerable <IFileStorageProvider> fileStorageProviders,
     IConfiguration configuration)
 {
     _validators                = validators;
     _pageHelper                = pageHelper;
     _sessionHelper             = sessionHelper;
     _streetService             = streetService;
     _addressService            = addressService;
     _bookingService            = bookingService;
     _organisationService       = organisationService;
     _fileUploadService         = fileUploadService;
     _distributedCache          = distributedCache;
     _schemaFactory             = schemaFactory;
     _successPageContentFactory = successPageFactory;
     _pageContentFactory        = pageFactory;
     _environment               = environment;
     _formAvailabilityService   = formAvailabilityService;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _incomingDataHelper   = incomingDataHelper;
     _actionsWorkflow      = actionsWorkflow;
     _logger               = logger;
     _addAnotherService    = addAnotherService;
     _fileStorageProviders = fileStorageProviders;
     _configuration        = configuration;
 }
 private void CreateServices()
 {
     dealVariantService = _serviceLocator.GetInstance <DealVariantService>();
     districtService    = _serviceLocator.GetInstance <IDistrictService>();
     floorLevelService  = _serviceLocator.GetInstance <IFloorLevelService>();
     layoutService      = _serviceLocator.GetInstance <ILayoutService>();
     materialService    = _serviceLocator.GetInstance <IMaterialService>();
     ownershipService   = _serviceLocator.GetInstance <IOwnershipService>();
     realtorService     = _serviceLocator.GetInstance <IRealtorService>();
     sewageService      = _serviceLocator.GetInstance <ISewageService>();
     streetService      = _serviceLocator.GetInstance <IStreetService>();
     terraceService     = _serviceLocator.GetInstance <ITerraceService>();
     toiletTypeService  = _serviceLocator.GetInstance <IToiletTypeService>();
     waterSupplyService = _serviceLocator.GetInstance <IWaterSupplyService>();
     flatService        = _serviceLocator.GetInstance <IFlatService>();
     houseService       = _serviceLocator.GetInstance <IHouseService>();
     plotService        = _serviceLocator.GetInstance <IPlotService>();
     residenceService   = _serviceLocator.GetInstance <IResidenceService>();
     roomService        = _serviceLocator.GetInstance <IRoomService>();
 }
Exemplo n.º 10
0
 public PageService(
     IEnumerable <IElementValidator> validators,
     IPageHelper pageHelper,
     ISessionHelper sessionHelper,
     IAddressService addressService,
     IFileUploadService fileUploadService,
     IStreetService streetService,
     IOrganisationService organisationService,
     IDistributedCacheWrapper distributedCache,
     IOptions <DistributedCacheExpirationConfiguration> distributedCacheExpirationConfiguration,
     IWebHostEnvironment environment,
     ISuccessPageFactory successPageFactory,
     IPageFactory pageFactory,
     IBookingService bookingService,
     ISchemaFactory schemaFactory,
     IMappingService mappingService,
     IPayService payService,
     IIncomingDataHelper incomingDataHelper,
     IActionsWorkflow actionsWorkflow)
 {
     _validators                = validators;
     _pageHelper                = pageHelper;
     _sessionHelper             = sessionHelper;
     _streetService             = streetService;
     _addressService            = addressService;
     _bookingService            = bookingService;
     _organisationService       = organisationService;
     _fileUploadService         = fileUploadService;
     _distributedCache          = distributedCache;
     _schemaFactory             = schemaFactory;
     _successPageContentFactory = successPageFactory;
     _pageContentFactory        = pageFactory;
     _environment               = environment;
     _distributedCacheExpirationConfiguration = distributedCacheExpirationConfiguration.Value;
     _payService         = payService;
     _mappingService     = mappingService;
     _incomingDataHelper = incomingDataHelper;
     _actionsWorkflow    = actionsWorkflow;
 }
Exemplo n.º 11
0
 public StreetController(IStreetService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
 public StreetsController(IStreetService service)
 {
     this.service = service;
 }
 public StreetViewModel(IStreetService service)
 {
     _DictionaryService = service;
 }
Exemplo n.º 14
0
 public PatientService(IPatientDAL patientDAL, IStreetService streetService)
 {
     this.PatientDAL    = patientDAL;
     this.StreetService = streetService;
 }
 public StreetController()
 {
     validationDictionary = new ModelStateWrapper(ModelState);
     _streetService = new StreetService(validationDictionary);
 }
Exemplo n.º 16
0
 public StreetApiController(ILogger <StreetApiController> logger, IMapper mapper, IStreetService streetService)
 {
     this.Logger        = logger;
     this.StreetService = streetService;
     this.Mapper        = mapper;
 }
        public StreetDictionaryViewModel(IServiceLocator serviceLocator, IStreetService dictionaryService,
                                         IMessageService messageService, IDistrictService districtService)
            : base(serviceLocator, messageService)
        {
            _DictionaryService = dictionaryService;
            _DistrictService   = districtService;
            UpdateState(State.View);
            PropertyChanged += (sender, args) =>
            {
                if (args.PropertyName == PropertySupport.ExtractPropertyName(() => Name) ||
                    args.PropertyName == PropertySupport.ExtractPropertyName(() => District))
                {
                    OkCommand.RaiseCanExecuteChanged();
                    CancelCommand.RaiseCanExecuteChanged();
                }

                if (args.PropertyName == PropertySupport.ExtractPropertyName(() => SelectedDistrict))
                {
                    UpdateCollection();
                }

                if (args.PropertyName == PropertySupport.ExtractPropertyName(() => SelectedStreet))
                {
                    UpdateSelectedStreet();
                }
            };
            _DictionaryService.StartSession();

            AddCommand = new DelegateCommand(() =>
            {
                ClearProperties();
                UpdateState(State.Add);
                ButtonUpdate();
            }, CanAdd);

            ChangeCommand = new DelegateCommand(() =>
            {
                UpdateState(State.Edit);
                ButtonUpdate();
            }, CanEdit);

            OkCommand = new DelegateCommand(() =>
            {
                if (StateEnum == State.Add)
                {
                    var viewModel = CreateNewViewModel(CreateNewModel());
                    var error     = viewModel.Error;
                    if (error == null)
                    {
                        viewModel.SaveToDatabase();
                        UpdateCollection();
                        ClearProperties();
                        UpdateState(State.View);
                    }
                    else
                    {
                        _MessageService.ShowMessage(error, "Ошибка", image: MessageBoxImage.Error);
                    }
                }

                if (StateEnum == State.Edit)
                {
                    SelectedStreet.Name     = Name;
                    SelectedStreet.District = District;
                    var error = SelectedStreet.Error;

                    if (error == null)
                    {
                        SelectedStreet.UpdateModelFromValues();
                        SelectedStreet.SaveToDatabase();
                        UpdateCollection();
                        UpdateState(State.View);
                    }
                    else
                    {
                        SelectedStreet.UpdateValuesFromModel();
                        _MessageService.ShowMessage(error, "Ошибка", image: MessageBoxImage.Error);
                    }
                }

                ButtonUpdate();
            }, CanOk);

            CancelCommand = new DelegateCommand(() =>
            {
                if (StateEnum == State.Add)
                {
                    ClearProperties();
                }

                if (StateEnum == State.Edit)
                {
                    UpdateSelectedStreet();
                }

                UpdateState(State.View);
                ButtonUpdate();
            }, CanCancel);

            SelectAndChangeCommand = new DelegateCommand(() =>
            {
                UpdateSelectedStreet();
                UpdateState(State.Edit);
                ButtonUpdate();
            }, CanSelectAndChange);
        }
Exemplo n.º 18
0
 public StreetController(IStreetService streetService)
 {
     _streetService = streetService;
 }
Exemplo n.º 19
0
 public StreetParser(IStreetService streetService)
 {
     _streetService = streetService;
     _cityToStreets = new Lazy <IDictionary <string, List <StreetToCompare> > >(ConvertToDictionary(_streetService.Get()));
 }
 public PatientController(IPatientService patientService, IStreetService streetService)
 {
     PatientService = patientService;
     StreetService  = streetService;
 }