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
08d3ebc7
Commit
08d3ebc7
authored
Nov 06, 2019
by
Crhistian Yuri Anchivilca Amasifuen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avance de solicitud nro 2
parent
33c4fa56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
100 deletions
+42
-100
MySqlHorarioDAO.java
src/java/pe/siso/horario/MySqlDAO/MySqlHorarioDAO.java
+0
-0
ServletHorario.java
src/java/pe/siso/horario/Servlets/ServletHorario.java
+28
-52
arm_hor_gen.jsp
web/vista/arm_hor_gen.jsp
+6
-35
gen_hor_gen.jsp
web/vista/gen_hor_gen.jsp
+8
-13
vistaDobleDisponibilidad.jsp
web/vista/vistaDobleDisponibilidad.jsp
+0
-0
No files found.
src/java/pe/siso/horario/MySqlDAO/MySqlHorarioDAO.java
View file @
08d3ebc7
This diff is collapsed.
Click to expand it.
src/java/pe/siso/horario/Servlets/ServletHorario.java
View file @
08d3ebc7
...
...
@@ -2556,10 +2556,10 @@ public class ServletHorario extends HttpServlet {
+
" </button>"
+
" </td>"
+
" <td colspan='3' align='center'>"
+
" <button class=\"btn btn-sm btn-primary\" onclick=\"abrirPlanAcademico();\" type=\"button\">"
+
" <i class=\"ace-icon fa fa-graduation icon-on-right bigger-110\"></i>"
+
" Plan Academico"
+
" </button>"
//
+ " <button class=\"btn btn-sm btn-primary\" onclick=\"abrirPlanAcademico();\" type=\"button\">"
//
+ " <i class=\"ace-icon fa fa-graduation icon-on-right bigger-110\"></i>"
//
+ " Plan Academico"
//
+ " </button>"
+
" </td>"
+
" </tr>"
+
" <tr>"
...
...
@@ -2978,36 +2978,26 @@ public class ServletHorario extends HttpServlet {
String
nota_encuesta
=
""
;
DatosHorario
=
serviciosHor
.
consultarDatosHorarioAulaPorPosicionDiaria
(
aulas
[
i
],
codPeriodo2
,
dia
,
posicion
);
if
(
DatosHorario
.
getCelularDocente
()
==
null
){
DatosHorario
.
setCelularDocente
(
"No registrado"
);
}
if
(
DatosHorario
.
getCodigoPlana
()
==
null
){
//System.out.println("No hay plana");
obj
.
setExamen
(
" No evaluado "
);
obj
.
setExamen
(
" No evaluado "
);
}
else
{
int
codigoACambiar
=
Integer
.
parseInt
(
codPeriodo2
);
int
resta
=
codigoACambiar
-
1
;
String
codigoCambiado
=
String
.
valueOf
(
resta
);
obj
=
serviciosHor
.
verDocenteExamenEncuesta
(
DatosHorario
.
getH_codigoDocente
(),
DatosHorario
.
getCodigoPlana
());
if
(
obj
.
getExamen
()
==
null
){
obj
.
setExamen
(
" No evaluado "
);
}
int
codigoACambiar
=
Integer
.
parseInt
(
codPeriodo2
);
int
resta
=
codigoACambiar
-
1
;
String
codigoCambiado
=
String
.
valueOf
(
resta
);
obj
=
serviciosHor
.
verDocenteExamenEncuesta
(
DatosHorario
.
getH_codigoDocente
(),
DatosHorario
.
getCodigoPlana
());
if
(
obj
.
getExamen
()
==
null
){
obj
.
setExamen
(
" No evaluado "
);
}
}
pw
.
println
(
"<td align='center' style='width:4%; color:white; background-color:#62A8D1; vertical-align:middle; font-size: 10px; '>"
+
HorIni
+
"<br>"
+
HorFin
+
"</td>"
);
if
(
i
==
0
)
{
if
(
dia
.
equals
(
"1"
))
{
if
(
cont_dia1
==
1
)
{
...
...
@@ -3089,17 +3079,14 @@ public class ServletHorario extends HttpServlet {
}
}
}
System
.
out
.
println
(
"ESTADO_HCD "
+
DatosHorario
.
getH_estado
()
);
if
(
DatosHorario
.
getH_estado
()
==
null
)
{
pw
.
println
(
"<td id='sinCurso' align='center' style='width:12%; vertical-align:middle; cursor: pointer;' onclick=\"alerta1('"
+
cantidad
+
"','"
+
bloqueGrupoDia
+
"','"
+
aulas
[
i
]
+
"','"
+
diaPos
+
"',"
+
diaGen
+
",'"
+
HorIni
+
"','"
+
HorFin
+
"','"
+
codigo
+
"','"
+
contGenral
+
"')\" >"
+
" <label style='color: red;'><div id='curso_"
+
contGenral
+
"_"
+
diaPos
+
"_"
+
diaGen
+
"'>SIN CURSO </div></label>"
+
" </td>"
);
}
else
{
pw
.
println
(
"<td align='center' style='width:12%; vertical-align:middle;>"
+
" <label >"
+
" <div id='curso_"
+
contGenral
+
"_"
+
diaPos
+
"_"
+
diaGen
+
"'> "
...
...
@@ -3168,13 +3155,11 @@ public class ServletHorario extends HttpServlet {
"</ul>\n"
+
" </div><br><br>"
+
" <b>"
+
DatosHorario
.
getH_nombreCurso
()
+
"</b> "
+
" <br> "
);
+
" <b style='font-size:15px'>"
+
DatosHorario
.
getH_nombreCurso
()
+
"</b> "
+
" <br> "
);
}
else
{
pw
.
println
(
"</ul>\n"
+
" </div><br>"
+
" <b>"
+
DatosHorario
.
getH_nombreCurso
()
+
"</b> "
...
...
@@ -3182,30 +3167,22 @@ public class ServletHorario extends HttpServlet {
+
" <br> Prom.ENC :"
+
obj
.
getExamen
()
+
" <br> Cel : "
+
DatosHorario
.
getCelularDocente
());
}
int
codRemplazo
=
DatosHorario
.
getCodigoReemplazo
();
if
(
DatosHorario
.
getCodigoReemplazo
()
!=
0
){
pw
.
println
(
" <span data-rel=\"tooltip\" ><a id='verCambioDia' href='javascript:historyChangeDay("
+
diaGen
+
","
+
DatosHorario
.
getH_codigoDocente
()+
");' "
+
" title='Ver Historial Cambio Dia' style='margin-left:40px;'><i class=\"ace-icon fa fa-eye icon-on-right bigger-110\" style=\"color:red;\"></i></a></span>"
);
pw
.
println
(
" <span data-rel=\"tooltip\" ><a id='verCambioDia' href='javascript:historyChangeDay("
+
diaGen
+
","
+
DatosHorario
.
getH_codigoDocente
()+
");' "
+
" title='Ver Historial Cambio Dia' style='margin-left:40px;'><i class=\"ace-icon fa fa-eye icon-on-right bigger-110\" style=\"color:red;\"></i></a></span>"
);
}
if
(
DatosHorario
.
getH_estado
().
equals
(
"4"
)){
}
else
{
pw
.
println
(
"<span data-rel=\"tooltip\" ><a id='verCambioDia' href='javascript:clickHoraActualUpdate("
+
DatosHorario
.
getH_codigoAula
()+
","
+
posicion
+
","
+
codPeriodo2
+
","
+
diaGen
+
");' "
+
" title='Editar Hora entrada y salida' style='margin-left:40px;'><i class=\"fa fa-clock-o bigger-110\"></i></a></span>"
);
}
pw
.
println
(
" </div>"
+
" </label>"
...
...
@@ -3454,11 +3431,11 @@ public class ServletHorario extends HttpServlet {
pw
.
println
(
"<div class='col-sm-12'>"
);
pw
.
println
(
"<div class='col-sm-4'>"
);
pw
.
println
(
"<b>Curso: </b><span style='color:red;'>*</span>"
);
pw
.
println
(
"<div id='divCursoCombo'>"
);
pw
.
println
(
"<select class='form-control'>"
);
pw
.
println
(
"<option value=''>[Seleccione]</option>"
);
pw
.
println
(
"</select>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div id='divCursoCombo'>"
);
pw
.
println
(
"<select class='form-control'>"
);
pw
.
println
(
"<option value=''>[Seleccione]</option>"
);
pw
.
println
(
"</select>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"<div class='col-sm-2'>"
);
pw
.
println
(
"<b>Tipo de clase: </b><span style='color:red;'>*</span><br>"
);
...
...
@@ -3476,8 +3453,7 @@ public class ServletHorario extends HttpServlet {
pw
.
println
(
"</div>"
);
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
(
"<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'>"
);
...
...
@@ -3576,11 +3552,10 @@ public class ServletHorario extends HttpServlet {
String
horaFinRecuperacion
=
request
.
getParameter
(
"horaFinRecuperacion"
);
System
.
out
.
println
(
"esto es demasiado sadd"
);
JSONObject
recibeHorario
=
servicios
.
consultarHorarioByAula
(
dia
,
codAula
,
periodo
,
bloq
);
JSONObject
recibeHorario
=
servicios
.
consultarHorarioByAula
(
dia
,
codAula
,
periodo
,
bloq
);
String
horaInicio
=
recibeHorario
.
getString
(
"hor_ini"
);
String
horaFin
=
recibeHorario
.
getString
(
"hor_fin"
);
int
dato
=
servicios
.
registrarAsigCurDoceHorarioPersonalizado
(
codAula
,
dia
,
bloq
,
horaInicio
,
horaFin
,
codTurno
,
codCurso
,
codDocente
,
periodo
,
codGru
,
codUsuario
,
codClase
,
grupoAulas
,
historial
,
motivoCambio
,
observacion
,
condicionTrabajador
,
horaAviso
,
recuperacion
,
fechafin
,
fechainicio
,
cadenaTotal
,
avance
,
fecha_recuperacio
,
curso_recuperacion
,
aula_recuperacion
,
docente_recuperacion
,
fecha_aviso
,
horaInicioRecuperacion
,
horaFinRecuperacion
);
System
.
out
.
println
(
"retorno de registrarAsigCurDoceHorarioPersonalizado: "
+
dato
);
...
...
@@ -3613,6 +3588,7 @@ public class ServletHorario extends HttpServlet {
ArrayList
<
AreaDocente
>
listaDocente
=
null
;
DocenteServices
servcioDoce
=
new
DocenteServices
();
listaCurso
=
servCurso
.
cargarCurso
();
listaDocente
=
servDocente
.
cargarDocentesDisponibles
(
CodTurno
,
dia
,
codcurso
,
periodo
);
String
nombreDia
=
""
;
...
...
web/vista/arm_hor_gen.jsp
View file @
08d3ebc7
...
...
@@ -2062,20 +2062,13 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
var
dato
=
verificarTurno
(
hora_inicio
,
hora_termino
);
var
codTurno
=
dato
;
let
chkStatus
=
$
(
'#chkExamenSemanal'
).
prop
(
'checked'
);
var
codCurso
=
""
codCurso
=
chkStatus
?
"61"
:
$
(
"#cmbCurso"
).
val
();
var
codCurso
=
""
codCurso
=
chkStatus
?
"61"
:
$
(
"#cmbCurso"
).
val
();
// var codDocente = $("#cmbDocDisp").val();
var
codClase
=
$
(
"#idClase"
).
val
();
var
periodo
=
"<%=periodo!=null?periodo.getCodigoPeriodo():""%>"
;
var
codGru
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_codGru():""%>"
;
var
cantidad
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_cantidad():""%>"
;
var
cadenaHorasIni
=
$
(
"#cadenaHorasIni_"
+
dia
+
""
).
val
();
var
cadenaHorasFin
=
$
(
"#cadenaHorasFin_"
+
dia
+
""
).
val
();
let
fecha_inicio
=
$
(
"#recibeFechaInicio"
).
val
();
...
...
@@ -2122,8 +2115,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
//----------- POSICION GENERAL -----FIN--------
//alert(cadenaPosGeneral);
//----------- POSICION DE BLOQUE -------INI------
var
cadenaPosBloques
=
""
;
var
PosBloques
=
0
;
...
...
@@ -2139,8 +2130,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
indice
++
while
(
indice
<
cant
)
{
while
(
indice
<
cant
){
cadenaPosBloques
=
cadenaPosBloques
+
"#"
+
PosBloques
;
if
(
numeroBloque
==
PosBloques
)
{
...
...
@@ -2151,13 +2141,9 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
indice
++
}
var
arrayGeneral
=
cadenaPosGeneral
.
split
(
"#"
);
var
arrayBloques
=
cadenaPosBloques
.
split
(
"#"
);
var
arrayAulas
=
codAulas
.
split
(
"#"
);
var
arrayHorasIni
=
cadenaHorasIni
.
split
(
"#"
);
var
arrayHorasFin
=
cadenaHorasFin
.
split
(
"#"
);
...
...
@@ -2169,9 +2155,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
posicionGlobal
=
arrayGeneral
[
i
]
-
1
;
posicionBloGlobal
=
arrayBloques
[
i
]
-
1
;
//$("#curso_"+arrayGeneral[i]+"_"+arrayBloques[i]+"_"+dia).html("
<
span
style
=
'color:black;'
>
"+arrayAulas[posicionGlobal]+"
X
<
br
>
"+arrayHorasIni[posicionBloGlobal]+"
a
"+arrayHorasFin[posicionBloGlobal]+"
<
/span>"
)
;
if
(
cadenaTotal
==
""
)
{
cadenaTotal
=
arrayAulas
[
posicionGlobal
]
+
"#"
+
arrayBloques
[
i
]
+
"#"
+
arrayHorasIni
[
posicionBloGlobal
]
+
...
...
@@ -2190,7 +2173,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
type
:
'POST'
,
url
:
'../ServletHorario?Accion=registrarAsigCurDoceHorarioGeneralMasivo2'
,
data
:
"cadenaTotal="
+
cadenaTotal
+
"&hora_inicio="
+
hora_inicio
+
"&hora_termino="
+
hora_termino
+
"&dia="
+
dia
+
"&codTurno="
+
codTurno
+
"&codCurso="
+
codCurso
+
"&codDocente="
+
codigoDocente
+
'&periodo='
+
periodo
+
'&codGru='
+
codigaGrupoHorario
+
'&codClase='
+
codClase
+
'&grupoAulas='
+
grupoAulas
+
'&fecha_inicio='
+
fecha_inicio
,
success
:
function
(
resultado
)
{
//alert("res "+resultado);
if
(
resultado
==
1
)
{
...
...
@@ -2202,18 +2184,15 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
else
if
(
resultado
==
5
)
{
advertencia2
();
}
else
{
alert
(
"ocurrió un error"
);
alert
(
"ocurrió un error"
);
}
},
complete
:
function
()
{
}
});
}
function
registrarAsigCurDoceHorario
(
codigaGrupoHorario
,
bloq
,
dia
,
Hini
,
Hfin
,
codaula
,
opcion
,
Turno
,
contGeneral
,
codigoDocente
,
historial
,
json
)
{
//alert("registrarAsigCurDoceHorario");
//alert("registrarAsigCurDoceHorario");
...
...
@@ -2279,8 +2258,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
var
codClase
=
$
(
"#idClase"
).
val
();
var
periodo
=
"<%=periodo!=null?periodo.getCodigoPeriodo():""%>"
;
var
codGru
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_codGru():""%>"
;
var
cantidad
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_cantidad():""%>"
;
//
var
cadenaHorasIni
=
$
(
"#cadenaHorasIni_"
+
dia
+
""
).
val
();
...
...
@@ -2309,7 +2286,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
PosGeneral
=
parseInt
(
PosGeneral
)
-
(
parseInt
(
PosGeneral
)
-
1
);
}
else
{
}
else
{
if
(
i
==
cant
)
{
cadenaPosGeneral
=
cadenaPosGeneral
+
"#"
+
PosGeneral
;
...
...
@@ -2328,13 +2305,8 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
}
//----------- POSICION GENERAL -----FIN--------
//alert(cadenaPosGeneral);
//----------- POSICION DE BLOQUE -------INI------
var
cadenaPosBloques
=
""
;
var
PosBloques
=
0
;
...
...
@@ -2351,8 +2323,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
indice
++
while
(
indice
<=
cant
)
{
while
(
indice
<=
cant
){
cadenaPosBloques
=
cadenaPosBloques
+
"#"
+
PosBloques
;
if
(
numeroBloque
==
PosBloques
)
{
...
...
web/vista/gen_hor_gen.jsp
View file @
08d3ebc7
...
...
@@ -1797,9 +1797,6 @@
});
}
function
armarHorario
(
cantSelec
,
codAulas
)
{
$
(
"#dialog-armar1"
).
removeClass
(
'hide'
).
dialog
({
resizable
:
false
,
...
...
@@ -1889,14 +1886,14 @@
title
:
"<div class='widget-color-orange' ><div class='widget-header white' ><h4 class='smaller' ><i class='ace-icon fa fa-exclamation-triangle white'></i> <span class='white'>Advertencia</span></h4></div></div>"
,
title_html
:
true
,
buttons
:
[
{
html
:
"<i class='ace-icon fa fa-times bigger-110'></i> ACEPTAR"
,
"class"
:
"btn btn-warning btn-xs"
,
click
:
function
()
{
$
(
this
).
dialog
(
"close"
);
}
}
]
{
html
:
"<i class='ace-icon fa fa-times bigger-110'></i> ACEPTAR"
,
"class"
:
"btn btn-warning btn-xs"
,
click
:
function
()
{
$
(
this
).
dialog
(
"close"
);
}
}
]
});
}
...
...
@@ -1910,12 +1907,10 @@
url
:
'../ServletHorario?Accion=sessionArmadoHorario2'
,
data
:
'cantSelec='
+
cantSelec
+
'&codAulas='
+
codAulas
+
'&cadena='
+
cadena
+
'&codigo='
+
codigo
+
'&cadenaAulas='
+
cadenaAulas
,
success
:
function
(
resultado
)
{
},
complete
:
function
()
{
window
.
location
=
"arm_hor_gen.jsp"
;
}
});
}
//desactivar funcion si es jramirez
function
editar
(
cantSelec
,
codAulas
,
grupo
)
{
...
...
web/vista/vistaDobleDisponibilidad.jsp
View file @
08d3ebc7
This diff is collapsed.
Click to expand it.
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