Changeset 3167 for branches/2.2/workflow/js/userinterface/orgchart.js
- Timestamp:
- 08/17/10 16:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/workflow/js/userinterface/orgchart.js
r1452 r3167 45 45 content += '</select></a></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>'; 47 content += '<li><a><input type="text" name="search_term" id="search_term" onkeypress="if (((event.which) ? event.which : event.keyCode) == 13) $(\'search_span\').onclick(); return true;" /><span id="search_span" style="cursor: pointer;" onclick="tmp = $$(\'div#orgchartAreas a.destaque\'); if (tmp[0]) tmp[0].removeClassName(\'destaque\'); orgchartSearchEmployee($F(\'search_term\')); return false;"> busca </span></a></li>';47 content += '<li><a><input type="text" name="search_term" id="search_term" onkeypress="if (((event.which) ? event.which : event.keyCode) == 13) $(\'search_span\').onclick(); return true;" /><span id="search_span" style="cursor: pointer;" onclick="tmp = $$(\'div#orgchartAreas a.destaque\'); if (tmp[0]) tmp[0].removeClassName(\'destaque\'); orgchartSearchEmployee($F(\'search_term\')); return false;"> busca </span><img src="templateFile.php?file=images/help.png" title="Informe o nome, área ou telefone a ser pesquisado." style="cursor: help" /></a></li>'; 48 48 content += '<li><a href="#" onclick="printArea(); return false;"><img src="templateFile.php?file=images/imprimir.png" width="16"> Imprimir</a></li>'; 49 49 content += '</ul>'; … … 171 171 var content = '<center><h2>Substituição de Chefia</h2></center>'; 172 172 content += '<table class="employeeList">'; 173 content += '<tr><th>Área</th><th>Titular</th><th>Substituto</th>< /tr>';173 content += '<tr><th>Área</th><th>Titular</th><th>Substituto</th><th>Data de início</th><th>Data de término</th></tr>'; 174 174 var current; 175 175 for (var i = 0; i < data.length; i++) … … 180 180 content += '<td>' + current['titular'] + '</td>'; 181 181 content += '<td>' + current['substituto'] + '</td>'; 182 content += '<td>' + current['data_inicio'] + '</td>'; 183 content += '<td>' + current['data_fim'] + '</td>'; 182 184 content += '</tr>'; 183 185 } … … 294 296 295 297 /* no employee to list */ 296 if ( ( ! data['employees'] || data['employees'].length == 0 ) && ( ! data['bygroup'] || data['bygroup'].length == 0 ) ) 298 if ( ( ! data['employees'] || data['employees'].length == 0 ) && 299 ( ! data['bygroup'] || data['bygroup'].length == 0 ) && 300 ( ! data['bytelephone'] || data['bytelephone'].length == 0 ) ) 297 301 { 298 302 div.innerHTML = '<br/><br/><center><strong>Nenhum registro encontrado</strong></center>'; … … 317 321 /* build the display table (headers)*/ 318 322 content += '<table id="employeeList" class="employeeList" style="clear: both">'; 319 content += '<tr >';323 content += '<tr class="message_header">'; 320 324 content += '<th>Nome</th>'; 321 325 if (useArea) … … 344 348 complement = ''; 345 349 if (employees[i]['removed']) 346 complement += ' <font color="red">( excluído)</font>';350 complement += ' <font color="red">(inativo)</font>'; 347 351 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'] : '') + '\'">'; 348 352 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>'; … … 477 481 div.innerHTML += '</center><span style="color:red">Busca pelo nome: ' + searchTerm.toUpperCase( ) + '</span>' + content; 478 482 483 // printing records found by group 479 484 if ( data['bygroup'] && data['bygroup'].length ) 480 485 { … … 484 489 if ( content ) 485 490 div.innerHTML += '<br/><br/><span style="color:red">Busca pelo setor: ' + searchTerm.toUpperCase( ) + '</span><br/>' + content; 491 } 492 493 // printing records found by telephoneNumber 494 if ( data['bytelephone'] && data['bytelephone'].length ) 495 { 496 employees = [ ]; 497 employees[ 'employees' ] = data['bytelephone']; 498 content = printEmployeesHandler( employees, 'returnResult' ); 499 if ( content ) 500 div.innerHTML += '<br/><br/><span style="color:red">Busca pelo telefone: ' + searchTerm.toUpperCase( ) + '</span><br/>' + content; 486 501 } 487 502
Note: See TracChangeset
for help on using the changeset viewer.