Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Asistencia
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
Billy Larru
Asistencia
Commits
0d17ec04
Commit
0d17ec04
authored
Sep 12, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT control asistencia docentes, aplicando filtros]
parent
b62ef125
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
18 deletions
+42
-18
control_asistencia_docentes.js
src/main/webapp/js/pages/control_asistencia_docentes.js
+42
-18
No files found.
src/main/webapp/js/pages/control_asistencia_docentes.js
View file @
0d17ec04
...
@@ -230,7 +230,7 @@ const inicializarInputsModalRegistroAsistencia = (data) => {
...
@@ -230,7 +230,7 @@ const inicializarInputsModalRegistroAsistencia = (data) => {
}
}
function
cambioTipoRegistro
()
{
function
cambioTipoRegistro
()
{
let
criterio
=
$
(
this
).
val
();
let
criterio
=
$
(
this
).
val
();
console
.
log
(
criterio
);
console
.
log
(
criterio
);
if
(
criterio
==
0
)
{
if
(
criterio
==
0
)
{
...
@@ -265,18 +265,21 @@ function cambioTipoRegistro() {
...
@@ -265,18 +265,21 @@ function cambioTipoRegistro() {
}
}
const
mostrarMensajeResultadoModal
=
(
result
,
data
)
=>
{
const
mostrarMensajeResultadoModal
=
(
result
,
data
)
=>
{
if
(
result
.
value
)
{
if
(
result
.
value
)
{
let
criterio
=
$
(
"#cboTipoRegistro"
).
val
();
let
criterio
=
$
(
"#cboTipoRegistro"
).
val
();
let
hora_entrada
,
id
,
params
;
switch
(
criterio
)
{
switch
(
criterio
)
{
case
1
:
case
"1"
:
let
hora_entrada
=
$
(
"#txtHoraEntrada"
).
val
();
debugger
hora_entrada
=
$
(
"#txtHora"
).
val
();
let
id
=
data
.
id
;
id
=
data
.
id
;
let
params
=
{
params
=
{
marcacion_entrada
:
hora_entrada
,
marcacion_entrada
:
hora_entrada
,
marco_entrada
:
0
marco_entrada
:
0
,
estadoasistencia_codigo
:
5
,
estadoasistencia_nombre
:
"NO MARCÓ"
,
estadoasistencia_descripcion
:
"NO MARCÓ"
};
};
ajaxWebService
.
patch
(
`
${
URI_DOCENTES_ASISTENCIAS
}
/
${
id
}
`
,
params
)
ajaxWebService
.
patch
(
`
${
URI_DOCENTES_ASISTENCIAS
}
/
${
id
}
`
,
params
)
...
@@ -288,14 +291,15 @@ const mostrarMensajeResultadoModal = (result, data) => {
...
@@ -288,14 +291,15 @@ const mostrarMensajeResultadoModal = (result, data) => {
showConfirmButton
:
false
,
showConfirmButton
:
false
,
timer
:
1500
timer
:
1500
})
})
// let params = cleanQueryParams({id});
// listarAsistenciaDocentes({params})
}
}
});
});
break
;
break
;
case
2
:
case
"2"
:
let
hora_entrada
=
$
(
"#txtHoraEntrada"
).
val
();
hora_entrada
=
$
(
"#txtHora"
).
val
();
id
=
data
.
id
;
let
id
=
data
.
id
;
params
=
{
let
params
=
{
marcacion_entrada
:
hora_entrada
,
marcacion_entrada
:
hora_entrada
,
marco_entrada
:
1
marco_entrada
:
1
};
};
...
@@ -312,8 +316,8 @@ const mostrarMensajeResultadoModal = (result, data) => {
...
@@ -312,8 +316,8 @@ const mostrarMensajeResultadoModal = (result, data) => {
}
}
});
});
break
;
break
;
case
3
:
case
"3"
:
case
4
:
case
"4"
:
break
;
break
;
}
}
...
@@ -338,7 +342,7 @@ const mostrarModalRegistroAsistencia = (data) => {
...
@@ -338,7 +342,7 @@ const mostrarModalRegistroAsistencia = (data) => {
}
}
})
})
.
then
((
result
)
=>
{
.
then
((
result
)
=>
{
mostrarMensajeResultadoModal
(
result
,
data
);
mostrarMensajeResultadoModal
(
result
,
data
);
});
});
});
});
...
@@ -382,7 +386,7 @@ const seleccionarCheckBoxTodo = (tr) => {
...
@@ -382,7 +386,7 @@ const seleccionarCheckBoxTodo = (tr) => {
}
}
const
seleccionarCheckBox
=
()
=>
{
const
seleccionarCheckBox
=
()
=>
{
if
(
$
(
'.chkFirma:checked'
).
length
===
$
(
'.chkFirma'
).
length
)
{
if
(
$
(
'.chkFirma:checked'
).
length
===
$
(
'.chkFirma'
).
length
)
{
$
(
'#chkFirmaTodo'
).
prop
(
'checked'
,
true
).
uniform
()
$
(
'#chkFirmaTodo'
).
prop
(
'checked'
,
true
).
uniform
()
}
else
{
}
else
{
...
@@ -392,7 +396,27 @@ const seleccionarCheckBox = () => {
...
@@ -392,7 +396,27 @@ const seleccionarCheckBox = () => {
const
aplicarFiltro
=
()
=>
{
const
aplicarFiltro
=
()
=>
{
debugger
let
personal
=
$
(
"#cboPersonalFiltro"
).
select2
(
'data'
)[
0
];
let
trabajador_id
=
personal
?
personal
.
id
:
""
;
let
sede_id
=
$
(
"#cboSedesFiltro"
).
val
();
let
fecha_inicio
=
$
(
"#dpFechaInicioFiltro"
).
val
();
let
fecha_fin
=
$
(
"#dpFechaFinFiltro"
).
val
();
let
estadoasistencia_codigo
=
$
(
"#cboEstadoAsistenciaFiltro"
).
val
();
let
rango_fechas
=
generarFechas
(
fecha_inicio
,
fecha_fin
);
let
params
=
cleanQueryParams
({
trabajador_id
,
fecha_asistencia
:
rango_fechas
,
sede_id
,
estadoasistencia_codigo
});
if
(
estadoasistencia_codigo
==
12
)
{
params
.
estadoasistencia_codigo
=
""
;
}
listarAsistenciaDocentes
({
params
});
}
}
const
registrarNoFirmo
=
(
e
)
=>
{
const
registrarNoFirmo
=
(
e
)
=>
{
...
...
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