OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 156 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 156 Rev 177
Line 19... Line 19...
19
import org.openconcerto.erp.core.common.ui.IListFilterDatePanel;
19
import org.openconcerto.erp.core.common.ui.IListFilterDatePanel;
20
import org.openconcerto.erp.core.common.ui.IListTotalPanel;
20
import org.openconcerto.erp.core.common.ui.IListTotalPanel;
21
import org.openconcerto.erp.core.sales.shipment.element.BonDeLivraisonSQLElement;
21
import org.openconcerto.erp.core.sales.shipment.element.BonDeLivraisonSQLElement;
22
import org.openconcerto.erp.core.sales.shipment.report.BonLivraisonXmlSheet;
22
import org.openconcerto.erp.core.sales.shipment.report.BonLivraisonXmlSheet;
23
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
23
import org.openconcerto.erp.model.MouseSheetXmlListeListener;
24
import org.openconcerto.erp.utils.TM;
-
 
25
import org.openconcerto.sql.model.FieldPath;
24
import org.openconcerto.sql.model.FieldPath;
26
import org.openconcerto.sql.model.SQLField;
25
import org.openconcerto.sql.model.SQLField;
27
import org.openconcerto.sql.model.SQLInjector;
26
import org.openconcerto.sql.model.SQLInjector;
28
import org.openconcerto.sql.model.SQLRowAccessor;
27
import org.openconcerto.sql.model.SQLRowAccessor;
29
import org.openconcerto.sql.model.SQLRowValues;
28
import org.openconcerto.sql.model.SQLRowValues;
Line 72... Line 71...
72
        }, false, "sales.shipment.create.invoice");
71
        }, false, "sales.shipment.create.invoice");
73
        toInvoiceAction.setPredicate(IListeEvent.getNonEmptySelectionPredicate());
72
        toInvoiceAction.setPredicate(IListeEvent.getNonEmptySelectionPredicate());
74
 
73
 
75
        // Tabs
74
        // Tabs
76
        final JTabbedPane tabs = new JTabbedPane();
75
        final JTabbedPane tabs = new JTabbedPane();
77
        tabs.addTab(TM.tr("sales.shipment.allShipments"), createAllDeliveryPanel(toInvoiceAction));
76
        tabs.addTab(getConf().getERP_TM().translate("sales.shipment.allShipments"), createAllDeliveryPanel(toInvoiceAction));
78
        tabs.addTab(TM.tr("sales.shipment.nonInvoicedShipments"), createDeliveryWithoutInvoicePanel(toInvoiceAction));
77
        tabs.addTab(getConf().getERP_TM().translate("sales.shipment.nonInvoicedShipments"), createDeliveryWithoutInvoicePanel(toInvoiceAction));
79
        tabs.addTab(TM.tr("sales.shipment.invoicedShipments"), createDeliveryWithInvoicePanel());
78
        tabs.addTab(getConf().getERP_TM().translate("sales.shipment.invoicedShipments"), createDeliveryWithInvoicePanel());
80
        frame.setContentPane(tabs);
79
        frame.setContentPane(tabs);
81
 
80
 
82
        return frame;
81
        return frame;
83
    }
82
    }
84
 
83
 
85
    private ListeAddPanel getPanel(final BonDeLivraisonSQLElement eltCmd, final SQLTableModelSourceOnline tableSource, final List<RowAction> allowedActions) {
84
    private ListeAddPanel getPanel(final BonDeLivraisonSQLElement eltCmd, final SQLTableModelSourceOnline tableSource, final List<RowAction> allowedActions) {
86
        final ListeAddPanel panel = new ListeAddPanel(eltCmd, new IListe(tableSource));
85
        final ListeAddPanel panel = new ListeAddPanel(eltCmd, new IListe(tableSource));
87
 
86
 
88
        final List<SQLField> fields = new ArrayList<SQLField>(2);
87
        final List<SQLField> fields = new ArrayList<SQLField>(2);
89
        fields.add(eltCmd.getTable().getField("TOTAL_HT"));
88
        fields.add(eltCmd.getTable().getField("TOTAL_HT"));
90
        final IListTotalPanel totalPanel = new IListTotalPanel(panel.getListe(), fields, TM.tr("sales.shipment.listTotal"));
89
        final IListTotalPanel totalPanel = new IListTotalPanel(panel.getListe(), fields, getConf().getERP_TM().translate("sales.shipment.listTotal"));
91
 
90
 
92
        final GridBagConstraints c = new DefaultGridBagConstraints();
91
        final GridBagConstraints c = new DefaultGridBagConstraints();
93
        c.gridwidth = GridBagConstraints.REMAINDER;
92
        c.gridwidth = GridBagConstraints.REMAINDER;
94
        c.fill = GridBagConstraints.BOTH;
93
        c.fill = GridBagConstraints.BOTH;
95
        c.anchor = GridBagConstraints.EAST;
94
        c.anchor = GridBagConstraints.EAST;