Guest User

Untitled

a guest
Apr 25th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. <table id="tablaReportes" class="table table-hover">
  2. <thead id="tbl">
  3. <tr>
  4. <th>Fecha y Hora</th>
  5. <th>Limites alerta (inf/sup)</th>
  6. <th>Limites accion (inf/sup)</th>
  7. <th>Usuario</th>
  8. <th>Ver</th>
  9. </tr>
  10. </thead>
  11. </table>
  12.  
  13. $('#tablaReportes').DataTable({
  14. scrollY: 400,
  15. scrollCollapse: true,
  16. paging: true,
  17. searching: false,
  18. ordering: false,
  19. info: false,
  20. });
  21.  
  22. $.each(json.Table, function (index, item) {
  23.  
  24. var aLimites = [{ alertaIn: item.C019alertaIn },
  25. { alertaSup: item.C019alertaSup },
  26. { accionIn: item.C019accionIn },
  27. { accionSup: item.C019accionSup },
  28. { obsGrafica: item.C019obsGrafica }];
  29.  
  30. $("#tablaReportes").append("<tr><td>" + item.C019fechaRegistro + " ; " + item.C019hora+ "</td>"
  31. + "<td>[" + item.C019alertaIn + "][" + item.C019alertaSup + "]</td>"
  32. + "<td>[" + item.C019accionIn + "][" + item.C019accionSup + "]</td>"
  33. + "<td>" + item.C019NomUsuario + "</td>"
  34. + "<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>&nbsp"
  35. + "<button type='button' class='btn btn-primary' onclick='verObservacion(" + item.C019codDetalle + ")'><i class='fa fa-comments-o'></i></button></td></tr>");
  36. });
Add Comment
Please, Sign In to add comment