Esempio n. 1
0
        private void BuildPermissions()
        {
            var permissions = BOL.BusinessObject.GetAllAsDataView <BOL.Permission>();

            permissions.Sort           = BOL.Permission.Permission_Field + " ASC";
            PermissionsRptr.DataSource = permissions;
            PermissionsRptr.DataBind();

            PermissionsCount.Text = permissions.Count.ToString();
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        protected void BindPermissionList()
        {
            //Permission biz = new Permission();
            //biz.GetAll();

            //DataView permissionsList = biz.DataSourceView;

            DataView permissionsList = BusinessObject.GetAllAsDataView <Permission>();

            // Bind List of CheckBoxes
            PermissionsRptr.DataSource = permissionsList;
            PermissionsRptr.DataBind();

            // Bind Legend
            Legend.DataSource = permissionsList;
            Legend.DataBind();
        }