Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. String strQuery = "select new cr.go.arco.web.command.BusquedaFacturasCommand(fac.idFactura, fac.noFactura, fac.fechaIngreso, se.numero, "
  2. + "se.cliente.cedula, fac.saldo, ca.nombre, "
  3. + "se.dom, fac.mesCobro, fac.annoCobro) "
  4. +"from Factura fac join fac.servicio se join se.cliente "
  5. + "join se.gestionCobro ge join ge.calendario ca ";
  6.  
  7. public BusquedaFacturasCommand( int idFactura, String noFactura, Date fechaIngreso, String numero, String cedula,
  8. Double saldo, String nombreCalendario, int dom, int mesCobro, int annoCobro) {
  9. super();
  10. this.idFactura = idFactura;
  11. this.noFactura = noFactura;
  12. DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
  13. String fechaIngresoStr = dateFormat.format(fechaIngreso);
  14. this.fechaIngresoStr = fechaIngresoStr;
  15. this.numero = numero;
  16. this.cedula = cedula;
  17. this.saldo = saldo;
  18. this.nombreCalendario = nombreCalendario;
  19. this.dom = dom;
  20. this.periodo = mesCobro +"/"+annoCobro;
  21. System.out.println("llegue");
  22. }
  23.  
  24. "ajax":{
  25. "url": "buscarJSON",
  26. "data": function(data) {
  27. data.params_rangoFechas = $('#rangoFechas').val(),
  28. data.params_cedula = $('#cedula').val(),
  29. data.params_servicio = $('#servicio').val(),
  30. data.params_noFactura = $('#noFactura').val(),
  31. data.params_varFecha = $("#varFecha").val(),
  32. data.params_bandera = bandera,
  33.  
  34. bandera = 1;
  35. } ,
  36. "columns": [
  37. { data: "idFactura"},
  38. { data: "noFactura"},
  39. { data: "fechaIngresoStr"},
  40. { data: "numero"},
  41. { data: "cedula"},
  42. { data: "saldo"},
  43. { data: "nombreCalendario"},
  44. { data: "dom"},
  45. { data: "periodo"}
  46. ],
  47. } ,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement