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
8c2321df
Commit
8c2321df
authored
6 years ago
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cambiando estado de registro en mantenimiento sede
parent
b64d2556
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
5 deletions
+44
-5
mantenimiento_sede.js
src/main/webapp/js/pages/mantenimiento_sede.js
+44
-5
No files found.
src/main/webapp/js/pages/mantenimiento_sede.js
View file @
8c2321df
...
@@ -60,7 +60,9 @@ function getColumns() {
...
@@ -60,7 +60,9 @@ function getColumns() {
if
(
data
)
{
if
(
data
)
{
editar
=
`<span data-placement="left" title="Editar" style="cursor: pointer"> <i class="editar icon-pencil text-slate-800"></i> </span>`
;
editar
=
`<span data-placement="left" title="Editar" style="cursor: pointer"> <i class="editar icon-pencil text-slate-800"></i> </span>`
;
eliminar
=
`<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar icon-cancel-circle2 text-danger-700"></i> </span>`
;
eliminar
=
`<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar fa fa-power-off text-danger-700"></i> </span>`
;
}
else
if
(
data
===
0
)
{
eliminar
=
`<span data-placement="left" title="Eliminar" style="cursor: pointer"> <i class="eliminar fa fa-power-off text-success-700"></i> </span>`
;
}
else
{
}
else
{
registrar
=
`<span data-toggle="modal" data-target="#modal_entrada_pendiente" data-placement="left" title="Editar" style="cursor: pointer"> <i class='registrar icon-plus-circle2 text-success-700'></i> </span>`
;
registrar
=
`<span data-toggle="modal" data-target="#modal_entrada_pendiente" data-placement="left" title="Editar" style="cursor: pointer"> <i class='registrar icon-plus-circle2 text-success-700'></i> </span>`
;
}
}
...
@@ -146,12 +148,49 @@ function mostrarModalEdicion(data = {}) {
...
@@ -146,12 +148,49 @@ function mostrarModalEdicion(data = {}) {
}
}
function
mostrarModalEliminacion
(
data
)
{
function
mostrarModalEliminacion
(
data
)
{
let
{
id
,
estado
}
=
data
;
let
titulo
=
""
;
let
textoConfirmacion
=
""
let
tituloOperacion
=
""
;
if
(
estado
)
{
titulo
=
'Está seguro de eliminar?'
;
textoConfirmacion
=
'Sí, eliminar!'
;
tituloOperacion
=
'¡Eliminado exitosamente!'
;
estado
=
0
;
}
else
{
titulo
=
'Está seguro de activar?'
;
textoConfirmacion
=
'Sí, activar!'
;
tituloOperacion
=
'¡Activado exitosamente!'
;
estado
=
1
;
}
swal
({
swal
({
type
:
'success'
,
title
:
titulo
,
title
:
'¡Eliminado correctamente!'
,
text
:
""
,
showConfirmButton
:
false
,
type
:
'warning'
,
timer
:
1500
showCancelButton
:
true
,
confirmButtonColor
:
'#3085d6'
,
cancelButtonColor
:
'#d33'
,
confirmButtonText
:
textoConfirmacion
}).
then
((
result
)
=>
{
if
(
result
.
value
)
{
ajaxWebService
.
patch
(
`
${
URI_POLICIA_CONCEPTOSEDES
}
/
${
id
}
`
,
{
estado
}).
then
((
response
)
=>
{
if
(
response
.
status
)
{
swal
({
type
:
'success'
,
title
:
tituloOperacion
,
showConfirmButton
:
false
,
timer
:
1500
});
listarAsignacionesConceptosSede
();
}
});
}
});
});
}
}
function
mostrarModalRegistrar
(
data
=
{})
{
function
mostrarModalRegistrar
(
data
=
{})
{
...
...
This diff is collapsed.
Click to expand it.
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