public IsRestrictedUserController(IIsRestrictedUserRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
示例#2
0
        public ClassShiftController(IClassShiftRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ClassShiftRepository = repository;
        }
        public AcademicLevelController(IAcademicLevelRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.AcademicLevelRepository = repository;
        }
        public ConfigurationProfileController(IConfigurationProfileRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ConfigurationProfileRepository = repository;
        }
示例#5
0
        public CreateMenuController(ICreateMenuRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
        public PublishedContentViewController(IPublishedContentViewRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.PublishedContentViewRepository = repository;
        }
        public GetCustomFieldFormNameController(IGetCustomFieldFormNameRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
        public FbAccessTokenController(IFbAccessTokenRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.FbAccessTokenRepository = repository;
        }
        public VerificationStatusController(IVerificationStatusRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.VerificationStatusRepository = repository;
        }
        public GetCategoryIdByCategoryAliasController(IGetCategoryIdByCategoryAliasRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
        public AddEmailSubscriptionController(IAddEmailSubscriptionRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
示例#12
0
        public MenuItemViewController(IMenuItemViewRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.MenuItemViewRepository = repository;
        }
        public CanRegisterWithGoogleController(ICanRegisterWithGoogleRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
示例#14
0
        public GetFlagTypeIdController(IGetFlagTypeIdRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
        public GoogleUserExistsController(IGoogleUserExistsRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
示例#16
0
        public BatchController(IBatchRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.BatchRepository = repository;
        }
示例#17
0
        public AppDependencyController(IAppDependencyRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.AppDependencyRepository = repository;
        }
示例#18
0
        public RegistrationController(IRegistrationRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.RegistrationRepository = repository;
        }
        public CustomFieldDefinitionViewController(ICustomFieldDefinitionViewRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.CustomFieldDefinitionViewRepository = repository;
        }
示例#20
0
        public KanbanDetailController(IKanbanDetailRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.KanbanDetailRepository = repository;
        }
示例#21
0
        public EntityAccessController(IEntityAccessRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.EntityAccessRepository = repository;
        }
示例#22
0
        public HasAccountController(IHasAccountRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.repository = repository;
        }
示例#23
0
        public EmailQueueController(IEmailQueueRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.EmailQueueRepository = repository;
        }
        public ScholorshipTypeController(IScholorshipTypeRepository repository, string catalog, LoginView view)
        {
            this._LoginId = view.LoginId.To<long>();
            this._UserId = view.UserId.To<int>();
            this._OfficeId = view.OfficeId.To<int>();
            this._Catalog = catalog;

            this.ScholorshipTypeRepository = repository;
        }
示例#25
0
        public static LoginView GetCurrent(string catalog, long loginId)
        {
            var login = new LoginView();

            if (loginId == 0)
            {
                return login;
            }

            string key = catalog + "-" + loginId.ToString(CultureInfo.InvariantCulture);
            var cacheObject = CacheFactory.GetFromDefaultCacheByKey(key);
            login = cacheObject as LoginView;

            var view = login ?? SetCurrentLogin(catalog, loginId);

            UpdateActivity(view.UserId.To<int>(), view.IpAddress, view.Browser);
            return view;
        }
示例#26
0
        private static Dictionary<string, object> GetDictionary(string catalog, LoginView metaLogin)
        {
            var dictionary = new Dictionary<string, object>();

            if (metaLogin == null)
            {
                return dictionary;
            }

            dictionary.Add("Catalog", catalog);
            dictionary.Add("Culture", metaLogin.Culture);
            dictionary.Add("Email", metaLogin.Email);
            dictionary.Add("Office", metaLogin.Office);
            dictionary.Add("OfficeId", metaLogin.OfficeId);
            dictionary.Add("OfficeName", metaLogin.OfficeName);
            dictionary.Add("RoleName", metaLogin.RoleName);
            dictionary.Add("UserId", metaLogin.UserId);
            dictionary.Add("UserName", metaLogin.Email);

            return dictionary;
        }
示例#27
0
文件: AppUsers.cs 项目: frapid/frapid
        private static Dictionary<string, object> GetDictionary(string database, LoginView metaLogin)
        {
            var dictionary = new Dictionary<string, object>();

            if(metaLogin == null)
            {
                return dictionary;
            }

            dictionary.Add("Database", database);
            dictionary.Add("Culture", metaLogin.Culture);
            dictionary.Add("Email", metaLogin.Email);
            dictionary.Add("Office", metaLogin.Office);
            dictionary.Add("OfficeId", metaLogin.OfficeId);
            dictionary.Add("OfficeCode", metaLogin.OfficeCode);
            dictionary.Add("OfficeName", metaLogin.OfficeName);
            dictionary.Add("RoleName", metaLogin.RoleName);
            dictionary.Add("UserId", metaLogin.UserId);
            dictionary.Add("UserName", metaLogin.Name);
            dictionary.Add("ZipCode", metaLogin.ZipCode);
            dictionary.Add("PoBox", metaLogin.PoBox);
            dictionary.Add("AddressLine1", metaLogin.AddressLine1);
            dictionary.Add("AddressLine2", metaLogin.AddressLine2);
            dictionary.Add("Street", metaLogin.Street);
            dictionary.Add("State", metaLogin.State);
            dictionary.Add("City", metaLogin.City);
            dictionary.Add("Country", metaLogin.Country);
            dictionary.Add("CurrencyCode", metaLogin.CurrencyCode);
            dictionary.Add("Phone", metaLogin.Phone);
            dictionary.Add("Fax", metaLogin.Fax);
            dictionary.Add("HasVat", metaLogin.HasVat);
            dictionary.Add("IsAdministrator", metaLogin.IsAdministrator);
            dictionary.Add("LastSeenOn", metaLogin.LastSeenOn);
            dictionary.Add("LoginTimestamp", metaLogin.LoginTimestamp);
            dictionary.Add("Url", metaLogin.Url);
            dictionary.Add("PanNumber", metaLogin.PanNumber);
            dictionary.Add("RegistrationDate", metaLogin.RegistrationDate);
            dictionary.Add("Browser", metaLogin.Browser);
            dictionary.Add("IpAddress", metaLogin.IpAddress);

            return dictionary;
        }