Ignore:
Timestamp:
10/09/12 16:13:24 (12 years ago)
Author:
viani
Message:

Ticket #3150 - Modificado indicativo de inatividade de usuário no organograma

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/workflow/js/userinterface/orgchart.js

    r3212 r7384  
    341341                /* list the employees */ 
    342342                var complement = ''; 
     343                var employeeNotFound = false; 
    343344                for (var i = 0; i < employees.length; i++) 
    344345                { 
     
    348349                                complement = ''; 
    349350                        if (employees[i]['removed']) 
    350                                 complement += ' <font color="red">(inativo)</font>'; 
     351                        { 
     352                                complement += ' (*)'; 
     353                                employeeNotFound = true; 
     354                        } 
    351355                        content += '<tr class="linha'+ i%2 + (useCategories ? ' categoria_' + employees[i]['funcionario_categoria_id'] : '') + '" onmouseover="this.className=\'highlight0\'" onmouseout="this.className=\'linha'+ i%2 + (useCategories ? ' categoria_' + employees[i]['funcionario_categoria_id'] : '') + '\'">'; 
    352356                        content += '<td><a href="javascript:void(0);" onmouseover="getEmployeeInfoTimer(event, ' + employees[i]['funcionario_id'] + '); return false;" onmouseout="hideEmployeeInfo(); return false;">' + employees[i]['cn'] + complement + '</a></td>'; 
     
    364368                } 
    365369                content += '</table>'; 
     370 
     371                /* display a indication that some employees where not found */ 
     372                if (employeeNotFound) 
     373                { 
     374                        content += '<hr><p>(*) = Usuários não localizados no catálogo do Expresso.</p>'; 
     375                } 
    366376 
    367377                if ( arguments[ 1 ] != 'returnResult' ) 
Note: See TracChangeset for help on using the changeset viewer.