예제 #1
0
파일: DataUpdater.cs 프로젝트: xixiky/xms
 public DataUpdater(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IOrganizationDataRetriever organizationDataRetriever
     , IAttributeFinder attributeFinder
     , IEntityPluginExecutor entityPluginExecutor
     , IDataAssigner dataAssigner
     , IMapUpdater mapUpdater
     , IFormulaUpdater formulaUpdater
     , IQueryResolverFactory queryResolverFactory
     , IEntityValidator entityValidator
     )
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider  = organizationDataProvider;
     _organizationDataRetriever = organizationDataRetriever;
     _attributeFinder           = attributeFinder;
     _entityPluginExecutor      = entityPluginExecutor;
     _dataAssigner         = dataAssigner;
     _mapUpdater           = mapUpdater;
     _formulaUpdater       = formulaUpdater;
     _queryResolverFactory = queryResolverFactory;
     _entityValidator      = entityValidator;
 }
예제 #2
0
 public FormController(IWebAppContext appContext
                       , ISystemFormFinder systemFormFinder
                       , ISystemFormUpdater systemFormUpdater
                       , IEntityFinder entityService
                       , IRibbonButtonFinder ribbonbuttonFinder
                       , IDataFinder dataFinder
                       , IAttributeFinder attributeFinder
                       , IWorkFlowInstanceService workFlowInstanceService
                       , ISystemUserPermissionService systemUserPermissionService
                       , IFormService formService
                       , ISystemFormStatusSetter systemFormStatusSetter
                       , IWorkFlowProcessFinder workFlowProcessFinder
                       , IRibbonButtonStatusSetter ribbonButtonStatusSetter
                       , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
                       , ISerialNumberRuleFinder serialNumberRuleFinder)
     : base(appContext)
 {
     _systemFormFinder                        = systemFormFinder;
     _systemFormUpdater                       = systemFormUpdater;
     _entityFinder                            = entityService;
     _ribbonbuttonFinder                      = ribbonbuttonFinder;
     _dataFinder                              = dataFinder;
     _attributeFinder                         = attributeFinder;
     _workFlowInstanceService                 = workFlowInstanceService;
     _systemUserPermissionService             = systemUserPermissionService;
     _formService                             = formService;
     _systemFormStatusSetter                  = systemFormStatusSetter;
     _workFlowProcessFinder                   = workFlowProcessFinder;
     _ribbonButtonStatusSetter                = ribbonButtonStatusSetter;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
     _serialNumberRuleFinder                  = serialNumberRuleFinder;
 }
예제 #3
0
        public AggFinder(
            IAppContext appContext
            , IDataFinder dataFinder
            , ISystemFormFinder systemFormFinder
            , IEntityFinder entityFinder
            , IRelationShipFinder relationShipFinder
            , IQueryViewFinder queryViewFinder
            , IFetchDataService fetchDataService

            , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
            , IPrincipalObjectAccessService principalObjectAccessService
            , IEventPublisher eventPublisher
            , IBusinessUnitService businessUnitService
            , IOrganizationDataRetriever organizationDataRetriever
            )
            : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
        {
            _organizationDataRetriever = organizationDataRetriever;
            _systemFormFinder          = systemFormFinder;
            _relationShipFinder        = relationShipFinder;
            _queryViewFinder           = queryViewFinder;
            _fetchService = fetchDataService;

            _dataFinder = dataFinder;
            User        = _appContext.GetFeature <ICurrentUser>();

            _aggregateRoot = new AggregateRoot();
        }
예제 #4
0
파일: DataMapper.cs 프로젝트: xixiky/xms
 public DataMapper(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IEntityMapFinder entityMapFinder
     , IAttributeMapFinder attributeMapFinder
     , IRelationShipFinder relationShipFinder
     , IEntityPluginExecutor entityPluginExecutor
     , IAttributeFinder attributeFinder
     , IDataFinder dataFinder
     , IDataCreater dataCreater)
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider = organizationDataProvider;
     _entityMapFinder          = entityMapFinder;
     _attributeMapFinder       = attributeMapFinder;
     _relationShipFinder       = relationShipFinder;
     _entityPluginExecutor     = entityPluginExecutor;
     _attributeFinder          = attributeFinder;
     _dataFinder  = dataFinder;
     _dataCreater = dataCreater;
 }
예제 #5
0
        public AggUpdater(
            IAppContext appContext
            , IEntityFinder entityFinder
            , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
            , IPrincipalObjectAccessService principalObjectAccessService
            , IEventPublisher eventPublisher
            , IBusinessUnitService businessUnitService

            , IAttributeFinder attributeFinder
            , IRelationShipFinder relationShipFinder
            , IDataCreater dataCreater
            , IDataUpdater dataUpdater
            , IDataDeleter dataDeleter
            , IOrganizationDataProvider organizationDataProvider
            , IPluginExecutor <AggregateRoot, AggregateRootMetaData> pluginExecutor
            )
            : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
        {
            _attributeFinder          = attributeFinder;
            _relationShipFinder       = relationShipFinder;
            _organizationDataProvider = organizationDataProvider;
            _pluginExecutor           = pluginExecutor;
            _dataCreater = dataCreater;
            _dataUpdater = dataUpdater;
            _dataDeleter = dataDeleter;
        }
예제 #6
0
 //private readonly IDataUpdater _dataUpdater;
 public DataMerger(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IEntityPluginExecutor entityPluginExecutor
     , IAttributeFinder attributeFinder
     , IRelationShipFinder relationShipFinder
     , IDataFinder dataFinder
     //, IDataUpdater dataUpdater
     , IQueryResolverFactory queryResolverFactory
     )
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider = organizationDataProvider;
     _entityPluginExecutor     = entityPluginExecutor;
     _attributeFinder          = attributeFinder;
     _relationShipFinder       = relationShipFinder;
     _dataFinder = dataFinder;
     //_dataUpdater = dataUpdater;
     _queryResolverFactory = queryResolverFactory;
 }
예제 #7
0
 public DataDeleter(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataProvider organizationDataProvider
     , IOrganizationDataRetriever organizationDataRetriever
     , IAttributeFinder attributeFinder
     , IEntityPluginExecutor entityPluginExecutor
     , IRelationShipFinder relationShipFinder
     , IMapUpdater mapUpdater
     , IFormulaUpdater formulaUpdater
     , IAggregateService aggregateService
     )
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataProvider  = organizationDataProvider;
     _organizationDataRetriever = organizationDataRetriever;
     _attributeFinder           = attributeFinder;
     _entityPluginExecutor      = entityPluginExecutor;
     _relationShipFinder        = relationShipFinder;
     _mapUpdater       = mapUpdater;
     _formulaUpdater   = formulaUpdater;
     _aggregateService = aggregateService;
 }
예제 #8
0
파일: DataFinder.cs 프로젝트: xixiky/xms
 public DataFinder(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     , IOrganizationDataRetriever organizationDataRetriever
     )
     : base(appContext, entityFinder, roleObjectAccessEntityPermissionService, principalObjectAccessService, eventPublisher, businessUnitService)
 {
     _organizationDataRetriever = organizationDataRetriever;
 }
예제 #9
0
 public AggregateService(
     IAppContext appContext,
     IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService,
     ISystemUserRolesService systemUserRolesService,
     IEntityFinder entityFinder,
     IAggregateExpressionResolver aggregateExpressionResolver)
 {
     _appContext = appContext;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
     _systemUserRolesService      = systemUserRolesService;
     _aggregateExpressionResolver = aggregateExpressionResolver;
     _entityFinder = entityFinder;
     _user         = _appContext.GetFeature <ICurrentUser>();
 }
예제 #10
0
 public ChartBuilder(IAppContext appContext
                     , IChartRepository chartRepository
                     , IStringMapFinder stringMapFinder
                     , IOptionSetDetailFinder optionSetDetailFinder
                     , IFetchDataService fetchDataService
                     , IEntityFinder entityFinder
                     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService)
 {
     _appContext            = appContext;
     _user                  = _appContext.GetFeature <ICurrentUser>();
     _loc                   = appContext.GetFeature <ILocalizedTextProvider>();
     _chartRepository       = chartRepository;
     _optionSetDetailFinder = optionSetDetailFinder;
     _stringMapFinder       = stringMapFinder;
     _fetchDataService      = fetchDataService;
     _entityFinder          = entityFinder;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
 }
예제 #11
0
 public DataProviderBase(
     IAppContext appContext
     , IEntityFinder entityFinder
     , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
     , IPrincipalObjectAccessService principalObjectAccessService
     , IEventPublisher eventPublisher
     , IBusinessUnitService businessUnitService
     )
 {
     _appContext   = appContext;
     _user         = _appContext.GetFeature <ICurrentUser>();
     _languageId   = _user?.UserSettings?.LanguageId ?? LanguageCode.CHS;
     _loc          = _appContext.GetFeature <ILocalizedTextProvider>();
     _entityFinder = entityFinder;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
     _principalObjectAccessService            = principalObjectAccessService;
     _businessUnitService = businessUnitService;
     _eventPublisher      = eventPublisher;
 }
예제 #12
0
 public FetchDataService(IAppContext appContext
                         , IEntityFinder entityFinder
                         , IStringMapFinder stringMapFinder
                         , IOptionSetDetailFinder optionSetDetailFinder
                         , ISystemUserPermissionService systemUserPermissionService
                         , IRoleObjectAccessEntityPermissionService roleObjectAccessEntityPermissionService
                         , ISystemUserRolesService systemUserRolesService
                         , IQueryResolverFactory queryResolverFactory)
 {
     _appContext                              = appContext;
     User                                     = _appContext.GetFeature <ICurrentUser>();
     _stringMapFinder                         = stringMapFinder;
     _optionSetDetailFinder                   = optionSetDetailFinder;
     _systemUserPermissionService             = systemUserPermissionService;
     _entityFinder                            = entityFinder;
     _queryResolverFactory                    = queryResolverFactory;
     _roleObjectAccessEntityPermissionService = roleObjectAccessEntityPermissionService;
     _systemUserRolesService                  = systemUserRolesService;
 }