OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 132 Rev 156
Line 21... Line 21...
21
import java.util.List;
21
import java.util.List;
22
 
22
 
23
public class CommercialSQLElement extends ComptaSQLConfElement {
23
public class CommercialSQLElement extends ComptaSQLConfElement {
24
 
24
 
25
    public CommercialSQLElement() {
25
    public CommercialSQLElement() {
26
        super("COMMERCIAL", "un commercial", "commerciaux");
26
        super("COMMERCIAL");
27
    }
27
    }
28
 
28
 
29
    public CommercialSQLElement(String tableName, String singular, String plural) {
29
    public CommercialSQLElement(String tableName, String singular, String plural) {
30
        super(tableName, singular, plural);
30
        super(tableName, singular, plural);
31
    }
31
    }
Line 35... Line 35...
35
        l.add("NOM");
35
        l.add("NOM");
36
        l.add("PRENOM");
36
        l.add("PRENOM");
37
        l.add("FONCTION");
37
        l.add("FONCTION");
38
        l.add("TEL_STANDARD");
38
        l.add("TEL_STANDARD");
39
        l.add("TEL_DIRECT");
39
        l.add("TEL_DIRECT");
-
 
40
        if (getTable().contains("ID_POLE_PRODUIT")) {
-
 
41
            l.add("ID_POLE_PRODUIT");
-
 
42
        }
40
        return l;
43
        return l;
41
    }
44
    }
42
 
45
 
43
    protected List<String> getComboFields() {
46
    protected List<String> getComboFields() {
44
        final List<String> l = new ArrayList<String>();
47
        final List<String> l = new ArrayList<String>();
Line 64... Line 67...
64
        return new CommercialSQLComponent(this);
67
        return new CommercialSQLComponent(this);
65
    }
68
    }
66
 
69
 
67
    @Override
70
    @Override
68
    protected String createCode() {
71
    protected String createCode() {
69
        return super.createCodeFromPackage() + ".salesman";
72
        return this.createCodeOfPackage() + ".salesman";
70
    }
73
    }
71
}
74
}