Changeset 1310 for trunk/workflow/js
- Timestamp:
- 08/12/09 11:28:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/js/userinterface/orgchart.js
r1305 r1310 34 34 35 35 var content = '<ul class="horizontalMenu">'; 36 content += '<li style="margin: 5px 5px 0 5px">Visualizar : <select >'36 content += '<li style="margin: 5px 5px 0 5px">Visualizar : <select onclick="this.parentNode.parentNode.lastChild.style.display = (this.options[1].selected) ? \'block\' : \'none\' ">' 37 37 content += '<option onclick="getAlphabeticalEmployees( )">Alfabética</option>' 38 38 content += '<option onclick="getHierarchicalArea( );" selected="true">Áreas</option>' … … 44 44 content += '</select></li>'; 45 45 content += '<li><a href="#" onclick="window.open(\'' + enderecoImagem + '\', \'extwindow\'); return false;"><img src="templateFile.php?file=images/Process.gif"> Gráfico</a></li>'; 46 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>'; 46 47 content += '<li><a href="#" onclick="printArea(); return false;"><img src="templateFile.php?file=images/imprimir.png" width="16"> Imprimir</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>';48 48 content += '</ul>'; 49 49 content += '<br/>'; … … 201 201 function getUsefulPhones( ) 202 202 { 203 workflowUserInterfaceCurrentAreaID = 0; 204 203 205 cExecute("$this.bo_userinterface.getUsefulPhones", displayUsefulPhones, ""); 204 206 } … … 206 208 function getAreaWithSubtituteBoss( ) 207 209 { 210 workflowUserInterfaceCurrentAreaID = 0; 211 208 212 cExecute("$this.bo_userinterface.getAreaWithSubtituteBoss", displayAreaWithSubtituteBoss, ""); 209 213 } … … 211 215 function getCostCenters() 212 216 { 217 workflowUserInterfaceCurrentAreaID = 0; 218 213 219 cExecute("$this.bo_userinterface.getCostCenters", displayCostCenters, ""); 214 220 } … … 216 222 function getHierarchicalArea() 217 223 { 224 workflowUserInterfaceCurrentAreaID = 0; 225 218 226 cExecute("$this.bo_userinterface.getHierarchicalArea", displayHierarchicalAreas, ""); 219 227 } … … 226 234 function getCategoriesList() 227 235 { 236 workflowUserInterfaceCurrentAreaID = 0; 237 238 var div = $('orgchartEmployees'); 239 div.innerHTML = ''; 240 228 241 function resultGetCategoriesList(data) 229 242 { … … 243 256 function getManning( ) 244 257 { 258 workflowUserInterfaceCurrentAreaID = 0; 259 260 var div = $('orgchartEmployees'); 261 div.innerHTML = ''; 262 245 263 function resultGetManning( data ) 246 264 { … … 560 578 } 561 579 580 card.appendChild( document.createElement( 'br' ) ); 581 562 582 if ( card_data[ 'sitio' ] ) 563 583 {
Note: See TracChangeset
for help on using the changeset viewer.