Exemple #1
0
 public LotteryController(
     ILangService langService,
     IMapper mapper,
     IViewRenderService viewRenderService,
     IUnitOfWorkAsync unitOfWork,
     ISettingService settingService,
     ITemplateService templateService,
     ISysUserService sysUserService,
     ILotteryService lotteryService,
     INewsService newsService,
     ILotteryPrizeService lotteryPrizeService,
     ILotteryHistoryService lotteryHistoryService)
 {
     this._langService           = langService;
     this._mapper                = mapper;
     this._viewRenderService     = viewRenderService;
     this._settingService        = settingService;
     this._unitOfWork            = unitOfWork;
     this._templateService       = templateService;
     this._sysUserService        = sysUserService;
     this._newsService           = newsService;
     this._lotteryService        = lotteryService;
     this._lotteryPrizeService   = lotteryPrizeService;
     this._lotteryHistoryService = lotteryHistoryService;
 }
 public SysController(ILogger <SysController> logger, ISysUserService sysUserServices, ICacheService cache, IDBSyncService dbSyncServices)
 {
     _logger          = logger;
     _sysUserServices = sysUserServices;
     _cache           = cache;
     _dbSyncServices  = dbSyncServices;
 }
 public UserController(ISysUserService sysUserService, IWorkContext workContext, ISysUserRoleService sysUserRoleService, ISysRoleService sysRoleService)
 {
     this._sysUserService     = sysUserService;
     this._workContext        = workContext;
     this._sysUserRoleService = sysUserRoleService;
     this._sysRoleService     = sysRoleService;
 }
Exemple #4
0
 public Messenger()
 {
     _iSysUserService          = DependencyResolver.Current.GetService <ISysUserService>();
     _iSysRoleService          = DependencyResolver.Current.GetService <ISysRoleService>();
     _iSysBroadcastService     = DependencyResolver.Current.GetService <ISysBroadcastService>();
     _iSysSignalROnlineService = DependencyResolver.Current.GetService <ISysSignalROnlineService>();
 }
        protected void LinkButton1_Command(object sender, CommandEventArgs e)
        {
            var cmdArg = e.CommandArgument;

            if (cmdArg == null)
            {
                return;
            }

            int userid = Convert.ToInt32(cmdArg.ToString());

            try
            {
                ISysUserService userService = IoC.Resolve <ISysUserService>();
                //严重当前会员是否存在下级
                var rowCount = userService.DefaultUserMinMinBettingMoney(userid);
                if (rowCount > 0)
                {
                    JsAlert("处理成功!");
                }
                else
                {
                    JsAlert("用户不存在!");
                }
            }
            catch
            {
                JsAlert("取款限制取消失败,请稍后再试!");
            }
        }
        protected void btnBack_Click(object sender, EventArgs e)
        {
            EmptyResult();
            var parentId  = this.hidNowParentId.Value;//当前点击的数据
            var newSource = new List <CatchEntity>();

            if (!string.IsNullOrEmpty(parentId))
            {
                ISysUserService userService = IoC.Resolve <ISysUserService>();
                var             rx          = userService.GetParentUsers(Convert.ToInt32(parentId));
                foreach (var item in rx)
                {
                    //if (item.Id == Convert.ToInt32(parentId))
                    //    continue;
                    newSource.Add(new CatchEntity()
                    {
                        Code = item.Code,
                        Uid  = item.Id
                    });
                }
            }
            newSource = newSource.OrderBy(x => x.Uid).ToList();
            int?pid = null;

            if (!string.IsNullOrEmpty(parentId))
            {
                pid = Convert.ToInt32(parentId);
            }
            this.SetCurParentId(pid);
            this.SaveClickList(newSource);
            BindLink();
            this.BindList();
        }
Exemple #7
0
 public ExportTransportationService(ISysUserService sysUserService, IRepository <Entities.ExportTransportation> exportTransportationRepository,
                                    IMemoryCache memoryCache)
 {
     this._sysUserService = sysUserService;
     this._memoryCache    = memoryCache;
     this._exportTransportationRepository = exportTransportationRepository;
 }
Exemple #8
0
 public ProfileController(
     IHostingEnvironment hostingEnvironment,
     ILangService langService,
     IMapper mapper,
     IViewRenderService viewRenderService,
     IUnitOfWorkAsync unitOfWork,
     ISettingService settingService,
     ISysUserService sysUserService,
     IAffiliateService affiliateService,
     ICoinTransactionService coinTransactionService,
     ILotteryHistoryService lotteryHistoryService,
     IDataContextAsync dataContextAsync,
     ITemplateService templateService,
     IAgencyService agencyService)
 {
     this._hostingEnvironment     = hostingEnvironment;
     this._langService            = langService;
     this._mapper                 = mapper;
     this._viewRenderService      = viewRenderService;
     this._settingService         = settingService;
     this._coinTransactionService = coinTransactionService;
     this._sysUserService         = sysUserService;
     this._affiliateService       = affiliateService;
     this._unitOfWork             = unitOfWork;
     this._templateService        = templateService;
     this._dataContextAsync       = dataContextAsync;
     this._lotteryHistoryService  = lotteryHistoryService;
     this._agencyService          = agencyService;
 }
 public SysEnterpriseController(ISysEnterpriseService sysEnterpriseService, IUnitOfWork unitOfWork, ISysUserService sysUserService, ISysControllerSysActionService sysControllerSysActionService)
 {
     _sysEnterpriseService = sysEnterpriseService;
     _unitOfWork = unitOfWork;
     _sysUserService = sysUserService;
     _sysControllerSysActionService = sysControllerSysActionService;
 }
        protected void LinkButton2_Command(object sender, CommandEventArgs e)
        {
            var cmdArg = e.CommandArgument;

            if (cmdArg == null)
            {
                return;
            }

            int userid = Convert.ToInt32(cmdArg.ToString());

            try
            {
                ISysUserService userService = IoC.Resolve <ISysUserService>();
                //严重当前会员是否存在下级
                SysUser user = userService.Get(userid);
                if (user != null)
                {
                    user.MoTel = "";
                    user.Qq    = "";
                    userService.Save();
                    JsAlert("处理成功!");
                    this.BindList();
                }
                else
                {
                    JsAlert("用户不存在!");
                }
            }
            catch
            {
                JsAlert("数据清空失败,请稍后再试!");
            }
        }
Exemple #11
0
 public ExchangeViewComponent(IMapper mapper,
                              ISettingService settingService,
                              ISysUserService sysUserService)
 {
     this._mapper         = mapper;
     this._sysUserService = sysUserService;
 }
Exemple #12
0
 public RateViewComponent(ISysUserService sysUserService,
                          ISettingService settingService
                          )
 {
     this._sysUserService = sysUserService;
     this._settingService = settingService;
 }
Exemple #13
0
 public ImportTrans_main_record_copyService(ISysUserService sysUserService, IRepository <Entities.ImportTrans_main_record_copy> ImportTrans_main_record_copyRepository,
                                            IMemoryCache memoryCache)
 {
     this._sysUserService = sysUserService;
     this._memoryCache    = memoryCache;
     this._ImportTrans_main_record_copyRepository = ImportTrans_main_record_copyRepository;
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="iTaskCenterService"></param>
 /// <param name="unitOfWork"></param>
 /// <param name="iSysUserService"></param>
 /// <param name="iUserInfo"></param>
 public TaskCenterController(ITaskCenterService iTaskCenterService, IUnitOfWork unitOfWork, ISysUserService iSysUserService, IUserInfo iUserInfo)
 {
     _iTaskCenterService = iTaskCenterService;
     _iUnitOfWork        = unitOfWork;
     _iSysUserService    = iSysUserService;
     _iUserInfo          = iUserInfo;
 }
Exemple #15
0
 public SysUserController(UnitOfWork unitOfWork, ILogger<SysUserController> logger, ISysUserService sysUserService, IMapper mapper)
 {
     _unitOfWork = unitOfWork;
     _logger = logger;
     _sysUserService = sysUserService;
     _mapper = mapper;
 }
 public UserController(ISysUserService sysUserService, ILibrarySeatService librarySeatService, IOrderDetailService orderDetailService, IAdminAuthService adminAuthService)
 {
     _sysUserService     = sysUserService;
     _librarySeatService = librarySeatService;
     _adminAuthService   = adminAuthService;
     _orderDetailService = orderDetailService;
 }
        //  private readonly ISysWechatConfigService _wechatConfigService;
        // protected BaseService<ArticleImages> _articelImageService = new BaseService<ArticleImages>("CAAdmin");



        public HomeController(ISysUserService menuService)
            : base(menuService)
        {
            // _accountManageService = objService;
            _menuService = menuService;
            // _wechatConfigService = wechatConfigService;
        }
Exemple #18
0
 public IndexController(ISysControllerService sysControllerService, ISysUserService sysUserService, IUnitOfWork unitOfWork, IUserInfo userInfo)
 {
     _sysControllerService = sysControllerService;
     _sysUserService       = sysUserService;
     _unitOfWork           = unitOfWork;
     _userInfo             = userInfo;
 }
 public HttpUserInRole(ISysUserService userService, ISysRoleService roleService, ISysUserRoleService userRole, IHttpContextAccessor httpContextAccessor)
 {
     _userService         = userService;
     _httpContextAccessor = httpContextAccessor;
     _roleService         = roleService;
     _userRole            = userRole;
 }
Exemple #20
0
 public UserInfoController(ISysDepartmentSysUserService iSysDepartmentSysUserService, ISysUserService iSysUserService, IUserInfo iUserInfo, IUnitOfWork iUnitOfWork)
 {
     _iSysUserService = iSysUserService;
     _iUnitOfWork     = iUnitOfWork;
     _iUserInfo       = iUserInfo;
     _iSysDepartmentSysUserService = iSysDepartmentSysUserService;
 }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(Request.Params["action"]))
     {
         string result = "";
         switch (Request.Params["action"])
         {
         case "unique":
             string code = Request.Params["code"];
             if (string.IsNullOrEmpty(code))
             {
                 result = "-1";
             }
             else
             {
                 ISysUserService userService = IoC.Resolve <ISysUserService>();
                 result = userService.IsUnique(code) ? "0" : "-1";
             }
             break;
         }
         Response.Write(result);
         Response.End();
         return;
     }
     if (!int.TryParse(Request.Params["id"], out user_id))
     {
         user_id = -1;
     }
     if (!IsPostBack)
     {
         this.Bind();
     }
 }
Exemple #22
0
 public SysUserController(ISysUserService userService, ISysUserLogonService userLogonService, ISysLogService logService, IMapper mapper)
 {
     _userService      = userService;
     _logService       = logService;
     _userLogonService = userLogonService;
     _mapper           = mapper;
 }
Exemple #23
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="requirement"></param>
 /// <param name="userService"></param>
 /// <param name="userLogonService"></param>
 /// <param name="mapper"></param>
 public LoginController(PermissionRequirement requirement, ISysUserService userService, ISysUserLogonService userLogonService, IMapper mapper)
 {
     _requirement      = requirement;
     _userService      = userService;
     _userLogonService = userLogonService;
     _mapper           = mapper;
 }
Exemple #24
0
 public SsoController(ISysUserService userManager, IAuthenticationService authService, ISysUserService sysUserService)
 {
     _userManager    = userManager;
     _authService    = authService;
     _sysUserService = sysUserService;
     log             = LogManager.GetLogger(typeof(OWinLoginController));
 }
 public SysEnterpriseController(ISysEnterpriseService sysEnterpriseService, IUnitOfWork unitOfWork, ISysUserService sysUserService, ISysControllerSysActionService sysControllerSysActionService)
 {
     _sysEnterpriseService          = sysEnterpriseService;
     _unitOfWork                    = unitOfWork;
     _sysUserService                = sysUserService;
     _sysControllerSysActionService = sysControllerSysActionService;
 }
Exemple #26
0
 public IndexController(ISysControllerService sysControllerService, ISysUserService sysUserService, IUnitOfWork unitOfWork, IUserInfo userInfo)
 {
     _sysControllerService = sysControllerService;
     _sysUserService = sysUserService;
     _unitOfWork = unitOfWork;
     _userInfo = userInfo;
 }
 public UserController(ISysUserService userManager, ISysRoleService roleManager)
     : base(userManager)
 {
     // _newsService = newsService;
     UserManager = userManager;
     RoleManager = roleManager;
 }
Exemple #28
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="sysUserService"></param>
 /// <param name="userToken"></param>
 /// <param name="sysLogService"></param>
 public LoginController(ILogger <LoginController> logger, ISysUserService sysUserService, IUserToken userToken, ISysLogService sysLogService)
 {
     _logger         = logger;
     _sysUserService = sysUserService;
     _userToken      = userToken;
     _sysLogService  = sysLogService;
 }
 public AccountController(ISysUserService sysUserService, ISysLogLogonService sysLogLogonService)
 {
     SysUserService     = sysUserService;
     SysLogLogonService = sysLogLogonService;
     this.AddDisposableObject(SysUserService);
     this.AddDisposableObject(SysLogLogonService);
 }
 public LoginController(ISysUserService sysUserService, IAdminAuthService authenticationService,
                        IMemoryCache memoryCache)
 {
     this._memoryCache           = memoryCache;
     this._sysUserService        = sysUserService;
     this._authenticationService = authenticationService;
 }
        protected void lkbChildren_Click(object sender, EventArgs e)
        {
            EmptyResult();

            var lkButton = (sender as LinkButton);

            if (null == lkButton || lkButton.CommandArgument == null)
            {
                return;
            }
            int pid = Convert.ToInt32(lkButton.CommandArgument.ToString());

            SetCurParentId(pid);
            var newSource = new List <CatchEntity>();

            ISysUserService userService = IoC.Resolve <ISysUserService>();
            var             rx          = userService.GetParentUsers(Convert.ToInt32(pid));

            foreach (var item in rx)
            {
                newSource.Add(new CatchEntity()
                {
                    Code = item.Code,
                    Uid  = item.Id
                });
            }
            newSource = newSource.OrderBy(x => x.Uid).ToList();

            this.SaveClickList(newSource);
            this.BindList();
            BindLink();
        }
Exemple #32
0
 public RegisterInfoService(IRegisterInfoRepository registerInfoRepository, ISysUserService sysUserService, IMapper mapper)
 {
     _IRegisterInfoRepository = registerInfoRepository;
     base.BaseDal             = registerInfoRepository;
     _sysUserService          = sysUserService;
     _mapper = mapper;
 }
 public PlanReportController(ISysDepartmentService iSysDepartmentService, IPlanService iPlanService,
     ISysUserService iSysUserService, IUserInfo iUserInfo)
 {
     _iSysDepartmentService = iSysDepartmentService;
     _iPlanService = iPlanService;
     _ISysUserService = iSysUserService;
     _IUserInfo = iUserInfo;
 }
 public ProjectTaskReportController(ISysDepartmentService iSysDepartmentService,
     IProjectTaskService iProjectTaskService, ISysUserService iSysUserService, IUserInfo iUserInfo)
 {
     _iSysDepartmentService = iSysDepartmentService;
     _iProjectTaskService = iProjectTaskService;
     _iSysUserService = iSysUserService;
     _iUserInfo = iUserInfo;
 }
 public MyCreateWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo, IUnitOfWork unitOfWork, IProjectTaskService iProjectTaskService, ISysUserService iSysUserService, IProjectUserService iProjectUserService, ISysDepartmentService iSysDepartmentService, IProjectInfoStateService iProjectInfoStateService, ICustomerService iCustomerService)
 {
     _iProjectInfoService = iProjectInfoService;
     _iUserInfo = iUserInfo;
     _unitOfWork = unitOfWork;
     _iProjectTaskService = iProjectTaskService;
     _iSysUserService = iSysUserService;
     _iProjectUserService = iProjectUserService;
     _iSysDepartmentService = iSysDepartmentService;
     _iProjectInfoStateService = iProjectInfoStateService;
     _iCustomerService = iCustomerService;
 }
Exemple #36
0
 public SysUserController(IUnitOfWork unitOfWork, ISysDepartmentService sysDepartmentService,
     ISysDepartmentSysUserService sysDepartmentSysUserService,
     ISysUserService sysUserService, ISysRoleService sysRoleService,
     ISysRoleSysUserService sysRoleSysUserService)
 {
     _unitOfWork = unitOfWork;
     _sysDepartmentService = sysDepartmentService;
     _sysDepartmentSysUserService = sysDepartmentSysUserService;
     _sysUserService = sysUserService;
     _sysRoleService = sysRoleService;
     _sysRoleSysUserService = sysRoleSysUserService;
 }
 public void TestFixtureSetUp()
 {
     repository =RepositoryFactory.UserRepository;
     service = ServiceFactory.UserService;
 }
Exemple #38
0
 public GoogleService(ISysUserService iSysUserService)
 {
     _iSysUserService = iSysUserService;
 }
Exemple #39
0
 public SysMenuController(ISysControllerService sysControllerService,ISysUserService sysUserService, IUserInfo iUserInfo)
 {
     _sysControllerService = sysControllerService;
     _sysUserService = sysUserService;
     _iUserInfo = iUserInfo;
 }
 //
 // GET: /WebApi/MyParticipateWork/
 public MyParticipateWorkController(IProjectInfoService iProjectInfoService, IUserInfo iUserInfo, ISysUserService iSysUserService)
 {
     _iProjectInfoService = iProjectInfoService;
     _iUserInfo = iUserInfo;
     _iSysUserService = iSysUserService;
 }
 public ForgotPasswordController(ISysUserService sysUserService, ISysUserResetPasswordService sysUserResetPasswordService)
 {
     _sysUserService = sysUserService;
     _sysUserResetPasswordService = sysUserResetPasswordService;
 }
Exemple #42
0
 public LoginController(ISysUserService sysUserService, IUserInfo iUserInfo)
 {
     _sysUserService = sysUserService;
     _iUserInfo = iUserInfo;
 }
 public ColleagueController(ISysUserService iSysUserService)
 {
     _ISysUserService = iSysUserService;
 }
 public ColleagueController(ISysUserService iSysUserService, IProjectInfoService iProjectInfoService)
 {
     _iSysUserService = iSysUserService;
     _iProjectInfoService = iProjectInfoService;
 }
 public AccountController(ISysUserService _user)
 {
     userPrivoder = _user;
 }
 public IndexController(ISysUserService sysUserService)
 {
     _sysUserService = sysUserService;
 }
 public void TestFixtureSetUp()
 {
     UserService = ServiceFactory.UserService;
 }
 public IndexController(SysUserService sysUserService, ISysEnterpriseService sysEnterpriseService)
 {
     _sysUserService = sysUserService;
     _sysEnterpriseService = sysEnterpriseService;
 }
 public SysUserController(ISysUserService _user, IRoleService _role)
 {
     userPrivoder = _user;
     rolePrivoder = _role;
 }