Example #1
0
 @Override
 protected TableFormat<Venta> getTableFormat() {
   String props[] = {
     "clave",
     "sucursal.nombre",
     "fecha",
     "origen",
     "numeroFiscal",
     "documento",
     "total",
     "devoluciones",
     "descuentos",
     "bonificaciones",
     "saldo"
   };
   String labels[] = {
     "Cliente",
     "Sucursal",
     "Fecha",
     "Tipo",
     "Documento",
     "Fiscal",
     "Total",
     "Devs",
     "Descs",
     "Bonific",
     "Saldo"
   };
   return GlazedLists.tableFormat(Venta.class, props, labels);
 }
 @Override
 protected TableFormat createDetailTableFormat() {
   String[] props = {
     "embarque.documento",
     "factura.documento",
     "factura.numeroFiscal",
     "clave",
     "nombre",
     "parcial",
     "kilos",
     "valor",
     "porCobrar",
     "arribo",
     "recepcion",
     "recibio",
     "comentario"
   };
   String[] labels = {
     "Embarque",
     "Docto",
     "N.Fiscal",
     "Clinete",
     "Nombre",
     "Parcial",
     "Kgr",
     "Valor",
     "Por Cobrar",
     "Arribo",
     "Recepción",
     "Recibió",
     "Comentario"
   };
   return GlazedLists.tableFormat(Entrega.class, props, labels);
 }
Example #3
0
 @Override
 protected TableFormat<Venta> getTableFormat() {
   String props[] = {
     "sucursal.nombre", "origen", "documento", "numeroFiscal", "fecha", "clave", "nombre", "total"
   };
   String labels[] = {
     "Sucursal", "Tipo", "Documento", "Fiscal", "Fecha", "Cliente", "Nombre", "Total"
   };
   return GlazedLists.tableFormat(Venta.class, props, labels);
 }
Example #4
0
 private JComponent buildGridPanel() {
   final String[] props = {
     "clave",
     "factura.numero",
     "factura.fecha",
     "factura.tipo",
     "factura.total",
     "factura.pagos",
     "factura.devolucionesCred",
     "factura.saldo",
     "factura.descuentoPactado",
     "factura.cargo",
     "importe"
   };
   final String[] cols = {
     "Cliente",
     "Factura",
     "Fecha",
     "T",
     "Total",
     "Pagos",
     "Devoluciones",
     "Saldo",
     "Desc",
     "Cargo",
     "Importe"
   };
   final TableFormat<NotasDeCreditoDet> tf =
       GlazedLists.tableFormat(NotasDeCreditoDet.class, props, cols);
   final SortedList<NotasDeCreditoDet> sortedList =
       new SortedList<NotasDeCreditoDet>(model.getPartidas(), null);
   final EventTableModel<NotasDeCreditoDet> tm =
       new EventTableModel<NotasDeCreditoDet>(sortedList, tf);
   final EventSelectionModel<NotasDeCreditoDet> selectionModel =
       new EventSelectionModel<NotasDeCreditoDet>(sortedList);
   selectionModel.setSelectionMode(ListSelection.SINGLE_SELECTION);
   final Action deleteAction =
       new AbstractAction() {
         public void actionPerformed(ActionEvent e) {
           if (!selectionModel.getSelected().isEmpty()) {
             selectionModel.getSelected().remove(0);
             if (sortedList.isEmpty()) getOKAction().setEnabled(false);
           }
         }
       };
   grid = ComponentUtils.getStandardTable();
   grid.setModel(tm);
   grid.packAll();
   grid.setSelectionModel(selectionModel);
   ComponentUtils.addDeleteAction(grid, deleteAction);
   JScrollPane sp = new JScrollPane(grid);
   return sp;
 }
Example #5
0
 protected TableFormat<Cargo> getTableFormat() {
   String props[] = {
     "clave",
     "sucursal.nombre",
     "fecha",
     "origen",
     "tipoDocto",
     "documento",
     "numeroFiscal",
     "precioNeto",
     "total",
     "devoluciones",
     "descuentos",
     "bonificaciones",
     "descuentoNota",
     "pagos",
     "saldoCalculado",
     "descuentoFinanciero"
   };
   String labels[] = {
     "Cliente",
     "Sucursal",
     "Fecha",
     "Origen",
     "Tipo",
     "Documento",
     "Fiscal",
     "P.N.",
     "Total",
     "Devs",
     "Descs",
     "Bonific",
     "Des(Nota)",
     "Pagos",
     "Saldo",
     "D.F"
   };
   return GlazedLists.tableFormat(Cargo.class, props, labels);
 }
Example #6
0
 @Override
 protected TableFormat getTableFormat() {
   String[] props = {"documento", "tipo", "fecha", "vencimiento", "moneda", "total"};
   String[] labels = {"Documento", "Tipo", "Fecha", "Vto", "Mon", "Total"};
   return GlazedLists.tableFormat(ContraReciboDet.class, props, labels);
 }
Example #7
0
 @Override
 protected TableFormat<Concepto> getTableFormat() {
   final String[] cols = {"id", "clave", "descripcion", "tipo", "clase"};
   final String[] names = {"Id", "Clave", "Descripción", "Tipo", "CLase"};
   return GlazedLists.tableFormat(Concepto.class, cols, names);
 }