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;
         }
     }
 }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public BasicPersonRole(BasicPersonRole original)
     : this(original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
 {
 }
Exemple #3
0
 public static PersonRole FromBasic (BasicPersonRole basic)
 {
     return new PersonRole(basic);
 }
Exemple #4
0
 private PersonRole (BasicPersonRole basic) : base(basic)
 {
 }
 /// <summary>
 /// Copy constructor.
 /// </summary>
 public BasicPersonRole (BasicPersonRole original)
     : this(original.roleId, original.personId, original.type, original.organizationId, original.geographyId)
 {
 }