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
30417e80
Commit
30417e80
authored
6 years ago
by
Billy Larru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
control de asistencia arreglado
parent
893ca942
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
51 deletions
+22
-51
control_asistencia_policias.js
src/main/webapp/js/pages/control_asistencia_policias.js
+20
-47
controlAsistenciaPolicias.jsp
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
+2
-4
No files found.
src/main/webapp/js/pages/control_asistencia_policias.js
View file @
30417e80
...
...
@@ -166,19 +166,18 @@ function getColumns() {
function
getColumnDefs
()
{
let
columnDefs
=
[
{
orderable
:
false
,
width
:
'5
%'
,
targets
:
0
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'5
%'
,
targets
:
1
},
{
orderable
:
false
,
width
:
'30
%'
,
targets
:
2
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'7
%'
,
targets
:
3
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'1
%'
,
targets
:
0
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'13
%'
,
targets
:
1
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
2
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'5
%'
,
targets
:
3
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'7%'
,
targets
:
4
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'10
%'
,
targets
:
5
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
6
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
7
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
8
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
9
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8
%'
,
targets
:
10
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'5
%'
,
targets
:
5
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'6
%'
,
targets
:
6
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'3
%'
,
targets
:
7
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'3
%'
,
targets
:
8
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'6
%'
,
targets
:
9
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'5
%'
,
targets
:
10
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8%'
,
targets
:
11
,
className
:
"text-center"
},
{
orderable
:
false
,
width
:
'8%'
,
targets
:
12
,
className
:
"text-center"
}
];
return
columnDefs
;
}
...
...
@@ -237,27 +236,25 @@ function listarAsistencias(objParams = {}) {
ajaxWebService
.
get
(
URI_POLICIAS_ASISTENCIA
,
objParams
).
then
((
response
)
=>
{
let
columns
=
getColumns
();
let
columnDefs
=
getColumnDefs
();
let
wrapsNameDatatable
=
`divAsistencias`
;
let
classNameForDatatable
=
`display table table-bordered`
;
let
footer
=
false
;
debugger
debugger
makeDatatable
(
wrapsNameDatatable
,
{
data
:
response
.
data
,
columns
,
columnDefs
,
wrapsNameDatatable
,
classNameForDatatable
,
footer
}
).
then
((
datatable
)
=>
{
$
(
datatable
).
on
(
"click"
,
".registrar"
,
function
()
{
let
data
=
$
(
datatable
).
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
},
classNameForDatatable
).
then
((
nodes
)
=>
{
nodes
.
container
.
on
(
"click"
,
".registrar"
,
function
()
{
let
data
=
nodes
.
datatable
.
DataTable
().
row
(
$
(
this
).
parents
(
"tr"
)).
data
();
mostrarModalRegistroAsistencia
(
data
);
});
});
});
}
);
}
function
listarSedes
(
selectorName
)
{
...
...
@@ -377,31 +374,7 @@ $().ready(function () {
backgroundColor
:
"#fff"
});
$
(
"#dpFechaInicio"
).
datepicker
({
minDate
:
new
Date
(
2000
,
1
-
1
,
1
),
maxDate
:
new
Date
(
2018
,
6
,
31
),
dateFormat
:
'dd/mm/yy'
,
// defaultDate: new Date(),
changeMonth
:
true
,
changeYear
:
true
,
yearRange
:
'-18:0'
,
onSelect
:
function
()
{
// $(this).valid();
}
});
$
(
"#dpFechaInicio"
).
datepicker
(
'setDate'
,
'now'
);
$
(
"#dpFechaFin"
).
datepicker
({
minDate
:
new
Date
(
2000
,
1
-
1
,
1
),
maxDate
:
new
Date
(
2018
,
6
,
31
),
dateFormat
:
'dd/mm/yy'
,
defaultDate
:
new
Date
(),
changeMonth
:
true
,
changeYear
:
true
,
yearRange
:
'-18:+0'
,
onSelect
:
function
()
{
// $(this).valid();
}
});
$
(
"#dpFechaFin"
).
datepicker
(
'setDate'
,
'now'
);
initDatePicker
(
"#dpFechaInicio"
,
"#dpFechaFin"
);
$
(
"#btnVerTodos"
).
click
(
listarAsistencias
);
$
(
"#btnVerAsistencias"
).
click
(
buscarAsistencias
);
});
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/vistas/controlAsistenciaPolicias.jsp
View file @
30417e80
...
...
@@ -66,8 +66,8 @@
</div>
<div
class=
"panel-footer"
>
<div
class=
"text-center"
>
<button
class=
"btn btn-primary"
id=
"btnVerAsistencias"
><i
class=
"fa fa-search"
></i>
Ver Asistencias
</button>
<button
class=
"btn btn-primary"
id=
"btnVerTodos"
><i
class=
"fa fa-search"
></i>
Ver T
odos
</button>
<button
class=
"btn btn-primary"
id=
"btnVerAsistencias"
><i
class=
"fa fa-search"
></i>
Aplicar filtro
</button>
<button
class=
"btn btn-primary"
id=
"btnVerTodos"
><i
class=
"fa fa-search"
></i>
Mostrar t
odos
</button>
</div>
</div>
...
...
@@ -360,7 +360,6 @@
<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=
"../plantilla/assets/js/plugins/tables/datatables/datatables.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/bootstrap-select/bootstrap-select.min.js"
type=
"text/javascript"
></script>
<!--<script src="../plantilla/assets/js/plugins/pickers/datepicker.js" type="text/javascript"></script>-->
<script
src=
"../plantilla/assets/js/plugins/pickers/daterangepicker.js"
></script>
...
...
@@ -368,7 +367,6 @@
<script
src=
"../plantilla/assets/js/plugins/extensions/contextmenu.js"
></script>
<script
src=
"../js/lib/lodash.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/sweetalert2.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/lib/axios.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/pages/control_asistencia_policias.js"
type=
"text/javascript"
></script>
<!--js-->
</body>
...
...
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