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
81c05074
Commit
81c05074
authored
Aug 15, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
listado de estados de asistencias en control de asistencias de policia
parent
1fb6b7df
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
4 deletions
+40
-4
comparativo_proyeccion_policias.js
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
+2
-1
control_asistencia_policias.js
src/main/webapp/js/pages/control_asistencia_policias.js
+35
-0
controlAsistenciaPolicias.jsp
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
+3
-3
No files found.
src/main/webapp/js/pages/comparativo_proyeccion_policias.js
View file @
81c05074
const
URI_LISTAR_PROYECTADO_COMPARATIVO
=
""
;
function
initilizeData
()
{
}
...
...
@@ -102,7 +103,7 @@ function buscar() {
"processing"
:
true
,
ajax
:
{
contentType
:
'application/json; charset=utf-8'
,
url
:
"http://172.16.2.91:3000/ServletPolicias/accion=listarProyectadoComparativoDatatable"
,
url
:
URI_LISTAR_PROYECTADO_COMPARATIVO
,
// data: {
// busqueda: busqueda
// }
...
...
src/main/webapp/js/pages/control_asistencia_policias.js
View file @
81c05074
let
asistencias
=
[],
sedes
=
[];
const
URI_LISTAR_SEDES
=
"http://172.16.2.91:666/sedes"
;
const
URI_LISTAR_ESTADO_ASISTENCIA
=
"http://172.16.2.91:666/estadoAsistencia"
;
let
htmlSedes
;
function
init
()
{
listarEstadoAsistencia
();
}
function
listarSedes
()
{
if
(
Object
.
is
(
htmlSedes
,
undefined
))
{
...
...
@@ -24,6 +27,12 @@ function listarSedes() {
size
:
4
});
$
(
".btn.dropdown-toggle.bs-placeholder"
).
removeClass
(
"btn-info"
);
$
(
".btn.dropdown-toggle.bs-placeholder"
).
css
({
border
:
"1px solid #ddd"
,
backgroundColor
:
"#fff"
});
}).
catch
((
error
)
=>
{
console
.
log
(
error
);
});
...
...
@@ -33,10 +42,36 @@ function listarSedes() {
style
:
'btn-info'
,
size
:
4
});
$
(
".btn.dropdown-toggle.bs-placeholder"
).
removeClass
(
"btn-info"
);
$
(
".btn.dropdown-toggle.bs-placeholder"
).
css
({
border
:
"1px solid #ddd"
,
backgroundColor
:
"#fff"
});
}
}
function
listarEstadoAsistencia
()
{
axios
.
get
(
URI_LISTAR_ESTADO_ASISTENCIA
).
then
((
result
)
=>
{
let
estados
=
result
.
data
;
let
html
=
""
;
estados
.
forEach
(
e
=>
{
html
+=
`<option value="
${
e
.
codigo
}
">
${
e
.
nombre
}
</option>`
;
});
$
(
"#cboEstados"
).
html
(
html
);
$
(
"#cboEstados"
).
selectpicker
(
'refresh'
);
$
(
'.selectpicker'
).
selectpicker
({
style
:
'btn-info'
,
size
:
4
});
$
(
".btn.dropdown-toggle.bs-placeholder"
).
removeClass
(
"btn-info"
);
$
(
".btn.dropdown-toggle.bs-placeholder"
).
css
({
border
:
"1px solid #ddd"
,
backgroundColor
:
"#fff"
});
debugger
;
});
}
...
...
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
View file @
81c05074
...
...
@@ -59,13 +59,13 @@
<div
class=
"col-md-4 form-group"
>
<label>
Estado
</label>
<select
class=
"selectpicker form-control"
name=
"cboSedes"
id=
"cbo
Sede
s"
multiple
>
<option>
PENDIENTE
</option>
<select
class=
"selectpicker form-control"
name=
"cboSedes"
id=
"cbo
Estado
s"
multiple
>
<!--
<option>PENDIENTE</option>
<option>FCA</option>
<option>FSA</option>
<option>TEMPRANO</option>
<option>TARDANZA</option>
<option>
NO MARCÓ
</option>
<option>NO MARCÓ</option>
-->
</select>
</div>
</div>
...
...
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