protected override void AddDomainObject(ArrayList domainObject) { if (facade == null) { facade = new SystemSettingFacadeFactory(base.DataProvider).Create(); } facade.AddUserGroup2Module((UserGroup2Module[])domainObject.ToArray(typeof(UserGroup2Module))); }
//默认添加STARTPAGE 的权限 private void AddDefaultPageRight() { UserGroup2Module relation = new UserGroup2Module(); relation.UserGroupCode = FormatHelper.PKCapitalFormat(FormatHelper.CleanString(this.txtUserGroupCodeEdit.Text, 40)); relation.ModuleCode = "STARTPAGE"; SecurityFacade securityFacade = new SecurityFacade(base.DataProvider); relation.ViewValue = securityFacade.SpellViewValueFromRights(new bool[] { true, true, true }); relation.MaintainUser = this.GetUserCode(); SystemSettingFacade facade = new SystemSettingFacade(base.DataProvider); facade.AddUserGroup2Module(relation); }