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
f1ec7a26
Commit
f1ec7a26
authored
Dec 14, 2018
by
Crhistian Yuri Anchivilca Amasifuen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
leyenda horario-buscarZona
parent
5b01b886
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
103 additions
and
45 deletions
+103
-45
HorarioDAO.java
src/java/pe/siso/horario/DAO/HorarioDAO.java
+1
-1
MySqlHorarioDAO.java
src/java/pe/siso/horario/MySqlDAO/MySqlHorarioDAO.java
+14
-8
HorarioServices.java
src/java/pe/siso/horario/Services/HorarioServices.java
+2
-2
ServletAula.java
src/java/pe/siso/horario/Servlets/ServletAula.java
+3
-3
ServletHorario.java
src/java/pe/siso/horario/Servlets/ServletHorario.java
+9
-3
arm_hor_gen.jsp
web/vista/arm_hor_gen.jsp
+46
-0
exportarHorarioDocentePersonalizadoPlana.jsp
web/vista/exportarHorarioDocentePersonalizadoPlana.jsp
+28
-28
No files found.
src/java/pe/siso/horario/DAO/HorarioDAO.java
View file @
f1ec7a26
...
...
@@ -134,6 +134,6 @@ public interface HorarioDAO {
public
JSONObject
listarVistaDobleDisponibilidad
(
JSONObject
json
);
public
JSONObject
listarVistaHorarioDisponibilidad
(
JSONObject
json
)
throws
Exception
;
public
JSONObject
listarVistaHorarioDocenteDni
(
JSONObject
json
)
throws
Exception
;
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
,
String
codigoPeriodo
)
throws
Exception
;
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
)
throws
Exception
;
}
src/java/pe/siso/horario/MySqlDAO/MySqlHorarioDAO.java
View file @
f1ec7a26
...
...
@@ -2687,7 +2687,7 @@ public class MySqlHorarioDAO implements HorarioDAO {
}
@Override
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
,
String
codigoPeriodo
)
throws
Exception
{
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
)
throws
Exception
{
String
base
=
"horario"
;
Connection
cnx
=
null
;
ResultSet
rs
=
null
;
...
...
@@ -2695,16 +2695,22 @@ public class MySqlHorarioDAO implements HorarioDAO {
Horario
horario
=
new
Horario
();
try
{
cnx
=
MySqlDAOFactory
.
obtenerConexion
(
base
);
String
query
=
""
+
" SELECT "
+
" te.exa, "
+
" te.not_enc "
+
" FROM tabla_evaluacion te INNER JOIN sacoolive3.profesor pr ON te.cod_doc=pr.codprofesor "
+
" WHERE pr.codprofesor=? AND te.cod_pla=? AND te.cod_enc=? GROUP BY te.cod_pla "
;
String
query
=
"SELECT "
+
" round(avg(te.exa),2), "
+
" round(avg(te.not_enc),2)"
+
" FROM "
+
" tabla_evaluacion te "
+
" INNER JOIN sacoolive3.profesor pr ON te.cod_doc = pr.codprofesor "
+
" WHERE "
+
" pr.codprofesor =? and te.cod_pla=? "
+
" GROUP BY te.cod_doc "
+
" order by te.cod_enc DESC "
+
" limit 3"
;
pst
=
cnx
.
prepareStatement
(
query
);
pst
.
setString
(
1
,
codigoDocente
);
pst
.
setString
(
2
,
codigoPlana
);
pst
.
setString
(
3
,
codigoPeriodo
);
//
rs
=
pst
.
executeQuery
();
...
...
src/java/pe/siso/horario/Services/HorarioServices.java
View file @
f1ec7a26
...
...
@@ -670,10 +670,10 @@ public class HorarioServices {
return
jReturn
;
}
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
,
String
codigoPeriodo
){
public
Horario
verDocenteExamenEncuesta
(
String
codigoDocente
,
String
codigoPlana
){
Horario
horario
=
new
Horario
();
try
{
horario
=
objHorarioDAO
.
verDocenteExamenEncuesta
(
codigoDocente
,
codigoPlana
,
codigoPeriodo
);
horario
=
objHorarioDAO
.
verDocenteExamenEncuesta
(
codigoDocente
,
codigoPlana
);
}
catch
(
Exception
e
)
{
...
...
src/java/pe/siso/horario/Servlets/ServletAula.java
View file @
f1ec7a26
...
...
@@ -639,7 +639,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\">CENTRO</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\">SECCIÓN</th>\n"
// + " <th tabindex=\"0\" class=\"center\" rowspan=\"1\" colspan=\"1\">NOMBRE</th>\n"
...
...
@@ -665,7 +665,7 @@ public class ServletAula extends HttpServlet {
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreCentro
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreNivel
()
+
"</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreTipoGrado
()
+
"</td>"
//
+ " <td>" + lista.get(i).getNombreTipoGrado() + "</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombreGrado
()
+
"</td>"
// + " <td align='center'>" + lista.get(i).getNombreSeccion() + "</td>"
+
" <td>"
+
lista
.
get
(
i
).
getNombre
()
+
"</td>"
...
...
@@ -716,7 +716,7 @@ public class ServletAula extends HttpServlet {
+
"</li>"
);
}
//for(int i = 1; i<=num
ero; i++){
//for(int i = 1; i<=num
mero
if
(
numero
>
5
)
{
if
(
pagina
>
2
)
{
if
(
numero
>=
pagina
+
5
)
{
...
...
src/java/pe/siso/horario/Servlets/ServletHorario.java
View file @
f1ec7a26
...
...
@@ -2833,7 +2833,7 @@ public class ServletHorario extends HttpServlet {
int
resta
=
codigoACambiar
-
1
;
String
codigoCambiado
=
String
.
valueOf
(
resta
);
obj
=
serviciosHor
.
verDocenteExamenEncuesta
(
DatosHorario
.
getH_codigoDocente
(),
DatosHorario
.
getCodigoPlana
()
,
codigoCambiado
);
obj
=
serviciosHor
.
verDocenteExamenEncuesta
(
DatosHorario
.
getH_codigoDocente
(),
DatosHorario
.
getCodigoPlana
());
if
(
obj
.
getExamen
()
==
null
&&
obj
.
getNota_encuesta
()
==
null
){
obj
.
setExamen
(
" No evaluado "
);
obj
.
setNota_encuesta
(
" No evaluado "
);
...
...
@@ -3232,7 +3232,7 @@ public class ServletHorario extends HttpServlet {
pw
.
println
(
"</select>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div class='col-sm-
4
'>"
);
pw
.
println
(
"<div class='col-sm-
2
'>"
);
pw
.
println
(
"<b>Tipo de clase: </b><span style='color:red;'>*</span><br>"
);
pw
.
println
(
"<div id='divTipClase'>"
);
pw
.
println
(
"<select id='idClase' class='validate[required] form-control'>"
);
...
...
@@ -3246,11 +3246,17 @@ public class ServletHorario extends HttpServlet {
pw
.
println
(
"</select>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div class='col-sm-
4
'>"
);
pw
.
println
(
"<div class='col-sm-
3
'>"
);
pw
.
println
(
"<b>Filtro por docente: </b>"
);
pw
.
println
(
"<input id='txtApeDocente' class=\"form-control\" style='text-transform:uppercase;' onkeyup=\"doSearch();\" type=\"text\" >\n"
+
" "
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div class='col-sm-3'>"
);
pw
.
println
(
"<b>Filtro por Zona: </b>"
);
pw
.
println
(
"<input id='txtZona' class=\"form-control\" style='text-transform:uppercase;' onkeyup=\"doSearch2();\" type=\"text\" >\n"
+
" "
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div class='col-sm-12' style='height:20px;'></div>"
);
pw
.
println
(
"<div class='col-sm-12'>"
);
...
...
web/vista/arm_hor_gen.jsp
View file @
f1ec7a26
...
...
@@ -137,6 +137,17 @@
<!-- ----------------------------------------------------- -->
<div
style=
"padding-left: 23px;"
>
<fieldset>
<strong>
Leyenda:
</strong>
<p>
Prom.ENC : Promedio Nota Examen
</p>
<p>
Prom.EAC : Promedio Nota Encuesta
</p>
</fieldset>
</div>
<div
class=
"col-sm-12"
style=
"width:100%; height: 40px;"
>
<center><a
class=
"btn btn-sm btn-primary"
href=
"vistaDobleDisponibilidad.jsp"
target=
"_blank"
id=
"vistaDoble"
>
Vista doble
</a>
<a
class=
"btn btn-app btn-light btn-xs align-left"
onclick=
"window.print();"
target=
"_blank"
id=
"iconoImprimir"
>
...
...
@@ -893,6 +904,41 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
}
function
doSearch2
()
{
var
tableReg
=
document
.
getElementById
(
'tablaDocentes'
);
var
searchText
=
document
.
getElementById
(
'txtZona'
).
value
.
toLowerCase
();
var
cellsOfRow
=
""
;
var
found
=
false
;
var
compareWith
=
""
;
// Recorremos todas las filas con contenido de la tabla
for
(
var
i
=
1
;
i
<
tableReg
.
rows
.
length
;
i
++
)
{
cellsOfRow
=
tableReg
.
rows
[
i
].
getElementsByTagName
(
'td'
);
found
=
false
;
// Recorremos todas las celdas
for
(
var
j
=
0
;
j
<
cellsOfRow
.
length
&&
!
found
;
j
++
)
{
compareWith
=
cellsOfRow
[
j
].
innerHTML
.
toLowerCase
();
// Buscamos el texto en el contenido de la celda
if
(
searchText
.
length
==
0
||
(
compareWith
.
indexOf
(
searchText
)
>
-
1
))
{
found
=
true
;
}
}
if
(
found
)
{
tableReg
.
rows
[
i
].
style
.
display
=
''
;
}
else
{
// si no ha encontrado ninguna coincidencia, esconde la
// fila de la tabla
tableReg
.
rows
[
i
].
style
.
display
=
'none'
;
}
}
}
// Velasquez
function
verificar_uno
(
check
)
{
...
...
web/vista/exportarHorarioDocentePersonalizadoPlana.jsp
View file @
f1ec7a26
...
...
@@ -116,50 +116,50 @@
}
String
borderT=
"style='border:solid 0.5pt #000000;vertical-align:middle; background-color:#307ECC;color:white;' "
;
String
borderTD=
"style='border:solid 0.5pt #000000;vertical-align:middle; background-color:#FFCC99;' "
;
String
border=
"style='border:solid 0.5pt #000000;vertical-align:middle;'"
;
String
borderT=
"style='border:solid 0.5pt #000000;vertical-align:middle; background-color:#307ECC;color:white;
width:-2;height:22;
' "
;
String
borderTD=
"style='border:solid 0.5pt #000000;vertical-align:middle; background-color:#FFCC99;
width:-2;height:;
' "
;
String
border=
"style='border:solid 0.5pt #000000;vertical-align:middle;
width:-2;height:25;
'"
;
%
>
<table
border=
"
2"
border=
'0'
cellpadding=
'0'
cellspacing=
'
0'
>
<table
border=
"
1"
width=
'2
0'
>
<tr>
<td
colspan=
"
7
"
height=
'10'
>
</td>
<td
colspan=
"
4
"
height=
'10'
>
</td>
</tr>
<tr>
<td
colspan=
"
2"
<%=
borderT
%
>
>
<b>
DOCENTE:
</b></td>
<td
colspan=
"
2
"
<%=
border
%
>
>
<font><b><
%=
nombreDocente
%
></b></font></td>
<td
colspan=
"
1
"
<%=
borderT
%
>
>
<b>
CORREO:
</b></td>
<td
colspan=
"
2"
<%=
border
%
>
>
<font><b><
%=
correoDocente
%
></b></font></td>
<td
colspan=
"
0"
<%=
borderT
%
>
>
<b>
DOCENTE:
</b></td>
<td
colspan=
"
0
"
<%=
border
%
>
>
<font><b><
%=
nombreDocente
%
></b></font></td>
<td
colspan=
"
0
"
<%=
borderT
%
>
>
<b>
CORREO:
</b></td>
<td
colspan=
"
0"
<%=
border
%
>
>
<font><b><
%=
correoDocente
%
></b></font></td>
</tr>
<tr>
<td
colspan=
"
2"
<%=
borderT
%
>
width='140'
>
<b>
CELULAR:
</b></td>
<td
colspan=
"
2
"
<%=
border
%
>
align='left'>
<font><b><
%=
celularDocente
%
></b></font></td>
<td
colspan=
"
1"
<%=
borderT
%
>
>
<b>
DISTRITO:
</b></td>
<td
colspan=
"
2"
<%=
border
%
>
>
<font><b><
%=
distrito
%
></b></font></td>
<td
colspan=
"
0"
<%=
borderT
%
>
>
<b>
CELULAR:
</b></td>
<td
colspan=
"
0
"
<%=
border
%
>
align='left'>
<font><b><
%=
celularDocente
%
></b></font></td>
<td
colspan=
"
0"
<%=
borderT
%
>
>
<b>
DISTRITO:
</b></td>
<td
colspan=
"
0"
<%=
border
%
>
>
<font><b><
%=
distrito
%
></b></font></td>
</tr>
<tr>
<td
colspan=
"2"
<%=
borderT
%
>
height='70'
>
<b>
DIRECCIÓN:
</b></td>
<td
colspan=
"
2"
<%=
border
%
>
>
<font><b><
%=
direccionDocente
%
></b></font></td>
<td
colspan=
"2"
style=
"background-color:#307ECC;color:white;"
><b>
DIRECCIÓN:
</b></td>
<td
colspan=
"
0"
height=
'50'
><font><b><
%=
direccionDocente
%
></b></font></td>
</tr>
<tr>
<td
colspan=
"
2"
<%=
borderT
%
>
height='70'
>
<b>
NOTAS:
</b></td>
<td
colspan=
"
1
"
<%=
border
%
>
>
<font>
Examen :
<b><
%=
examen
%
></b></font></td>
<td
colspan=
"
1
"
<%=
border
%
>
>
<font>
Nota Encuesta:
<b><
%=
notaEncuesta
%
></b></font></td>
<td
colspan=
"
1
"
<%=
border
%
>
>
<font>
Promedio Plana :
<b><
%=
promedioPlana
%
></b></font></td>
<td
colspan=
"
1"
<%=
borderT
%
>
height='70'
>
<b>
Promedio General:
</b></td>
<td
colspan=
"
1
"
<%=
border
%
>
>
<font><b><
%=
promedio
%
></b></font></td>
<td
colspan=
"
0"
height=
'70'
<%=
borderT
%
>
>
<b>
NOTAS:
</b></td>
<td
colspan=
"
0
"
<%=
border
%
>
>
<font>
Examen :
<b><
%=
examen
%
></b></font></td>
<td
colspan=
"
0
"
<%=
border
%
>
>
<font>
Nota Encuesta:
<b><
%=
notaEncuesta
%
></b></font></td>
<td
colspan=
"
0
"
<%=
border
%
>
>
<font>
Promedio Plana :
<b><
%=
promedioPlana
%
></b></font></td>
<td
colspan=
"
0"
height=
'70'
<%=
borderT
%
>
>
<b>
Promedio General:
</b></td>
<td
colspan=
"
0
"
<%=
border
%
>
>
<font><b><
%=
promedio
%
></b></font></td>
</tr>
<tr>
<td
height=
'10'
colspan=
"
7
"
></td>
<td
height=
'10'
colspan=
"
1
"
></td>
</tr>
<tr>
<th
<%=
borderT
%
>
>TURNO
</th>
<th
<%=
borderT
%
>
>LUNES
</th>
<th
>
TURNO
</th>
<th
<%=
borderT
%
>
style="width:1;"
>LUNES
</th>
<th
<%=
borderT
%
>
>MARTES
</th>
<th
<%=
borderT
%
>
>MIERCOLES
</th>
<th
<%=
borderT
%
>
>JUEVES
</th>
...
...
@@ -182,11 +182,11 @@
for
(
Object
obj:aulaM
){
JSONObject
hr=
(JSONObject)obj;
if
(
hr
.
getString
("
dia
").
equals
(
String
.
valueOf
(
i
+
1
))){
horario
+=
hr
.
getString
("
sede
")
+
"
-
"
+
hr
.
getString
("
aulas
")
+
"
\
n
";
horario
+=
hr
.
getString
("
sede
")
+
"
\
n
-
"
+
hr
.
getString
("
aulas
")
+
"
";
}
}
%
>
<td
height=
'100'
width=
'1
20'
align=
'center'
style=
"vertical-align:middle
"
><font
size=
"3"
><b><
%=
horario
%
><
%=
x
%
></b></font></td>
<td
height=
'100'
width=
'1
40'
align=
'center'
style=
"vertical-align:middle;width:1;height:35;
"
><font
size=
"3"
><b><
%=
horario
%
><
%=
x
%
></b></font></td>
<
%
}
%
>
...
...
@@ -206,13 +206,13 @@
for
(
Object
obj:aulaT
){
JSONObject
hr=
(JSONObject)obj;
if
(
hr
.
getString
("
dia
").
equals
(
String
.
valueOf
(
i
+
1
))){
horario
+=
hr
.
getString
("
sede
")
+
"
-
"
+
hr
.
getString
("
aulas
")
+
"
\
n
";
horario
+=
hr
.
getString
("
sede
")
+
"
\
n
-
"
+
hr
.
getString
("
aulas
")
+
"
";
}
}
%
>
<td
height=
'100'
width=
'120'
align=
'center'
style=
"vertical-align:middle
"
><font
size=
"3"
><b><
%=
horario
%
><
%=
x
%
></b></font></td>
<td
height=
'100'
align=
'center'
width=
'140'
style=
"vertical-align:middle;width:1;height:35;
"
><font
size=
"3"
><b><
%=
horario
%
><
%=
x
%
></b></font></td>
<
%
}
%
>
...
...
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