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
8d4258a5
Commit
8d4258a5
authored
Sep 20, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT periodo de cierre, inicializando filtros]
parent
6b2d5aa5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
10 deletions
+35
-10
registro_periodo_cierre.js
src/main/webapp/js/pages/registro_periodo_cierre.js
+29
-4
registroPeriodoCierre.jsp
src/main/webapp/vistas/registroPeriodoCierre.jsp
+6
-6
No files found.
src/main/webapp/js/pages/registro_periodo_cierre.js
View file @
8d4258a5
...
...
@@ -137,11 +137,11 @@ const registrarNuevoPeriodo = () => {
}
const
listarTipoPersonal
=
(
nodeIdentifier
)
=>
{
const
listarTipoPersonal
=
(
nodeIdentifier
,
todos
=
0
)
=>
{
return
ajaxWebService
.
get
(
URI_TIPOPERSONAL
).
then
((
response
)
=>
{
if
(
response
.
status
)
{
let
data
=
response
.
data
let
html
=
""
let
html
=
`<option value="">
${
todos
?
"[TODOS]"
:
"[SELECCIONE]"
}
</option>`
html
+=
data
.
map
(
tipoPersonal
=>
`<option value="
${
tipoPersonal
.
id
}
">
${
tipoPersonal
.
descripcion
}
</option>`
)
$
(
nodeIdentifier
).
html
(
html
)
}
...
...
@@ -149,11 +149,11 @@ const listarTipoPersonal = (nodeIdentifier) => {
})
}
const
listarMesesCierre
=
(
nodeIdentifier
)
=>
{
const
listarMesesCierre
=
(
nodeIdentifier
,
todos
=
0
)
=>
{
return
ajaxWebService
.
get
(
URI_MESESCIERRE
).
then
((
response
)
=>
{
if
(
response
.
status
)
{
let
data
=
response
.
data
let
html
=
""
let
html
=
`<option value="">
${
todos
?
"[TODOS]"
:
"[SELECCIONE]"
}
</option>`
html
+=
data
.
map
(
mesCierre
=>
`<option value="
${
mesCierre
.
id
}
">
${
mesCierre
.
descripcion
}
</option>`
)
$
(
nodeIdentifier
).
html
(
html
)
}
...
...
@@ -303,7 +303,32 @@ const aplicarFiltro = () => {
}
const
formControls
=
{
init
()
{
debugger
this
.
initTipoCierres
()
this
.
initPeriodos
()
this
.
initEstados
()
this
.
initPickers
()
},
initTipoCierres
()
{
debugger
listarTipoPersonal
(
"#cboTipoPersonalFiltro"
,
1
)
},
initPeriodos
()
{
listarMesesCierre
(
"#cboPeriodoFiltro"
,
1
)
},
initEstados
()
{
},
initPickers
()
{
initDatePicker
(
"#dpFechaInicioFiltro"
,
"#dpFechaFinFiltro"
)
}
}
$
(
document
).
ready
(
function
()
{
formControls
.
init
()
$
(
"#btnNuevoPeriodo"
).
click
(
mostrarModalNuevoPeriodo
);
$
(
"#btnMostrarTodo"
).
click
(
listarPeriodosCierre
)
$
(
"#btnAplicarFiltro"
).
click
(
aplicarFiltro
)
...
...
src/main/webapp/vistas/registroPeriodoCierre.jsp
View file @
8d4258a5
...
...
@@ -20,14 +20,14 @@
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"col-md-
8
form-group"
>
<label>
Personal
</label>
<select
class=
"select-search form-control"
id=
"cboPersonalFiltro"
>
<div
class=
"col-md-
6
form-group"
>
<label>
Tipo de Cierre
</label>
<select
class=
"select-search form-control"
id=
"cbo
Tipo
PersonalFiltro"
>
</select>
</div>
<div
class=
"col-md-
4
form-group"
>
<label>
Sede
</label>
<select
class=
"form-control"
id=
"cbo
Sedes
Filtro"
>
<div
class=
"col-md-
6
form-group"
>
<label>
Periodo
</label>
<select
class=
"form-control"
id=
"cbo
Periodo
Filtro"
>
</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