Changeset 1266 for trunk/workflow/js/userinterface/orgchart.js
- Timestamp:
- 08/04/09 11:51:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/js/userinterface/orgchart.js
r1245 r1266 38 38 content += '<option onclick="">Alfabética</option>' 39 39 content += '<option onclick="getHierarchicalArea( );">Áreas</option>' 40 content += '<option onclick=" ">Lotação</option>'40 content += '<option onclick="getManning( )">Lotação</option>' 41 41 content += '<option onclick="getUsefulPhones( );">Telefones Úteis</option>' 42 42 content += '<option onclick="getAreaWithSubtituteBoss( )">Substituição de Chefia</option>' 43 43 content += '<option onclick="getCostCenters( );">Centros de Custo</option>' 44 content += '<option onclick=" ">Vínculos</option>'44 content += '<option onclick="getCategoriesList( )">Vínculos</option>' 45 45 content += '</select></li>'; 46 46 content += '<li><a href="#" onclick="window.open(\'' + enderecoImagem + '\', \'extwindow\'); return false;"><img src="templateFile.php?file=images/Process.gif"> Gráfico</a></li>'; … … 244 244 245 245 cExecute("$this.bo_userinterface.getCategoriesList", resultGetCategoriesList, ""); 246 } 247 248 function 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/>' + ' <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, ""); 246 265 } 247 266 … … 349 368 } 350 369 370 function loadManningEmployees( locationID ) 371 { 372 workflowUserInterfaceCurrentAreaID = 0; 373 cExecute('$this.bo_userinterface.getManningEmployees', printEmployeesHandler, 'locationID=' + locationID); 374 } 375 351 376 function orgchartSearchEmployee(searchTerm) 352 377 {
Note: See TracChangeset
for help on using the changeset viewer.