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
b9f72db6
Commit
b9f72db6
authored
Aug 28, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mostrando registros en el proyectado comparativo
parent
9f6ee97a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
67 deletions
+54
-67
general.js
src/main/webapp/js/general.js
+23
-1
comparativo_proyeccion_policias.js
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
+0
-0
comparativoProyeccionPolicias.jsp
src/main/webapp/vistas/comparativoProyeccionPolicias.jsp
+31
-66
No files found.
src/main/webapp/js/general.js
View file @
b9f72db6
...
@@ -28,6 +28,7 @@ const URI_POLICIA_MONTOS_AMANECIDAS = "montoAmanecidas";
...
@@ -28,6 +28,7 @@ const URI_POLICIA_MONTOS_AMANECIDAS = "montoAmanecidas";
const
URI_POLICIA_CONCEPTOSEDES
=
"conceptoSedes"
;
const
URI_POLICIA_CONCEPTOSEDES
=
"conceptoSedes"
;
const
URI_POLICIA_REPORTE_MONTOS
=
"reporteMontosPolicias"
;
const
URI_POLICIA_REPORTE_MONTOS
=
"reporteMontosPolicias"
;
const
URI_POLICIA_PROYECCION
=
"proyeccion"
;
const
URI_POLICIA_PROYECCION
=
"proyeccion"
;
const
URI_POLICIA_PROYECTADO_COMPARATIVO
=
"proyectadoComparativo"
;
//</editor-fold>
//</editor-fold>
...
@@ -74,7 +75,7 @@ ajaxWebService.interceptors.response.use(function (response) {
...
@@ -74,7 +75,7 @@ ajaxWebService.interceptors.response.use(function (response) {
message
:
response
.
data
.
message
||
`Operación exitosa`
,
message
:
response
.
data
.
message
||
`Operación exitosa`
,
data
:
response
.
data
.
data
||
response
.
data
data
:
response
.
data
.
data
||
response
.
data
};
};
console
.
log
(
respuesta
,
moment
().
format
(
"YYYY/DD/MM HH:MM:SS s"
))
//
console.log(respuesta, moment().format("YYYY/DD/MM HH:MM:SS s"))
return
respuesta
;
return
respuesta
;
},
function
(
error
)
{
},
function
(
error
)
{
// Do something with response error
// Do something with response error
...
@@ -424,4 +425,24 @@ const cleanQueryParams = (params = {}) => {
...
@@ -424,4 +425,24 @@ const cleanQueryParams = (params = {}) => {
}
}
return
params
;
return
params
;
}
let
initDatePicker
=
(...
selectorName
)
=>
{
selectorName
.
forEach
(
id
=>
{
let
options
=
{
minDate
:
new
Date
(
2000
,
1
-
1
,
1
),
maxDate
:
new
Date
(),
dateFormat
:
'dd/mm/yy'
,
defaultDate
:
new
Date
(),
changeMonth
:
true
,
changeYear
:
true
,
yearRange
:
'-18:+0'
,
zIndexOffset
:
3000
,
onSelect
:
function
()
{
// $(this).valid();
}
}
$
(
id
).
datepicker
(
options
);
$
(
id
).
datepicker
(
'setDate'
,
'now'
);
});
}
}
\ No newline at end of file
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
View file @
b9f72db6
This diff is collapsed.
Click to expand it.
src/main/webapp/vistas/comparativoProyeccionPolicias.jsp
View file @
b9f72db6
...
@@ -6,94 +6,57 @@
...
@@ -6,94 +6,57 @@
<
%@
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"
/>
<!--css-->
<!--css-->
</head>
</head>
<body>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<!-- content -->
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"row"
>
<div
class=
"panel panel-primary"
>
<div
class=
"col-md-4 col-md-offset-4"
>
<div
class=
"panel-heading"
>
<div
class=
"panel panel-primary"
>
<h5
class=
"panel-title"
>
Proyectado comparativo
</h5>
<div
class=
"panel-heading"
>
</div>
<h5
class=
"panel-title"
>
Reporte comparativo de proyeccion
</h5>
</div>
<form
id=
"frmComparativoProyectado"
onsubmit=
"return false;"
autocomplete=
"off"
>
<div
class=
"panel-body"
>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-4 form-group"
>
<div
class=
"col-md-6 form-group"
>
<label>
Busqueda por
</label>
<label>
Fecha Inicio:
</label>
<select
class=
"form-control"
id=
"cboCriterio"
>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaInicio"
>
<option>
[SELECCIONE]
</option>
<option>
PERIODO
</option>
<option>
FECHA
</option>
</select>
</div>
</div>
<div
id=
"divCriterio"
>
<div
class=
"col-md-6 form-group"
>
<label>
Fecha Fin
</label>
<input
type=
"text"
class=
"form-control"
id=
"dpFechaFin"
>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-4"
>
<label>
Personal
</label>
<select
class=
"form-control"
id=
"cboCriterioPersonal"
>
<option>
[SELECCIONE]
</option>
<option
value=
"dni"
>
DNI
</option>
<option
value=
"nombres"
>
APELLIDOS
</option>
<option
value=
"*"
>
TODOS
</option>
</select>
</div>
<div
id=
"divCriterioPersonal"
>
<div
class=
"row"
>
<div
class=
"col-md-12 form-group"
>
<label>
Policia
</label>
<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=
"btnBuscar"
><i
class=
"fa fa-search"
></i>
Buscar
</button>
<button
class=
"btn btn-primary"
id=
"btnVerReporte"
><i
class=
"icon-eye4"
></i>
Ver reporte
</button>
<button
class=
"btn btn-warning"
id=
"btnLimpiar"
><i
class=
"fa fa-eraser"
></i>
Limpiar
</button>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div
class=
"col-md-12"
>
<div
class=
"row"
>
<div
class=
"panel panel-primary card-3"
style=
"margin-top: 30px"
>
<div
class=
"col-md-12"
>
<div
class=
"panel-heading"
style=
"padding: 8px 15px"
>
<div
class=
"panel panel-primary card-3"
style=
"margin-top: 30px"
>
<h6
class=
"panel-title"
style=
"font-size: 15px; font-family: inherit"
><i
class=
"icon icon-search4"
></i>
PROYECCION
</h6>
<div
class=
"panel-heading"
style=
"padding: 8px 15px"
>
</div>
<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>
<table
class=
"table dataTable table-striped table-hover table-sm table-bordered display"
id=
"tblProyectadoComparativo"
>
<div
id=
"divDatatable"
></div>
<thead>
<tr>
<th
class=
"text-center"
>
Nº
</th>
<th
class=
"text-center"
>
DNI
</th>
<th
class=
"text-center"
>
APELLIDOS Y NOMBRES
</th>
<th
class=
"text-center"
>
TURNO
</th>
<th
class=
"text-center"
>
SEDE
</th>
<th
class=
"text-center"
>
COSTO
</th>
<th
class=
"text-center"
>
FECHA ENTRADA
</th>
<th
class=
"text-center"
>
ENTRADA PROY.
</th>
<th
class=
"text-center"
>
MARC. ENTRADA
</th>
<!--<th class="text-center">DIF. ENTRADA(min)</th>-->
<th
class=
"text-center"
>
FECHA SALIDA
</th>
<th
class=
"text-center"
>
SALIDA PROY.
</th>
<th
class=
"text-center"
>
MARC. SALIDA
</th>
<!--<th class="text-center">DIF. SALIDA(min)</th>-->
<th
class=
"text-center"
>
DIF. TOTAL
</th>
<th
class=
"text-center"
>
MONTO
</th>
<th
class=
"text-center"
>
OBS.
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -104,10 +67,12 @@
...
@@ -104,10 +67,12 @@
<!--js de la pagina-->
<!--js de la pagina-->
<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=
"../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
type=
"text/javascript"
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js"
></script>
<script
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js"
></script>
<script
type=
"text/javascript"
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=
"../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=
"../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-->
...
...
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