- Timestamp:
- 08/12/09 11:28:43 (15 years ago)
- Location:
- trunk/workflow
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/class.CachedLDAP.inc.php
r1067 r1310 83 83 * @access private 84 84 */ 85 private $cacheDays = 5;85 private $cacheDays = 2; 86 86 87 87 /** -
trunk/workflow/inc/class.so_userinterface.inc.php
r1276 r1310 246 246 $employees = $result->GetArray(-1); 247 247 $cachedLDAP = $GLOBALS['workflow']['factory']->newInstance('CachedLDAP'); 248 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_ LDAP_DATABASE);248 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 249 249 $categoriesCount = array(); 250 250 for ($i = 0; $i < count($employees); $i++) … … 319 319 $employees = $result->GetArray(-1); 320 320 $cachedLDAP = $GLOBALS['workflow']['factory']->newInstance('CachedLDAP'); 321 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_ LDAP_DATABASE);321 $cachedLDAP->setOperationMode($cachedLDAP->OPERATION_MODE_NORMAL); 322 322 for ($i = 0; $i < count($employees); $i++) 323 323 { … … 520 520 $employees = $result -> GetArray( -1 ); 521 521 $cachedLDAP = $GLOBALS[ 'workflow' ][ 'factory' ] -> newInstance( 'CachedLDAP' ); 522 $cachedLDAP -> setOperationMode( $cachedLDAP -> OPERATION_MODE_ LDAP_DATABASE);522 $cachedLDAP -> setOperationMode( $cachedLDAP -> OPERATION_MODE_NORMAL ); 523 523 524 524 $categoriesCount = array( ); … … 592 592 593 593 $cachedLDAP = $GLOBALS[ 'workflow' ][ 'factory' ] -> newInstance( 'CachedLDAP' ); 594 $cachedLDAP -> setOperationMode( $cachedLDAP -> OPERATION_MODE_ LDAP_DATABASE);594 $cachedLDAP -> setOperationMode( $cachedLDAP -> OPERATION_MODE_NORMAL ); 595 595 596 596 $categoriesCount = array( ); … … 617 617 usort( $employees, create_function( '$a,$b', 'return strcasecmp($a[\'cn\'],$b[\'cn\']);' ) ); 618 618 619 $paging = $GLOBALS['workflow']['factory']->newInstance('Paging', 100, $_POST);619 $paging = $GLOBALS['workflow']['factory']->newInstance('Paging', 50, $_POST); 620 620 $employees = $paging->restrictItems( $employees ); 621 621 -
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.