Se quita columna de supervisor para el usuario ISBAN.

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@148 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
roberto 2012-06-11 15:39:42 +00:00
parent 7a8dbc2420
commit 40ddf5a541

View File

@ -113,11 +113,14 @@ echo " <td align=\"center\">".$locale['1023']."<br />" .
" <a href=\"".$destinoURL."?byEstado=".$tipoPedidos."&order=".$orderView."&modo=asc".$variablesExtra."\" ><img src=\"css/asc.png\" /></a>" .
" <a href=\"".$destinoURL."?byEstado=".$tipoPedidos."&order=".$orderView."&modo=desc".$variablesExtra."\" ><img src=\"css/desc.png\" /></a></td>";
//Si es usuario cliente para consulta quitamos las acciones para ganr espacio
if (!$usuario->tieneRol("7")) {
// Gerente
$orderView="gerente";
echo " <td align=\"center\">".$locale['1027']."<br />" .
" <a href=\"".$destinoURL."?byEstado=".$tipoPedidos."&order=".$orderView."&modo=asc".$variablesExtra."\" ><img src=\"css/asc.png\" /></a>" .
" <a href=\"".$destinoURL."?byEstado=".$tipoPedidos."&order=".$orderView."&modo=desc".$variablesExtra."\" ><img src=\"css/desc.png\" /></a></td>";
}
echo " <td align=\"center\">".$locale['Ofertas009']."</td>";
// Capacidad profesional
@ -176,7 +179,11 @@ if(count($listadePedidos)==0){
echo '<td align="center">'.$pedidoAct->getValor("nombre").'</td>';
echo '<td align="center">'.$pedidoAct->getValor("nombre_estado").'</td>';
echo '<td align="center">'.nombre_cliente($pedidoAct->getValor("cliente")).'</td>';
//Si es usuario cliente para consulta quitamos las acciones para ganr espacio
if (!$usuario->tieneRol("7")) {
echo '<td align="center">'.$pedidoAct->getValor("nombre_gerente").'</td>';
}
//////////////////////////////////////
//OFERTAS/////////////////////////////
@ -189,6 +196,7 @@ $listaOfertas = $pedidoAct->getListaOfertas();
for ($j = 0; $j < count($listaOfertas); $j++) {
$ofertaAct = $listaOfertas[$j];
echo '<a href="oferta.php?idOferta=' . $ofertaAct->getValor("oid") . '">'.$ofertaAct->getValor("referencia").'</a>&nbsp;:&nbsp;&nbsp;'.$ofertaAct->getValor("nombre_estado").'&nbsp;&nbsp;';
if ($ofertaAct->getValor("nombre_candidato")=="") {
echo "&nbsp;-&nbsp;No asignado";
}
@ -200,7 +208,13 @@ for ($j = 0; $j < count($listaOfertas); $j++) {
echo '&nbsp;-&nbsp;'. $ofertaAct->getValor("nombre_candidato");
}
}
echo '&nbsp;&nbsp;"'. $ofertaAct->getValor("nombre_gerente").'"<br/>';
//Si es usuario cliente para consulta quitamos las acciones para ganr espacio
if (!$usuario->tieneRol("7")) {
echo '&nbsp;&nbsp;"'. $ofertaAct->getValor("nombre_gerente").'"<br/>';
}
else
echo '<br/>';
}
echo '</td>';