Esempio n. 1
0
 protected string GetRoleText(Scope scope, bool IsAdmin, bool IsShipDirector)
 {
     if (IsShipDirector)
     {
         return("Ship Director");
     }
     else
     {
         return(LookupBLL.GetRoleNameUsingScope(scope, IsAdmin, (Descriptor?)null));
     }
 }
Esempio n. 2
0
 protected string GetRoleNameColumnValue(UserSearchViewData viewData)
 {
     if (viewData.UserRoleText == string.Empty)
     {
         if (viewData.IsShipDirector)
         {
             return("Ship Director");
         }
         else
         {
             return(LookupBLL.GetRoleNameUsingScope(viewData.Scope, viewData.IsAdmin, (Descriptor?)null));
         }
     }
     else
     {
         return(viewData.UserRoleText);
     }
 }
Esempio n. 3
0
 protected string GetUserScopeForRegionalUser(bool IsAdmin)
 {
     return(LookupBLL.GetRoleNameUsingScope(UserData.Scope, IsAdmin, (Descriptor?)null));
 }