public Role (BasicPersonRole org)
     : base(org)
 {
     organisationName = Organization.FromIdentity(this.OrganizationId).Name;
     personName = Person.FromIdentity(this.PersonId).Name;
     roleName = Enum.GetName(this.Type.GetType(), this.Type);
     geographyName = "";
     if (RoleTypes.ClassOfRole(this.Type) == RoleClass.Local)
     {
         if (GeographyId > 0)
         {
             geographyName = Geography.FromIdentity(GeographyId).Name;
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public BasicPersonRole(BasicPersonRole original)
     : this(original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
 {
 }
Exemplo n.º 3
0
 public static PersonRole FromBasic (BasicPersonRole basic)
 {
     return new PersonRole(basic);
 }
Exemplo n.º 4
0
 private PersonRole (BasicPersonRole basic) : base(basic)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public BasicPersonRole (BasicPersonRole original)
     : this(original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
 {
 }