From fdedf6bc242bba68a804ad24c4395e8fe1570ff7 Mon Sep 17 00:00:00 2001 From: roberto Date: Thu, 15 Dec 2011 17:26:30 +0000 Subject: [PATCH] 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 --- src/Objects/ListaPersonas.php | 2 +- src/Objects/Oferta.php | 23 ++--------------------- src/database/selfor.sql | 3 --- src/detalles_usuario.php | 1 - src/ver_lista_candidatos.php | 1 - 5 files changed, 3 insertions(+), 27 deletions(-) diff --git a/src/Objects/ListaPersonas.php b/src/Objects/ListaPersonas.php index d4c9fbe..f80e6ad 100644 --- a/src/Objects/ListaPersonas.php +++ b/src/Objects/ListaPersonas.php @@ -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"; } } diff --git a/src/Objects/Oferta.php b/src/Objects/Oferta.php index 9e3da3b..506f603 100644 --- a/src/Objects/Oferta.php +++ b/src/Objects/Oferta.php @@ -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") . "')"; diff --git a/src/database/selfor.sql b/src/database/selfor.sql index ba82aed..a132596 100644 --- a/src/database/selfor.sql +++ b/src/database/selfor.sql @@ -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, ''); -- -------------------------------------------------------- diff --git a/src/detalles_usuario.php b/src/detalles_usuario.php index 09e0c24..61f0a83 100644 --- a/src/detalles_usuario.php +++ b/src/detalles_usuario.php @@ -327,7 +327,6 @@ if (in_array("curriculum", $mostrarDetalle)) { ?> getValor("estado") == "540") || - ($persona->getValor("estado") == "550") || ($persona->getValor("estado") == "560"))) { ?>
diff --git a/src/ver_lista_candidatos.php b/src/ver_lista_candidatos.php index e9685d1..7623d9d 100644 --- a/src/ver_lista_candidatos.php +++ b/src/ver_lista_candidatos.php @@ -42,7 +42,6 @@ if (isset($variablesExtra)) {
  • ">">
  • ">">
  • -
  • ">">
  • ">">