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
cec395e8
Commit
cec395e8
authored
6 years ago
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
registro de montos de amanecidas de sedes
parent
9ff0a6f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
0 deletions
+139
-0
general.js
src/main/webapp/js/general.js
+1
-0
asignar_monto_amanecida.js
src/main/webapp/js/pages/asignar_monto_amanecida.js
+55
-0
asignarMontoAmanecida.jsp
src/main/webapp/vistas/asignarMontoAmanecida.jsp
+83
-0
No files found.
src/main/webapp/js/general.js
View file @
cec395e8
...
...
@@ -18,6 +18,7 @@ const URI_ESTADO_ASISTENCIA = "http://172.16.2.91:666/estadoAsistencia";
const
URI_POLICIAS
=
"http://172.16.2.91:666/policias"
;
const
URI_ROL_POLICIA
=
"http://172.16.2.91:666/rolesPolicias"
;
const
URI_POLICIAS_ASISTENCIA
=
"http://sistem16:666/asistenciaPolicias"
;
const
URI_POLICIA_MONTOS_AMANECIDAS
=
"http://sistem16:666/montoAmanecidas"
;
//</editor-fold>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/js/pages/asignar_monto_amanecida.js
0 → 100644
View file @
cec395e8
function
cambiarFormatoDecimal
(
selectorName
)
{
$
(
selectorName
).
formatter
({
pattern
:
'{{999}}.00'
});
}
function
registrar
()
{
let
descripcion
=
$
(
"#txtDescripcion"
).
val
();
let
monto24h
=
parseFloat
(
$
(
"#txtMonto12h"
).
val
());
let
monto12h
=
parseFloat
(
$
(
"#txtMonto24h"
).
val
());
let
estado_registro
=
1
;
let
params
=
{
descripcion
,
monto12h
,
monto24h
,
estado_registro
}
axios
.
post
(
URI_POLICIA_MONTOS_AMANECIDAS
,
params
).
then
((
response
)
=>
{
response
.
data
=
formatResponse
(
response
);
if
(
response
.
data
.
status
)
{
swal
({
type
:
'success'
,
title
:
'¡Se registró correctamente!'
,
showConfirmButton
:
false
,
timer
:
1500
})
}
});
}
function
listarMontos
()
{
axios
.
get
(
URI_POLICIA_MONTOS_AMANECIDAS
).
then
((
response
)
=>
{
response
.
data
=
formatResponse
(
response
.
data
);
if
(
response
.
data
.
status
)
{
}
});
}
$
().
ready
(
function
()
{
// cambiarFormatoDecimal("#txtMonto12h");
// cambiarFormatoDecimal("#txtMonto24h");
listarMontos
();
$
(
"#btnRegistrar"
).
click
(
registrar
);
});
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/webapp/vistas/asignarMontoAmanecida.jsp
0 → 100644
View file @
cec395e8
<
%@
include
file=
"templates/validar.jsp"
%
>
<
%@
page
contentType=
"text/html"
pageEncoding=
"UTF-8"
%
>
<!DOCTYPE html>
<html>
<head>
<
%@
include
file=
"templates/header.jsp"
%
>
<!--template-core-->
<!--css de la pagina-->
<link
href=
"../css/lib/sweetalert2.min.css"
rel=
"stylesheet"
type=
"text/css"
/>
<!--css-->
</head>
<body>
<
%@
include
file=
"templates/header-body.jsp"
%
>
<!-- content -->
<div
class=
"row"
>
<div
class=
"col-md-3 col-md-offset-4"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<h5
class=
"panel-title"
>
Registrar montos de amanecidas
</h5>
</div>
<div
class=
"panel-body"
>
<div
class=
"row"
>
<div
class=
"col-md-12 form-group"
>
<label>
Descripcion
</label>
<input
type=
"text"
class=
"form-control"
id=
"txtDescripcion"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-6 form-group"
>
<label>
Monto Amanecida 12h
</label>
<input
type=
"text"
class=
"form-control"
id=
"txtMonto12h"
>
</div>
<div
class=
"col-md-6 form-group"
>
<label>
Monto Amanecida 24h
</label>
<input
type=
"text"
class=
"form-control"
id=
"txtMonto24h"
>
</div>
</div>
</div>
<div
class=
"panel-footer"
>
<div
class=
"text-center"
>
<button
class=
"btn btn-primary"
id=
"btnRegistrar"
><i
class=
"icon-eye4"
></i>
Registrar
</button>
</div>
</div>
</div>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-md-7 col-md-offset-2"
>
<div
class=
"panel panel-primary card-3"
style=
"margin-top: 30px"
>
<div
class=
"panel-heading"
style=
"padding: 8px 15px"
>
<h6
class=
"panel-title"
style=
"font-size: 15px; font-family: inherit"
><i
class=
"icon icon-search4"
></i>
LISTADO
</h6>
</div>
<div
id=
"divDatatable"
></div>
</div>
</div>
</div>
<!-- / content -->
<
%@
include
file=
"templates/footer-body.jsp"
%
>
<!--js de la pagina-->
<script
src=
"../plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/interactions.min.js"
></script>
<script
src=
"../plantilla/assets/js/core/libraries/jquery_ui/widgets.min.js"
></script>
<script
src=
"../js/lib/sweetalert2.min.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=
"../plantilla/assets/js/plugins/forms/inputs/formatter.min.js"
></script>
<script
src=
"../js/pages/asignar_monto_amanecida.js"
></script>
<!--js-->
</body>
</html>
\ No newline at end of file
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