Commit 3c757138 by sistem26user

Merge branches 'canchivilca' and 'tonyid' of…

Merge branches 'canchivilca' and 'tonyid' of http://version.sacooliveros.edu.pe/jguevara/horario into canchivilca

 Conflicts:
	src/java/pe/siso/horario/MySqlDAO/MySqlDocenteDAO.java
	src/java/pe/siso/horario/Servlets/ServletDocente.java
	web/vista/registroTablaEvaluacionDocente.jsp
parents b22a6525 82e939a4
......@@ -10,5 +10,6 @@ nbdist/
.nb-gradle/
web/assets/
web/html/
.idea/
# End of https://www.gitignore.io/api/netbeans
\ No newline at end of file
......@@ -6,7 +6,6 @@
package pe.siso.horario.Beans;
public class Area {
private int codigoArea;
private String nombreArea;
......
......@@ -13,6 +13,7 @@ import java.io.Serializable;
* @author fcelestino
*/
public class Usuario implements Serializable{
private int codarea;
private int codigoUsuario;
private int codigoTipoUsuario;
private int codigoSede;
......@@ -34,6 +35,14 @@ public class Usuario implements Serializable{
this.dni = dni;
}
public int getCodarea() {
return codarea;
}
public void setCodarea(int codarea) {
this.codarea = codarea;
}
public String getNombreTipoUsuario() {
return nombreTipoUsuario;
}
......
......@@ -20,7 +20,7 @@ public interface AreaDAO {
public void Actualizar(String codigo,String nombreArea) throws Exception;
public int registrarAreas(String nombreArea) throws Exception;
public void cambiarEstado(String dato, String codigoArea) throws Exception;
public ArrayList<Area> cargarArea() throws Exception;
public ArrayList<Area> cargarArea(int cod) throws Exception;
public int cantidadAreaUso(String codigoArea) throws Exception;
public Area datosArea(String codDocente) throws Exception;
public int registrarAreaDocente(String codigoArea, String codigoDocente) throws Exception;
......
......@@ -94,15 +94,19 @@ public class MySqlAreaDAO implements AreaDAO {
}
@Override
public ArrayList<Area> cargarArea() throws Exception {
public ArrayList<Area> cargarArea(int cod) throws Exception {
ArrayList<Area> lista = new ArrayList<Area>();
Connection cnx = null;
try {
String base = "horario";
String codarea="";
cnx = MySqlDAOFactory.obtenerConexion(base);
Statement st = cnx.createStatement();
if(cod!=0){
codarea=" and cod_are ="+cod;
}
String query = "SELECT cod_are,nom_are,est_are from area WHERE est_are = '1'";
String query = "SELECT cod_are,nom_are,est_are from area WHERE est_are = '1'"+codarea;
ResultSet rs = st.executeQuery(query);
......
......@@ -52,15 +52,17 @@ public class MySqlUsuarioDAO implements UsuarioDAO {
cnx = MySqlDAOFactory.obtenerConexion(base);
Statement st = cnx.createStatement();
String query = "SELECT usuario.cod_usu,usuario.cod_tip_usu, usuario.ani_usu, usuario.usu_usu, usuario.cla_usu, usuario.cod_loc, usuario.est_usu, tipo_usuario.nom_tip_usu, sede.des_loc "
String query = "SELECT area.cod_are,usuario.cod_usu,usuario.cod_tip_usu,usuario.ani_usu, usuario.usu_usu, usuario.cla_usu, usuario.cod_loc, usuario.est_usu, tipo_usuario.nom_tip_usu, sede.des_loc "
+ "FROM usuario "
+ "LEFT JOIN sede ON sede.cod_loc = usuario.cod_loc "
+ "LEFT JOIN area ON usuario.cod_usu=area.cod_usuario "
+ "INNER JOIN tipo_usuario ON tipo_usuario.cod_tip_usu = usuario.cod_tip_usu "
+ "WHERE usuario.usu_usu='" + usuario + "' and usuario.cla_usu='" + clave + "' and usuario.est_usu='1'";
ResultSet rs = st.executeQuery(query);
while (rs.next()) {
usuario1.setCodarea(rs.getInt("cod_are"));
usuario1.setCodigoUsuario(rs.getInt("cod_usu"));
usuario1.setCodigoTipoUsuario(rs.getInt("cod_tip_usu"));
usuario1.setCodigoSede(rs.getInt("cod_loc"));
......
......@@ -62,10 +62,10 @@ public class AreaServices {
}
public ArrayList<Area> cargarArea() {
public ArrayList<Area> cargarArea(int cod) {
ArrayList<Area> lista = null;
try {
lista = objAreaDAO.cargarArea();
lista = objAreaDAO.cargarArea(cod);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
......
......@@ -12,8 +12,10 @@ import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.json.JSONArray;
import pe.siso.horario.Beans.Area;
import pe.siso.horario.Beans.Usuario;
import pe.siso.horario.Services.AreaServices;
/**
......@@ -45,8 +47,8 @@ public class ServletArea extends HttpServlet {
registraAreaDocente(request, response);
} else if ("cargarAreaJson".equals(param)) {
cargarAreaJson(request, response);
}else if("cargarAreaEditar".equals(param)){
cargarAreaEditar(request,response);
} else if ("cargarAreaEditar".equals(param)) {
cargarAreaEditar(request, response);
}
}
......@@ -184,12 +186,12 @@ public class ServletArea extends HttpServlet {
String accion = request.getParameter("accion");
String nombreId = request.getParameter("nombre");
lista = servicios.cargarArea();
lista = servicios.cargarArea(0);
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
pw.println("<select id='"+nombreId+"' class='chosen-select form-control validate[required]' onChange='" + accion + "'>");
pw.println("<select id='" + nombreId + "' class='chosen-select form-control validate[required]' onChange='" + accion + "'>");
pw.println("<option value=''>[Seleccione]</option>");
for (int i = 0; i < lista.size(); i++) {
pw.println("<option value='" + lista.get(i).getCodigoArea() + "'>" + lista.get(i).getNombreArea() + "</option>");
......@@ -197,6 +199,7 @@ public class ServletArea extends HttpServlet {
pw.println("</select>");
}
private void cargarAreaEditar(HttpServletRequest request, HttpServletResponse response) throws IOException {
AreaServices servicios = new AreaServices();
ArrayList<Area> lista = null;
......@@ -210,7 +213,7 @@ public class ServletArea extends HttpServlet {
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
pw.println("<select id='"+nombreId+"' class='chosen-select form-control validate[required]' onChange='" + accion + "'>");
pw.println("<select id='" + nombreId + "' class='chosen-select form-control validate[required]' onChange='" + accion + "'>");
pw.println("<option value=''>[SELECCIONE]</option>");
for (int i = 0; i < lista.size(); i++) {
pw.println("<option value='" + lista.get(i).getCodigoArea() + "' selected>" + lista.get(i).getNombreArea() + "</option>");
......@@ -310,7 +313,6 @@ public class ServletArea extends HttpServlet {
pw.println("<option value='4'>C.T.A.</option>");
pw.println("<option value='5'>C.E.F.</option>");
pw.println(" </select> "
+ " </span> "
+ " <br> "
......@@ -354,8 +356,12 @@ public class ServletArea extends HttpServlet {
private void cargarAreaJson(HttpServletRequest request, HttpServletResponse response) throws IOException {
AreaServices servicios = new AreaServices();
ArrayList<Area> lista = null;
lista = servicios.cargarArea();
HttpSession session_actual = request.getSession(true);
Usuario usuario = (Usuario) session_actual.getAttribute("usuario");
int codarea=usuario.getCodarea();
System.out.println("***********************************");
System.out.println(codarea);
lista = servicios.cargarArea(codarea);
response.setContentType("application/json");
PrintWriter pw = response.getWriter();
......
......@@ -282,7 +282,7 @@ public class ServletCurso extends HttpServlet {
ArrayList<Area> listaArea = null;
ArrayList<Plana> listaPlana = null;
ArrayList<Curso> listaCurso= null;
listaArea = serviciosArea.cargarArea();
listaArea = serviciosArea.cargarArea(0);
listaPlana=serviciosPlana.cargarPlana(codArea);
listaCurso=servicios.cargarFamilia();
//String dato = request.getParameter("dato");
......@@ -488,7 +488,7 @@ public class ServletCurso extends HttpServlet {
ArrayList<Area> listaArea = null;
ArrayList<Plana> listaPlana = null;
ArrayList<Curso> listaCurso= null;
listaArea = serviciosArea.cargarArea();
listaArea = serviciosArea.cargarArea(0);
listaPlana=serviciosPlana.cargarPlana(codArea);
listaCurso=servicios.cargarFamilia();
//String dato = request.getParameter("dato");
......
......@@ -304,7 +304,7 @@ public class ServletPlana extends HttpServlet {
ArrayList<Area> listaArea = null;
listaArea = serviciosArea.cargarArea();
listaArea = serviciosArea.cargarArea(0);
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
......@@ -399,7 +399,7 @@ public class ServletPlana extends HttpServlet {
AreaServices serviciosArea = new AreaServices();
ArrayList<Area> listaArea = null;
int codigoArea = Integer.parseInt(request.getParameter("codigoArea"));
listaArea = serviciosArea.cargarArea();
listaArea = serviciosArea.cargarArea(0);
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
......
......@@ -13,6 +13,7 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import pe.siso.horario.Beans.Area;
import pe.siso.horario.Beans.PeriodoAcademico;
import pe.siso.horario.Beans.Usuario;
import pe.siso.horario.Beans.UsuarioDocente;
......
......@@ -374,7 +374,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
$.ajax({
type: 'POST',
url: '../ServletArea?Accion=cargarArea',
data: 'accion=' + accion+'&nombre='+nombre,
data: 'accion=' + accion + '&nombre=' + nombre,
beforeSend: function () {
cargando();
}, success: function (resultado) {
......@@ -413,7 +413,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
function listarRegistros() {
let name=''
let name = ''
var nombrePlana = $("#cmbPlana option:selected").text();
var codigoPlana = $("#cmbPlana").val();
var codigoPeriodo = "<%=periodo!=null?periodo.getCodigoPeriodo():""%>";
......@@ -426,11 +426,11 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}, success: function (resultado) {
cerrar_cargando();
$("#divListado").html(resultado);
name=$("#lblUsuario").text();
if(name === "6"){
name = $("#lblUsuario").text();
if (name === "6") {
$("#divListado #btnRegistrar").hide();
}
let periodoEnc=$("#divListado #codEnc").val();
let periodoEnc = $("#divListado #codEnc").val();
// $("#divListado #txtPuesto").keypress(function (e) {
......@@ -457,7 +457,9 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
x.className = "show";
// After 3 seconds, remove the show class from DIV
setTimeout(function(){ x.className = x.className.replace("show", ""); }, 2000);
setTimeout(function () {
x.className = x.className.replace("show", "");
}, 2000);
}
......@@ -492,7 +494,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
function armarDatos() {
var cantidad = $("#cantidad").val();
var datos = "";
let datos = "";
for (var i = 0; i < cantidad; i++) {
var codigoDocente = $("#codDoc_" + i + "").val();
var nombreDocente = $("#nomDoc_" + i + "").val();
......@@ -506,65 +508,76 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
if (notaPlana != "" && notaExa != "" && txtPuesto !="" && txtObservacion != "") {
if (notaPlana != "" && notaExa != "" && txtPuesto != "" && txtObservacion != "") {
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
} else if (notaPlana == "" && notaExa != "" && txtPuesto !="" && txtObservacion != "") {
} else if (notaPlana == "" && notaExa != "" && txtPuesto != "" && txtObservacion != "") {
notaPlana = "vacio";
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
} else if (notaExa == "" && notaPlana != "" && txtPuesto !="" && txtObservacion != "") {
} else if (notaExa == "" && notaPlana != "" && txtPuesto != "" && txtObservacion != "") {
notaExa = "vacio";
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
} else if (txtPuesto == "" && txtObservacion != "" && notaExa != "" && notaPlana != "") {
txtPuesto = "vacio";
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
else if(txtPuesto == "" && txtObservacion != "" && notaExa != "" && notaPlana != ""){
}else if (txtPuesto == "" && txtObservacion == "" && notaExa != "" && notaPlana != "") {
txtPuesto = "vacio";
txtObservacion = "vacio";
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
}else if(txtObservacion == "" && txtPuesto != "" && notaExa != "" && notaPlana != ""){
} else if (txtObservacion == "" && txtPuesto != "" && notaExa != "" && notaPlana != "") {
txtObservacion = "vacio";
if (datos == "") {
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos = codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
} else {
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta+"#"+txtPuesto+"#"+txtObservacion;
datos += "!" + codigoDocente + "#" + nombreDocente + "#" + notaPlana + "#" + notaExa + "#" + notaEncuesta + "#" + txtPuesto + "#" + txtObservacion;
}
}
}
registrarMerito(datos);
}
......
......@@ -19,7 +19,6 @@ Menu menu=(Menu)session_actual.getAttribute("menu");
Sede SedeCod=(Sede)session_actual.getAttribute("sedeSessionCod");
PeriodoAcademico periodo=(PeriodoAcademico)session_actual.getAttribute("periodo");
Horario armandoHorario=(Horario)session_actual.getAttribute("armandoHorario");
Grupo CadenaGrupo=(Grupo)session_actual.getAttribute("sessionGrupoHorario");
if(usuario == null || periodo== null){
......
<%--
Document : vistaDobleDisponibilidad
Created on : 17-nov-2018, 8:48:37
Author : sistem20user
--%>
<%@page import="pe.siso.horario.Beans.Usuario"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="pe.siso.horario.Beans.PeriodoAcademico"%>
<!DOCTYPE html>
......@@ -29,7 +24,7 @@
<%
HttpSession session_actual = request.getSession(true);
PeriodoAcademico periodo=(PeriodoAcademico)session_actual.getAttribute("periodo");
PeriodoAcademico periodo = (PeriodoAcademico) session_actual.getAttribute("periodo");
%>
<style type="text/css">
@media print {
......@@ -143,7 +138,8 @@
<!-- <a class="btn btn-app btn-light btn-xs align-left" onclick="window.print();" target="_blank" id="iconoImprimir">
<i class="ace-icon fa fa-print bigger-160"></i>-->
<label>Zona:</label>
<select id="cmbZonas" onchange="listarDisponibilidad();activarPrint();">
<select id="cmbZonas" onchange="listarDisponibilidad();
activarPrint();">
</select>
</div>
......@@ -240,7 +236,7 @@
let codigoPlana = document.querySelector('#cbPlana').value
let codigoPeriodo = '<%= periodo!=null?periodo.getCodigoPeriodo():""%>'
let codigoPeriodo = '<%= periodo != null ? periodo.getCodigoPeriodo() : ""%>'
console.log(codigoPeriodo)
let codigoZona = document.querySelector('#cmbZonas').value
// let distritos=new ZonaDistritoServices();
......@@ -258,7 +254,7 @@
} else {
let codigoPeriodo2 = '<%= periodo!=null?periodo.getCodigoPeriodo():""%>'
let codigoPeriodo2 = '<%= periodo != null ? periodo.getCodigoPeriodo() : ""%>'
// let codigoPlana2 = document.querySelector('#cbPlana').value
......@@ -467,8 +463,7 @@
}
html += `</div>`
}
else {
} else {
html += '<div class="divider"></div>'
html += '<div class="section">'
......@@ -477,20 +472,20 @@
html += '<label id="codDocente" style="visibility:hidden;">' + docente.codDocente + '</label>'
html +='<div class="form-control">'
html +='<div class="card grey lighten-2">'
html += '<div class="form-control">'
html += '<div class="card grey lighten-2">'
html += '<div class="card-content black-text">'
//PRIMERA FILA
html += '<div class="row" style="margin-bottom:0px">'
html += '<div class="input-field col s3"><i class="material-icons dp48">local_phone</i> <strong>' + docente.celular + '</strong></div>'
html += '<div class="input-field col s3"><i class="material-icons dp48">school</i><strong> Puesto Nro: '+docente.puesto+'</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_weak</i> <strong>Exa. Encuesta: '+docente.notaEncuesta+'</strong></div>'
html += '<div class="input-field col s3"><i class="material-icons dp48">school</i><strong> Puesto Nro: ' + docente.puesto + '</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_weak</i> <strong>Exa. Encuesta: ' + docente.notaEncuesta + '</strong></div>'
html += '</div>'
//SEGUNDA FILA
html += '<div class="row" style="margin-bottom:0px">'
html += '<div class="input-field col s3"><i class="material-icons dp48">room</i> <strong>' + docente.distrito + '</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_strong</i> <strong> Exa. Academico: '+docente.examenNota+'</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_strong</i> <strong> Exa. Academico: ' + docente.examenNota + '</strong></div>'
html += '</div>'
//TERCERA FILA
......@@ -661,8 +656,7 @@
html += '</table>'
html += '</p>'
}
else {
} else {
html += '<p>EL DOCENTE NO TIENE DISPONIBILIDAD REGISTRADA</p>'
}
......@@ -868,9 +862,7 @@
}
html += `</div>`
}
else {
} else {
html += '<div class="divider"></div>'
html += '<div class="section">'
......@@ -878,21 +870,21 @@
html += '<h6 id="nombreDocente" style="font-weight:bold;">' + docente.nombre + '<span></span><span></span> <span> </span>&nbsp;&nbsp; <a href="javascript:updateObservacion(this.value);" value=' + docente.observacion + '>' + docente.observacion + '</a></span></h6>'
html += '<label id="codDocente" style="visibility:hidden;">' + docente.codDocente + '</label>'
html +='<div class="form-control">'
html +='<div class="card grey lighten-2">'
html += '<div class="form-control">'
html += '<div class="card grey lighten-2">'
html += '<div class="card-content black-text">'
//PRIMERA FILA
html += '<div class="row" style="margin-bottom:0px">'
html += '<div class="input-field col s3"><i class="material-icons dp48">local_phone</i> <strong>' + docente.celular + '</strong></div>'
html += '<div class="input-field col s3"><i class="material-icons dp48">school</i><strong> Puesto Nro: '+docente.puesto+'</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_weak</i> <strong>Exa. Encuesta '+docente.notaEncuesta+'</strong></div>'
html += '<div class="input-field col s3"><i class="material-icons dp48">school</i><strong> Puesto Nro: ' + docente.puesto + '</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_weak</i> <strong>Exa. Encuesta ' + docente.notaEncuesta + '</strong></div>'
html += '</div>'
//SEGUNDA FILA
html += '<div class="row" style="margin-bottom:0px">'
html += '<div class="input-field col s3"><i class="material-icons dp48">room</i> <strong>' + docente.distrito + '</strong></div>'
html += '<div class="input-field col s3"><i class="material-icons dp48">room</i> <strong>' + docente.zona + '</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_strong</i> <strong> Exa. Academico '+docente.examen+'</strong></div>'
html += '<div class="input-field col s6"><i class="material-icons dp48">hdr_strong</i> <strong> Exa. Academico ' + docente.examen + '</strong></div>'
html += '</div>'
//TERCERA FILA
......@@ -1088,7 +1080,7 @@
let question = confirm("¿Esta seguro de eliminar su horario ?");
if (question) {
console.log(codDocente)
var periodo = "<%=periodo!=null?periodo.getCodigoPeriodo():""%>";
var periodo = "<%=periodo != null ? periodo.getCodigoPeriodo() : ""%>";
desactivarHorario(codDocente, periodo)
......@@ -1104,10 +1096,10 @@
}
function colorChange(obj){
function colorChange(obj) {
let periodo = '<%= periodo!=null?periodo.getCodigoPeriodo():""%>'
let periodo = '<%= periodo != null ? periodo.getCodigoPeriodo() : ""%>'
let codigoDoc = $(obj).parents('div.section').find('#codDocente').text();
let nombreDoc = $(obj).parents('div.section').find('#nombreDocente').text();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment