protected override void DeleteDomainObjects(ArrayList domainObjects)
 {
     if (facade == null)
     {
         facade = new SystemSettingFacadeFactory(base.DataProvider).Create();
     }
     facade.DeleteUserGroup2Module((UserGroup2Module[])domainObjects.ToArray(typeof(UserGroup2Module)));
 }
Esempio n. 2
0
        //删除STARTPAGE 的权限
        private void DeleteDefaultPageRight(ArrayList domainObjects)
        {
            SystemSettingFacade facade = new SystemSettingFacade(base.DataProvider);

            foreach (UserGroup ug in domainObjects)
            {
                UserGroup2Module relation = new UserGroup2Module();
                relation.UserGroupCode = ug.UserGroupCode;
                relation.ModuleCode    = "STARTPAGE";

                facade.DeleteUserGroup2Module(relation);
            }
        }