40 lines
		
	
	
		
			995 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			995 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Text;
 | 
						|
using Csla;
 | 
						|
 | 
						|
namespace Volian.Object.Library
 | 
						|
{
 | 
						|
	public partial class RolePermission : BusinessBase<RolePermission>
 | 
						|
	{
 | 
						|
		public bool ReadAccess
 | 
						|
		{
 | 
						|
			get { return ((PermValue & 1) == 1); }
 | 
						|
			set { PermValue = (value ? PermValue | 1 : PermValue ^ (PermValue & 1)); }
 | 
						|
		}
 | 
						|
		public bool WriteAccess
 | 
						|
		{
 | 
						|
			get { return ((PermValue & 2) == 2); }
 | 
						|
			set { PermValue = (value ? PermValue | 2 : PermValue ^ (PermValue & 2)); }
 | 
						|
		}
 | 
						|
		public bool CreateAccess
 | 
						|
		{
 | 
						|
			get { return ((PermValue & 4) == 4); }
 | 
						|
			set { PermValue = (value ? PermValue | 4 : PermValue ^ (PermValue & 4)); }
 | 
						|
		}
 | 
						|
		public bool DeleteAccess
 | 
						|
		{
 | 
						|
			get { return ((PermValue & 8) == 8); }
 | 
						|
			set { PermValue = (value ? PermValue | 8 : PermValue ^ (PermValue & 8)); }
 | 
						|
		}
 | 
						|
		public List<vlnValueKey> PermADLookup
 | 
						|
		{
 | 
						|
			get { return Permission.PermADLookup; }
 | 
						|
		}
 | 
						|
		public List<vlnValueKey> PermLevelLookup
 | 
						|
		{
 | 
						|
			get { return Permission.PermLevelLookup; }
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 |