Se quitan trazas en historial de candidatos y pedidos (funcion actualizarHistorial ( )).

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@61 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
roberto 2011-05-16 11:41:24 +00:00
parent 41296de8ee
commit 6780028810
2 changed files with 24 additions and 24 deletions

View File

@ -211,7 +211,7 @@ include_once("Automata.php");
}else{ }else{
$historial = "$nombre (de $viejo a $valor)"; $historial = "$nombre (de $viejo a $valor)";
} }
$this->actualizarHistorial($historial); //$this->actualizarHistorial($historial);
//Si hago un update del perfil tengo que actualizar la afinidad: //Si hago un update del perfil tengo que actualizar la afinidad:
if(in_array($nombre, $this->listaAfinidad)){ if(in_array($nombre, $this->listaAfinidad)){
$this->calculaAfinidad(); $this->calculaAfinidad();
@ -738,7 +738,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva tecno: $nombre_tecno"; $mensaje = "Nueva tecno: $nombre_tecno";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaTecnologias[$nombre_tecno] = $id; $this->listaTecnologias[$nombre_tecno] = $id;
}else{ }else{
return false; return false;
@ -764,7 +764,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nuevo idioma: $nombre_idioma"; $mensaje = "Nuevo idioma: $nombre_idioma";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaIdiomas[$nombre_idioma] = $id; $this->listaIdiomas[$nombre_idioma] = $id;
}else{ }else{
return false; return false;
@ -790,7 +790,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nuevo perfil: $nombre_perfil"; $mensaje = "Nuevo perfil: $nombre_perfil";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaPerfiles[$nombre_perfil] = $id; $this->listaPerfiles[$nombre_perfil] = $id;
}else{ }else{
return false; return false;
@ -816,7 +816,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva provincia: $nombre_provincia"; $mensaje = "Nueva provincia: $nombre_provincia";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listasProvincias[$nombre_provincia] = $id; $this->listasProvincias[$nombre_provincia] = $id;
}else{ }else{
return false; return false;
@ -842,7 +842,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada tecno: $nombre_tecno"; $mensaje = "Eliminada tecno: $nombre_tecno";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaTecnologias; $lista = $this->listaTecnologias;
$this->listaTecnologias = null; $this->listaTecnologias = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -875,7 +875,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminado idioma: $nombre_idioma"; $mensaje = "Eliminado idioma: $nombre_idioma";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaIdiomas; $lista = $this->listaIdiomas;
$this->listaIdiomas = null; $this->listaIdiomas = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -908,7 +908,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada provicia: $nombre_provincia"; $mensaje = "Eliminada provicia: $nombre_provincia";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listasProvincias; $lista = $this->listasProvincias;
$this->listasProvincias = null; $this->listasProvincias = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -941,7 +941,7 @@ include_once("Automata.php");
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminado perfil: $nombre_perfil"; $mensaje = "Eliminado perfil: $nombre_perfil";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaPerfiles; $lista = $this->listaPerfiles;
$this->listaPerfiles = null; $this->listaPerfiles = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){

View File

@ -252,7 +252,7 @@
} }
//Hay campos que no actualizan el historial //Hay campos que no actualizan el historial
if(($nombre != "msgEstado") && ($nombre != "diasEspera")){ if(($nombre != "msgEstado") && ($nombre != "diasEspera")){
$this->actualizarHistorial($historial); //$this->actualizarHistorial($historial);
} }
// } // }
return $dato; return $dato;
@ -557,7 +557,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva tecno: $nombre_tecno"; $mensaje = "Nueva tecno: $nombre_tecno";
$this->actualizarHistorial($mensaje); // $this->actualizarHistorial($mensaje);
$this->listaTecnologias[$nombre_tecno] = $id; $this->listaTecnologias[$nombre_tecno] = $id;
}else{ }else{
return false; return false;
@ -583,7 +583,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nuevo idioma: $nombre_idioma"; $mensaje = "Nuevo idioma: $nombre_idioma";
$this->actualizarHistorial($mensaje); // $this->actualizarHistorial($mensaje);
$this->listaIdiomas[$nombre_idioma] = $id; $this->listaIdiomas[$nombre_idioma] = $id;
}else{ }else{
return false; return false;
@ -609,7 +609,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva titu: $nombre_titulacion"; $mensaje = "Nueva titu: $nombre_titulacion";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaTitulaciones[$nombre_titulacion] = $id; $this->listaTitulaciones[$nombre_titulacion] = $id;
}else{ }else{
return false; return false;
@ -635,7 +635,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva provincia deseada: ".$nombre_provincia; $mensaje = "Nueva provincia deseada: ".$nombre_provincia;
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaProvinciasDeseadas[$nombre_provincia] = $id; $this->listaProvinciasDeseadas[$nombre_provincia] = $id;
}else{ }else{
return false; return false;
@ -662,7 +662,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nueva provincia no deseada: ".$nombre_provincia; $mensaje = "Nueva provincia no deseada: ".$nombre_provincia;
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaProvinciasNoDeseadas[$nombre_provincia] = $id; $this->listaProvinciasNoDeseadas[$nombre_provincia] = $id;
}else{ }else{
return false; return false;
@ -689,7 +689,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Nuevo perfil: ".$nombre_perfil; $mensaje = "Nuevo perfil: ".$nombre_perfil;
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$this->listaPerfiles[$nombre_perfil] = $id; $this->listaPerfiles[$nombre_perfil] = $id;
}else{ }else{
return false; return false;
@ -731,7 +731,7 @@
$bd = new BD(); $bd = new BD();
$consulta = "INSERT INTO curriculum_usuario (oid, curriculum, fecha) values ('".$oid."', '".$nombre_ruta_tabla."', now())"; $consulta = "INSERT INTO curriculum_usuario (oid, curriculum, fecha) values ('".$oid."', '".$nombre_ruta_tabla."', now())";
$bd->execQuery($consulta); $bd->execQuery($consulta);
$this->actualizarHistorial("Nuevo CV", $usuario); //$this->actualizarHistorial("Nuevo CV", $usuario);
$consulta = "update usuarios set cv=cv+1 where oid='$oid'"; $consulta = "update usuarios set cv=cv+1 where oid='$oid'";
$bd->execQuery($consulta); $bd->execQuery($consulta);
return true; return true;
@ -752,7 +752,7 @@
$cambios = "CV eliminado"; $cambios = "CV eliminado";
$this->actualizarHistorial($cambios, $usuario); //$this->actualizarHistorial($cambios, $usuario);
$ruta = constante("srcDocs")."\\".$curriculum; $ruta = constante("srcDocs")."\\".$curriculum;
if (!@unlink($ruta)){ if (!@unlink($ruta)){
return false; return false;
@ -780,7 +780,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada tecno: $nombre_tecno"; $mensaje = "Eliminada tecno: $nombre_tecno";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaTecnologias; $lista = $this->listaTecnologias;
$this->listaTecnologias = null; $this->listaTecnologias = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -813,7 +813,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminado idioma: $nombre_idioma"; $mensaje = "Eliminado idioma: $nombre_idioma";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaIdiomas; $lista = $this->listaIdiomas;
$this->listaIdiomas = null; $this->listaIdiomas = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -846,7 +846,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada titulacion: $nombre_titulacion"; $mensaje = "Eliminada titulacion: $nombre_titulacion";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaTitulaciones; $lista = $this->listaTitulaciones;
$this->listaTitulaciones = null; $this->listaTitulaciones = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -879,7 +879,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada provincia deseada: $nombre_provincia"; $mensaje = "Eliminada provincia deseada: $nombre_provincia";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaProvinciasDeseadas; $lista = $this->listaProvinciasDeseadas;
$this->listaProvinciasDeseadas = null; $this->listaProvinciasDeseadas = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -913,7 +913,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada provincia no deseada: $nombre_provincia"; $mensaje = "Eliminada provincia no deseada: $nombre_provincia";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaProvinciasNoDeseadas; $lista = $this->listaProvinciasNoDeseadas;
$this->listaProvinciasNoDeseadas = null; $this->listaProvinciasNoDeseadas = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){
@ -950,7 +950,7 @@
$bd = new BD(); $bd = new BD();
if($bd->execQuery($consulta)){ if($bd->execQuery($consulta)){
$mensaje = "Eliminada localidad deseada: $nombre_perfil"; $mensaje = "Eliminada localidad deseada: $nombre_perfil";
$this->actualizarHistorial($mensaje); //$this->actualizarHistorial($mensaje);
$lista = $this->listaPerfiles; $lista = $this->listaPerfiles;
$this->listaPerfiles = null; $this->listaPerfiles = null;
foreach($lista as $key => $value){ foreach($lista as $key => $value){