diff --git a/src/Objects/ListaPedido.php b/src/Objects/ListaPedido.php index d8d8bbb..cc2ea4f 100644 --- a/src/Objects/ListaPedido.php +++ b/src/Objects/ListaPedido.php @@ -177,7 +177,7 @@ include_once("Objects/Pedido.php"); //Calculamos el id $id = $this->calculaIdProyecto($campos["procedencia"], $campos["cliente"]); $inserto = "oid, fecha"; - $fecha = "'".date("Y-m-d")."'"; + $fecha = "'".date("Y-m-d H:i:s")."'"; $valores = "$id, $fecha"; //Procesamos los datos diff --git a/src/addCandidato.php b/src/addCandidato.php index abb2ad0..5234fad 100644 --- a/src/addCandidato.php +++ b/src/addCandidato.php @@ -48,7 +48,6 @@ if(stripinput($_POST['action'])=="add"){ $camposQuitar["disp_viajar"]=stripinput($_POST['disp_viajar']); $camposQuitar["disp_internacional"]=stripinput($_POST['disp_internacional']); $camposQuitar["disp_carnet"]=stripinput($_POST['disp_carnet']); - $camposQuitar["dianac"]=stripinput($_POST['dianac']); $camposQuitar["mesnac"]=stripinput($_POST['mesnac']); $camposQuitar["anyonac"]=stripinput($_POST['anyonac']); diff --git a/src/addPedido.php b/src/addPedido.php index adfa0c9..2040d2a 100644 --- a/src/addPedido.php +++ b/src/addPedido.php @@ -11,11 +11,16 @@ if(!$usuario->tieneRol("3")&&!$usuario->tieneRol("1")){ header("Location: aplicacion.php?e=permiso"); exit; } -$errores = array(); +$mensaje=""; +$errores=array(); +$errores_solicitud=""; + // Todas las variables if(!empty($_POST)) { + $num_solicitud_cliente=$_POST['num_solicitud_cliente']; $nombre=$_POST['nombre']; + $denominacion_cliente=$_POST['denominacion_cliente']; $prioridad=$_POST['prioridad']; $empleados=$_POST['empleados']; $duracion=$_POST['duracion']; @@ -23,15 +28,22 @@ if(!empty($_POST)) { $perfiles=$_POST['perfil']; $salario_min=$_POST['salario_min']; $salario_max=$_POST['salario_max']; + $tasa_economica =$_POST['tasa_economica']; $procedencia=$_POST['procedencia']; $tecnologias=$_POST['tecnologia']; $idiomas=$_POST['idiomas']; $provincias=$_POST['provincias']; + $observaciones_direccion=$_POST['observaciones_direccion']; $observaciones=$_POST['observaciones']; - $pesoTec=$_POST['pesoTec']; - $pesoIdi=$_POST['pesoIdi']; - $pesoPer=$_POST['pesoPer']; - + $turnos=$_POST['turnos']; + $guardias=$_POST['guardias']; + $viajar=$_POST['viajar']; + $internacional=$_POST['internacional']; + $direccion_solicitud=$_POST['direccion_solicitud']; + $fecha_solicitud_cliente = stripinput($_POST['anyofecha_solicitud'])."-".stripinput($_POST['mesfecha_solicitud'])."-".stripinput($_POST['diafecha_solicitud']); + $fecha_inicio_servicio = stripinput($_POST['anyofecha_ini'])."-".stripinput($_POST['mesfecha_ini'])."-".stripinput($_POST['diafecha_ini']); + $fecha_fin_servicio = stripinput($_POST['anyofecha_fin'])."-".stripinput($_POST['mesfecha_fin'])."-".stripinput($_POST['diafecha_fin']); + $fecha_recepcion_solicitud = stripinput($_POST['anyofecha_recepcion'])."-".stripinput($_POST['mesfecha_recepcion'])."-".stripinput($_POST['diafecha_recepcion']); if($usuario->tieneRol("1")){ $gerente=$_POST['gerente']; @@ -39,45 +51,19 @@ if(!empty($_POST)) { $gerente=$usuario->getValor("oid"); } - if($_POST['action']=="add"){ - // Comprobamos campos obligatorios - if($nombre==""){ - $errores[]= "1"; - } - if(($prioridad=="") ||($empleados=="") || ($duracion=="") || (!($empleados>0)) ||(!($duracion>0))){ - $errores[]= "2"; - } - if($gerente==""){ - $errores[]= "3"; - } - if($clientes==""){ - $errores[]= "4"; - } - if($perfiles==""){ - $errores[]= "5"; - } - if(($salario_min=="") ||($salario_max=="") || ($salario_min>$salario_max)){ - $errores[]= "6"; - } - if($procedencia==""){ - $errores[]= "7"; - } -//BORRAR -/* if(($pesoTec=="") ||($pesoIdi=="") || ($pesoPer=="") - || !is_numeric($pesoTec) || !is_numeric($pesoIdi) || !is_numeric($pesoPer) - || (!($pesoTec>=0)) ||(!($pesoIdi>=0)) || (!($pesoPer>=0)) - || ($pesoTec + $pesoIdi + $pesoPer != 100)){ - $errores[]="8"; - } -*/ - + if($_POST['action']=="add"){ + //VALIDACIONES + include("verificar_solicitud.php"); + // Si no hay errores insertamos el pedido if(count($errores)==0){ include_once("Objects/ListaPedido.php"); $listaPedidos=new ListaPedido($usuario,"","","0"); $arrayInsert=array(); + $arrayInsert["num_solicitud_cliente"]=$num_solicitud_cliente; $arrayInsert["nombre"]=$nombre; + $arrayInsert["denominacion_cliente"]=$denominacion_cliente; $arrayInsert["prioridad"]= $prioridad; $arrayInsert["empleados"]=$empleados; $arrayInsert["duracion"]=$duracion; @@ -85,18 +71,27 @@ if(!empty($_POST)) { $arrayInsert["cliente"]=$clientes; $arrayInsert["salario_min"]=$salario_min; $arrayInsert["salario_max"]=$salario_max; + $arrayInsert["tasa_economica"]=$tasa_economica; $arrayInsert["procedencia"]=$procedencia; $arrayInsert["observaciones"]=$observaciones; + $arrayInsert["observaciones_direccion"]=$observaciones_direccion; + $arrayInsert["turnos"]=$turnos; + $arrayInsert["guardias"]=$guardias; + $arrayInsert["viajar"]=$viajar; + $arrayInsert["internacional"]=$internacional; + $arrayInsert["direccion_solicitud"]=$direccion_solicitud; + $arrayInsert["fecha_solicitud_cliente"]=$fecha_solicitud_cliente; + $arrayInsert["fecha_inicio_servicio"]=$fecha_inicio_servicio; + $arrayInsert["fecha_fin_servicio"]=$fecha_fin_servicio; + $arrayInsert["fecha_recepcion_solicitud"]=$fecha_recepcion_solicitud; + $arrayInsert["estado"]="110"; - $arrayInsert["pesoIdioma"]=$pesoIdi; - $arrayInsert["pesoPerfil"]=$pesoPer; - $arrayInsert["pesoTecno"]=$pesoTec; $idPedido=$listaPedidos->addPedido($arrayInsert); if($idPedido=="-1"){ // Se he producido un fallo al insertar $errores[]= "0"; - $msg="No se ha podido agregar la solicitud de oferta"; - $tipo="error"; + $mensaje="No se ha podido agregar la solicitud de oferta"; + $tipomsg="error"; } else { $pedido=$listaPedidos->buscarPedido($idPedido); $pedido->addPerfiles($perfiles); @@ -106,9 +101,15 @@ if(!empty($_POST)) { header("Location: pedido.php?idPedido=".$idPedido."&msg=1"); } } + else { + $tipomsg="error"; + $mensaje=$errores_solicitud; + } } } else { + $num_solicitud_cliente=""; $nombre=""; + $denominacion_cliente=""; $prioridad=""; $empleados=""; $duracion=""; @@ -116,115 +117,174 @@ if(!empty($_POST)) { $perfiles=array(); $salario_min=""; $salario_max=""; + $tasa_economica=""; $procedencia=""; $tecnologias=array(); $idiomas=array(); $provincias=array(); + $observaciones_direccion=""; $observaciones=""; - $pesoTec=""; - $pesoIdi=""; - $pesoPer=""; + $turnos=""; + $guardias=""; + $viajar=""; + $internacional=""; + $direccion_solicitud=""; + $fecha_solicitud_cliente=""; + $fecha_inicio_servicio=""; + $fecha_fin_servicio=""; + $fecha_recepcion_solicitud=""; + } include("html/cabecera.php"); -if ((isset($pesoTec)) && ($pesoTec=="")) $pesoTec="40"; -if ((isset($pesoIdi)) && ($pesoIdi=="")) $pesoIdi="10"; -if ((isset($pesoPer)) && ($pesoPer=="")) $pesoPer="50"; - echo $html->menuPedidos($usuario,""); - echo "

".$locale['1058']."

"; -if (isset($msg) && ($msg != "")) { - echo "
".$msg."
"; +if (isset($mensaje) && ($mensaje != "")) { + echo "
".$mensaje."
"; } echo '
'; echo ""; -echo "" . +echo ''; +echo ''; +echo '
'.$locale['Solicitudes005'].'
'; +echo "
" . "" . - " ".$locale['1043']." "."" .$locale['1022'].":"; -rellena_prioridad_select("prioridad",$prioridad); -echo " - ".$locale['1024'].": " . - "
".$locale['1026'].": " . - ""; +echo ">".$locale['1043']." ". +"

".$locale['1043_1']."". +"

".$locale['Solicitudes001']."  "; + + echo "".$locale['1027']; -// Si es Admin puede asignar un gerente, si no, sólo a él -if($usuario->tieneRol("1")){ - $auxiliar = ""; - rellena_personal_permiso("gerente","GP",$auxiliar,$usuario->getValor("oid")); -} else { - echo "getValor("nombre")." ".$usuario->getValor("apellidos")."\" />"; -} - -echo "
" . - " ".$locale['1504']; +if(count(array_intersect(array("2","4"),$errores)) > 0) echo " class=\"errorcampo\""; +echo ">".$locale['Solicitudes004']. "  "; rellena_fecha_select($fecha_solicitud_cliente, "fecha_solicitud"); +echo "

". $locale['1022'] .":   "; rellena_prioridad_select("prioridad",$prioridad); +echo "           ".$locale['1024_1'].": "; +echo "

".$locale['1504'] ."  "; $auxiliar = ''; - rellena_desplegable_select_oid("clientes","clientes",$auxiliar,$clientes); -echo "".$locale['121']."
"; -// Ticket #565 -> En una solicitud de oferta, se deben poder indicar varios perfiles técnicos - echo $html->listaSelect("perfil","oid","id","perfil",array("",$locale['ns']),$perfiles,true,true,"15"); -echo "
"; +echo "". $locale['Solicitudes002'] ."  "; + rellena_fecha_select($fecha_inicio_servicio, "fecha_ini"); + echo "

". $locale['Solicitudes003'] ."      "; + rellena_fecha_select($fecha_fin_servicio, "fecha_fin"); + echo "

".$locale['1026'].": "; echo "
"; -echo "". $locale['Solicitudes006']."  "; rellena_fecha_select($fecha_recepcion_solicitud, "fecha_recepcion"); +echo "

". $locale['1800']; rellena_procedencias("procedencia",$auxiliar,$procedencia); +echo "    ".$locale['1027']; +$auxiliar = ''; +rellena_personal_permiso("gerente","GP",$auxiliar,$gerente); + +echo "
".$locale['1800']; -rellena_procedencias("procedencia",$auxiliar,$procedencia); +echo ""; -echo "'; +echo '
'.$locale['1550'].'
'; +echo '
".$locale['132'].": ".$locale['2100']; + rellena_desplegable_select_oid("clientes","clientes",$auxiliar,$clientes); +echo "
"; +echo "
"; echo $locale['129']; rellena_desplegable_select_oidCol("salario","id","nombre","salario_min",$auxiliar,$salario_min); echo ' - '.$locale['130'].''; rellena_desplegable_select_oidCol("salario","id","nombre","salario_max",$auxiliar,$salario_max); - -echo "".$locale['Solicitudes007']."  "; echo "
" . - ""; +echo "
".$locale['122'].""; - -echo $html->listaSelect("tecnologia","oid","id","tecnologia",array("",$locale['ns']),$tecnologias,true,true,"15"); -echo "".$locale['123'].""; -echo $html->listaSelect("idiomas","oid","id","idiomas",array("",$locale['ns']),$idiomas,true,true,"15"); +echo "
".$locale['123']."
"; +echo $html->listaSelect("idiomas","oid","id","idiomas",array("",$locale['ns']),$idiomas,true,true,"10"); +echo "
".$locale['209']."
"; +echo $html->listaSelect("provincias","oid","id","provincias",array("",$locale['ns']),$provincias,true,true,"10"); +echo '  '; +echo "
".$locale['Solicitudes008']."  "; +echo "
"; + +///////////////////// +//DATOS ADICIONALES +///////////////////// +echo ''; +echo '
'; + +echo ''; +//CAMPO DISPONIBILIDAD TURNOS +echo ''; + +//CAMPO DISPONIBILIDAD GUARDIAS +echo ''; + +//CAMPO DISPONIBILIDAD VIAJAR +echo ''; + +//CAMPO DISPONIBILIDAD INTERNACIONAL +echo ''; +echo ''; + +echo ''; +echo "
'.$locale['Solicitudes009'].'        '; + +echo ''; +echo '
'; + else + echo 'disabled>'; +echo '
'.$locale['Candidato002'].'        '; + +echo ''; +echo '
'; + else + echo 'disabled>'; +echo '
'.$locale['Candidato003'].'        '; + +echo ''; +echo '
'; + else + echo 'disabled>'; +echo '
'.$locale['Candidato004'].'        '; + +echo ''; +echo '
'; + else + echo 'disabled>'; +echo '
'.$locale['135'].'
"; -echo "".$locale['209'].""; -echo $html->listaSelect("provincias","oid","id","provincias",array("",$locale['ns']),$provincias,true,true,"15"); - -echo ""; -?> - -"; -echo '' . - ''.$locale['135']. - '
'. - ''; - -// Botones de guardar y restablecer -echo ""; echo ''; echo ''; -echo ""; echo "
"; include_once("html/pie.php"); diff --git a/src/eliminarCapacidadProfesional.php b/src/eliminarCapacidadProfesional.php index b044da6..4ad2945 100644 --- a/src/eliminarCapacidadProfesional.php +++ b/src/eliminarCapacidadProfesional.php @@ -5,8 +5,19 @@ include("functions.php"); include_once("Objects/CapacidadProfesional.php"); $idCapacidad=$_GET['id']; $idCandidato=$_GET['idCandidato']; +$idSolicitud=$_GET['idSolicitud']; $origen=$_GET['origen']; -$capacidad = new CapacidadProfesional($idCapacidad,"candidato"); + +if (!Empty($idCandidato) && ($idCandidato>0)){ + $capacidad = new CapacidadProfesional($idCapacidad,"candidato"); +} +else if (!Empty($idSolicitud) && ($idSolicitud>0)) { + $capacidad = new CapacidadProfesional($idCapacidad,"solicitud"); +} +else { + $msg="Error al instanciar clase capacidad"; + include_once("showError.php"); +} /* ELIMINAR_CAPACIDAD.PHP */ try{ @@ -17,6 +28,9 @@ try{ case "gestion_candidato": header("Location: ".$origen.".php?oid=".$idCandidato."#capacidades"); break; case "detalle_candidato": header("Location: ".$origen.".php?oid=".$idCandidato."#capacidades"); break; case "lista_Candidatos": header("Location: lista_candidatos.php?order=nombre&modo=asc&byEstado=0"); break; + case "gestion_pedido": header("Location: ".$origen.".php?idPedido=".$idSolicitud."#capacidades"); break; + case "detalle_solicitud": header("Location: pedido.php?idPedido=".$idSolicitud."#capacidades"); break; + case "lista_Solicitudes": header("Location: lista_pedidos.php"); break; } } else { header("Location: gestion_candidato.php?oid=".$idCandidato."#capacidades"); diff --git a/src/functions_calendario.php b/src/functions_calendario.php index aa9f075..96ab762 100644 --- a/src/functions_calendario.php +++ b/src/functions_calendario.php @@ -125,7 +125,8 @@ function ver_fecha($fecha){ function ver_fecha_larga($fecha){ include LOCALE.LOCALESET."lenguaje.php"; $res = explode("-", $fecha); - return $res[2]." de ".nombre_mes($res[1])." del ".$locale['329']." ".$res[0]; + $hora = explode(" ",$res[2]); + return $hora[0]." de ".nombre_mes($res[1])." del ".$locale['329']." ".$res[0]. " (". $hora[1] .")"; } //Muestra una fecha en formato dia-mes-a�o diff --git a/src/functions_capacidades.php b/src/functions_capacidades.php index 9c74850..9578c6c 100644 --- a/src/functions_capacidades.php +++ b/src/functions_capacidades.php @@ -23,7 +23,7 @@ include LOCALE.LOCALESET."lenguaje.php"; echo ""; echo ""; echo "   "; - echo ""; + echo ""; echo ""; diff --git a/src/gestion_pedido.php b/src/gestion_pedido.php index b9ffb33..b6766ea 100644 --- a/src/gestion_pedido.php +++ b/src/gestion_pedido.php @@ -49,6 +49,19 @@ switch ($action) { if($_POST['disp_internacional']=="n"){ $_POST['internacional'] = ""; } + if($_POST['diafecha_solicitud']<10) $_POST['diafecha_solicitud']="0".$_POST['diafecha_solicitud']; + if($_POST['mesfecha_solicitud']<10) $_POST['mesfecha_solicitud']="0".$_POST['mesfecha_solicitud']; + if($_POST['diafecha_ini']<10) $_POST['diafecha_ini']="0".$_POST['diafecha_ini']; + if($_POST['mesfecha_ini']<10) $_POST['mesfecha_ini']="0".$_POST['mesfecha_ini']; + if($_POST['diafecha_fin']<10) $_POST['diafecha_fin']="0".$_POST['diafecha_fin']; + if($_POST['mesfecha_fin']<10) $_POST['mesfecha_fin']="0".$_POST['mesfecha_fin']; + if($_POST['diafecha_recepcion']<10) $_POST['diafecha_recepcion']="0".$_POST['diafecha_recepcion']; + if($_POST['mesfecha_recepcion']<10) $_POST['mesfecha_recepcion']="0".$_POST['mesfecha_recepcion']; + $fecha_solicitud_cliente = stripinput($_POST['anyofecha_solicitud'])."-".stripinput($_POST['mesfecha_solicitud'])."-".stripinput($_POST['diafecha_solicitud']); + $fecha_inicio_servicio = stripinput($_POST['anyofecha_ini'])."-".stripinput($_POST['mesfecha_ini'])."-".stripinput($_POST['diafecha_ini']); + $fecha_fin_servicio = stripinput($_POST['anyofecha_fin'])."-".stripinput($_POST['mesfecha_fin'])."-".stripinput($_POST['diafecha_fin']); + $fecha_recepcion_solicitud = stripinput($_POST['anyofecha_recepcion'])."-".stripinput($_POST['mesfecha_recepcion'])."-".stripinput($_POST['diafecha_recepcion']); + if(count($errores)==0){ $pedido->setCampo("num_solicitud_cliente",$_POST['num_solicitud_cliente']); @@ -64,7 +77,16 @@ switch ($action) { $pedido->setCampo("procedencia",$_POST['procedencia']); $pedido->setCampo("tasa_economica",$_POST['tasa_economica']); $pedido->setCampo("observaciones_direccion",$_POST['observaciones_direccion']); - + $pedido->setCampo("turnos",$_POST['turnos']); + $pedido->setCampo("guardias",$_POST['guardias']); + $pedido->setCampo("viajar",$_POST['viajar']); + $pedido->setCampo("internacional",$_POST['internacional']); + $pedido->setCampo("direccion_solicitud",$_POST['direccion_solicitud']); + $pedido->setCampo("fecha_solicitud_cliente",$fecha_solicitud_cliente); + $pedido->setCampo("fecha_inicio_servicio",$fecha_inicio_servicio); + $pedido->setCampo("fecha_fin_servicio",$fecha_fin_servicio); + $pedido->setCampo("fecha_recepcion_solicitud",$fecha_recepcion_solicitud); + $pedido->addPerfiles($_POST['perfil']); $pedido->addTecnologias($_POST['tecnologia']); $pedido->addIdiomas($_POST['idiomas']); @@ -116,11 +138,12 @@ echo ""; echo ''; echo '
'.$locale['Solicitudes005'].'
'; echo "" . - "" . - ""; +echo "" . - ""; + +echo "" . +echo ""; - ""; -// Perfil +// Capacidad profesional $orderView="perfil"; -echo " "; +echo " "; // Número de ofertas $orderView="empleados"; @@ -161,13 +159,15 @@ if(count($listadePedidos)==0){ echo ''; echo ''; - echo ''; echo ''; diff --git a/src/ver_pedido.php b/src/ver_pedido.php index 9614d1a..2e068e2 100644 --- a/src/ver_pedido.php +++ b/src/ver_pedido.php @@ -167,7 +167,7 @@ if ($pedido->getValor("estado") == 130) { echo $html->menuPedidos($usuario, ""); ?> -

getValor("nombre"); ?>

+

getValor("oid") ." - ". $pedido->getValor("nombre"); ?>

+
".$locale['1043']."getValor("nombre")."\" size=\"39\" maxlength=\"30\" >" . + "
".$locale['1043']."getValor("nombre")."\" size=\"39\" maxlength=\"30\" >" . "

".$locale['1043_1']."getValor("denominacion_cliente")."\" size=\"30\" maxlength=\"30\" >" . - "

".$locale['Solicitudes001']."  getValor("num_solicitud_cliente")."\" size=\"30\" maxlength=\"20\" >
".$locale['Solicitudes004']. "  "; rellena_fecha_select($pedido->getValor("fecha_solicitud_cliente"), "fecha_solicitud"); + "

".$locale['Solicitudes001']."  getValor("num_solicitud_cliente")."\" size=\"30\" maxlength=\"20\" >
".$locale['Solicitudes004']. "  "; rellena_fecha_select($pedido->getValor("fecha_solicitud_cliente"), "fecha_solicitud"); echo "

" .$locale['1022'].":   "; rellena_prioridad_select("prioridad",$pedido->getValor("prioridad")); echo "           ".$locale['1024_1'].": getValor("empleados")."\" maxlenght=\"3\" size=\"2\" />"; echo "

".$locale['1504'] ."  "; @@ -133,9 +156,9 @@ echo "

".$locale['1504'] ."  "; echo "

".$locale['Solicitudes003']."      "; rellena_fecha_select($pedido->getValor("fecha_fin_servicio"), "fecha_fin"); echo "

".$locale['1026'].": getValor("duracion")."\" maxlenght=\"3\" size=\"2\" />"; -echo "
". $locale['Solicitudes006']."  "; rellena_fecha_select($pedido->getValor("fecha_recepcion_solicitud"), "fecha_recepcion"); +echo "
". $locale['Solicitudes006']."  "; rellena_fecha_select($pedido->getValor("fecha_recepcion_solicitud"), "fecha_recepcion"); echo "

". $locale['1800']; rellena_procedencias("procedencia",$auxiliar,$pedido->getValor("procedencia")); diff --git a/src/idiomas/sp/lenguaje.php b/src/idiomas/sp/lenguaje.php index 54a1487..e70264b 100644 --- a/src/idiomas/sp/lenguaje.php +++ b/src/idiomas/sp/lenguaje.php @@ -174,6 +174,10 @@ $locale['Solicitudes006'] = "Fecha recepción solicitud:"; $locale['Solicitudes007'] = "Tasa económica:"; $locale['Solicitudes008'] = "Dirección detallada:"; $locale['Solicitudes009'] = "Disponibilidad de turnos:"; +$locale['Solicitudes010'] = "Compruebe número de personas"; +$locale['Solicitudes011'] = "Compruebe duración"; +$locale['Solicitudes012'] = "ESTADO SOLICITUD"; +$locale['Solicitudes013'] = "LISTA DE OFERTAS"; //Historial: diff --git a/src/ver_lista_pedidos.php b/src/ver_lista_pedidos.php index 49ed6e1..bf7f3c5 100644 --- a/src/ver_lista_pedidos.php +++ b/src/ver_lista_pedidos.php @@ -108,11 +108,9 @@ echo "
".$locale['1023']."
" . " " . "
".$locale['1524']."
" . - " " . - "
".$locale['Capacidades016']."'.$pedidoAct->getValor("nombre_estado").''.nombre_cliente($pedidoAct->getValor("cliente")).''; - $perfiles=$pedidoAct->getPerfiles(); - $keyperfiles=array_values($perfiles); - // Mostramos la lista para borrar - foreach ($perfiles as $nombre =>$valor) { - echo $nombre.", "; - } + echo ''; + +/////////////////////////// +//CAPACIDADES PROFESIONALES +/////////////////////////// +echo ''; +$CapacidadesProfesionales = $pedidoAct->getCapacidadesProfesionales(); +VerListaCapacidadesProfesionales($CapacidadesProfesionales, "lista_Solicitudes"); + echo ''.$pedidoAct->getValor("empleados").'
- - +
+
- - - - - - + + + + - + + + + + + + + ?> + + + + +
getValor("fecha")); ?>getValor("prioridad")); ?> +    getValor("fecha")); ?>
+    getValor("nombre"); ?>
+    getValor("denominacion_cliente"); ?>
+    getValor("num_solicitud_cliente"); ?>
+
+    getValor("fecha_solicitud_cliente")); ?>
+    getValor("prioridad")); ?>
+    getValor("empleados"); ?>
+    getValor("nombre_cliente"); ?>
+
+    getValor("fecha_inicio_servicio")); ?>
+    getValor("fecha_fin_servicio")); ?>
+    getValor("duracion"); ?>
+
- getPerfiles(); - if (count($perfiles) > 0) { - foreach ($perfiles as $nombre => $codigo) { +
+    getValor("fecha_recepcion_solicitud")); ?>
+    getValor("procedencia"); ?>
+    getValor("nombre_gerente"); ?>
+
+    getValor("nombre_salario_max"); ?>
+    getValor("nombre_salario_min"); ?>
+
+    getValor("tasa_economica"); ?>
+
+
+ getIdiomas(); + if (count($idiomas) > 0) { + foreach ($idiomas as $nombre => $codigo) { echo $nombre . "
"; } } else { - ?> - - -
+
+ getProvincias(); + if (count($tecnologias) > 0) { + foreach ($tecnologias as $nombre => $codigo) { + echo $nombre . "
"; + } + } else { + } + echo nl2br($pedido->getValor("observaciones_direccion")); + ?> +
+    getValor("direccion_solicitud"); ?>
+
- -
getValor("nombre_cliente"); ?>
+ + + + + + + + - - - - - - - - + - - -
+ + getValor("turnos") != "") { + echo "SI  (".$persona->getValor("turnos").")"; + } else { + echo "NO"; + } + ?> + + + getValor("guardias") != "") { + echo "SI  (".$persona->getValor("guardias").")"; + } else { + echo "NO"; + } + ?> + + + getValor("viajar") != "") { + echo "SI  (".$persona->getValor("viajar").")"; + } else { + echo "NO"; + } + ?> +
+ + getValor("internacional") != "") { + echo "SI  (".$persona->getValor("internacional").")"; + } else { + echo "NO"; + } + ?> +
getValor("duracion"); ?>getValor("empleados"); ?>getValor("nombre_gerente"); ?>getValor("nombre_salario_min") . " - " . $pedido->getValor("nombre_salario_max"); ?> +
+ getValor("observaciones")); ?>
getValor("nombre_estado"); ?> +
+ +
+ + - - - - - - - - - - - - - -
+ :   + getValor("nombre_estado"); ?>
&action=cambEstObs" method="post" > @@ -250,72 +336,21 @@ echo $mensaje; -
getIdiomas(); - if (count($idiomas) > 0) { - foreach ($idiomas as $nombre => $codigo) { - echo $nombre . "
"; - } - } else { - ?> - getValor("pesoIdioma") > 0) - echo $locale['1097']; ?>
-
getTecnologias(); - if (count($tecnologias) > 0) { - foreach ($tecnologias as $nombre => $codigo) { - echo $nombre . "
"; - } - } else { - ?> - getValor("pesoTecno") > 0) - echo $locale['1097']; ?>
-
getProvincias(); - if (count($tecnologias) > 0) { - foreach ($tecnologias as $nombre => $codigo) { - echo $nombre . "
"; - } - } else { - ?> - -
getValor("observaciones")); ?>
- + ?> + -
- -

+'.$locale['Capacidades001'].''; +echo ''; +$CapacidadesProfesionales = $pedido->getCapacidadesProfesionales(); +VerListaCapacidadesProfesionales($CapacidadesProfesionales, "detalle_solicitud"); +?> +
diff --git a/src/verificar_solicitud.php b/src/verificar_solicitud.php new file mode 100644 index 0000000..6828b2f --- /dev/null +++ b/src/verificar_solicitud.php @@ -0,0 +1,23 @@ +"; + $errores[]="1"; +} +if(count($clientes) > 1 || $clientes==0){ + $errores_solicitud .= $locale['1032']."
"; + $errores[]="2"; +} +if(count($gerente) > 1 || $gerente==0){ + $errores_solicitud .= $locale['1031']."
"; + $errores[]="3"; +} +if(($empleados=="") || ($empleados==0)){ + $errores_solicitud .= $locale['Solicitudes010']."
"; + $errores[]="4"; +} +if(($duracion=="") ||($duracion==0)){ + $errores_solicitud .= $locale['Solicitudes011']."
"; + $errores[]="5"; +} + +?>