/// <summary> /// 刷新应用模块 /// </summary> public void RefreshModules() { applications = new ReadOnlyCollection <SysApplication>(SysApplication.FindAll()); modules = new ReadOnlyCollection <SysModule>(SysModule.FindAll(Expression.Eq(SysModule.Prop_Status, 1))); auths = new ReadOnlyCollection <SysAuth>(SysAuth.FindAll()); roles = new ReadOnlyCollection <SysRole>(SysRole.FindAll()); groups = new ReadOnlyCollection <SysGroup>(SysGroup.FindAll()); }
/// <summary> /// 刷新应用模块 /// </summary> private void RefreshModules() { applications = new List <SysApplication>(SysApplication.FindAll()); modules = new List <SysModule>(SysModule.FindAll(Expression.Eq(SysModule.Prop_Status, 1))); auths = new List <SysAuth>(SysAuth.FindAll()); roles = new List <SysRole>(SysRole.FindAll()); groups = new List <SysGroup>(SysGroup.FindAll()); }