Se quita estado 550 disponible asignado exclusivo
git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@112 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
parent
eee0429279
commit
fdedf6bc24
@ -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', '530', '540', '550', '560')$this->orden";
|
||||
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado in ('510', '520', '530', '540', '560')$this->orden";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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,520,540,550,560");
|
||||
return $this->getCandidatos("510,520,540,560");
|
||||
}
|
||||
|
||||
/**
|
||||
@ -290,8 +290,7 @@ if ($nombre == "estado") {
|
||||
case 510:;
|
||||
case 520:;
|
||||
case 530:;
|
||||
case 540:;
|
||||
case 550:
|
||||
case 540:
|
||||
//Modificamos historial de candidato
|
||||
$mensaje = "Se quita en oferta ". $this->getValor("referencia");
|
||||
$candidato->actualizarHistorial($mensaje);
|
||||
@ -361,24 +360,6 @@ if ($nombre == "estado") {
|
||||
}
|
||||
break;
|
||||
|
||||
//Asignado exlusivo sin ofertas asociada se asigna y ya esta
|
||||
case 550: if ($numOfertasCandidato > 0) {
|
||||
$error = "El candidato tiene un estado no permitido ('" . $candidato->getValor("estado") . "')";
|
||||
throw new Exception($error);
|
||||
}
|
||||
else {
|
||||
$this->setCampo("candidato", $idCandidato);
|
||||
//Modificamos historial de candidato
|
||||
$mensaje = "Asignado en oferta ". $this->getValor("referencia");
|
||||
$candidato->actualizarHistorial($mensaje);
|
||||
//Modificamos historial de oferta
|
||||
$nombre_candidato = $candidato->getValor("nombre") . " " . $candidato->getValor("apellidos");
|
||||
$mensaje = "Asignado el candidato ".$nombre_candidato;
|
||||
$this->actualizarHistorial($mensaje);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
//("530") No Disponible
|
||||
default:
|
||||
$error = "El candidato tiene un estado no permitido ('" . $candidato->getValor("nombre_estado") . "')";
|
||||
|
||||
@ -88,7 +88,6 @@ INSERT INTO `candidatos_estados` (`cod`, `idioma`, `nombre`, `tipo`) VALUES
|
||||
(520, 'sp', 'Rechazado', 'candidato'),
|
||||
(530, 'sp', 'No disponible', 'candidato'),
|
||||
(540, 'sp', 'Disponible', 'candidato'),
|
||||
(550, 'sp', 'Disponible asignado exclusivo', 'candidato'),
|
||||
(560, 'sp', 'Disponible asignado', 'candidato');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
@ -146,8 +145,6 @@ INSERT INTO `candidatos_transiciones` (`inicial`, `final`, `transicion`, `rol`)
|
||||
(530, 560, 0, '1.4'),
|
||||
(540, 510, 0, '1.4'),
|
||||
(540, 560, 0, '1.4'),
|
||||
(550, 540, 0, ''),
|
||||
(550, 560, 0, '1.4'),
|
||||
(560, 540, 0, '');
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
@ -327,7 +327,6 @@ if (in_array("curriculum", $mostrarDetalle)) { ?>
|
||||
<?php }
|
||||
if ((in_array("candidaturas", $mostrarDetalle)) &&
|
||||
(($persona->getValor("estado") == "540") ||
|
||||
($persona->getValor("estado") == "550") ||
|
||||
($persona->getValor("estado") == "560"))) { ?>
|
||||
<!-- CANDIDATURAS -->
|
||||
<div class="encabezado"><?php echo $locale['1551']; ?></div>
|
||||
|
||||
@ -42,7 +42,6 @@ if (isset($variablesExtra)) {
|
||||
|
||||
<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>
|
||||
<li class="<?php if ($tipoPedidos=="550") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=550".$variablesExtra; ?>"><?php echo nombre_estado("550"); ?></a></li>
|
||||
<li class="<?php if ($tipoPedidos=="560") echo "activo"; else echo "inactivo";?>"><a href="<?php echo $destinoURL."?byEstado=560".$variablesExtra; ?>"><?php echo nombre_estado("560"); ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user