OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 132 | Rev 144 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 132 Rev 142
Line 21... Line 21...
21
import org.openconcerto.sql.Configuration;
21
import org.openconcerto.sql.Configuration;
22
import org.openconcerto.sql.element.BaseSQLComponent;
22
import org.openconcerto.sql.element.BaseSQLComponent;
23
import org.openconcerto.sql.element.SQLComponent;
23
import org.openconcerto.sql.element.SQLComponent;
24
import org.openconcerto.sql.sqlobject.ElementComboBox;
24
import org.openconcerto.sql.sqlobject.ElementComboBox;
25
import org.openconcerto.sql.users.rights.UserRightsManager;
25
import org.openconcerto.sql.users.rights.UserRightsManager;
26
import org.openconcerto.sql.view.list.SQLTableModelSourceOnline;
26
import org.openconcerto.sql.view.list.SQLTableModelSource;
27
import org.openconcerto.ui.DefaultGridBagConstraints;
27
import org.openconcerto.ui.DefaultGridBagConstraints;
28
 
28
 
29
import java.awt.GridBagConstraints;
29
import java.awt.GridBagConstraints;
30
import java.awt.GridBagLayout;
30
import java.awt.GridBagLayout;
31
import java.util.ArrayList;
31
import java.util.ArrayList;
Line 55... Line 55...
55
     * 
55
     * 
56
     * @see org.openconcerto.devis.BaseSQLElement#getComboFields()
56
     * @see org.openconcerto.devis.BaseSQLElement#getComboFields()
57
     */
57
     */
58
    protected List<String> getComboFields() {
58
    protected List<String> getComboFields() {
59
        List<String> l = new ArrayList<String>();
59
        List<String> l = new ArrayList<String>();
-
 
60
        l.add("NIVEAU");
60
        l.add("CODE");
61
        l.add("CODE");
61
        l.add("NOM");
62
        l.add("NOM");
62
        l.add("PV_HT");
63
        l.add("PV_HT");
63
        l.add("ID_TAXE");
64
        l.add("ID_TAXE");
64
        l.add("POIDS");
65
        l.add("POIDS");
65
        return l;
66
        return l;
66
    }
67
    }
67
 
68
 
68
    @Override
69
    @Override
69
    protected SQLTableModelSourceOnline createTableSource() {
70
    protected synchronized void _initTableSource(final SQLTableModelSource table) {
70
 
-
 
71
        SQLTableModelSourceOnline table = super.createTableSource();
-
 
72
        return table;
71
        super._initTableSource(table);
73
    }
72
    }
74
 
73
 
75
    /*
74
    /*
76
     * (non-Javadoc)
75
     * (non-Javadoc)
77
     * 
76
     * 
Line 92... Line 91...
92
            if (UserRightsManager.getCurrentUserRights().haveRight(AbstractVenteArticleItemTable.SHOW_PRIX_ACHAT_CODE)) {
91
            if (UserRightsManager.getCurrentUserRights().haveRight(AbstractVenteArticleItemTable.SHOW_PRIX_ACHAT_CODE)) {
93
                l.add("PA_HT");
92
                l.add("PA_HT");
94
            }
93
            }
95
            l.add("PV_HT");
94
            l.add("PV_HT");
96
        l.add("QTE");
95
        l.add("QTE");
-
 
96
        if (getTable().contains("ID_ECO_CONTRIBUTION")) {
-
 
97
            l.add("ID_ECO_CONTRIBUTION");
-
 
98
            l.add("ECO_CONTRIBUTION");
-
 
99
            l.add("T_ECO_CONTRIBUTION");
-
 
100
        }
97
        l.add("T_PV_HT");
101
        l.add("T_PV_HT");
98
        l.add("T_PV_TTC");
102
        l.add("T_PV_TTC");
99
 
103
 
100
        return l;
104
        return l;
101
    }
105
    }