OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 57 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 57 Rev 180
Line 14... Line 14...
14
 package org.openconcerto.erp.core.common.element;
14
 package org.openconcerto.erp.core.common.element;
15
 
15
 
16
import org.openconcerto.sql.element.BaseSQLComponent;
16
import org.openconcerto.sql.element.BaseSQLComponent;
17
import org.openconcerto.sql.element.SQLComponent;
17
import org.openconcerto.sql.element.SQLComponent;
18
import org.openconcerto.ui.DefaultGridBagConstraints;
18
import org.openconcerto.ui.DefaultGridBagConstraints;
-
 
19
import org.openconcerto.sql.model.Where;
-
 
20
import org.openconcerto.sql.request.ComboSQLRequest;
19
 
21
 
20
import java.awt.GridBagConstraints;
22
import java.awt.GridBagConstraints;
21
import java.awt.GridBagLayout;
23
import java.awt.GridBagLayout;
22
import java.util.ArrayList;
24
import java.util.ArrayList;
23
import java.util.List;
25
import java.util.List;
Line 31... Line 33...
31
    public TitrePersonnelSQLElement() {
33
    public TitrePersonnelSQLElement() {
32
        super("TITRE_PERSONNEL", "un titre personnel", "titres personnels");
34
        super("TITRE_PERSONNEL", "un titre personnel", "titres personnels");
33
    }
35
    }
34
 
36
 
35
    @Override
37
    @Override
-
 
38
    protected void _initComboRequest(ComboSQLRequest req) {
-
 
39
        super._initComboRequest(req);
-
 
40
        req.setWhere(new Where(getTable().getField("OBSOLETE"), "=", Boolean.FALSE));      
-
 
41
    }
-
 
42
    
-
 
43
    @Override
36
    public boolean isShared() {
44
    public boolean isShared() {
37
        return true;
45
        return true;
38
    }
46
    }
39
 
47
 
40
    protected List<String> getListFields() {
48
    protected List<String> getListFields() {
41
        final List<String> l = new ArrayList<String>();
49
        final List<String> l = new ArrayList<String>();
42
        l.add("CODE");
50
        l.add("CODE");
43
        l.add("NOM");
51
        l.add("NOM");
44
        l.add("SEXE_M");
52
        l.add("SEXE_M");
-
 
53
        l.add("OBSOLETE");
45
        return l;
54
        return l;
46
    }
55
    }
47
 
56
 
48
    protected List<String> getComboFields() {
57
    protected List<String> getComboFields() {
49
        final List<String> l = new ArrayList<String>();
58
        final List<String> l = new ArrayList<String>();