Se quitan estados 521, 522, 523 por 520 (Rechazados a secas)

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@111 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
roberto 2011-12-15 17:11:47 +00:00
parent e1941078ae
commit eee0429279
5 changed files with 12 additions and 29 deletions

View File

@ -216,7 +216,7 @@ return $resultado;
*/
$sesion = $this->usuario->getValor("oid");
//Nos declaramos un array de estados eliminables:
$estados_eliminables = array("510","521","522","523","540");
$estados_eliminables = array("510","520","540");
if ($this->usuario->tieneRol(1) || $this->usuario->tieneRol(4)) {
$estado = $this->getValor("estado");
if (in_array($estado, $estados_eliminables)) {

View File

@ -95,7 +95,7 @@ include_once("Empleado.php");
if($estado > 0){
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado='".$estado."' ".$this->orden;
} else{
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado in ('510', '520', '521', '522', '523','530', '540', '550', '560')$this->orden";
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado in ('510', '520', '530', '540', '550', '560')$this->orden";
}
}

View File

@ -239,7 +239,7 @@ if ($nombre == "estado") {
* Devuelve una lista de candidatos disponibles para una oferta, que son todos menos los no disponibles #679 Peticion
*/
function getCandidatosDisponibles() {
return $this->getCandidatos("510,521,522,523,540,550,560");
return $this->getCandidatos("510,520,540,550,560");
}
/**
@ -288,9 +288,7 @@ if ($nombre == "estado") {
//El estado del candidato no cambia si está asociado a alguna otra oferta, sino pasará a Disponible
case 560:;
case 510:;
case 521:;
case 522:;
case 523:;
case 520:;
case 530:;
case 540:;
case 550:
@ -343,9 +341,7 @@ if ($nombre == "estado") {
//Pendiente de clasificar, Rechazados tipo1, tipo2, tipo3, Disponible. Todos los candidatos con alguno de estos estados cambiarán a Disponible asignado (560)
case 510:;
case 521:;
case 522:;
case 523:;
case 520:;
case 540:
$this->setCampo("candidato", $idCandidato);
//Modificamos historial de candidato

View File

@ -85,9 +85,7 @@ CREATE TABLE IF NOT EXISTS `candidatos_estados` (
INSERT INTO `candidatos_estados` (`cod`, `idioma`, `nombre`, `tipo`) VALUES
(510, 'sp', 'Pendiente de clasificar', 'candidato'),
(521, 'sp', 'Rechazado por antecedentes', 'candidato'),
(522, 'sp', 'Rechazado por no cumplir requisitos mínimos', 'candidato'),
(523, 'sp', 'Rechazado por perfil no demandado', 'candidato'),
(520, 'sp', 'Rechazado', 'candidato'),
(530, 'sp', 'No disponible', 'candidato'),
(540, 'sp', 'Disponible', 'candidato'),
(550, 'sp', 'Disponible asignado exclusivo', 'candidato'),
@ -136,21 +134,13 @@ INSERT INTO `candidatos_transiciones` (`inicial`, `final`, `transicion`, `rol`)
(100, 90, 0, '1.4'),
(100, 110, 0, '1.4'),
(110, 90, 0, '1.4'),
(510, 521, 0, '1.4'),
(510, 522, 0, '1.4'),
(510, 523, 0, '1.4'),
(510, 520, 0, '1.4'),
(510, 530, 0, '1.4'),
(510, 540, 0, '1.4'),
(510, 560, 0, '1.4'),
(521, 510, 0, '1.4'),
(521, 540, 0, '1.4'),
(521, 560, 0, '1.4'),
(522, 510, 0, '1.4'),
(522, 540, 0, '1.4'),
(522, 560, 0, '1.4'),
(523, 510, 0, '1.4'),
(523, 540, 0, '1.4'),
(523, 560, 0, '1.4'),
(520, 510, 0, '1.4'),
(520, 540, 0, '1.4'),
(520, 560, 0, '1.4'),
(530, 510, 0, '1.4'),
(530, 540, 0, '1.4'),
(530, 560, 0, '1.4'),

View File

@ -38,10 +38,7 @@ if (isset($variablesExtra)) {
<li class="<?php if ($tipoPedidos=="0") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=0".$variablesExtra; ?>"><?php echo $locale["1901"]; ?></a></li>
<li class="<?php if ($tipoPedidos=="510") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=510".$variablesExtra; ?>"><?php echo nombre_estado("510"); ?></a></li>
<li class="<?php if ($tipoPedidos=="521") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=521".$variablesExtra; ?>"><?php echo nombre_estado("521"); ?></a></li>
<li class="<?php if ($tipoPedidos=="522") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=522".$variablesExtra; ?>"><?php echo nombre_estado("522"); ?></a></li>
<li class="<?php if ($tipoPedidos=="523") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=523".$variablesExtra; ?>"><?php echo nombre_estado("523"); ?></a></li>
<li class="<?php if ($tipoPedidos=="520") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=520".$variablesExtra; ?>"><?php echo nombre_estado("520"); ?></a></li>
<li class="<?php if ($tipoPedidos=="530") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=530".$variablesExtra; ?>"><?php echo nombre_estado("530"); ?></a></li>
<li class="<?php if ($tipoPedidos=="540") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=540".$variablesExtra; ?>"><?php echo nombre_estado("540"); ?></a></li>
@ -139,7 +136,7 @@ echo '<div id="ContTabul">';
<td align="center"><a href="gestion_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>"><img src="css/edit.png" title="<?php echo $locale['1580']; ?>"/></a></td>
<?php
// Sólo se puede eliminar candidatos en los siguientes estados
$estadoSiEliminar=array("510","521","522","523","540");
$estadoSiEliminar=array("510","520","540");
if(in_array($pedidoAct->getValor("estado"),$estadoSiEliminar)){
?>
<td align="center"><a href="#" onclick="eliminarCandidato('eliminar_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>&byEstado=<?PHP echo $tipoPedidos; ?>')" ><img src="css/eliminar.png" title="<?php echo $locale['1581']; ?>"/></a></td>