Commit 0607d75a by sistem26user

[ADD] Añadida columna de usuario en el reporte de cambios y reemplazos

parent 00ef182f
...@@ -34,8 +34,17 @@ public class HorarioCF { ...@@ -34,8 +34,17 @@ public class HorarioCF {
private String grupoAcademico; private String grupoAcademico;
private Time hora; private Time hora;
private String estadoEliminado; private String estadoEliminado;
private String usuarioAcciona;
public HorarioCF(){ public String getUsuarioAcciona() {
return usuarioAcciona;
}
public void setUsuarioAcciona(String usuarioAcciona) {
this.usuarioAcciona = usuarioAcciona;
}
public HorarioCF() {
} }
...@@ -47,8 +56,6 @@ public class HorarioCF { ...@@ -47,8 +56,6 @@ public class HorarioCF {
this.estadoEliminado = estadoEliminado; this.estadoEliminado = estadoEliminado;
} }
public Time getHora() { public Time getHora() {
return hora; return hora;
} }
...@@ -57,8 +64,6 @@ public class HorarioCF { ...@@ -57,8 +64,6 @@ public class HorarioCF {
this.hora = hora; this.hora = hora;
} }
public Date getFechaRegistro() { public Date getFechaRegistro() {
return fechaRegistro; return fechaRegistro;
} }
...@@ -83,10 +88,6 @@ public class HorarioCF { ...@@ -83,10 +88,6 @@ public class HorarioCF {
this.grupoAcademico = grupoAcademico; this.grupoAcademico = grupoAcademico;
} }
public String getNombreSede() { public String getNombreSede() {
return nombreSede; return nombreSede;
} }
...@@ -199,8 +200,4 @@ public class HorarioCF { ...@@ -199,8 +200,4 @@ public class HorarioCF {
this.observacion = observacion; this.observacion = observacion;
} }
} }
...@@ -58,16 +58,16 @@ public class MySqlDAOFactory extends DAOFactory { ...@@ -58,16 +58,16 @@ public class MySqlDAOFactory extends DAOFactory {
try { try {
conexion = DriverManager.getConnection( conexion = DriverManager.getConnection(
"jdbc:mysql://serverprueba:3306/encuesta_docente", // "jdbc:mysql://serverprueba:3306/encuesta_docente",
"desarrollo", // "desarrollo",
"5VC02019"); // "5VC02019");
// "jdbc:mysql://localhost:3306/encuesta_docente", // "jdbc:mysql://localhost:3306/encuesta_docente",
// "root", // "root",
// "mysql"); // "mysql");
//server_winpla //server_winpla
// "jdbc:mysql://172.16.2.68:3306/encuesta_docente", "jdbc:mysql://172.16.2.68:3306/encuesta_docente",
// "sis_horarios", "sis_horarios",
// "Sy356ho899"); "Sy356ho899");
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
...@@ -79,16 +79,16 @@ public class MySqlDAOFactory extends DAOFactory { ...@@ -79,16 +79,16 @@ public class MySqlDAOFactory extends DAOFactory {
try { try {
conexion = DriverManager.getConnection( conexion = DriverManager.getConnection(
"jdbc:mysql://serverprueba:3306/nuevo", // "jdbc:mysql://serverprueba:3306/nuevo",
"desarrollo", // "desarrollo",
"5VC02019"); // "5VC02019");
// "jdbc:mysql://localhost:3306/nuevo", // "jdbc:mysql://localhost:3306/nuevo",
// "root", // "root",
// "mysql"); // "mysql");
//server_winpla //server_winpla
// "jdbc:mysql://172.16.2.68:3306/nuevo", "jdbc:mysql://172.16.2.68:3306/nuevo",
// "sis_horarios", "sis_horarios",
// "Sy356ho899"); "Sy356ho899");
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
...@@ -100,16 +100,16 @@ public class MySqlDAOFactory extends DAOFactory { ...@@ -100,16 +100,16 @@ public class MySqlDAOFactory extends DAOFactory {
try { try {
conexion = DriverManager.getConnection( conexion = DriverManager.getConnection(
"jdbc:mysql://serverprueba:3306/horarios_docente", // "jdbc:mysql://serverprueba:3306/horarios_docente",
"desarrollo", // "desarrollo",
"5VC02019"); // "5VC02019");
// "jdbc:mysql://localhost:3306/horarios_docente", // "jdbc:mysql://localhost:3306/horarios_docente",
// "root", // "root",
// "mysql"); // "mysql");
//server_winpla //server_winpla
// "jdbc:mysql://172.16.2.68:3306/horarios_docente", "jdbc:mysql://172.16.2.68:3306/horarios_docente",
// "sis_horarios", "sis_horarios",
// "Sy356ho899"); "Sy356ho899");
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
...@@ -120,16 +120,16 @@ public class MySqlDAOFactory extends DAOFactory { ...@@ -120,16 +120,16 @@ public class MySqlDAOFactory extends DAOFactory {
try { try {
conexion = DriverManager.getConnection( conexion = DriverManager.getConnection(
"jdbc:mysql://serverprueba:3306/sacoolive3", // "jdbc:mysql://serverprueba:3306/sacoolive3",
"desarrollo", // "desarrollo",
"5VC02019"); // "5VC02019");
// "jdbc:mysql://localhost:3306/sacoolive3", // "jdbc:mysql://localhost:3306/sacoolive3",
// "root", // "root",
// "mysql"); // "mysql");
//server_winpla //server_winpla
// "jdbc:mysql://172.16.2.68:3306/sacoolive3", "jdbc:mysql://172.16.2.68:3306/sacoolive3",
// "sis_horarios", "sis_horarios",
// "Sy356ho899"); "Sy356ho899");
} catch (Exception e) { } catch (Exception e) {
// TODO Auto-generated catch block // TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
......
...@@ -4841,7 +4841,6 @@ public class ServletHorario extends HttpServlet { ...@@ -4841,7 +4841,6 @@ public class ServletHorario extends HttpServlet {
" <button type='button' class=\"btn btn-xs btn-success\" id='datepickerFechaFaltaAvisoButton' onclick='verfechaFaltaAviso();' title='Elegir fecha fin del docente'><i class='ace-icon fa fa-calendar'></i></button>\n" + " <button type='button' class=\"btn btn-xs btn-success\" id='datepickerFechaFaltaAvisoButton' onclick='verfechaFaltaAviso();' title='Elegir fecha fin del docente'><i class='ace-icon fa fa-calendar'></i></button>\n" +
" </div>\n" + " </div>\n" +
" </div>"); " </div>");
pw.println("<div class=\"col-sm-3\">\n" + pw.println("<div class=\"col-sm-3\">\n" +
" <div class=\"form-group\">\n" + " <div class=\"form-group\">\n" +
" <b>Observacion:</b>\n" + " <b>Observacion:</b>\n" +
...@@ -4849,14 +4848,8 @@ public class ServletHorario extends HttpServlet { ...@@ -4849,14 +4848,8 @@ public class ServletHorario extends HttpServlet {
" </div>\n" + " </div>\n" +
" </div>"); " </div>");
} }
pw.println("<div class='col-sm-12' style='height:20px;'></div>"); pw.println("<div class='col-sm-12' style='height:20px;'></div>");
pw.println("<div class='col-sm-12'>"); pw.println("<div class='col-sm-12'>");
pw.println("<div id='divDocenteCombo'>"); pw.println("<div id='divDocenteCombo'>");
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title> <title>JSP Page</title>
<style type="text/css"> <style type="text/css">
/* #dg{ /* #dg{
background-color: #D9D2E9; background-color: #D9D2E9;
font-weight: bold; font-weight: bold;
} }
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
font-weight: bold; font-weight: bold;
}*/ }*/
/* #contenedor { /* #contenedor {
float: left; float: left;
width: 804px; width: 804px;
} }
...@@ -124,6 +124,7 @@ ...@@ -124,6 +124,7 @@
<td <%=centrado%> colspan="8" style="text-align: center;background-color: #D9D2E9;font-weight: bold;">DATA GENERAL</td> <td <%=centrado%> colspan="8" style="text-align: center;background-color: #D9D2E9;font-weight: bold;">DATA GENERAL</td>
<td <%=centrado%> colspan="3" style="text-align: center;background-color: #EDEDED;font-weight: bold;">REGISTRADO</td> <td <%=centrado%> colspan="3" style="text-align: center;background-color: #EDEDED;font-weight: bold;">REGISTRADO</td>
<td <%=centrado%> colspan="1" style="text-align: center;background-color: #EDEDED;font-weight: bold;">ELIMINADO</td> <td <%=centrado%> colspan="1" style="text-align: center;background-color: #EDEDED;font-weight: bold;">ELIMINADO</td>
<td <%=centrado%> colspan="1" style="text-align: center;background-color: #EDEDED;font-weight: bold;">USUARIO</td>
</tr> </tr>
<tr style="background-color: #2F75B5"> <tr style="background-color: #2F75B5">
...@@ -142,7 +143,7 @@ ...@@ -142,7 +143,7 @@
<th>APELLIDOS Y NOMBRES</th> <th>APELLIDOS Y NOMBRES</th>
<th>CURSO</th> <th>CURSO</th>
<th colspan="2">ACCION</th> <th colspan="3">ACCION</th>
...@@ -150,12 +151,12 @@ ...@@ -150,12 +151,12 @@
<% <%
String estilo=""; String estilo="";
for(HorarioCF horario : lista){ for(HorarioCF horario : lista){
// if(horario.getMotivoCambio().equals("SIN CURSO")){ // if(horario.getMotivoCambio().equals("SIN CURSO")){
// estilo="style='background-color:#D0CECE;padding : 10px;color:black;'"; // estilo="style='background-color:#D0CECE;padding : 10px;color:black;'";
// //
// }else{ // }else{
// estilo="style='background-color:#FFD966;padding : 10px;'"; // estilo="style='background-color:#FFD966;padding : 10px;'";
// } // }
%> %>
<tr> <tr>
...@@ -171,6 +172,7 @@ ...@@ -171,6 +172,7 @@
<td style="padding : 10px"><%=horario.getCursoEntrante()%></td> <td style="padding : 10px"><%=horario.getCursoEntrante()%></td>
<td <%=estilo%>><%=horario.getMotivoCambio()%></td> <td <%=estilo%>><%=horario.getMotivoCambio()%></td>
<td style="padding : 10px"><%=horario.getEstadoEliminado()%></td> <td style="padding : 10px"><%=horario.getEstadoEliminado()%></td>
<td style="padding : 10px"><%=horario.getUsuarioAcciona()%></td>
</tr> </tr>
......
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