Beispiel #1
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContext">HTTP context</param>
 /// <param name="customerService">AccountUser service</param>
 /// <param name="customerSettings">AccountUser settings</param>
 public TokenAuthenticationService(HttpContextBase httpContext,
                                   IAccountUserService customerService, AccountUserSettings customerSettings)
 {
     this._httpContext      = httpContext;
     this._customerService  = customerService;
     this._customerSettings = customerSettings;
 }
Beispiel #2
0
 public AccountUserRegistrationService(IAccountUserService customerService, IEncryptionService encryptionService,
                                       AccountUserSettings customerSettings)
 {
     _accountUserService = customerService;
     _encryptionService  = encryptionService;
     _customerSettings   = customerSettings;
 }
Beispiel #3
0
 public AccountUserRegistrationService(IAccountUserService customerService, IEncryptionService encryptionService,
                                       RewardPointsSettings rewardPointsSettings,
                                       AccountUserSettings customerSettings)
 {
     _customerService      = customerService;
     _encryptionService    = encryptionService;
     _rewardPointsSettings = rewardPointsSettings;
     _customerSettings     = customerSettings;
 }
Beispiel #4
0
 public ImportManager(IPropertyService propertyService, IGovernmentService governmentService, IAccountUserService accountUserServic,
                      IWorkContext workContext, IPictureService pictureService, IFileService fileService, IPropertyNewCreateService propertyNewCreateService)
 {
     _propertyService          = propertyService;
     _governmentService        = governmentService;
     _accountUserService       = accountUserServic;
     _workContext              = workContext;
     _pictureService           = pictureService;
     _fileService              = fileService;
     _propertyNewCreateService = propertyNewCreateService;
 }
Beispiel #5
0
        public AccountUserValidator(IAccountUserService accountUserService, IGovernmentService governmentService)
        {
            _accountUserService = accountUserService;
            _governmentService  = governmentService;

            RuleFor(s => s.UserName).NotEmpty().WithMessage("用户名不能为空").Must(BeUniqueName).WithMessage("名称 {0} 已存在", s => s.UserName);

            RuleFor(s => s.GovernmentId).Must(governmentId =>
            {
                var accountUserGovernment = governmentService.GetGovernmentUnitById(governmentId);
                return(accountUserGovernment != null && !accountUserGovernment.Deleted);
            }).WithMessage(string.Format("单位不存在"));
        }
        public GovernmentUnitController(
            IAccountUserService accountUserService,
            IGovernmentService governmentService,
            IAccountUserActivityService accountUserActivityService,
            IWebHelper webHelper,
            IWorkContext workContext)

        {
            _accountUserService         = accountUserService;
            _accountUserActivityService = accountUserActivityService;
            _governmentService          = governmentService;

            _webHelper   = webHelper;
            _workContext = workContext;
        }
        public StatisticsController(
            IPropertyService propertyService,
            IAccountUserService accountUserService,
            IGovernmentService governmentService,
            IAccountUserActivityService accountUserActivityService,
            IWebHelper webHelper,
            IWorkContext workContext)
        {
            _propertyService            = propertyService;
            _accountUserService         = accountUserService;
            _accountUserActivityService = accountUserActivityService;
            _governmentService          = governmentService;

            _webHelper   = webHelper;
            _workContext = workContext;
        }
        //private vender _cachedvender;


        #endregion

        #region Ctor

        public WebWorkContext(HttpContextBase httpContext,
                              IAccountUserService customerService,
                              //IvenderService venderService,
                              IAuthenticationService authenticationService,
                              //ILanguageService languageService,
                              //ICurrencyService currencyService,
                              //IGenericAttributeService genericAttributeService,
                              IUserAgentHelper userAgentHelper
                              //IStoreMappingService storeMappingService
                              )
        {
            this._httpContext     = httpContext;
            this._customerService = customerService;
            //this._venderService = venderService;
            this._authenticationService = authenticationService;
            //this._languageService = languageService;
            //this._currencyService = currencyService;
            //this._genericAttributeService = genericAttributeService;
            this._userAgentHelper = userAgentHelper;
            //this._storeMappingService = storeMappingService;
        }
        public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService, ISceneService sceneService, ILocationService locationService,
                              IAccountUserRegistrationService customerRegistrationService,
                              IEncryptionService encryptionService,
                              IWebHelper webHelper,
                              IWorkContext workContext,
                              AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService
                              )
        {
            _authenticationService          = authenticationService;
            _accountUserService             = customerService;
            _accountUserRegistrationService = customerRegistrationService;
            _encryptionService = encryptionService;

            _webHelper           = webHelper;
            _workContext         = workContext;
            _accountUserSettings = customerSettings;

            _commonSettings   = commonSettings;
            _securitySettings = securitySettings;
            _settingService   = settingService;
            _sceneService     = sceneService;
            _locationService  = locationService;
        }
Beispiel #10
0
        public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService,
                              IAccountUserRegistrationService customerRegistrationService,
                              IGenericAttributeService genericAttributeService,
                              IWorkflowMessageService workflowMessageService, IGovernmentService governmentService, IPropertyService propertyService,
                              IPropertyAllotService propertyAllotService, IPropertyLendService propertyLendService, IPropertyNewCreateService propertyNewCreateService,
                              IPropertyOffService propertyOffService, IPropertyRentService propertyRentService, IEncryptionService encryptionService, IPictureService pictureService,
                              IPropertyEditService propertyEditService, ICopyPropertyService copyPropertyService,
                              IWebHelper webHelper,
                              IWorkContext workContext,
                              AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService
                              )
        {
            _authenticationService          = authenticationService;
            _accountUserService             = customerService;
            _accountUserRegistrationService = customerRegistrationService;
            _genericAttributeService        = genericAttributeService;
            _workflowMessageService         = workflowMessageService;
            _governmentService        = governmentService;
            _propertyService          = propertyService;
            _propertyAllotService     = propertyAllotService;
            _propertyLendService      = propertyLendService;
            _propertyNewCreateService = propertyNewCreateService;
            _propertyEditService      = propertyEditService;
            _propertyOffService       = propertyOffService;
            _propertyRentService      = propertyRentService;
            _copyPropertyService      = copyPropertyService;
            _encryptionService        = encryptionService;
            _pictureService           = pictureService;

            _webHelper           = webHelper;
            _workContext         = workContext;
            _accountUserSettings = customerSettings;

            _commonSettings   = commonSettings;
            _securitySettings = securitySettings;
            _settingService   = settingService;
        }
Beispiel #11
0
 public AccountController(
     IAuthenticationService authenticationService,
     IAccountUserService customerService,
     IAccountUserRegistrationService customerRegistrationService,
     IGenericAttributeService genericAttributeService,
     IWorkflowMessageService workflowMessageService,
     IAccountUserActivityService accountUserActivityService,
     IGovernmentService governmentService,
     IWebHelper webHelper,
     IWorkContext workContext, IEncryptionService encryptionService,
     AccountUserSettings customerSettings)
 {
     _authenticationService          = authenticationService;
     _accountService                 = customerService;
     _accountUserRegistrationService = customerRegistrationService;
     _genericAttributeService        = genericAttributeService;
     _workflowMessageService         = workflowMessageService;
     _accountUserActivityService     = accountUserActivityService;
     _governmentService              = governmentService;
     _encryptionService              = encryptionService;
     _webHelper           = webHelper;
     _workContext         = workContext;
     _accountUserSettings = customerSettings;
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AccountUsersController" /> class.
 /// </summary>
 /// <param name="accountUserService"></param>
 public AccountUsersController(IAccountUserService accountUserService)
 {
     this.accountUserService = accountUserService;
 }
Beispiel #13
0
 public AccountController(IWebHelper webHelper, IAccountUserService accountUserService, IDDTalkService ddTalkService)
 {
     this._webHelper          = webHelper;
     this._accountUserService = accountUserService;
     this._ddTalkService      = ddTalkService;
 }