Ejemplo n.º 1
0
        protected void OnReady()
        {
            var accountLevels = AccountLevelPolicyService.Query().Where(x => x.State == AccountLevelPolicyStates.Normal).Select(x => new ListAccountLevelPolicy(x)).ToList();

            Levels = new MultiCheckList <ListAccountLevelPolicy>(accountLevels.Where(x => InnerObject.IncludeLevel(x.AccountLevelPolicyId)));
            Levels.Merge(accountLevels);
        }
Ejemplo n.º 2
0
        public void Ready()
        {
            Photo = new Picture("~/content/pointgiftphotos/{0}", InnerObject.Photo, 120);
            List <AccountLevelPolicy> accountLevels = AccountLevelPolicyService.Query().Where(x => x.State == AccountLevelPolicyStates.Normal).ToList();

            Levels = new MultiCheckList <ListAccountLevelPolicy>(accountLevels.Where(x => InnerObject.IncludeLevel(x.AccountLevelPolicyId)).Select(x => new ListAccountLevelPolicy(x)));
            Levels.Merge(accountLevels.Select(x => new ListAccountLevelPolicy(x)));
        }