Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FolderService"/> class.
 /// </summary>
 /// <param name="fieldService">The field service.</param>
 /// <param name="folderRepository">The folder repository.</param>
 public FolderService(
     IFieldService fieldService,
     IFolderRepository folderRepository)
 {
     this.folderRepository = folderRepository;
     this.fieldService     = fieldService;
 }
Exemplo n.º 2
0
 public SurvayTypeService(IUnitOfWork unitOfWork, IMapper mapper, IFieldService service)
 {
     _unitOfWork   = unitOfWork;
     _log          = LogManager.GetLogger(typeof(SurvayService));
     _mapper       = mapper;
     _fieldService = service;
 }
 public DynamicFormController(IFormService formService, IUnitOfWork uow, IFieldService fieldService, IValueService valueService)
 {
     _formService  = formService;
     _uow          = uow;
     _fieldService = fieldService;
     _valueService = valueService;
 }
Exemplo n.º 4
0
 public AccountController(IUserService userService, IProfileService profileService, IFieldService fieldService, ISkillService skillService)
 {
     _userService    = userService;
     _profileService = profileService;
     _fieldService   = fieldService;
     _skillService   = skillService;
 }
Exemplo n.º 5
0
 public SubCategoryApp(ISubCategoryService service, IFieldService fieldService, IFieldOptionService fieldOptionService)
     : base(service)
 {
     _service            = service;
     _fieldService       = fieldService;
     _fieldOptionService = fieldOptionService;
 }
 public DynamicFormController(IFormService formService, IUnitOfWork uow, IFieldService fieldService, IValueService valueService)
 {
     _formService = formService;
     _uow = uow;
     _fieldService = fieldService;
     _valueService = valueService;
 }
Exemplo n.º 7
0
 public FormsController(
     IFormFieldService formFieldService,
     IFieldService fieldService)
 {
     _formFieldService = formFieldService;
     _fieldService     = fieldService;
 }
 public ProductEditorCommandController(
     // base dependencies
     IContentDefinitionService contentDefinitionService,
     IProductService productService,
     IReadOnlyArticleService articleService,
     EditorSchemaService editorSchemaService,
     EditorDataService editorDataService,
     EditorPartialContentService editorPartialContentService,
     EditorLocaleService editorLocaleService,
     // self dependencies
     IFieldService fieldService,
     IProductUpdateService productUpdateService,
     CloneBatchAction cloneBatchAction,
     DeleteAction deleteAction,
     PublishAction publishAction)
     : base(contentDefinitionService,
         productService,
         articleService,
         editorSchemaService,
         editorDataService,
         editorPartialContentService,
         editorLocaleService)
 {
     _fieldService = fieldService;
     _productUpdateService = productUpdateService;
     _cloneBatchAction = cloneBatchAction;
     _deleteAction = deleteAction;
     _publishAction = publishAction;
 }
Exemplo n.º 9
0
 public RoleController(
     IAppUserService AppUserService,
     IMenuService MenuService,
     IRoleService RoleService,
     IPermissionService PermissionService,
     IOrganizationService OrganizationService,
     IProductService ProductService,
     IFieldService FieldService,
     IPermissionOperatorService PermissionOperatorService,
     IRequestStateService RequestStateService,
     IStatusService StatusService,
     ICustomerGroupingService CustomerGroupingService,
     IKnowledgeGroupService KnowledgeGroupService,
     ICurrentContext CurrentContext
     , IHttpContextAccessor httpContextAccessor, DataContext _DataContext
     ) : base(httpContextAccessor, _DataContext)
 {
     this.AppUserService            = AppUserService;
     this.MenuService               = MenuService;
     this.RoleService               = RoleService;
     this.PermissionService         = PermissionService;
     this.OrganizationService       = OrganizationService;
     this.ProductService            = ProductService;
     this.FieldService              = FieldService;
     this.StatusService             = StatusService;
     this.PermissionOperatorService = PermissionOperatorService;
     this.RequestStateService       = RequestStateService;
     this.CustomerGroupingService   = CustomerGroupingService;
     this.KnowledgeGroupService     = KnowledgeGroupService;
     this.CurrentContext            = CurrentContext;
 }
Exemplo n.º 10
0
 public MarketingCloneAction(CloneBatchAction cloneService, IArticleService articleService, ISettingsService settingsService, IFieldService fieldService)
 {
     _cloneService    = cloneService;
     _articleService  = articleService;
     _settingsService = settingsService;
     _fieldService    = fieldService;
 }
Exemplo n.º 11
0
 public PestDetectedHandler(IRecommendationService recommendationService, IFieldService fieldService, IMessageService messageService, IPestService pestService)
 {
     _recommendationService = recommendationService;
     _fieldService          = fieldService;
     _messageService        = messageService;
     _pestService           = pestService;
 }
Exemplo n.º 12
0
        public void SetUp()
        {
            moq = new MockRepository(MockBehavior.Strict);
            mockShapeService = moq.Create <IShapeService>();

            sut = new FieldService(mockShapeService.Object);
        }
Exemplo n.º 13
0
 public FieldController(IFieldService fieldService, IMapper mapper, IImageService imageService, IRabbitMqBus bus)
 {
     _fieldService = fieldService;
     _mapper       = mapper;
     _imageService = imageService;
     _bus          = bus;
 }
Exemplo n.º 14
0
 public LandController(ILandService landService, IFieldService fieldService, IHttpContextAccessor httpContextAccessor)
 {
     _landService         = landService;
     _fieldService        = fieldService;
     _httpContextAccessor = httpContextAccessor;
     userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
 }
Exemplo n.º 15
0
        public void BindServiceCalls(string strStart, string strEnd)
        {
            DataTable dtCurrentServiceCalls = new DataTable();

            try
            {
                IFieldService objCashDesk = FieldServiceBusinessObject.CreateInstance();

                lstCurrentCalls.DataContext = null;
                dtCurrentServiceCalls       = objCashDesk.GetCurrentServiceCalls(SiteCode, strStart, strEnd);

                if (dtCurrentServiceCalls.Rows.Count > 0)
                {
                    //lstCurrentCalls.Visibility = Visibility.Visible;
                    lstCurrentCalls.DataContext = dtCurrentServiceCalls.DefaultView;
                }
                else
                {
                    lstCurrentCalls.DataContext = null;
                    MessageBox.ShowBox("MessageID62");
                    //lstCurrentCalls.Visibility = Visibility.Hidden;
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
                MessageBox.ShowBox("MessageID63");
            }
            finally
            {
                dtCurrentServiceCalls.Dispose();
            }
        }
Exemplo n.º 16
0
 public FieldsController(INotify notify,
                         IMapper mapper,
                         IFieldService fieldService,
                         IUser user) : base(notify, user)
 {
     _mapper       = mapper;
     _fieldService = fieldService;
 }
 public KnowledgeController(IFieldService fieldService, ISkillService skillService,
                            IRatingService ratingService, IUserService userService)
 {
     _fieldService  = fieldService;
     _skillService  = skillService;
     _ratingService = ratingService;
     _userService   = userService;
 }
Exemplo n.º 18
0
 public Context(IFieldService fieldService, IContentService contentService, bool treatClassifiersAsBackwardFields)
 {
     this.treatClassifiersAsBackwardFields = treatClassifiersAsBackwardFields;
     this.fieldService   = fieldService;
     this.contentService = contentService;
     cache   = new Dictionary <string, object>();
     visited = new List <Content>();
 }
Exemplo n.º 19
0
 public RestAPIService(CustomerAPIOptions customerAPIOptions,
                       IHttpContextAccessor session,
                       IFieldService fieldService)
 {
     _customerAPIOptions = customerAPIOptions;
     _session            = session;
     _fieldService       = fieldService;
 }
Exemplo n.º 20
0
 public PhaseController(IUserService userService, IFieldService fieldService, IPhaseEmployeeService phaseEmployeeService, IPhaseService phaseService, IProcessService processService)
 {
     this.userService          = userService;
     this.fieldService         = fieldService;
     this.phaseService         = phaseService;
     this.processService       = processService;
     this.phaseEmployeeService = phaseEmployeeService;
 }
Exemplo n.º 21
0
 public FieldController(IFieldService fieldService, ILandService landService, IHttpContextAccessor htppContextAccessor,
                        IAgriculturalClassService agriculturalClassService)
 {
     _fieldService             = fieldService;
     _landService              = landService;
     _agriculturalClassService = agriculturalClassService;
     _httpContextAccessor      = htppContextAccessor;
     userId = _httpContextAccessor.HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
 }
Exemplo n.º 22
0
 public FormPluginService(
     IFieldService fieldService,
     IContentService contentService,
     UmbracoHelper umbracoHelper)
 {
     this.fieldService   = fieldService;
     this.contentService = contentService;
     this.umbracoHelper  = umbracoHelper;
 }
Exemplo n.º 23
0
 public NotificationController(IDocumentAssigneeIntermediateService idais,
                               UserManager <ApplicationUser> um,
                               IFieldService ifs,
                               ISubmittedDocumentService isds)
 {
     _SubmittedDocService = isds;
     _UserManager         = um;
     _FieldService        = ifs;
     _DocAssigneeService  = idais;
 }
Exemplo n.º 24
0
        public void Configure(IContainer container)
        {
            IFormService  formService  = container.GetInstance <IFormService>();
            IFieldService fieldService = container.GetInstance <IFieldService>();

            Mapper.CreateMap <LeBlenderValue, FormPicker>()
            .ForMember(dest => dest.Form, opt => { opt.MapFrom(source => formService.GetByNodeId(fieldService.GetLeBlenderValueFieldValue(source, "form") != null ? Convert.ToInt32(fieldService.GetLeBlenderValueFieldValue(source, "form")) : 0)); })
            .ForMember(dest => dest.FormHeader, opt => { opt.MapFrom(source => fieldService.GetLeBlenderValueFieldValue(source, "formContent")); })
            ;
        }
Exemplo n.º 25
0
 public ProjetoUsuarioAtividadeService(IWorkItemCoreWereRepository coreWereRepository,
                                       IWorkItemCustomLatestRepository customLatestRepository,
                                       IWorkItemService workItemService, IConstantService constantService, IFieldService fieldService)
 {
     _coreWereRepository     = coreWereRepository;
     _customLatestRepository = customLatestRepository;
     _workItemService        = workItemService;
     _constantService        = constantService;
     _fieldService           = fieldService;
 }
Exemplo n.º 26
0
        public void Configure(IContainer container)
        {
            IFieldService service = container.GetInstance <IFieldService>();

            Mapper.CreateMap <LeBlenderValue, Field>()
            .ForMember(dest => dest.Name, opt => { opt.MapFrom(source => service.GetLeBlenderValueFieldValue(source, "name")); })
            .ForMember(dest => dest.Mandatory, opt => { opt.MapFrom(source => service.GetValueAsBoolean(service.GetLeBlenderValueFieldValue(source, "mandatory"))); })
            .ForMember(dest => dest.Options, opt => { opt.MapFrom(source => service.GetArchetypePrevalues(source, "prevalues")); })
            .ForMember(dest => dest.Placeholder, opt => { opt.MapFrom(source => service.GetLeBlenderValueFieldValue(source, "placeholder")); })
            .ForMember(dest => dest.SelectFileText, opt => { opt.MapFrom(source => service.GetLeBlenderValueFieldValue(source, "selectFileText")); });
        }
Exemplo n.º 27
0
 public OrdersController(IUnitOfWork uow, IFormService formService, IFieldService fieldService,
     IValueService valueService, IOrderService orderService, IPriceService priceService,IProductService productService)
 {
     _uow = uow;
     _formService = formService;
     _fieldService = fieldService;
     _valueService = valueService;
     _orderService = orderService;
     _priceService = priceService;
     _productService = productService;
 }
Exemplo n.º 28
0
        public TestHub(IFieldService fieldService)
        {
            _fieldService   = fieldService;
            _timer          = new Timer(2000);
            _timer.Elapsed += (s, e) =>
            {
                Clients.All.SendCoreAsync("OnFieldsChanged", new[] { _fieldService.GetFields() });
            };

            _timer.Start();
        }
Exemplo n.º 29
0
 public FieldController(IConnectionManagementService Connection, IMetadataService Metadata, IFieldService Field, IPropertyService Properties, IKeyGenerates KeyId, IPaginationService SetPagination, IBranchService Branch, IStateService State)
 {
     _Connection    = Connection;
     _Field         = Field;
     _Properties    = Properties;
     _KeyId         = KeyId;
     _SetPagination = SetPagination;
     _Metadata      = Metadata;
     _Branch        = Branch;
     _State         = State;
 }
Exemplo n.º 30
0
        public ProductDeserializer(IFieldService fieldService, IServiceFactory serviceFactory, ICacheItemWatcher cacheItemWatcher, IContextStorage contextStorage, IConnectionProvider connectionProvider)
        {
            _fieldService = fieldService;

            _contentService = serviceFactory.GetContentService();

            _cacheItemWatcher = cacheItemWatcher;

            _contextStorage = contextStorage;

            _customer = connectionProvider.GetCustomer();
        }
Exemplo n.º 31
0
 public ToolsController(IConnectionManagementService Connection, IMetadataService Metadata, IBranchService Branch, IStateService State, IKeyGenerates KeyId, IMessage Message, IProcessHistory Log, IFieldService Field, IPropertyService Property)
 {
     _Connection = Connection;
     _Metadata   = Metadata;
     _Branch     = Branch;
     _State      = State;
     _KeyId      = KeyId;
     _Message    = Message;
     _Log        = Log;
     _Field      = Field;
     _Property   = Property;
 }
Exemplo n.º 32
0
 public EngineService(
     IEngineFactory engineFactory,
     IFieldService fieldService,
     IShapeService shapeService,
     IInputService inputService
     )
 {
     this.engineFactory = engineFactory;
     this.fieldService  = fieldService;
     this.shapeService  = shapeService;
     this.inputService  = inputService;
 }
Exemplo n.º 33
0
        public SetupModule(IProjectService projectService, ISiteService siteService, IFieldService fieldService, IMappingEngine mappingEngine)
            : base("data/setup", mappingEngine, UserRole.Admin)
        {
            this.projectService = projectService;
            this.siteService = siteService;
            this.fieldService = fieldService;

            Get["/sites"] = SearchSites;

            Put["/sites"] = UpdateSites;

            Put["/syncProjectSummaries"] = SyncProjectSummaries;

            Put["/syncFields"] = SyncFields;
        }
Exemplo n.º 34
0
 public FieldController(IFieldService fieldService, IUnitOfWork unitOfWork)
 {
     _unitOfWork = unitOfWork;
     _fieldService = fieldService;
 }
Exemplo n.º 35
0
 public RatingController(IRatingService ratingService, IFieldService fieldService)
 {
     this.ratingService = ratingService;
     this.fieldService = fieldService;
 }
Exemplo n.º 36
0
 public FieldController(IFieldService fieldService, IComplexService complexService)
 {
     this.fieldService = fieldService;
     this.complexService = complexService;
 }
Exemplo n.º 37
0
 public SyncSiteAndFieldData(IProjectService projectService, IFieldService fieldService)
 {
     this.projectService = projectService;
     this.fieldService = fieldService;
 }
Exemplo n.º 38
0
 public FieldController(IFieldService service)
 {
     Service = service;
 }
Exemplo n.º 39
0
 public HomeController(IUserService userService, IComplexService complexService, IFieldService fieldService)
 {
     this.userService = userService;
     this.complexService = complexService;
     this.fieldService = fieldService;
 }