OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev 174 Rev 185
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 33... Line 33...
33
 
33
 
34
    public BonDeLivraisonItemSQLElement() {
34
    public BonDeLivraisonItemSQLElement() {
35
        super("BON_DE_LIVRAISON_ELEMENT", "un element de bon de livraison", "éléments de bon de livraison");
35
        super("BON_DE_LIVRAISON_ELEMENT", "un element de bon de livraison", "éléments de bon de livraison");
36
    }
36
    }
37
 
37
 
-
 
38
    @Override
-
 
39
    protected void ffInited() {
-
 
40
 
-
 
41
        super.ffInited();
-
 
42
        // Pour empecher la suppression d'une commande liée à un bl
-
 
43
        setAction("ID_COMMANDE_CLIENT_ELEMENT", ReferenceAction.RESTRICT);
-
 
44
    }
-
 
45
 
38
    protected List<String> getListFields() {
46
    protected List<String> getListFields() {
39
        final List<String> l = new ArrayList<String>();
47
        final List<String> l = new ArrayList<String>();
40
        l.add("ID_BON_DE_LIVRAISON");
48
        l.add("ID_BON_DE_LIVRAISON");
41
        l.add("CODE");
49
        l.add("CODE");
42
        l.add("NOM");
50
        l.add("NOM");
Line 47... Line 55...
47
        l.add("QTE_A_LIVRER");
55
        l.add("QTE_A_LIVRER");
48
        l.add("ID_TAXE");
56
        l.add("ID_TAXE");
49
        l.add("POIDS");
57
        l.add("POIDS");
50
        l.add("T_PA_HT");
58
        l.add("T_PA_HT");
51
        l.add("T_PV_HT");
59
        l.add("T_PV_HT");
-
 
60
        l.add("T_PV_TTC");
52
        return l;
61
        return l;
53
    }
62
    }
54
 
63
 
55
    protected List<String> getComboFields() {
64
    protected List<String> getComboFields() {
56
        final List<String> l = new ArrayList<String>();
65
        final List<String> l = new ArrayList<String>();
Line 67... Line 76...
67
    }
76
    }
68
 
77
 
69
    @Override
78
    @Override
70
    public ListMap<String, String> getShowAs() {
79
    public ListMap<String, String> getShowAs() {
71
        final ListMap<String, String> res = new ListMap<String, String>();
80
        final ListMap<String, String> res = new ListMap<String, String>();
72
        res.putCollection("ID_BON_DE_LIVRAISON", "NUMERO");
81
        res.putCollection("ID_BON_DE_LIVRAISON", "NUMERO", "DATE");
73
        return res;
82
        return res;
74
    }
83
    }
75
 
84
 
76
    /*
85
    /*
77
     * (non-Javadoc)
86
     * (non-Javadoc)