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
641f7a73
Commit
641f7a73
authored
Jan 14, 2020
by
sistem26user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
se corrige registro de datos de personales nuevo
parent
99acea16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
14 deletions
+55
-14
ServletDocente.java
src/java/pe/siso/horario/Servlets/ServletDocente.java
+0
-0
bus_plana.jsp
web/vista/bus_plana.jsp
+1
-9
datos_docente.jsp
web/vista/datos_docente.jsp
+54
-5
No files found.
src/java/pe/siso/horario/Servlets/ServletDocente.java
View file @
641f7a73
This diff is collapsed.
Click to expand it.
web/vista/bus_plana.jsp
View file @
641f7a73
...
@@ -640,15 +640,7 @@
...
@@ -640,15 +640,7 @@
cargando
();
cargando
();
},
success
:
function
(
resultado
){
},
success
:
function
(
resultado
){
close_carga
();
close_carga
();
$
(
'#divListadoPlana'
).
html
(
resultado
);
$
(
'#divListadoPlana'
).
html
(
resultado
);
name
=
$
(
"#lblUsuario"
).
text
();
if
(
name
===
"6"
){
$
(
"#divListadoPlana #btnAdPlana"
).
hide
();
$
(
"#divListadoPlana #btnEdit"
).
hide
();
$
(
"#divListadoPlana #validarEstadoPlanaBusqueda"
).
hide
();
$
(
"#divListadoPlana #validarEstadoPlanaBusqueda2"
).
hide
();
}
},
complete
:
function
(){
},
complete
:
function
(){
$
(
"#divListadoPlana"
).
fadeIn
();
$
(
"#divListadoPlana"
).
fadeIn
();
}
}
...
...
web/vista/datos_docente.jsp
View file @
641f7a73
...
@@ -671,18 +671,17 @@
...
@@ -671,18 +671,17 @@
}
}
function
cargarPlanaAsisteEdit
(
codDocente
){
function
cargarPlanaAsisteEdit
(
codDocente
){
let
codigoDocente
=
codDocente
let
codigoDocente
=
codDocente
console
.
log
(
"codigoDocente-->"
)
console
.
log
(
codDocente
)
var
nombre
=
"cmbPlanaAsisteEdit"
;
var
nombre
=
"cmbPlanaAsisteEdit"
;
// var accion = "limpiar2();";
var
periodo
=
"<%=periodo != null ? periodo.getCodigoPeriodo() : ""%>"
;
var
periodo
=
"<%=periodo != null ? periodo.getCodigoPeriodo() : ""%>"
;
var
codArea
=
$
(
"#cmbAreaEditarDatos"
).
val
()
var
codArea
=
$
(
"#cmbAreaEditarDatos"
).
val
()
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'../ServletPlana?Accion=listarPlanaAsiste'
,
url
:
'../ServletPlana?Accion=listarPlanaAsiste'
,
data
:
'nombre='
+
nombre
+
'&codDocente='
+
codigoDocente
+
'&codper='
+
periodo
+
'&codArea='
+
codArea
,
data
:
'nombre='
+
nombre
+
'&codDocente='
+
codigoDocente
+
'&codper='
+
periodo
+
'&codArea='
+
codArea
,
success
:
function
(
resultado
)
{
success
:
function
(
resultado
)
{
console
.
log
(
resultado
)
$
(
'#divPlanaEditarDatos'
).
html
(
resultado
);
$
(
'#divPlanaEditarDatos'
).
html
(
resultado
);
}
}
});
});
...
@@ -945,6 +944,7 @@
...
@@ -945,6 +944,7 @@
function
armarRegistro
(
codDocente
,
nomDocente
){
function
armarRegistro
(
codDocente
,
nomDocente
){
var
accion
=
"cargarDepartamento("
+
codDocente
+
")"
;
var
accion
=
"cargarDepartamento("
+
codDocente
+
")"
;
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
...
@@ -959,10 +959,55 @@
...
@@ -959,10 +959,55 @@
alerta4
(
codDocente
);
alerta4
(
codDocente
);
//ilumina();
//ilumina();
cargarDepartamento
(
codDocente
);
cargarDepartamento
(
codDocente
);
cargarArea
();
}
}
});
});
}
}
function
cargarArea
()
{
$
.
ajax
({
type
:
'POST'
,
url
:
'../ServletArea?Accion=cargarAreaJson'
,
data
:
null
,
datatype
:
'application/json'
,
beforeSend
:
function
()
{
},
success
:
function
(
resultado
)
{
var
datos
=
resultado
;
var
cb
=
"<select class=
\"
form-control validate[required]
\"
name=
\"
cbArea
\"
onchange=
\"
limpiar();cargarPlanaArea();
\"
id=
\"
cbArea
\"
>"
;
cb
+=
"<option value=
\"\"
>[Seleccione]</option>"
;
// cb += "
<
option
value
=
\
"0
\"
>SIN ÁREA</option>"
;
for
(
var
i
=
0
;
i
<
datos
.
length
;
i
++
)
{
cb
+=
"<option value=
\"
"
+
datos
[
i
].
codigoArea
+
"
\"
>"
+
datos
[
i
].
nombreArea
+
"</option>"
;
}
cb
+=
"</select>"
;
$
(
"#divAreaNuevoDatos"
).
html
(
cb
);
},
complete
:
function
()
{
}
});
}
function
cargarPlanaArea
(){
let
name
=
''
var
codArea
=
$
(
"#cbArea"
).
val
();
var
accion
=
""
;
var
nombre
=
"cbPlanaNewAsiste"
;
$
.
ajax
({
type
:
'POST'
,
url
:
'../ServletPlana?Accion=cargarPlanaEditar'
,
data
:
'codArea='
+
codArea
+
'&accion='
+
accion
+
'&nombre='
+
nombre
,
beforeSend
:
function
()
{
cargando
();
},
success
:
function
(
resultado
){
close_carga
();
$
(
'#divPlanaNuevoDatos'
).
html
(
resultado
);
},
complete
:
function
(){
$
(
"#divPlanaNuevoDatos"
).
fadeIn
();
}
});
}
function
alerta4
(
codDocente
){
function
alerta4
(
codDocente
){
$
(
"#dialog-edit"
).
removeClass
(
'hide'
).
dialog
({
$
(
"#dialog-edit"
).
removeClass
(
'hide'
).
dialog
({
resizable
:
false
,
resizable
:
false
,
...
@@ -1058,11 +1103,15 @@
...
@@ -1058,11 +1103,15 @@
var
codDepartamento
=
$
(
"#cmbDepartamento"
).
val
();
var
codDepartamento
=
$
(
"#cmbDepartamento"
).
val
();
var
codProvincia
=
$
(
"#cmbprovincia"
).
val
();
var
codProvincia
=
$
(
"#cmbprovincia"
).
val
();
var
codDistrito
=
$
(
"#cmbDistrito"
).
val
();
var
codDistrito
=
$
(
"#cmbDistrito"
).
val
();
var
numHijos
=
$
(
"#txt_new_numHijos"
).
val
()
var
area
=
$
(
"#cbArea"
).
val
();
var
plana
=
$
(
"#cbPlanaNewAsiste"
).
val
()
var
codPeriodo
=
"<%=periodo != null ? periodo.getCodigoPeriodo() : ""%>"
;
$
.
ajax
({
$
.
ajax
({
type
:
'POST'
,
type
:
'POST'
,
url
:
'../ServletDocente?Accion=registraDatosDocente'
,
url
:
'../ServletDocente?Accion=registraDatosDocente'
,
data
:
'codDocente='
+
codDocente
+
'&telefono='
+
telefono
+
'&mail='
+
mail
+
'&zona='
+
zona
+
'&codDepartamento='
+
codDepartamento
+
'&codProvincia='
+
codProvincia
+
'&codDistrito='
+
codDistrito
+
'&cel='
+
cel
+
'&direccion='
+
direccion
,
data
:
'codDocente='
+
codDocente
+
'&telefono='
+
telefono
+
'&mail='
+
mail
+
'&zona='
+
zona
+
'&codDepartamento='
+
codDepartamento
+
'&codProvincia='
+
codProvincia
+
'&codDistrito='
+
codDistrito
+
'&cel='
+
cel
+
'&direccion='
+
direccion
+
'&numHijos='
+
numHijos
+
'&codArea='
+
area
+
'&codPlana='
+
plana
+
'&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