Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String strQuery = "select new cr.go.arco.web.command.BusquedaFacturasCommand(fac.idFactura, fac.noFactura, fac.fechaIngreso, se.numero, "
- + "se.cliente.cedula, fac.saldo, ca.nombre, "
- + "se.dom, fac.mesCobro, fac.annoCobro) "
- +"from Factura fac join fac.servicio se join se.cliente "
- + "join se.gestionCobro ge join ge.calendario ca ";
- public BusquedaFacturasCommand( int idFactura, String noFactura, Date fechaIngreso, String numero, String cedula,
- Double saldo, String nombreCalendario, int dom, int mesCobro, int annoCobro) {
- super();
- this.idFactura = idFactura;
- this.noFactura = noFactura;
- DateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
- String fechaIngresoStr = dateFormat.format(fechaIngreso);
- this.fechaIngresoStr = fechaIngresoStr;
- this.numero = numero;
- this.cedula = cedula;
- this.saldo = saldo;
- this.nombreCalendario = nombreCalendario;
- this.dom = dom;
- this.periodo = mesCobro +"/"+annoCobro;
- System.out.println("llegue");
- }
- "ajax":{
- "url": "buscarJSON",
- "data": function(data) {
- data.params_rangoFechas = $('#rangoFechas').val(),
- data.params_cedula = $('#cedula').val(),
- data.params_servicio = $('#servicio').val(),
- data.params_noFactura = $('#noFactura').val(),
- data.params_varFecha = $("#varFecha").val(),
- data.params_bandera = bandera,
- bandera = 1;
- } ,
- "columns": [
- { data: "idFactura"},
- { data: "noFactura"},
- { data: "fechaIngresoStr"},
- { data: "numero"},
- { data: "cedula"},
- { data: "saldo"},
- { data: "nombreCalendario"},
- { data: "dom"},
- { data: "periodo"}
- ],
- } ,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement