Guest User

Untitled

a guest
Apr 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <script>
  2. function cargarData() {
  3. var datos = {};
  4. datos.desde = desde.option('value');
  5. datos.hasta = hasta.option('value');
  6.  
  7. $.ajax({
  8. url: rutaApi + "visita/" + desde,
  9. method: "GET",
  10. data: JSON.stringify(datos),
  11. contentType: "application/json",
  12. success: function (data) {
  13. debugger;
  14. if (!data.error) {
  15. $("#grdConsultas").dxDataGrid({
  16. dataSource: data,
  17. "export": {
  18. enabled: true,
  19. fileName: "Visitas",
  20. allowExportSelectedData: true,
  21. }
  22. });
  23. }
  24. }
  25. });
  26. }
  27. </script>
  28.  
  29. url: rutaApi + "visita/" + desde,
Add Comment
Please, Sign In to add comment