Commit 636fe850 by Billy Larru

mostrando proyectado de asistencias

parent e6d7b04a
...@@ -49,8 +49,8 @@ ...@@ -49,8 +49,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version> <version>3.1</version>
<configuration> <configuration>
<source>1.7</source> <source>1.8</source>
<target>1.7</target> <target>1.8</target>
<compilerArguments> <compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs> <endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments> </compilerArguments>
......
...@@ -255,4 +255,8 @@ table.display tbody tr:hover td { ...@@ -255,4 +255,8 @@ table.display tbody tr:hover td {
} }
.table{ .table{
width: 100% !important; width: 100% !important;
}
.dataTable thead .sorting_asc:after {
content: '' !important;
} }
\ No newline at end of file
...@@ -5,18 +5,36 @@ function initializeData() { ...@@ -5,18 +5,36 @@ function initializeData() {
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 2, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR", data.push({"numero": 2, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-16", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-16"});
data.push({"numero": 3, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR", data.push({"numero": 3, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-17", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-17"});
data.push({"numero": 4, "nombres": "APONTE JAIME SEGUNDO FRANCISCO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 5, "nombres": "APONTE JAIME SEGUNDO FRANCISCO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-17", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-17"});
data.push({"numero": 6, "nombres": "GARCIA TORRES DAVID", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 7, "nombres": "VERA GUEVARA HUGO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 8, "nombres": "MENDOZA RAMIREZ JORGE", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 4, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR", data.push({"numero": 9, "nombres": "MENDOZA RAMIREZ JORGE", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 5, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR", data.push({"numero": 10, "nombres": "GUERRERO VELASCO LUIS SEGUNDO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 6, "nombres": "DELGADO CHOZO JUAN FRANCISCO", "sede": "CANTA CALLAO 2", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR", data.push({"numero": 11, "nombres": "GUERRERO VELASCO LUIS SEGUNDO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
data.push({"numero": 12, "nombres": "GUERRERO VELASCO LUIS SEGUNDO", "sede": "CUBA", "horario": "07:00 - 17:00", "tipo_horario": "REGULAR",
"fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"}); "fecha_entrada": "2018-06-15", "marcacion_entrada": "06:59", "marcacion_salida": "00:00", "fecha_salida": "2018-06-15"});
} }
...@@ -54,19 +72,33 @@ function mostrarVistaPrevia() { ...@@ -54,19 +72,33 @@ function mostrarVistaPrevia() {
autoWidth: false, autoWidth: false,
responsive: true, responsive: true,
stateSave: true, stateSave: true,
columnDefs: [{ columnDefs: [
orderable: false, {orderable: false, width: '5%', targets: 0, className: "text-center"},
width: '100px', {orderable: false, width: '15%', targets: 1},
targets: [7] {orderable: false, width: '10%', targets: 2, className: "text-center"},
}], {orderable: false, width: '7%', 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"}
],
dom: '<"datatable-header"fl><"datatable-scroll-wrap"t><"datatable-footer"ip>', dom: '<"datatable-header"fl><"datatable-scroll-wrap"t><"datatable-footer"ip>',
"processing": true, "processing": true,
data: data, data: data,
"columns": [ "columns": [
{"data": "numero"}, {
"data": "numero",
"className": "text-center"
},
{"data": "nombres"}, {"data": "nombres"},
{"data": "sede"}, {
{"data": "horario"}, "data": "sede",
"className": "text-center"
},
{
"data": "horario",
"className": "text-center"
},
{ {
"data": "tipo_horario", "data": "tipo_horario",
"className": "text-center", "className": "text-center",
...@@ -101,6 +133,7 @@ function mostrarVistaPrevia() { ...@@ -101,6 +133,7 @@ function mostrarVistaPrevia() {
], ],
rowsGroup: [1, 2, 3, 4], rowsGroup: [1, 2, 3, 4],
fnInitComplete: function (settings, data) { fnInitComplete: function (settings, data) {
$('th').removeClass('sorting_asc');
console.log(data); console.log(data);
} }
}); });
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<h6 class="panel-title" style="font-size: 15px; font-family: inherit"><i class="icon icon-search4"></i>&nbsp;ASISTENCIAS PROYECTADAS</h6> <h6 class="panel-title" style="font-size: 15px; font-family: inherit"><i class="icon icon-search4"></i>&nbsp;ASISTENCIAS PROYECTADAS</h6>
</div> </div>
<div> <div>
<table class="table table-responsive dataTable table-striped table-hover table-sm table-bordered display" id="tblAsistenciaPolicias"> <table class="table table-responsive dataTable table-striped table-sm table-bordered" id="tblAsistenciaPolicias">
<thead> <thead>
<tr> <tr>
<th class="text-center"></th> <th class="text-center"></th>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment