Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
horario
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juan Guevara Mayta
horario
Commits
99acea16
Commit
99acea16
authored
Jan 14, 2020
by
sistem26user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registro de aulas por periodo
parent
12fd64ba
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
103 additions
and
50 deletions
+103
-50
Aula.java
src/java/pe/siso/horario/Beans/Aula.java
+11
-0
AulaDAO.java
src/java/pe/siso/horario/DAO/AulaDAO.java
+8
-2
MySqlAulaDAO.java
src/java/pe/siso/horario/MySqlDAO/MySqlAulaDAO.java
+0
-0
MySqlDAOFactory.java
src/java/pe/siso/horario/MySqlDAO/MySqlDAOFactory.java
+24
-24
AulaServices.java
src/java/pe/siso/horario/Services/AulaServices.java
+12
-2
ServletAula.java
src/java/pe/siso/horario/Servlets/ServletAula.java
+16
-6
lista_aula_dirage.jsp
web/vista/lista_aula_dirage.jsp
+1
-15
man_aula_dirage_session.jsp
web/vista/man_aula_dirage_session.jsp
+31
-1
No files found.
src/java/pe/siso/horario/Beans/Aula.java
View file @
99acea16
...
@@ -31,6 +31,17 @@ public class Aula {
...
@@ -31,6 +31,17 @@ public class Aula {
private
String
nombreTurno
;
private
String
nombreTurno
;
private
String
usuario
;
private
String
usuario
;
private
String
clave
;
private
String
clave
;
private
String
nombrePeriodo
;
public
String
getNombrePeriodo
()
{
return
nombrePeriodo
;
}
public
void
setNombrePeriodo
(
String
nombrePeriodo
)
{
this
.
nombrePeriodo
=
nombrePeriodo
;
}
private
String
nombre
;
private
String
nombre
;
public
String
getNombre
()
{
public
String
getNombre
()
{
...
...
src/java/pe/siso/horario/DAO/AulaDAO.java
View file @
99acea16
...
@@ -19,7 +19,7 @@ public interface AulaDAO {
...
@@ -19,7 +19,7 @@ public interface AulaDAO {
public
ArrayList
<
Aula
>
listaAulas
()
throws
Exception
;
public
ArrayList
<
Aula
>
listaAulas
()
throws
Exception
;
public
ArrayList
<
Aula
>
listaAulasDirage
(
String
codigoLocal
)
throws
Exception
;
public
ArrayList
<
Aula
>
listaAulasDirage
(
String
codigoLocal
)
throws
Exception
;
public
ArrayList
<
Aula
>
listaAulasDirage
()
throws
Exception
;
public
ArrayList
<
Aula
>
listaAulasDirage
()
throws
Exception
;
public
int
registrarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombreAula
)
throws
Exception
;
public
int
registrarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombreAula
,
int
codPeriodo
)
throws
Exception
;
public
int
consultarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
int
consultarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
int
consultarAulaConNombre
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombre
)
throws
Exception
;
public
int
consultarAulaConNombre
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombre
)
throws
Exception
;
public
String
consultarAula
(
String
codigoAula
)
throws
Exception
;
public
String
consultarAula
(
String
codigoAula
)
throws
Exception
;
...
@@ -32,8 +32,14 @@ public interface AulaDAO {
...
@@ -32,8 +32,14 @@ public interface AulaDAO {
public
void
crearUsuarioEncuestador
(
String
codigoSede
,
String
codigoAula
,
String
nombreUsuario
,
String
usuario
,
String
clave
,
String
cantidad
)
throws
Exception
;
public
void
crearUsuarioEncuestador
(
String
codigoSede
,
String
codigoAula
,
String
nombreUsuario
,
String
usuario
,
String
clave
,
String
cantidad
)
throws
Exception
;
public
int
cantlistarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
int
cantlistarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasBloque
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
)
throws
Exception
;
//METODO RECIEN AGREGADOS EL 14-01-2020
public
ArrayList
<
Aula
>
listarAulasBloqueTotal
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
,
int
periodo
)
throws
Exception
;
public
int
cantlistarAulasBloqueTotal
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
codperiodo
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
periodo
)
throws
Exception
;
public
ArrayList
<
Aula
>
listarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
periodo
)
throws
Exception
;
public
int
cantlistarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
public
int
cantlistarAulasHorario
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
)
throws
Exception
;
...
...
src/java/pe/siso/horario/MySqlDAO/MySqlAulaDAO.java
View file @
99acea16
This diff is collapsed.
Click to expand it.
src/java/pe/siso/horario/MySqlDAO/MySqlDAOFactory.java
View file @
99acea16
...
@@ -59,16 +59,16 @@ public class MySqlDAOFactory extends DAOFactory {
...
@@ -59,16 +59,16 @@ public class MySqlDAOFactory extends DAOFactory {
try
{
try
{
conexion
=
DriverManager
.
getConnection
(
conexion
=
DriverManager
.
getConnection
(
// "jdbc:mysql://172.16.2.68
:3306/encuesta_docente",
"jdbc:mysql://serverprueba
:3306/encuesta_docente"
,
// "christian
",
"desarrollo
"
,
// "serverpla
");
"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
...
@@ -80,16 +80,16 @@ public class MySqlDAOFactory extends DAOFactory {
...
@@ -80,16 +80,16 @@ public class MySqlDAOFactory extends DAOFactory {
try
{
try
{
conexion
=
DriverManager
.
getConnection
(
conexion
=
DriverManager
.
getConnection
(
// "jdbc:mysql://172.16.2.68
:3306/nuevo",
"jdbc:mysql://serverprueba
:3306/nuevo"
,
// "christian
",
"desarrollo
"
,
// "serverpla
");
"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
...
@@ -101,16 +101,16 @@ public class MySqlDAOFactory extends DAOFactory {
...
@@ -101,16 +101,16 @@ public class MySqlDAOFactory extends DAOFactory {
try
{
try
{
conexion
=
DriverManager
.
getConnection
(
conexion
=
DriverManager
.
getConnection
(
// "jdbc:mysql://172.16.2.68
:3306/horarios_docente",
"jdbc:mysql://serverprueba
:3306/horarios_docente"
,
// "christian
",
"desarrollo
"
,
// "serverpla
");
"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
...
@@ -121,16 +121,16 @@ public class MySqlDAOFactory extends DAOFactory {
...
@@ -121,16 +121,16 @@ public class MySqlDAOFactory extends DAOFactory {
try
{
try
{
conexion
=
DriverManager
.
getConnection
(
conexion
=
DriverManager
.
getConnection
(
// "jdbc:mysql://172.16.2.68
:3306/sacoolive3",
"jdbc:mysql://serverprueba
:3306/sacoolive3"
,
// "christian
",
"desarrollo
"
,
// "serverpla
");
"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
();
...
...
src/java/pe/siso/horario/Services/AulaServices.java
View file @
99acea16
...
@@ -52,10 +52,10 @@ public class AulaServices {
...
@@ -52,10 +52,10 @@ public class AulaServices {
}
}
public
int
registrarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombreAula
){
public
int
registrarAula
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
String
nombreAula
,
int
codPeriodo
){
int
dato
=
0
;
int
dato
=
0
;
try
{
try
{
dato
=
objAulaDAO
.
registrarAula
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
);
dato
=
objAulaDAO
.
registrarAula
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
,
codPeriodo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
// TODO Auto-generated catch block
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -287,6 +287,16 @@ public class AulaServices {
...
@@ -287,6 +287,16 @@ public class AulaServices {
}
}
return
lista
;
return
lista
;
}
}
public
ArrayList
<
Aula
>
listarAulasBloqueTotal
(
String
codSede
,
String
codTipoCentro
,
String
codCentro
,
String
codNivel
,
String
codTipoGrado
,
String
codGrado
,
String
codSeccion
,
String
codTurno
,
int
inicio
,
int
cantidad
,
int
codperiodo
)
{
ArrayList
<
Aula
>
lista
=
null
;
try
{
lista
=
objAulaDAO
.
listarAulasBloqueTotal
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
inicio
,
cantidad
,
codperiodo
);
}
catch
(
Exception
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
lista
;
}
public
int
CantlistaAulasDirageSede
(){
public
int
CantlistaAulasDirageSede
(){
int
cant
=
0
;
int
cant
=
0
;
...
...
src/java/pe/siso/horario/Servlets/ServletAula.java
View file @
99acea16
...
@@ -146,10 +146,13 @@ public class ServletAula extends HttpServlet {
...
@@ -146,10 +146,13 @@ public class ServletAula extends HttpServlet {
String
codSeccion
=
request
.
getParameter
(
"codSeccion"
);
String
codSeccion
=
request
.
getParameter
(
"codSeccion"
);
String
codTurno
=
request
.
getParameter
(
"codTurno"
);
String
codTurno
=
request
.
getParameter
(
"codTurno"
);
String
nombreAula
=
request
.
getParameter
(
"nombreAula"
);
String
nombreAula
=
request
.
getParameter
(
"nombreAula"
);
int
codPeriodo
=
Integer
.
parseInt
(
request
.
getParameter
(
"codPeriodo"
));
response
.
setContentType
(
"text/html"
);
response
.
setContentType
(
"text/html"
);
PrintWriter
pw
=
response
.
getWriter
();
PrintWriter
pw
=
response
.
getWriter
();
int
aula
=
0
;
int
aula
=
0
;
int
dato
=
servicios
.
registrarAula
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
);
int
dato
=
servicios
.
registrarAula
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
,
codPeriodo
);
if
(
dato
==
1
)
{
if
(
dato
==
1
)
{
aula
=
servicios
.
consultarAulaConNombre
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
);
aula
=
servicios
.
consultarAulaConNombre
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
nombreAula
);
...
@@ -656,7 +659,7 @@ public class ServletAula extends HttpServlet {
...
@@ -656,7 +659,7 @@ public class ServletAula extends HttpServlet {
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">TIPO CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">TIPO CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">NIVEL</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">NIVEL</th>\n"
//
+ " <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">TIPO GRADO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">TIPO GRADO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">GRADO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">GRADO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">SECCIÓN</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">SECCIÓN</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">NOMBRE</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">NOMBRE</th>\n"
...
@@ -682,7 +685,7 @@ public class ServletAula extends HttpServlet {
...
@@ -682,7 +685,7 @@ public class ServletAula extends HttpServlet {
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
//
+ " <td>" + lista.get(i).getNombreTipoGrado() + "</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoGrado
()
+
"</td>"
+
" <td><a class='lblNombreGrado' href=\"javascript:editarNombreGrado('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombreGrado
()+
"</a></td>"
+
" <td><a class='lblNombreGrado' href=\"javascript:editarNombreGrado('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombreGrado
()+
"</a></td>"
+
" <td align='center'><a class='lblNombreSeccion' href=\"javascript:editarNombreSeccion('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombreSeccion
()+
"</a></td>"
+
" <td align='center'><a class='lblNombreSeccion' href=\"javascript:editarNombreSeccion('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombreSeccion
()+
"</a></td>"
+
" <td><a class='lblNombreAula' href=\"javascript:editarNombreAula('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombre
()+
"</a></td>"
+
" <td><a class='lblNombreAula' href=\"javascript:editarNombreAula('"
+
lista
.
get
(
i
).
getCodigoAula
()+
"');\" style='text-decoration: none;'>"
+
lista
.
get
(
i
).
getNombre
()+
"</a></td>"
...
@@ -2137,6 +2140,8 @@ public class ServletAula extends HttpServlet {
...
@@ -2137,6 +2140,8 @@ public class ServletAula extends HttpServlet {
String
codSeccion
=
request
.
getParameter
(
"codSeccion"
);
String
codSeccion
=
request
.
getParameter
(
"codSeccion"
);
String
codTurno
=
request
.
getParameter
(
"codTurno"
);
String
codTurno
=
request
.
getParameter
(
"codTurno"
);
String
periodo
=
request
.
getParameter
(
"periodo"
);
String
periodo
=
request
.
getParameter
(
"periodo"
);
int
codPeriodo
=
Integer
.
parseInt
(
request
.
getParameter
(
"periodo"
));
//------------------datos de paginacion---------------------------
//------------------datos de paginacion---------------------------
int
cantidad
=
Integer
.
parseInt
(
request
.
getParameter
(
"cantidad"
));
int
cantidad
=
Integer
.
parseInt
(
request
.
getParameter
(
"cantidad"
));
...
@@ -2146,8 +2151,9 @@ public class ServletAula extends HttpServlet {
...
@@ -2146,8 +2151,9 @@ public class ServletAula extends HttpServlet {
int
inicio
=
(
pagina
-
1
)
*
cantidad
;
int
inicio
=
(
pagina
-
1
)
*
cantidad
;
int
cantRegistro
=
0
;
int
cantRegistro
=
0
;
lista
=
servicio
.
listarAulasBloque
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
inicio
,
cantidad
);
lista
=
servicio
.
listarAulasBloqueTotal
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
,
inicio
,
cantidad
,
codPeriodo
);
cantRegistro
=
servicio
.
cantlistarAulasBloque
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
);
cantRegistro
=
servicio
.
cantlistarAulasBloque
(
codSede
,
codTipoCentro
,
codCentro
,
codNivel
,
codTipoGrado
,
codGrado
,
codSeccion
,
codTurno
);
//=============CALCULO DE PAGINADO=============
//=============CALCULO DE PAGINADO=============
int
numero
=
cantRegistro
/
cantidad
;
int
numero
=
cantRegistro
/
cantidad
;
...
@@ -2192,6 +2198,7 @@ public class ServletAula extends HttpServlet {
...
@@ -2192,6 +2198,7 @@ public class ServletAula extends HttpServlet {
+
" <tr role=\"row\">\n"
+
" <tr role=\"row\">\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\" >N°</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\" >N°</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">SEDE</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">SEDE</th>\n"
+
"<th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">PERIODO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">TIPO CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">TIPO CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">CENTRO</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">NIVEL</th>\n"
+
" <th tabindex=\"0\" class=\"center\" rowspan=\"2\" colspan=\"1\">NIVEL</th>\n"
...
@@ -2232,7 +2239,9 @@ public class ServletAula extends HttpServlet {
...
@@ -2232,7 +2239,9 @@ public class ServletAula extends HttpServlet {
codAula
=
""
+
lista
.
get
(
i
).
getCodigoAula
();
codAula
=
""
+
lista
.
get
(
i
).
getCodigoAula
();
//cantidadHCero = servicioH.cantidadHorarioCero(codAula, periodo);
//cantidadHCero = servicioH.cantidadHorarioCero(codAula, periodo);
nom
=
" <td>"
+
lista
.
get
(
i
).
getNombreLocal
()
+
"</td>"
nom
=
" <td>"
+
lista
.
get
(
i
).
getNombreLocal
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombrePeriodo
()+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
+
"<td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
...
@@ -2320,6 +2329,7 @@ public class ServletAula extends HttpServlet {
...
@@ -2320,6 +2329,7 @@ public class ServletAula extends HttpServlet {
pw
.
println
(
"<tr>"
pw
.
println
(
"<tr>"
+
" <td align='center' height='30'>"
+
cont
+
"</td>"
+
" <td align='center' height='30'>"
+
cont
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreLocal
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreLocal
()
+
"</td>"
+
" <td style='color:#307ecc;'>"
+
lista
.
get
(
i
).
getNombrePeriodo
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
...
...
web/vista/lista_aula_dirage.jsp
View file @
99acea16
...
@@ -319,14 +319,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -319,14 +319,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
}
}));
}));
$
(
"#id-btn-dialog2"
).
on
(
'click'
,
function
(
e
)
{
//--
$
(
"#id-btn-dialog2"
).
on
(
'click'
,
function
(
e
)
{
//--
e
.
preventDefault
();
e
.
preventDefault
();
$
(
"#dialog-confirm"
).
removeClass
(
'hide'
).
dialog
({
$
(
"#dialog-confirm"
).
removeClass
(
'hide'
).
dialog
({
...
@@ -687,12 +679,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -687,12 +679,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
let
nombre
=
""
;
let
nombre
=
""
;
function
editarNombreAula
(
codAula
)
{
function
editarNombreAula
(
codAula
)
{
console
.
log
(
"inicio"
+
codAula
)
console
.
log
(
"inicio"
+
codAula
)
let
id
=
$
(
".lblNombreAula"
);
let
id
=
$
(
".lblNombreAula"
);
codigo
=
codAula
;
codigo
=
codAula
;
console
.
log
(
"xtttt"
+
codigo
)
setEditable
(
id
);
setEditable
(
id
);
}
}
...
@@ -734,10 +724,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -734,10 +724,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
}
});
});
},
error
:
function
(
data
)
{
},
error
:
function
(
data
)
{
$
(
'.lblNombreAula'
).
editable
(
'destroy'
);
$
(
'.lblNombreAula'
).
editable
(
'destroy'
);
}
}
...
...
web/vista/man_aula_dirage_session.jsp
View file @
99acea16
...
@@ -222,6 +222,14 @@
...
@@ -222,6 +222,14 @@
</div>
</div>
<br>
<br>
</div>
</div>
<div
class=
"col-sm-6"
>
<label
for=
"form-field-select-3"
>
Periodo
<span
style=
"color: red;"
>
*
</span></label>
<br>
<div
id=
"divPeriodo"
>
</div>
<br>
</div>
</fieldset>
</fieldset>
...
@@ -673,6 +681,22 @@
...
@@ -673,6 +681,22 @@
title_html
:
true
title_html
:
true
});
});
}
}
function
cargarPeriodoHorario
()
{
var
accion
=
""
;
var
nombre
=
"cbPeriodo"
;
$
.
ajax
({
type
:
'POST'
,
url
:
'../ServletPeriodoAcademico?Accion=listarPeriodoAcademico'
,
data
:
'accion='
+
accion
+
'&nombre='
+
nombre
,
beforeSend
:
function
()
{
},
success
:
function
(
resultado
)
{
$
(
"#divPeriodo"
).
html
(
resultado
);
},
complete
:
function
()
{
}
});
}
function
close_carga
()
{
function
close_carga
()
{
$
(
"#dialog-cargando"
).
dialog
(
"close"
);
$
(
"#dialog-cargando"
).
dialog
(
"close"
);
...
@@ -827,6 +851,7 @@
...
@@ -827,6 +851,7 @@
$
(
"#divSeccion"
).
html
(
resultado
);
$
(
"#divSeccion"
).
html
(
resultado
);
},
complete
:
function
()
{
},
complete
:
function
()
{
cargarTurno
();
cargarTurno
();
cargarPeriodoHorario
();
}
}
});
});
...
@@ -928,13 +953,18 @@
...
@@ -928,13 +953,18 @@
var
codSeccion
=
$
(
"#cmbSeccion"
).
val
();
var
codSeccion
=
$
(
"#cmbSeccion"
).
val
();
let
nombre
=
$
(
"#txtAula"
).
val
();
let
nombre
=
$
(
"#txtAula"
).
val
();
var
codTurno
=
$
(
"#cmbturno"
).
val
();
var
codTurno
=
$
(
"#cmbturno"
).
val
();
// codigo de periodo
var
codperiodo
=
$
(
"#cbPeriodo"
).
val
()
$
(
"#codSede"
).
val
(
codSede
);
$
(
"#codSede"
).
val
(
codSede
);
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'../ServletAula?Accion=registarAula'
,
url
:
'../ServletAula?Accion=registarAula'
,
data
:
'codCentro='
+
codCentro
+
'&codNivel='
+
codNivel
+
'&codTipoGrado='
+
codTipoGrado
+
'&codGrado='
+
codGrado
+
'&codSede='
+
codSede
+
'&codTipoCentro='
+
codTipoCentro
+
'&codSeccion='
+
codSeccion
+
'&codTurno='
+
codTurno
+
'&nombreAula='
+
nombre
,
data
:
'codCentro='
+
codCentro
+
'&codNivel='
+
codNivel
+
'&codTipoGrado='
+
codTipoGrado
+
'&codGrado='
+
codGrado
+
'&codSede='
+
codSede
+
'&codTipoCentro='
+
codTipoCentro
+
'&codSeccion='
+
codSeccion
+
'&codTurno='
+
codTurno
+
'&nombreAula='
+
nombre
+
'&codPeriodo='
+
codperiodo
,
beforeSend
:
function
()
{
beforeSend
:
function
()
{
cargando
();
cargando
();
},
success
:
function
(
resultado
)
{
},
success
:
function
(
resultado
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment