protected void Store1_OnRefreshData(object sender, StoreRefreshDataEventArgs e)
        {
            SystemRoleWrapper             systemRoleWrapper = SystemRoleWrapper.FindById(RoleID);
            List <SystemPrivilegeWrapper> list1             = SystemPrivilegeWrapper.FindAll();
            List <string> list2 = SystemRoleWrapper.GetRoleAssignedPermissions(systemRoleWrapper);
            List <SystemPrivilegeWrapper> list3 = list1.FindAll(p => !list2.Contains(p.PrivilegeID.ToString()));

            Store1.DataSource = list3;
            Store1.DataBind();
        }
        private void InitStore1()
        {
            SystemRoleWrapper             systemRoleWrapper = SystemRoleWrapper.FindById(RoleID);
            List <SystemPrivilegeWrapper> list1             = SystemPrivilegeWrapper.FindAll();
            List <string> list2 = SystemRoleWrapper.GetRoleAssignedPermissions(systemRoleWrapper);
            List <SystemPrivilegeWrapper> list3 = list1.FindAll(p => !list2.Contains(p.PrivilegeID.ToString()));

            Store1.DataSource = list3;
            Store1.DataBind();
        }
        protected void Store2_OnRefreshData(object sender, StoreRefreshDataEventArgs e)
        {
            SystemRoleWrapper             systemRoleWrapper = SystemRoleWrapper.FindById(RoleID);
            List <string>                 list2             = SystemRoleWrapper.GetRoleAssignedPermissions(systemRoleWrapper);
            List <SystemPrivilegeWrapper> list3             = new List <SystemPrivilegeWrapper>();

            foreach (string s in list2)
            {
                list3.Add(SystemPrivilegeWrapper.FindById(Int32.Parse(s)));
            }
            Store2.DataSource = list3;
            Store2.DataBind();
        }
        private void InitStore2()
        {
            SystemRoleWrapper             systemRoleWrapper = SystemRoleWrapper.FindById(RoleID);
            List <string>                 list2             = SystemRoleWrapper.GetRoleAssignedPermissions(systemRoleWrapper);
            List <SystemPrivilegeWrapper> list3             = new List <SystemPrivilegeWrapper>();

            foreach (string s in list2)
            {
                list3.Add(SystemPrivilegeWrapper.FindById(Int32.Parse(s)));
            }
            Store2.DataSource = list3;
            Store2.DataBind();
        }