Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table id="tablaReportes" class="table table-hover">
- <thead id="tbl">
- <tr>
- <th>Fecha y Hora</th>
- <th>Limites alerta (inf/sup)</th>
- <th>Limites accion (inf/sup)</th>
- <th>Usuario</th>
- <th>Ver</th>
- </tr>
- </thead>
- </table>
- $('#tablaReportes').DataTable({
- scrollY: 400,
- scrollCollapse: true,
- paging: true,
- searching: false,
- ordering: false,
- info: false,
- });
- $.each(json.Table, function (index, item) {
- var aLimites = [{ alertaIn: item.C019alertaIn },
- { alertaSup: item.C019alertaSup },
- { accionIn: item.C019accionIn },
- { accionSup: item.C019accionSup },
- { obsGrafica: item.C019obsGrafica }];
- $("#tablaReportes").append("<tr><td>" + item.C019fechaRegistro + " ; " + item.C019hora+ "</td>"
- + "<td>[" + item.C019alertaIn + "][" + item.C019alertaSup + "]</td>"
- + "<td>[" + item.C019accionIn + "][" + item.C019accionSup + "]</td>"
- + "<td>" + item.C019NomUsuario + "</td>"
- + "<td><button type='button' class='btn btn-warning' onclick='grafica(" + item.C019SeriesData + ", " + JSON.stringify(aLimites) + "," + item.C019codDetalle + ")'><i class='fa fa-line-chart'></i></button> "
- + "<button type='button' class='btn btn-primary' onclick='verObservacion(" + item.C019codDetalle + ")'><i class='fa fa-comments-o'></i></button></td></tr>");
- });
Add Comment
Please, Sign In to add comment