Ignore:
Timestamp:
08/04/09 11:51:39 (15 years ago)
Author:
rodsouza
Message:

Ticket #589 - Adicionando filtro por localidade.

File:
1 edited

Legend:

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

    r1245 r1266  
    3838        content += '<option onclick="">Alfabética</option>' 
    3939        content += '<option onclick="getHierarchicalArea( );">Áreas</option>' 
    40         content += '<option onclick="">Lotação</option>' 
     40        content += '<option onclick="getManning( )">Lotação</option>' 
    4141        content += '<option onclick="getUsefulPhones( );">Telefones Úteis</option>' 
    4242        content += '<option onclick="getAreaWithSubtituteBoss( )">Substituição de Chefia</option>' 
    4343        content += '<option onclick="getCostCenters( );">Centros de Custo</option>' 
    44         content += '<option onclick="">Vínculos</option>' 
     44        content += '<option onclick="getCategoriesList( )">Vínculos</option>' 
    4545        content += '</select></li>'; 
    4646        content += '<li><a href="#" onclick="window.open(\'' + enderecoImagem + '\', \'extwindow\'); return false;"><img src="templateFile.php?file=images/Process.gif">&nbsp;&nbsp;Gráfico</a></li>'; 
     
    244244 
    245245        cExecute("$this.bo_userinterface.getCategoriesList", resultGetCategoriesList, ""); 
     246} 
     247 
     248function getManning( ) 
     249{ 
     250        function resultGetManning( data ) 
     251        { 
     252                if ( _checkError( data ) ) 
     253                        return; 
     254 
     255                var content = '<center><strong>Lotalidades</strong></center>'; 
     256                for ( var i = 0; i < data.length; i++ ) 
     257                        content += '<br/>' + '&nbsp; &nbsp; &nbsp; &nbsp;<a href="javascript:void(0)" id="localidade_' + data[i]['localidade_id'] + '" onclick="tmp = $$(\'div#orgchartAreas a.destaque\'); if (tmp[0]) tmp[0].removeClassName(\'destaque\'); this.addClassName(\'destaque\');loadManningEmployees(' + data[i]['localidade_id'] + ')">' + data[i]['descricao'] + '</a>'; 
     258 
     259                content += '<br/><br/>'; 
     260 
     261                $('orgchartAreas').innerHTML = content; 
     262        } 
     263 
     264        cExecute("$this.bo_userinterface.getManning", resultGetManning, ""); 
    246265} 
    247266 
     
    349368} 
    350369 
     370function loadManningEmployees( locationID ) 
     371{ 
     372        workflowUserInterfaceCurrentAreaID = 0; 
     373        cExecute('$this.bo_userinterface.getManningEmployees', printEmployeesHandler, 'locationID=' + locationID); 
     374} 
     375 
    351376function orgchartSearchEmployee(searchTerm) 
    352377{ 
Note: See TracChangeset for help on using the changeset viewer.