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 ProjectStateSQLElement extends ComptaSQLConfElement {
11
public class ProjectStateSQLElement extends ComptaSQLConfElement {
12
    public static int A_TRAITER = 2;
12
    public static int A_TRAITER = 2;
13
    public static int EN_COURS = 3;
13
    public static int EN_COURS = 3;
14
    public static int TRAITEMENT_TERMINE = 4;
14
    public static int TRAITEMENT_TERMINE = 4;
Line 32... Line 32...
32
        l.add("NOM");
32
        l.add("NOM");
33
        return l;
33
        return l;
34
    }
34
    }
35
 
35
 
36
    @Override
36
    @Override
37
    public CollectionMap<String, String> getShowAs() {
37
    public ListMap<String, String> getShowAs() {
38
        return CollectionMap.singleton(null, getComboFields());
38
        return ListMap.singleton(null, getComboFields());
39
    }
39
    }
40
 
40
 
41
    @Override
41
    @Override
42
    public SQLComponent createComponent() {
42
    public SQLComponent createComponent() {
43
        return new UISQLComponent(this) {
43
        return new UISQLComponent(this) {