Exemplo n.º 1
0
 public DataSetETRoles GetUsersGISRoles(string UserName)
 {
     DataSetETRoles _ETRoles = new DataSetETRoles();
     DataSetETRoles.ETTableRow GISRow = _ETRoles.ETTable.NewETTableRow();
     List<ETRoleEntity> GISRoles;
     using (UserMaintenanceServiceProxy proxy = new UserMaintenanceServiceProxy())
     {
         GISRoles = new List<ETRoleEntity>();
         GISRoles = proxy.GetGISRolesForUser(UserName);
         for (int i = 0; i < GISRoles.Count; i++)
         {
             GISRow = _ETRoles.ETTable.NewETTableRow();
             GISRow.BeginEdit();
            // GISRow[_ETRoles.ETTable.RoleIDColumn.ColumnName] = GISRoles[i].RoleName;
             GISRow[_ETRoles.ETTable.RoleNameColumn.ColumnName] = GISRoles[i].RoleName;
             GISRow[_ETRoles.ETTable.DescriptionColumn.ColumnName] = GISRoles[i].RoleName;
             GISRow[_ETRoles.ETTable.UserNameColumn.ColumnName] = GISRoles[i].UserId;
             GISRow[_ETRoles.ETTable.RoleTypeColumn.ColumnName] = Framework.Security.UserManagement.Interface.Constants.EnablingTechnologies.GIS.ToString();
             GISRow.EndEdit();
             _ETRoles.ETTable.AddETTableRow(GISRow);
         }
     }
     return _ETRoles;
 }