Commit 16a6a227 by Roman Luque

[EDIT] Areglo de errores generales en diversos módulos

parent 12cea38a
...@@ -998,17 +998,17 @@ exists or setup the property manually. For example like this: ...@@ -998,17 +998,17 @@ exists or setup the property manually. For example like this:
<target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/> <target depends="init,compile,compile-jsps,-pre-dist,-do-dist-with-manifest,-do-dist-without-manifest" name="do-dist"/>
<target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest"> <target depends="init" if="dist.ear.dir" name="library-inclusion-in-manifest">
<copyfiles files="${file.reference.activation.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.activation.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.mysql-connector-java-3.1.14-bin.jar-1}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.json-20171018.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.json-20171018.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.dotenv-0.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/> <copyfiles files="${file.reference.dotenv-0.1.1.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<copyfiles files="${file.reference.mysql-connector-java-5.1.23-bin.jar}" iftldtodir="${build.web.dir}/WEB-INF" todir="${dist.ear.dir}/lib"/>
<mkdir dir="${build.web.dir}/META-INF"/> <mkdir dir="${build.web.dir}/META-INF"/>
<manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/> <manifest file="${build.web.dir}/META-INF/MANIFEST.MF" mode="update"/>
</target> </target>
<target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir"> <target depends="init" name="library-inclusion-in-archive" unless="dist.ear.dir">
<copyfiles files="${file.reference.activation.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.activation.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.mysql-connector-java-3.1.14-bin.jar-1}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.json-20171018.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.json-20171018.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.dotenv-0.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/> <copyfiles files="${file.reference.dotenv-0.1.1.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
<copyfiles files="${file.reference.mysql-connector-java-5.1.23-bin.jar}" todir="${build.web.dir}/WEB-INF/lib"/>
</target> </target>
<target depends="init" if="dist.ear.dir" name="-clean-webinf-lib"> <target depends="init" if="dist.ear.dir" name="-clean-webinf-lib">
<delete dir="${build.web.dir}/WEB-INF/lib"/> <delete dir="${build.web.dir}/WEB-INF/lib"/>
......
build.xml.data.CRC32=22d59e15 build.xml.data.CRC32=0cf8cf75
build.xml.script.CRC32=5a966c0c build.xml.script.CRC32=5a966c0c
build.xml.stylesheet.CRC32=651128d4@1.77.1.1 build.xml.stylesheet.CRC32=651128d4@1.77.1.1
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=22d59e15 nbproject/build-impl.xml.data.CRC32=0cf8cf75
nbproject/build-impl.xml.script.CRC32=a9c734cb nbproject/build-impl.xml.script.CRC32=050b490e
nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1 nbproject/build-impl.xml.stylesheet.CRC32=99ea4b56@1.77.1.1
...@@ -31,7 +31,7 @@ excludes= ...@@ -31,7 +31,7 @@ excludes=
file.reference.activation.jar=D:\\LIBRERIAS\\activation.jar file.reference.activation.jar=D:\\LIBRERIAS\\activation.jar
file.reference.dotenv-0.1.1.jar=C:\\Users\\sistem17user\\Desktop\\Juan Carlos Yupanqui Lozano\\Libreria\\LIBRERIAS 2\\DotEnv\\dotenv-0.1.1.jar file.reference.dotenv-0.1.1.jar=C:\\Users\\sistem17user\\Desktop\\Juan Carlos Yupanqui Lozano\\Libreria\\LIBRERIAS 2\\DotEnv\\dotenv-0.1.1.jar
file.reference.json-20171018.jar=D:\\LIBRERIAS\\json-20171018.jar file.reference.json-20171018.jar=D:\\LIBRERIAS\\json-20171018.jar
file.reference.mysql-connector-java-3.1.14-bin.jar-1=D:\\LIBRERIAS\\mysql-connector-java-3.1.14-bin.jar file.reference.mysql-connector-java-5.1.23-bin.jar=C:\\Users\\sistem17user\\Desktop\\Juan Carlos Yupanqui Lozano\\Libreria\\LIBRERIAS 2\\mysql-connector-java-5.1.23-bin.jar
includes=** includes=**
j2ee.compile.on.save=true j2ee.compile.on.save=true
j2ee.copy.static.files.on.save=true j2ee.copy.static.files.on.save=true
...@@ -47,9 +47,9 @@ j2ee.server.type=gfv3ee6 ...@@ -47,9 +47,9 @@ j2ee.server.type=gfv3ee6
jar.compress=false jar.compress=false
javac.classpath=\ javac.classpath=\
${file.reference.activation.jar}:\ ${file.reference.activation.jar}:\
${file.reference.mysql-connector-java-3.1.14-bin.jar-1}:\
${file.reference.json-20171018.jar}:\ ${file.reference.json-20171018.jar}:\
${file.reference.dotenv-0.1.1.jar} ${file.reference.dotenv-0.1.1.jar}:\
${file.reference.mysql-connector-java-5.1.23-bin.jar}
# Space-separated list of extra javac options # Space-separated list of extra javac options
javac.compilerargs= javac.compilerargs=
javac.debug=true javac.debug=true
......
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
<path-in-war>WEB-INF/lib</path-in-war> <path-in-war>WEB-INF/lib</path-in-war>
</library> </library>
<library dirs="200"> <library dirs="200">
<file>${file.reference.mysql-connector-java-3.1.14-bin.jar-1}</file> <file>${file.reference.json-20171018.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war> <path-in-war>WEB-INF/lib</path-in-war>
</library> </library>
<library dirs="200"> <library dirs="200">
<file>${file.reference.json-20171018.jar}</file> <file>${file.reference.dotenv-0.1.1.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war> <path-in-war>WEB-INF/lib</path-in-war>
</library> </library>
<library dirs="200"> <library dirs="200">
<file>${file.reference.dotenv-0.1.1.jar}</file> <file>${file.reference.mysql-connector-java-5.1.23-bin.jar}</file>
<path-in-war>WEB-INF/lib</path-in-war> <path-in-war>WEB-INF/lib</path-in-war>
</library> </library>
</web-module-libraries> </web-module-libraries>
......
...@@ -1914,6 +1914,7 @@ public class MySqlAulaDAO implements AulaDAO { ...@@ -1914,6 +1914,7 @@ public class MySqlAulaDAO implements AulaDAO {
+ " ORDER BY h.cod_gru_aul,s.des_loc,tg.destipogrado,g.desgrado,t.desturno,h.codGru,\n" + " ORDER BY h.cod_gru_aul,s.des_loc,tg.destipogrado,g.desgrado,t.desturno,h.codGru,\n"
+ "tc.destipocentro,h.codGru,c.descentro,n.desnivel,h.codAula,sc.desseccion "; + "tc.destipocentro,h.codGru,c.descentro,n.desnivel,h.codAula,sc.desseccion ";
System.out.println("QUERYYY ---> " + query);
ResultSet rs = st.executeQuery(query); ResultSet rs = st.executeQuery(query);
while (rs.next()) { while (rs.next()) {
Aula aula = new Aula(); Aula aula = new Aula();
......
...@@ -68,7 +68,7 @@ public class MySqlDAOFactory extends DAOFactory { ...@@ -68,7 +68,7 @@ public class MySqlDAOFactory extends DAOFactory {
System.out.println("ERROR AL OBTENER EL ARCHIVO DOTENV --->> " + e.getMessage()); System.out.println("ERROR AL OBTENER EL ARCHIVO DOTENV --->> " + e.getMessage());
} }
System.out.println("PAATH =>> " + path); // System.out.println("PAATH =>> " + path);
String host = dotenv.get("MYSQL_HOST_SERVIDOR_HORARIO"); String host = dotenv.get("MYSQL_HOST_SERVIDOR_HORARIO");
String port = dotenv.get("MYSQL_PORT_SERVIDOR_HORARIO"); String port = dotenv.get("MYSQL_PORT_SERVIDOR_HORARIO");
......
...@@ -1801,7 +1801,7 @@ public class MySqlHorarioDAO implements HorarioDAO { ...@@ -1801,7 +1801,7 @@ public class MySqlHorarioDAO implements HorarioDAO {
// + " INNER JOIN turno on turno.codturno=aula.codturno " // + " INNER JOIN turno on turno.codturno=aula.codturno "
// + " WHERE horario_curso_docente.cod_doc='" + codDocente + "' and horario_curso_docente.cod_per='" + periodo + "' and horario_curso_docente.est_hcd='1' " // + " WHERE horario_curso_docente.cod_doc='" + codDocente + "' and horario_curso_docente.cod_per='" + periodo + "' and horario_curso_docente.est_hcd='1' "
// + " ORDER BY horario_curso_docente.dia, horario_curso_docente.hor_ini"; // + " ORDER BY horario_curso_docente.dia, horario_curso_docente.hor_ini";
String query = "SELECT\n" String query = "SELECT DISTINCT\n"
+ "tb_curso.cod_pla,\n" + "tb_curso.cod_pla,\n"
+ "tb_detalle.cod_tur,\n" + "tb_detalle.cod_tur,\n"
+ "tb_detalle.codAula,\n" + "tb_detalle.codAula,\n"
...@@ -2980,7 +2980,7 @@ public class MySqlHorarioDAO implements HorarioDAO { ...@@ -2980,7 +2980,7 @@ public class MySqlHorarioDAO implements HorarioDAO {
pst.setString(1, json.getString("codigoPeriodo")); pst.setString(1, json.getString("codigoPeriodo"));
pst.setInt(2, docente.getInt("codDocente")); pst.setInt(2, docente.getInt("codDocente"));
// pst.setString(3, String.join(",", arrayDias)); // pst.setString(3, String.join(",", arrayDias));
System.out.println(pst);
rs = pst.executeQuery(); rs = pst.executeQuery();
JSONArray arrayAulas = new JSONArray(); JSONArray arrayAulas = new JSONArray();
...@@ -3042,40 +3042,28 @@ public class MySqlHorarioDAO implements HorarioDAO { ...@@ -3042,40 +3042,28 @@ public class MySqlHorarioDAO implements HorarioDAO {
try { try {
cn = MySqlDAOFactory.obtenerConexion("horario"); cn = MySqlDAOFactory.obtenerConexion("horario");
String sql = "" String sql = ""
+ "select " + " SELECT pr.codprofesor,\n"
+ "pr.codprofesor, " + " CONCAT(pr.apellido,', ',pr.nombre) nombreDoc,\n"
+ "CONCAT(pr.apellido,', ',pr.nombre) nombreDoc, " + " COALESCE(dat.cel_dat_per, 'No registrado') AS cel_dat_per,\n"
+ "dat.cel_dat_per, " + " COALESCE(dat.nom_dir, 'No registrado') AS nom_dir,\n"
+ "dat.nom_dir, " + " COALESCE(dat.cor_dat_per, 'No registrado') AS cor_dat_per,\n"
+ "dat.cor_dat_per, " + " COALESCE(u.nom_dis_ubi, 'No registrado') AS nom_dis_ubi,\n"
+ "u.nom_dis_ubi, " + " dd.diaDis\n"
+ "dd.diaDis " + " from sacoolive3.profesor pr\n"
+ "from sacoolive3.profesor pr " + " INNER join (select codDoc,diaDis from disponibilidad_docente where estDis = 1 and cod_per = ? ) dd on dd.codDoc = pr.codprofesor\n"
+ "left join ( " + " left join datos_docente dat on dat.cod_doc = pr.codprofesor\n"
+ " select codDoc,diaDis from disponibilidad_docente " + " left join ubigeo u on u.cod_dep_ubi = dat.cod_dep and u.cod_pro_ubi = dat.cod_prov and u.cod_dis_ubi = dat.cod_dis\n"
+ " where estDis = 1 " + " where pr.estadoprofe = 'Y'\n"
+ " and cod_per = ? " + " and pr.codprofesor = ?\n"
+ ") dd on dd.codDoc = pr.codprofesor " + " group by pr.codprofesor, CONCAT(pr.apellido,', ',pr.nombre), dd.diaDis, dat.cel_dat_per, dat.nom_dir, dat.cor_dat_per, u.nom_dis_ubi\n"
+ "left join datos_docente dat on dat.cod_doc = pr.codprofesor " + " order by nombreDoc ASC;";
+ "left join ubigeo u on u.cod_dep_ubi = dat.cod_dep and u.cod_pro_ubi = dat.cod_prov and u.cod_dis_ubi = dat.cod_dis "
+ "where pr.estadoprofe = 'Y' "
+ "and pr.codprofesor = ? "
+ "group by "
+ "pr.codprofesor, "
+ "CONCAT(pr.apellido,', ',pr.nombre), "
+ "dd.diaDis, "
+ "dat.cel_dat_per, "
+ "dat.nom_dir, "
+ "dat.cor_dat_per, "
+ "u.nom_dis_ubi "
+ "order by nombreDoc ASC ";
pst = cn.prepareStatement(sql); pst = cn.prepareStatement(sql);
System.out.println("" + sql);
pst.setString(1, json.getString("codigoPeriodo")); pst.setString(1, json.getString("codigoPeriodo"));
pst.setString(2, json.getString("codigoProfesor")); pst.setString(2, json.getString("codigoProfesor"));
System.out.println("QUERY DATOS DEL DOCENTE ---->> \n" + pst);
rs = pst.executeQuery(); rs = pst.executeQuery();
JSONArray arrayDocente = new JSONArray(); JSONArray arrayDocente = new JSONArray();
...@@ -3162,7 +3150,7 @@ public class MySqlHorarioDAO implements HorarioDAO { ...@@ -3162,7 +3150,7 @@ public class MySqlHorarioDAO implements HorarioDAO {
Logger.getLogger(MySqlHorarioDAO.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(MySqlHorarioDAO.class.getName()).log(Level.SEVERE, null, ex);
} }
} }
System.out.println("RESPUESTAAA -->> \n" + jReturn);
return jReturn; return jReturn;
} }
...@@ -3319,9 +3307,9 @@ public class MySqlHorarioDAO implements HorarioDAO { ...@@ -3319,9 +3307,9 @@ public class MySqlHorarioDAO implements HorarioDAO {
+ "INNER JOIN sacoolive3.profesor p ON hc.cod_doc=p.codprofesor " + "INNER JOIN sacoolive3.profesor p ON hc.cod_doc=p.codprofesor "
+ "INNER JOIN periodo_academico pa ON hc.cod_per=pa.cod_per " + "INNER JOIN periodo_academico pa ON hc.cod_per=pa.cod_per "
+ "WHERE p.codprofesor=? and hc.est_hcd=1 " + "WHERE p.codprofesor=? and hc.est_hcd=1 "
+ "AND pa.nom_per != 'REGULAR 2020 I' OR hc.cod_per != 24 " // + "AND pa.nom_per != 'REGULAR 2020 I' OR hc.cod_per != 24 "
+ "GROUP BY hc.cod_per,pa.nom_per ORDER BY hc.cod_per DESC "; + "GROUP BY hc.cod_per,pa.nom_per ORDER BY hc.cod_per DESC ";
System.out.println("QUERY DE LISTA DE PERIODOOO -->> \n" + sql);
pst = cn.prepareStatement(sql); pst = cn.prepareStatement(sql);
pst.setString(1, codigoDocente); pst.setString(1, codigoDocente);
rs = pst.executeQuery(); rs = pst.executeQuery();
......
...@@ -22,11 +22,13 @@ class MySqlPeriodoAcademicoDAO implements PeriodoAcademicoDAO { ...@@ -22,11 +22,13 @@ class MySqlPeriodoAcademicoDAO implements PeriodoAcademicoDAO {
public ArrayList<PeriodoAcademico> listarPeriodoAcademico() throws Exception { public ArrayList<PeriodoAcademico> listarPeriodoAcademico() throws Exception {
ArrayList<PeriodoAcademico> lista = new ArrayList<PeriodoAcademico>(); ArrayList<PeriodoAcademico> lista = new ArrayList<PeriodoAcademico>();
String base = "horario"; String base = "horario";
System.out.println("ANTES DE CONECTAR...");
try (Connection cnx = MySqlDAOFactory.obtenerConexion(base);) { try (Connection cnx = MySqlDAOFactory.obtenerConexion(base);) {
System.out.println("CONECTADO...");
Statement st = cnx.createStatement(); Statement st = cnx.createStatement();
String query = "SELECT cod_per,nom_per,fec_ini_per,fec_fin_per,est_per FROM periodo_academico Order by cod_per desc"; String query = "SELECT cod_per,nom_per,fec_ini_per,fec_fin_per,est_per FROM periodo_academico Order by cod_per desc";
System.out.println("ANTES DE EJECTUAR EL QUERY...");
ResultSet rs = st.executeQuery(query); ResultSet rs = st.executeQuery(query);
while (rs.next()) { while (rs.next()) {
......
...@@ -553,9 +553,9 @@ ...@@ -553,9 +553,9 @@
var target = $(this).find('input[type=radio]'); var target = $(this).find('input[type=radio]');
var which = parseInt(target.val()); var which = parseInt(target.val());
if (which == 2) if (which == 2)
$('.select2').addClass('tag-input-style'); $('.select2').addClass('tag-input-style');
else else
$('.select2').removeClass('tag-input-style'); $('.select2').removeClass('tag-input-style');
}); });
...@@ -1100,9 +1100,10 @@ ...@@ -1100,9 +1100,10 @@
cargando(); cargando();
}, success: function (resultado) { }, success: function (resultado) {
close_carga(); close_carga();
// debugger debugger
$('#aula').html(resultado); $('#aula').html(resultado);
let op = $("#cmbSede").val(); let op = $("#cmbSede").val();
debugger
name = $("#lblUsuario").text(); name = $("#lblUsuario").text();
if (name === "6" || name === "5") { if (name === "6" || name === "5") {
$("#aula #btnAgregar").hide(); $("#aula #btnAgregar").hide();
...@@ -1118,7 +1119,9 @@ ...@@ -1118,7 +1119,9 @@
}, complete: function () { }, complete: function () {
$('#aula').fadeIn(); $('#aula').fadeIn();
$("#cmbSede").val(codAulaSession) console.log(`revisar...`)
debugger;
// $("#cmbSede").val(codAulaSession)
// $("body").animate({ scrollTop: $(document).height()}, 1000); // $("body").animate({ scrollTop: $(document).height()}, 1000);
} }
......
...@@ -792,7 +792,8 @@ ...@@ -792,7 +792,8 @@
html += '<tr>' html += '<tr>'
html += '<td id="turno">M</td>' html += '<td id="turno">M</td>'
console.log('Prueba.....................................................');
debugger;
for (let i = 0; i < 6; i++) { for (let i = 0; i < 6; i++) {
let aulas = aulasM.map(a => { let aulas = aulasM.map(a => {
if (a.dia == i + 1) { if (a.dia == i + 1) {
......
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