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
b92f1fe3
Commit
b92f1fe3
authored
Sep 08, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX proyecciones]
parent
6fd11f13
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
88 deletions
+97
-88
comparativo_proyeccion_policias.js
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
+14
-12
proyectar_asistencia_policias.js
src/main/webapp/js/pages/proyectar_asistencia_policias.js
+12
-12
comparativoProyeccionPolicias.jsp
src/main/webapp/vistas/comparativoProyeccionPolicias.jsp
+68
-61
controlAsistenciaPolicias.jsp
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
+0
-0
proyectarAsistenciaPolicias.jsp
src/main/webapp/vistas/proyectarAsistenciaPolicias.jsp
+3
-3
No files found.
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
View file @
b92f1fe3
...
@@ -118,17 +118,19 @@ function listarPolicias(selectorName) {
...
@@ -118,17 +118,19 @@ function listarPolicias(selectorName) {
initSelect2
(
selectorName
,
"http://sistem16:666/policias"
,
{
title
:
"nombres"
,
subtitle
:
"dni"
});
initSelect2
(
selectorName
,
"http://sistem16:666/policias"
,
{
title
:
"nombres"
,
subtitle
:
"dni"
});
}
}
function
verReporte
()
{
function
verReporte
()
{
// let policia_nombres = $("#cboPolicias option:selected").text();
// let policia_nombres = $("#cboPolicias option:selected").text();
let
fecha_inicio
=
$
(
"#dpFechaInicio"
).
val
();
let
fecha_inicio
=
$
(
"#dpFechaInicio"
).
val
();
let
fecha_fin
=
$
(
"#dpFechaFin"
).
val
();
let
rango_fechas
=
generarFechas
(
fecha_inicio
,
fecha_fin
);
let
jsonPolicia
=
$
(
'#cboPolicias'
).
select2
(
'data'
)[
0
];
let
jsonPolicia
=
$
(
'#cboPolicias'
).
select2
(
'data'
)[
0
];
let
dni
=
jsonPolicia
?
jsonPolicia
.
dni
:
""
;
let
dni
=
jsonPolicia
?
jsonPolicia
.
dni
:
""
;
let
params
=
cleanQueryParams
({
let
params
=
cleanQueryParams
({
policia_dni
:
dni
,
policia_dni
:
dni
,
fecha_entrada
:
fecha_inicio
fecha_entrada
:
rango_fechas
});
});
...
@@ -140,22 +142,21 @@ function verReporte() {
...
@@ -140,22 +142,21 @@ function verReporte() {
let
classNameForDatatable
=
`display table table-bordered`
;
let
classNameForDatatable
=
`display table table-bordered`
;
makeDatatable
(
wrapsNameDatatable
,
makeDatatable
(
wrapsNameDatatable
,
{
{
data
:
response
.
data
,
data
:
response
.
data
,
columns
,
columns
,
columnDefs
,
columnDefs
,
},
},
classNameForDatatable
classNameForDatatable
)
)
}
}
);
);
}
}
$
().
ready
(
function
()
{
$
().
ready
(
function
()
{
let
nameDatePickers
=
[
"#dpFechaInicio"
,
"#dpFechaFin"
];
initDatePicker
(
"#dpFechaInicio"
,
"#dpFechaFin"
);
initDatePicker
(...
nameDatePickers
);
listarPolicias
(
"#cboPolicias"
);
listarPolicias
(
"#cboPolicias"
);
$
(
"#btnVerReporte"
).
click
(
verReporte
);
$
(
"#btnVerReporte"
).
click
(
verReporte
);
});
});
\ No newline at end of file
src/main/webapp/js/pages/proyectar_asistencia_policias.js
View file @
b92f1fe3
...
@@ -219,17 +219,17 @@ function guardarCambios() {
...
@@ -219,17 +219,17 @@ function guardarCambios() {
if
(
result
.
value
)
{
if
(
result
.
value
)
{
let
promises
=
dataRequest
.
map
(
p
=>
ajaxWebService
.
patch
(
`
${
URI_POLICIA_PROYECCION
}
/
${
p
.
id
}
`
,
p
));
let
promises
=
dataRequest
.
map
(
p
=>
ajaxWebService
.
patch
(
`
${
URI_POLICIA_PROYECCION
}
/
${
p
.
id
}
`
,
p
));
Promise
.
all
(
promises
)
Promise
.
all
(
promises
)
.
then
(
axios
.
spread
(
function
(...
responses
)
{
.
then
(
axios
.
spread
(
function
(...
responses
)
{
swal
(
swal
(
{
{
type
:
'success'
,
type
:
'success'
,
title
:
'¡Se guardaron los cambios correctamente!'
,
title
:
'¡Se guardaron los cambios correctamente!'
,
showConfirmButton
:
false
,
showConfirmButton
:
false
,
timer
:
1500
timer
:
1500
}
}
);
);
}))
}))
}
}
})
})
...
@@ -238,9 +238,9 @@ function guardarCambios() {
...
@@ -238,9 +238,9 @@ function guardarCambios() {
$
().
ready
(
function
()
{
$
().
ready
(
function
()
{
initDatePicker
(
"#dpFechaInicio"
,
"#dpFechaFin"
);
listarPolicias
(
"#cboPoliciasFiltro"
);
listarPolicias
(
"#cboPoliciasFiltro"
);
listarSedes
(
"#cboSedesFiltro"
);
listarSedes
(
"#cboSedesFiltro"
);
initDatePicker
(
"#dpFechaInicio"
,
"#dpFechaFin"
);
defaultConfigHandsonTable
();
defaultConfigHandsonTable
();
$
(
"#btnVer"
).
click
(
ver
);
$
(
"#btnVer"
).
click
(
ver
);
$
(
"#btnGuardarCambios"
).
click
(
guardarCambios
);
$
(
"#btnGuardarCambios"
).
click
(
guardarCambios
);
...
...
src/main/webapp/vistas/comparativoProyeccionPolicias.jsp
View file @
b92f1fe3
...
@@ -2,78 +2,84 @@
...
@@ -2,78 +2,84 @@
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<
%@
include
file=
"templates/header.jsp"
%
>
<!--template-core-->
<!--template-core-->
<!--css de la pagina-->
<!--css de la pagina-->
<link
href=
"../css/lib/sweetalert2.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"../css/lib/sweetalert2.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<!-- content -->
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<div
class=
"panel-heading"
>
<h5
class=
"panel-title"
>
Reporte comparativo de proyeccion
</h5>
<h5
class=
"panel-title"
>
Reporte comparativo de proyeccion
</h5>
</div>
</div>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6 form-group"
>
<div
class=
"col-md-6 form-group"
>
<label>
Fecha Inicio:
</label>
<label>
Fecha Inicio:
</label>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaInicio"
>
<div
class=
"input-group"
>
</div>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<div
class=
"col-md-6 form-group"
>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaInicio"
>
<label>
Fecha Fin
</label>
</div>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaFin"
>
</div>
</div>
<div
class=
"col-md-6 form-group"
>
</div>
<label>
Fecha Fin
</label>
<div
class=
"input-group"
>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaFin"
>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12 form-group"
>
<div
class=
"col-md-12 form-group"
>
<label>
Policia
</label>
<label>
Policia
</label>
<select
class=
"select-search form-control"
id=
"cboPolicias"
></select>
<select
class=
"select-search form-control"
id=
"cboPolicias"
></select>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"panel-footer"
>
<div
class=
"panel-footer"
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<button
class=
"btn btn-primary"
id=
"btnVerReporte"
><i
class=
"icon-eye4"
></i>
Ver reporte
</button>
<button
class=
"btn btn-primary"
id=
"btnVerReporte"
><i
class=
"icon-eye4"
></i>
Ver reporte
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<div
class=
"col-md-12"
>
<div
class=
"panel panel-primary card-3"
style=
"margin-top: 30px"
>
<div
class=
"panel panel-primary card-3"
style=
"margin-top: 30px"
>
<div
class=
"panel-heading"
style=
"padding: 8px 15px"
>
<div
class=
"panel-heading"
style=
"padding: 8px 15px"
>
<h6
class=
"panel-title"
style=
"font-size: 15px; font-family: inherit"
><i
class=
"icon icon-search4"
></i>
Comparativo de proyeccion y marcacion
</h6>
<h6
class=
"panel-title"
style=
"font-size: 15px; font-family: inherit"
><i
class=
"icon icon-search4"
></i>
Comparativo de proyeccion y marcacion
</h6>
</div>
</div>
<div
id=
"divDatatable"
></div>
<div
id=
"divDatatable"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- / content -->
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<!--js de la pagina-->
<!--js de la pagina-->
<script
src=
"../plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript
"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js
"
></script>
<script
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js
"
></script>
<script
src=
"../plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript
"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min
.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/pickers/datepicker
.js"
></script>
<script
src=
"../js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/axios.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/axios.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/sweetalert2.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/sweetalert2.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/plugins/forms/selects/select2.min.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/forms/selects/select2.min.js"
></script>
<script
src=
"../js/pages/comparativo_proyeccion_policias.js"
type=
"text/javascript"
></script>
<script
src=
"../js/pages/comparativo_proyeccion_policias.js"
type=
"text/javascript"
></script>
<!--js-->
<!--js-->
</body>
</body>
</html>
</html>
\ No newline at end of file
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
View file @
b92f1fe3
This diff is collapsed.
Click to expand it.
src/main/webapp/vistas/proyectarAsistenciaPolicias.jsp
View file @
b92f1fe3
...
@@ -38,14 +38,14 @@
...
@@ -38,14 +38,14 @@
<label>
Fecha Inicio
</label>
<label>
Fecha Inicio
</label>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<input
type=
"text"
class=
"form-control"
name=
"dpFechaInicio"
id=
"dpFechaInicio"
>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaInicio"
>
</div>
</div>
</div>
</div>
<div
class=
"col-md-6 form-group"
>
<div
class=
"col-md-6 form-group"
>
<label>
Fecha Fin
</label>
<label>
Fecha Fin
</label>
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<span
class=
"input-group-addon"
><i
class=
"icon-calendar"
></i></span>
<input
type=
"text"
class=
"form-control"
name=
"dpFechaFin"
id=
"dpFechaFin"
>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaFin"
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<!--js de la pagina-->
<!--js de la pagina-->
<script
src=
"../plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/plugins/ui/moment/moment.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/plugins/pickers/date
range
picker.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/pickers/datepicker.js"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/dataTables.rowsGroup.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/dataTables.rowsGroup.js"
type=
"text/javascript"
></script>
...
...
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