OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 177 Rev 182
Line 1... Line 1...
1
/*
1
/*
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3
 * 
3
 * 
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
4
 * Copyright 2011-2019 OpenConcerto, by ILM Informatique. All rights reserved.
5
 * 
5
 * 
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
6
 * The contents of this file are subject to the terms of the GNU General Public License Version 3
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
7
 * only ("GPL"). You may not use this file except in compliance with the License. You can obtain a
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
8
 * copy of the License at http://www.gnu.org/licenses/gpl-3.0.html See the License for the specific
9
 * language governing permissions and limitations under the License.
9
 * language governing permissions and limitations under the License.
Line 27... Line 27...
27
    }
27
    }
28
 
28
 
29
    @Override
29
    @Override
30
    public ListMap<String, String> getShowAs() {
30
    public ListMap<String, String> getShowAs() {
31
        if (this.getTable().contains("DISTRICT")) {
31
        if (this.getTable().contains("DISTRICT")) {
32
            return ListMap.singleton(null, "RUE", "DISTRICT", "DEPARTEMENT", "CODE_POSTAL", "VILLE");
32
            return ListMap.singleton(null, "DEST", "RUE", "DISTRICT", "DEPARTEMENT", "CODE_POSTAL", "VILLE");
33
        } else {
33
        } else {
34
            return ListMap.singleton(null, "RUE", "CODE_POSTAL", "VILLE");
34
            return ListMap.singleton(null, "DEST", "RUE", "CODE_POSTAL", "VILLE");
35
        }
35
        }
36
    }
36
    }
37
 
37
 
38
    protected List<String> getListFields() {
38
    protected List<String> getListFields() {
39
        final List<String> l = new ArrayList<String>();
39
        final List<String> l = new ArrayList<String>();
-
 
40
        l.add("LIBELLE");
-
 
41
        l.add("DEST");
40
        l.add("RUE");
42
        l.add("RUE");
41
        l.add("CODE_POSTAL");
43
        l.add("CODE_POSTAL");
42
        l.add("VILLE");
44
        l.add("VILLE");
43
        return l;
45
        return l;
44
    }
46
    }