OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 142 Rev 156
Line 11... Line 11...
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.core.sales.product.element;
14
 package org.openconcerto.erp.core.sales.product.element;
15
 
15
 
-
 
16
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
16
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.ConfSQLElement;
-
 
18
import org.openconcerto.sql.element.SQLComponent;
18
import org.openconcerto.sql.element.SQLComponent;
-
 
19
import org.openconcerto.sql.model.DBRoot;
19
import org.openconcerto.sql.sqlobject.ElementComboBox;
20
import org.openconcerto.sql.sqlobject.ElementComboBox;
20
import org.openconcerto.sql.sqlobject.SQLRequestComboBox;
-
 
21
import org.openconcerto.ui.DefaultGridBagConstraints;
21
import org.openconcerto.ui.DefaultGridBagConstraints;
22
import org.openconcerto.utils.ListMap;
22
import org.openconcerto.utils.ListMap;
23
 
23
 
24
import java.awt.GridBagConstraints;
24
import java.awt.GridBagConstraints;
25
import java.awt.GridBagLayout;
25
import java.awt.GridBagLayout;
Line 27... Line 27...
27
import java.util.List;
27
import java.util.List;
28
 
28
 
29
import javax.swing.JLabel;
29
import javax.swing.JLabel;
30
import javax.swing.JTextField;
30
import javax.swing.JTextField;
31
 
31
 
32
public class EcoContributionSQLElement extends ConfSQLElement {
32
public class EcoContributionSQLElement extends ComptaSQLConfElement {
33
 
33
 
34
    public EcoContributionSQLElement() {
34
    public EcoContributionSQLElement(final DBRoot root) {
35
        super("ECO_CONTRIBUTION");
35
        super(root.getTable("ECO_CONTRIBUTION"));
-
 
36
    }
-
 
37
 
-
 
38
    @Override
-
 
39
    protected String createCode() {
-
 
40
        return this.createCodeOfPackage() + ".ewaste-tax";
36
    }
41
    }
37
 
42
 
38
    protected List<String> getListFields() {
43
    protected List<String> getListFields() {
39
        final List<String> list = new ArrayList<String>(2);
44
        final List<String> list = new ArrayList<String>(2);
40
        list.add("ID_FAMILLE_ECO_CONTRIBUTION");
45
        list.add("ID_FAMILLE_ECO_CONTRIBUTION");