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
7de810e5
Commit
7de810e5
authored
Aug 23, 2018
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edicion de montos de amanecidas y eliminacion
parent
75aff2ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
4 deletions
+87
-4
asignar_monto_amanecida.js
src/main/webapp/js/pages/asignar_monto_amanecida.js
+60
-4
editarMontoConcepto.jsp
...ls/policias/asignarMontoAmanecida/editarMontoConcepto.jsp
+27
-0
No files found.
src/main/webapp/js/pages/asignar_monto_amanecida.js
View file @
7de810e5
...
...
@@ -101,6 +101,57 @@ function registrar() {
});
}
function
inicializarInputsModal
(
data
=
{}){
$
(
"#txtEditarConcepto"
).
val
(
data
.
descripcion
);
$
(
"#txtEditarMonto12h"
).
val
(
data
.
monto12h
);
$
(
"#txtEditarMonto24h"
).
val
(
data
.
monto24h
);
debugger
}
function
mostrarMensajeResultadoModal
(
result
=
{}){
if
(
result
.
value
)
{
swal
({
type
:
'success'
,
title
:
'¡Se realizó la actualización correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
});
}
}
function
mostrarModalEdicion
(
data
=
{})
{
axios
.
get
(
"modals/policias/asignarMontoAmanecida/editarMontoConcepto.jsp"
).
then
((
response
)
=>
{
swal
({
title
:
'<strong>Editar Montos de amanecidas</strong>'
,
html
:
response
.
data
,
showCloseButton
:
true
,
showCancelButton
:
true
,
focusConfirm
:
false
,
confirmButtonText
:
'<i class="fa fa-thumbs-up"></i> Guardar cambios'
,
confirmButtonAriaLabel
:
'Thumbs up, great!'
,
cancelButtonText
:
'Cancelar'
,
cancelButtonAriaLabel
:
'Thumbs down'
,
width
:
'15%'
,
onOpen
:
()
=>
{
inicializarInputsModal
(
data
);
}
}).
then
((
result
)
=>
{
mostrarMensajeResultadoModal
(
result
);
});
});
}
function
mostrarModalEliminacion
(
data
)
{
axios
.
put
(
URI_POLICIA_MONTOS_AMANECIDAS
,
data
)
swal
({
type
:
'success'
,
title
:
'¡Eliminado correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
});
}
function
listarMontos
(
objParams
=
{})
{
...
...
@@ -123,10 +174,15 @@ function listarMontos(objParams = {}) {
footer
}
).
then
((
datatable
)
=>
{
// $(datatable).on("click", ".registrar", function () {
// let data = $(datatable).DataTable().row($(this).parents("tr")).data();
// mostrarModalRegistroAsistencia(data);
// });
$
(
datatable
).
on
(
"click"
,
".editar"
,
function
()
{
let
data
=
$
(
datatable
).
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
mostrarModalEdicion
(
data
);
});
$
(
datatable
).
on
(
"click"
,
".eliminar"
,
function
()
{
let
data
=
$
(
datatable
).
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
mostrarModalEliminacion
(
data
);
});
});
});
}
...
...
src/main/webapp/vistas/modals/policias/asignarMontoAmanecida/editarMontoConcepto.jsp
0 → 100644
View file @
7de810e5
<form id="frmAsistenciaDocentes" onsubmit="return false;" autocomplete="off">
<div class="panel-body">
<div class="row">
<div class="col-md-12 form-group">
<label>Concepto</label>
<input type="text" class="form-control" id="txtEditarConcepto">
</div>
</div>
<div class="row">
<div class="col-md-12 form-group">
<label>Monto amanecida 12h</label>
<input type="text" class="form-control" id="txtEditarMonto12h">
</div>
</div>
<div class="row">
<div class="col-md-12 form-group">
<label>Monto amanecida 24h</label>
<input type="text" class="form-control" id="txtEditarMonto24h">
</div>
</div>
</div>
</form>
\ No newline at end of file
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