OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 75 Rev 128
Line 4... Line 4...
4
import java.util.List;
4
import java.util.List;
5
 
5
 
6
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
6
import org.openconcerto.erp.core.common.element.ComptaSQLConfElement;
7
import org.openconcerto.sql.element.SQLComponent;
7
import org.openconcerto.sql.element.SQLComponent;
8
import org.openconcerto.sql.element.UISQLComponent;
8
import org.openconcerto.sql.element.UISQLComponent;
9
import org.openconcerto.utils.CollectionMap;
9
import org.openconcerto.utils.ListMap;
10
 
10
 
11
public class ProjectTypeSQLElement extends ComptaSQLConfElement {
11
public class ProjectTypeSQLElement extends ComptaSQLConfElement {
12
 
12
 
13
    public ProjectTypeSQLElement() {
13
    public ProjectTypeSQLElement() {
14
        super("TYPE_AFFAIRE", "un type d'affaire", "types d'affaire");
14
        super("TYPE_AFFAIRE", "un type d'affaire", "types d'affaire");
Line 27... Line 27...
27
        l.add("NOM");
27
        l.add("NOM");
28
        return l;
28
        return l;
29
    }
29
    }
30
 
30
 
31
    @Override
31
    @Override
32
    public CollectionMap<String, String> getShowAs() {
32
    public ListMap<String, String> getShowAs() {
33
        return CollectionMap.singleton(null, getComboFields());
33
        return ListMap.singleton(null, getComboFields());
34
    }
34
    }
35
 
35
 
36
    @Override
36
    @Override
37
    public SQLComponent createComponent() {
37
    public SQLComponent createComponent() {
38
        return new UISQLComponent(this) {
38
        return new UISQLComponent(this) {