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
00ef182f
Commit
00ef182f
authored
Jan 24, 2020
by
sistem26user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add,edit HCD
parent
3c757138
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
22 deletions
+23
-22
MySqlAreaDAO.java
src/java/pe/siso/horario/MySqlDAO/MySqlAreaDAO.java
+1
-1
MySqlDocenteDAO.java
src/java/pe/siso/horario/MySqlDAO/MySqlDocenteDAO.java
+5
-0
ServletDocente.java
src/java/pe/siso/horario/Servlets/ServletDocente.java
+4
-2
ServletHorario.java
src/java/pe/siso/horario/Servlets/ServletHorario.java
+8
-2
arm_hor_gen.jsp
web/vista/arm_hor_gen.jsp
+5
-17
No files found.
src/java/pe/siso/horario/MySqlDAO/MySqlAreaDAO.java
View file @
00ef182f
...
@@ -102,7 +102,7 @@ public class MySqlAreaDAO implements AreaDAO {
...
@@ -102,7 +102,7 @@ public class MySqlAreaDAO implements AreaDAO {
String
codarea
=
""
;
String
codarea
=
""
;
cnx
=
MySqlDAOFactory
.
obtenerConexion
(
base
);
cnx
=
MySqlDAOFactory
.
obtenerConexion
(
base
);
Statement
st
=
cnx
.
createStatement
();
Statement
st
=
cnx
.
createStatement
();
if
(
cod
!=
0
){
if
(
cod
!=
0
){
codarea
=
" and cod_are ="
+
cod
;
codarea
=
" and cod_are ="
+
cod
;
}
}
...
...
src/java/pe/siso/horario/MySqlDAO/MySqlDocenteDAO.java
View file @
00ef182f
...
@@ -3070,6 +3070,11 @@ public class MySqlDocenteDAO implements DocenteDAO {
...
@@ -3070,6 +3070,11 @@ public class MySqlDocenteDAO implements DocenteDAO {
}
}
@Override
public
ArrayList
<
Docente
>
cargarDocentePrimaria3
(
String
codcurso
,
String
apellido
,
int
inicio
,
int
cantidad
,
String
documentos_ignorados
)
throws
Exception
{
throw
new
UnsupportedOperationException
(
"Not supported yet."
);
//To change body of generated methods, choose Tools | Templates.
}
}
}
src/java/pe/siso/horario/Servlets/ServletDocente.java
View file @
00ef182f
...
@@ -577,7 +577,8 @@ public class ServletDocente extends HttpServlet {
...
@@ -577,7 +577,8 @@ public class ServletDocente extends HttpServlet {
ArrayList
<
Area
>
listaA
=
null
;
ArrayList
<
Area
>
listaA
=
null
;
ArrayList
<
AreaDocente
>
listaAD
=
null
;
ArrayList
<
AreaDocente
>
listaAD
=
null
;
int
cantidadAsignada
=
0
;
int
cantidadAsignada
=
0
;
listaA
=
serviciosA
.
cargarArea
();
int
codAreaProvicional
=
0
;
listaA
=
serviciosA
.
cargarArea
(
codAreaProvicional
);
lista
=
servicios
.
listarDocenteScundaria
();
lista
=
servicios
.
listarDocenteScundaria
();
String
codigosArea
=
""
;
String
codigosArea
=
""
;
String
codArea
=
""
;
String
codArea
=
""
;
...
@@ -950,7 +951,8 @@ public class ServletDocente extends HttpServlet {
...
@@ -950,7 +951,8 @@ public class ServletDocente extends HttpServlet {
String
apellidoDocente
=
request
.
getParameter
(
"apellidoDocente"
);
String
apellidoDocente
=
request
.
getParameter
(
"apellidoDocente"
);
int
cantRegistro
=
0
;
int
cantRegistro
=
0
;
int
cantidadAsignada
=
0
;
int
cantidadAsignada
=
0
;
listaA
=
serviciosA
.
cargarArea
();
int
codigoArea
=
0
;
listaA
=
serviciosA
.
cargarArea
(
codigoArea
);
// lista=servicios.listarDocenteScundaria(apellidoDocente);
// lista=servicios.listarDocenteScundaria(apellidoDocente);
String
codigosArea
=
""
;
String
codigosArea
=
""
;
String
codArea
=
""
;
String
codArea
=
""
;
...
...
src/java/pe/siso/horario/Servlets/ServletHorario.java
View file @
00ef182f
...
@@ -2771,6 +2771,7 @@ public class ServletHorario extends HttpServlet {
...
@@ -2771,6 +2771,7 @@ public class ServletHorario extends HttpServlet {
String
cadenaAulasGrabada
=
request
.
getParameter
(
"cadenaAulas"
);
String
cadenaAulasGrabada
=
request
.
getParameter
(
"cadenaAulas"
);
String
datoTD
=
""
;
String
datoTD
=
""
;
String
[]
aulas
=
codAulas
.
split
(
"#"
);
String
[]
aulas
=
codAulas
.
split
(
"#"
);
int
cantidadDelBloque
=
0
;
int
codigonuevo
=
6
;
int
codigonuevo
=
6
;
if
(
codigo
.
equals
(
"56"
)){
if
(
codigo
.
equals
(
"56"
)){
codigonuevo
=
5
;
codigonuevo
=
5
;
...
@@ -2827,7 +2828,9 @@ public class ServletHorario extends HttpServlet {
...
@@ -2827,7 +2828,9 @@ public class ServletHorario extends HttpServlet {
for
(
int
i
=
0
;
i
<
array1
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
array1
.
length
;
i
++)
{
String
[]
array2
=
array1
[
i
].
split
(
"#"
);
String
[]
array2
=
array1
[
i
].
split
(
"#"
);
cantidadDelBloque
=
Integer
.
parseInt
(
array2
[
0
]);
System
.
out
.
println
(
"array2 -->"
+
Arrays
.
toString
(
array2
));
System
.
out
.
println
(
"array2 -->"
+
Arrays
.
toString
(
array2
));
System
.
out
.
println
(
"soy la cantidad del bloque: "
+
cantidadDelBloque
);
if
(
x
<
Integer
.
parseInt
(
array2
[
0
]))
{
if
(
x
<
Integer
.
parseInt
(
array2
[
0
]))
{
x
=
Integer
.
parseInt
(
array2
[
0
]);
x
=
Integer
.
parseInt
(
array2
[
0
]);
}
}
...
@@ -3241,10 +3244,13 @@ public class ServletHorario extends HttpServlet {
...
@@ -3241,10 +3244,13 @@ public class ServletHorario extends HttpServlet {
+
"</div><br><br>"
);
+
"</div><br><br>"
);
contGenral
++;
contGenral
++;
}
}
pw
.
println
(
"<center><td> <button class=\"btn btn-sm btn-danger\" onclick=\"agregarAula("
+
codigoSede
+
");\" type=\"button\" id=\"regresar\">\n"
+
if
(
cantidadDelBloque
>
cantidad
){
pw
.
println
(
"<center><td><button class=\"btn btn-sm btn-danger\" onclick=\"agregarAula("
+
codigoSede
+
");\" type=\"button\" id=\"regresar\">\n"
+
" <i class=\"ace-icon fa fa-cogs icon-on-right bigger-110\"></i>\n"
+
" <i class=\"ace-icon fa fa-cogs icon-on-right bigger-110\"></i>\n"
+
" Agregar Aula\n"
+
" Agregar Aula\n"
+
" </button></td></center>"
);
" </button></td></center>"
);
}
pw
.
println
(
"<input type='hidden' id='hora_inicio_1' value='"
+
min_ini_1
+
"'>"
pw
.
println
(
"<input type='hidden' id='hora_inicio_1' value='"
+
min_ini_1
+
"'>"
+
"<input type='hidden' id='hora_termino_1' value='"
+
max_fin_1
+
"'>"
+
"<input type='hidden' id='hora_termino_1' value='"
+
max_fin_1
+
"'>"
...
@@ -4810,7 +4816,7 @@ public class ServletHorario extends HttpServlet {
...
@@ -4810,7 +4816,7 @@ public class ServletHorario extends HttpServlet {
pw
.
println
(
"<option value='ESTUDIOS'>ESTUDIOS</option>"
);
pw
.
println
(
"<option value='ESTUDIOS'>ESTUDIOS</option>"
);
pw
.
println
(
"<option value='INFORME'>INFORME</option>"
);
pw
.
println
(
"<option value='INFORME'>INFORME</option>"
);
pw
.
println
(
"<option value='VIAJE'>VIAJE</option>"
);
pw
.
println
(
"<option value='VIAJE'>VIAJE</option>"
);
pw
.
println
(
"<option value='
INFORME
'>SALUD</option>"
);
pw
.
println
(
"<option value='
SALUD
'>SALUD</option>"
);
pw
.
println
(
"<option value='LABOR ADMINISTRATIVA'>LABOR ADMINISTRATIVA</option>"
);
pw
.
println
(
"<option value='LABOR ADMINISTRATIVA'>LABOR ADMINISTRATIVA</option>"
);
pw
.
println
(
"</select>"
);
pw
.
println
(
"</select>"
);
pw
.
println
(
"</div>"
);
pw
.
println
(
"</div>"
);
...
...
web/vista/arm_hor_gen.jsp
View file @
00ef182f
...
@@ -3409,7 +3409,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3409,7 +3409,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
pintarSelectBloque
();
pintarSelectBloque
();
}
}
$
(
"#dialog-bloque"
).
removeClass
(
'hide'
).
dialog
({
$
(
"#dialog-bloque"
).
removeClass
(
'hide'
).
dialog
({
resizable
:
false
,
resizable
:
false
,
modal
:
true
,
modal
:
true
,
...
@@ -3463,25 +3462,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3463,25 +3462,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
}
}
}
else
{
}
else
{
// var selet=document.getElementById("cboBloqueRecuperacion");
// var x="";
// x=document.createElement("option");
// x.text="Bloque *";
// x.value=cadenasAula;
// selet.appendChild(x);
$
(
"#cboBloqueRecuperacion"
).
append
(
'<option>[SELECCIONE]</option>'
);
$
(
"#cboBloqueRecuperacion"
).
append
(
'<option>[SELECCIONE]</option>'
);
$
(
"#cboBloqueRecuperacion"
).
append
(
'<option value="'
+
cadenasAula
+
'">BLOQUE 1</option>'
);
$
(
"#cboBloqueRecuperacion"
).
append
(
'<option value="'
+
cadenasAula
+
'">BLOQUE 1</option>'
);
}
}
}
}
...
@@ -3520,8 +3504,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3520,8 +3504,10 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
function
modificarGrupoAulas
(
codAula
){
function
modificarGrupoAulas
(
codAula
){
var
codAulas
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_codAulas():""%>"
;
var
codAulas
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_codAulas():""%>"
;
var
cantidad
=
"<%=armandoHorario!=null?armandoHorario.getArmarHoraio_cantidad():""%>"
;
var
aulaAgregada
=
sessionStorage
.
getItem
(
"aulaAgregada"
);
var
aulaAgregada
=
sessionStorage
.
getItem
(
"aulaAgregada"
);
let
codAulasFinal
=
""
let
codAulasFinal
=
""
let
cantidadFinal
=
0
;
if
(
aulaAgregada
==
null
||
aulaAgregada
==
""
){
if
(
aulaAgregada
==
null
||
aulaAgregada
==
""
){
codAulasFinal
=
codAulas
codAulasFinal
=
codAulas
}
else
{
}
else
{
...
@@ -3541,6 +3527,8 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3541,6 +3527,8 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
console
.
log
(
"es igual"
)
console
.
log
(
"es igual"
)
if
(
aulaAgregada
==
codAula
){
if
(
aulaAgregada
==
codAula
){
sessionStorage
.
removeItem
(
"aulaAgregada"
)
sessionStorage
.
removeItem
(
"aulaAgregada"
)
}
else
{
cantidadFinal
=
parseInt
(
cantidad
)
-
1
}
}
}
else
{
}
else
{
...
@@ -3741,6 +3729,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3741,6 +3729,7 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
let
recibeCantidad
=
0
;
let
recibeCantidad
=
0
;
let
aulaAgregada
=
sessionStorage
.
getItem
(
"aulaAgregada"
)
let
aulaAgregada
=
sessionStorage
.
getItem
(
"aulaAgregada"
)
console
.
log
(
"soy el query--->"
+
query
)
console
.
log
(
"soy el query--->"
+
query
)
console
.
log
(
"soy la nueva aula--->"
+
codNewAula
)
if
(
query
==
""
){
if
(
query
==
""
){
...
@@ -3773,7 +3762,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
...
@@ -3773,7 +3762,6 @@ window.jQuery || document.write("<script src='../assets/js/jquery1x.js'>"+"<"+"/
recibeQuery
=
codAulas
+
"#"
+
aulaAgregada
recibeQuery
=
codAulas
+
"#"
+
aulaAgregada
recibeCadenaAula
=
cadenaAulas
recibeCadenaAula
=
cadenaAulas
recibeCantidad
=
parseInt
(
cantidad
)
+
1
recibeCantidad
=
parseInt
(
cantidad
)
+
1
}
}
}
else
{
}
else
{
...
...
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