70 lines
2.2 KiB
JavaScript
70 lines
2.2 KiB
JavaScript
|
|
function eliminarCandidato(lugar){
|
|||
|
|
var mensaje="\xbfEst\xe1 seguro que desea eliminar el candidato?";
|
|||
|
|
if(confirm(mensaje)){
|
|||
|
|
document.location=lugar;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function eliminarEmpleado(lugar){
|
|||
|
|
var mensaje="\xbfEst\xe1 seguro que desea eliminar el empleado?";
|
|||
|
|
if(confirm(mensaje)){
|
|||
|
|
document.location=lugar;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
function pideObsPermiso(dia,mes,anio,anual,action){
|
|||
|
|
recargaObsPermiso();
|
|||
|
|
var formulario=document.getElementById('formPermiso');
|
|||
|
|
var observaciones=document.getElementById('obsCambioEst');
|
|||
|
|
var todasObs=document.createElement("div");
|
|||
|
|
var campobr=document.createElement("br");
|
|||
|
|
todasObs.id="todosObs";
|
|||
|
|
|
|||
|
|
var campoObs=document.createElement("input");
|
|||
|
|
campoObs.name="obs";
|
|||
|
|
campoObs.id="obs";
|
|||
|
|
var campotxtinfoObs=document.createElement("div");
|
|||
|
|
campotxtinfoObs.id="txt"+anio+"-"+mes+"-"+dia;
|
|||
|
|
campotxtinfoObs.innerHTML="Observaci<63>n para el t<>cnico para el dia :"+dia+"/"+mes+"/"+anio;
|
|||
|
|
|
|||
|
|
todasObs.appendChild(campotxtinfoObs);
|
|||
|
|
todasObs.appendChild(campoObs);
|
|||
|
|
|
|||
|
|
// Ponemos el valor a lso hidden
|
|||
|
|
document.getElementById('dia').value=dia;
|
|||
|
|
document.getElementById('mes').value=mes;
|
|||
|
|
document.getElementById('anio').value=anio;
|
|||
|
|
document.getElementById('action').value=action;
|
|||
|
|
|
|||
|
|
var botonSolicitar = document.createElement("input");
|
|||
|
|
botonSolicitar.type="button";
|
|||
|
|
botonSolicitar.name="Solicitar Observacion";
|
|||
|
|
botonSolicitar.value="Solicitar";
|
|||
|
|
botonSolicitar.id="butonSolicitar";
|
|||
|
|
botonSolicitar.onclick=function(){
|
|||
|
|
document.formPermiso.submit();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
var botonCancel = document.createElement("input");
|
|||
|
|
botonCancel.type="button";
|
|||
|
|
botonCancel.name="Cancelar";
|
|||
|
|
botonCancel.value="Cancelar";
|
|||
|
|
botonCancel.id="butonCancelar";
|
|||
|
|
botonCancel.onclick=function(){
|
|||
|
|
recargaObsPermiso();
|
|||
|
|
}
|
|||
|
|
todasObs.appendChild(campobr);
|
|||
|
|
todasObs.appendChild(botonSolicitar);
|
|||
|
|
todasObs.appendChild(botonCancel);
|
|||
|
|
|
|||
|
|
observaciones.appendChild(todasObs);
|
|||
|
|
observaciones.style.visibility="visible";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function recargaObsPermiso(){
|
|||
|
|
eliminaCapa("todosObs");
|
|||
|
|
document.getElementById('obsCambioEst').style.visibility="hidden";
|
|||
|
|
}
|
|||
|
|
function crearSolicitudes(idUsuario,tipo){
|
|||
|
|
ventana_secundaria = window.open("addSolicitudesEmpleado.php?oid="+idUsuario+"&tipo="+tipo,"miventana","width=520,height=440,menubar=no")
|
|||
|
|
}
|