OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 174 | Rev 180 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 174 Rev 177
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 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.
10
 * 
10
 * 
11
 * When distributing the software, include this License Header Notice in each file.
11
 * When distributing the software, include this License Header Notice in each file.
12
 */
12
 */
13
 
13
 
14
 package org.openconcerto.erp.core.customerrelationship.customer.element;
14
 package org.openconcerto.erp.core.customerrelationship.customer.element;
15
 
15
 
16
import org.openconcerto.ui.group.Group;
16
import org.openconcerto.ui.group.Group;
17
import org.openconcerto.ui.group.LayoutHints;
17
import org.openconcerto.ui.group.LayoutHints;
18
 
18
 
19
public class CustomerGroup extends Group {
19
public class CustomerGroup extends Group {
20
    public final static String ID = "customerrelationship.customer.default";
20
    public final static String ID = "customerrelationship.customer.default";
21
 
21
 
22
    public CustomerGroup() {
22
    public CustomerGroup() {
23
        super(ID);
23
        super(ID);
24
        final Group g = new Group("customerrelationship.customer.identifier");
24
        final Group g = new Group("customerrelationship.customer.identifier");
25
        g.addItem("CODE");
25
        g.addItem("CODE");
26
        g.addItem("DATE");
26
        g.addItem("DATE");
27
        g.addItem("FORME_JURIDIQUE");
27
        g.addItem("FORME_JURIDIQUE");
28
        g.addItem("GROUPE");
28
        g.addItem("GROUPE");
29
        g.addItem("NOM", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
29
        g.addItem("NOM", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
30
        g.addItem("CATEGORIES");
30
        g.addItem("CATEGORIES");
31
        g.addItem("RESPONSABLE");
31
        g.addItem("RESPONSABLE");
32
        g.addItem("ID_PAYS");
32
        g.addItem("ID_PAYS");
33
 
33
 
34
        g.addItem("TEL");
34
        g.addItem("TEL");
35
        g.addItem("TEL_P");
35
        g.addItem("TEL_P");
36
        g.addItem("MAIL", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
36
        g.addItem("MAIL", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
37
        g.addItem("FAX");
37
        g.addItem("FAX");
38
        g.addItem("SITE_INTERNET", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
38
        g.addItem("SITE_INTERNET", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
39
 
39
 
40
        g.addItem("SIRET");
40
        g.addItem("SIRET");
41
        g.addItem("NUMERO_TVA");
41
        g.addItem("NUMERO_TVA");
42
 
42
 
43
        g.addItem("BLOQUE");
43
        g.addItem("BLOQUE");
44
        g.addItem("BLOQUE_LIVRAISON");
44
        g.addItem("BLOQUE_LIVRAISON");
45
 
45
 
46
        this.add(g);
46
        this.add(g);
47
 
47
 
48
        // this.add(new Group("customerrelationship.customer.additionalElementFields"));
48
        // this.add(new Group("customerrelationship.customer.additionalElementFields"));
49
 
49
 
50
        final Group gAddress = new Group("customerrelationship.customer.address", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
50
        final Group gAddress = new Group("customerrelationship.customer.address", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
51
        // gAddress.addItem("ID_ADRESSE", new LayoutHints(true, true, true, true, true, false, true,
51
        // gAddress.addItem("ID_ADRESSE", new LayoutHints(true, true, true, true, true, false, true,
52
        // true));
52
        // true));
53
        // gAddress.addItem("ID_ADRESSE_F", new LayoutHints(true, true, true, true, true, false,
53
        // gAddress.addItem("ID_ADRESSE_F", new LayoutHints(true, true, true, true, true, false,
54
        // true, true));
54
        // true, true));
55
        // gAddress.addItem("ID_ADRESSE_L");
55
        // gAddress.addItem("ID_ADRESSE_L");
56
        gAddress.addItem("customerrelationship.customer.addresses", new LayoutHints(true, true, true, true, true, true, true, true));
56
        gAddress.addItem("customerrelationship.customer.addresses", new LayoutHints(true, true, true, true, true, true, true, true));
57
 
57
 
58
        this.add(gAddress);
58
        this.add(gAddress);
59
 
59
 
60
        final Group gContact = new Group("customerrelationship.customer.contact", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
60
        final Group gContact = new Group("customerrelationship.customer.contact", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
61
        gContact.addItem("customerrelationship.customer.contacts", new LayoutHints(true, true, true, true, true, true, true, true));
61
        gContact.addItem("customerrelationship.customer.contacts", new LayoutHints(true, true, true, true, true, true, true, true));
62
        this.add(gContact);
62
        this.add(gContact);
63
 
63
 
64
        final Group gProspect = new Group("customerrelationship.customer.lead", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
64
        final Group gProspect = new Group("customerrelationship.customer.lead", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
65
        gProspect.addItem("ACCEPTE_TEL");
65
        gProspect.addItem("ACCEPTE_TEL");
66
        gProspect.addItem("ACCEPTE_SMS");
66
        gProspect.addItem("ACCEPTE_SMS");
67
        gProspect.addItem("ACCEPTE_EMAIL");
67
        gProspect.addItem("ACCEPTE_EMAIL");
68
        gProspect.addItem("ACCEPTE_COURRIER");
68
        gProspect.addItem("ACCEPTE_COURRIER");
69
        this.add(gProspect);
69
        this.add(gProspect);
70
 
70
 
71
        final Group gPayment = new Group("customerrelationship.customer.payment", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
71
        final Group gPayment = new Group("customerrelationship.customer.payment", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
72
        gPayment.addItem("RIB", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
72
        gPayment.addItem("RIB", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
73
        gPayment.addItem("CENTRE_GESTION", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
73
        gPayment.addItem("CENTRE_GESTION", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
74
        gPayment.addItem("IBAN", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
74
        gPayment.addItem("IBAN", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
75
        gPayment.addItem("BIC", LayoutHints.DEFAULT_FIELD_HINTS);
75
        gPayment.addItem("BIC", LayoutHints.DEFAULT_FIELD_HINTS);
76
        gPayment.addItem("ID_MODE_REGLEMENT", new LayoutHints(true, true, true, true, true, false, true, true));
76
        gPayment.addItem("ID_MODE_REGLEMENT", new LayoutHints(true, true, true, true, true, false, true, true));
77
        gPayment.addItem("ID_COMPTE_PCE");
77
        gPayment.addItem("ID_COMPTE_PCE");
-
 
78
        gPayment.addItem("ID_SEPA_MANDATE_DEFAULT");
78
        gPayment.addItem("ENCOURS_MAX");
79
        gPayment.addItem("ENCOURS_MAX");
79
        gPayment.addItem("ID_COMPTE_PCE_PRODUIT");
80
        gPayment.addItem("ID_COMPTE_PCE_PRODUIT");
80
        gPayment.addItem("ID_COMPTE_PCE_SERVICE");
81
        gPayment.addItem("ID_COMPTE_PCE_SERVICE");
81
        gPayment.addItem("ID_DEVISE");
82
        gPayment.addItem("ID_DEVISE");
82
        gPayment.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
83
        gPayment.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
83
        gPayment.addItem("NOTE_FINANCIERE", LayoutHints.DEFAULT_VERY_LARGE_FIELD_HINTS);
84
        gPayment.addItem("NOTE_FINANCIERE", LayoutHints.DEFAULT_VERY_LARGE_FIELD_HINTS);
84
        gPayment.addItem("METHODE_RELANCE");
85
        gPayment.addItem("METHODE_RELANCE");
85
        this.add(gPayment);
86
        this.add(gPayment);
86
 
87
 
87
        final Group gState = new Group("customerrelationship.customer.sales", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
88
        final Group gState = new Group("customerrelationship.customer.sales", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
88
        gState.addItem("ID_COMMERCIAL");
89
        gState.addItem("ID_COMMERCIAL");
89
        gState.addItem("ID_LANGUE");
90
        gState.addItem("ID_LANGUE");
90
        gState.addItem("ID_TARIF");
91
        gState.addItem("ID_TARIF");
91
        gState.addItem("ID_CATEGORIE_COMPTABLE");
92
        gState.addItem("ID_CATEGORIE_COMPTABLE");
92
        gState.addItem("ID_FRAIS_DOCUMENT");
93
        gState.addItem("ID_FRAIS_DOCUMENT");
93
 
94
 
94
        final Group gCustomProduct = new Group("customerrelationship.customer.customproduct", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
95
        final Group gCustomProduct = new Group("customerrelationship.customer.customproduct", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
95
        gCustomProduct.addItem("customerrelationship.customer.customproduct", new LayoutHints(true, true, true, true, true, true, true, true));
96
        gCustomProduct.addItem("customerrelationship.customer.customproduct", new LayoutHints(true, true, true, true, true, true, true, true));
96
        this.add(gCustomProduct);
97
        this.add(gCustomProduct);
97
        final Group gCustomRemiseProduct = new Group("customerrelationship.customer.customtarif", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
98
        final Group gCustomRemiseProduct = new Group("customerrelationship.customer.customtarif", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
98
        gCustomRemiseProduct.addItem("customerrelationship.customer.customtarif", new LayoutHints(true, true, true, true, true, true, true, true));
99
        gCustomRemiseProduct.addItem("customerrelationship.customer.customtarif", new LayoutHints(true, true, true, true, true, true, true, true));
99
        this.add(gCustomRemiseProduct);
100
        this.add(gCustomRemiseProduct);
100
 
101
 
101
        this.add(gState);
102
        this.add(gState);
102
        final Group gInfo = new Group("customerrelationship.customer.info", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
103
        final Group gInfo = new Group("customerrelationship.customer.info", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
103
        gInfo.addItem("CODE_FOURNISSEUR");
104
        gInfo.addItem("CODE_FOURNISSEUR");
104
        gInfo.addItem("REMIND_DATE");
105
        gInfo.addItem("REMIND_DATE");
105
        gInfo.addItem("CONDITIONS_LIVRAISON", new LayoutHints(true, true, true, true, true, true, true, true));
106
        gInfo.addItem("CONDITIONS_LIVRAISON", new LayoutHints(true, true, true, true, true, true, true, true));
106
        gInfo.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
107
        gInfo.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
107
        gInfo.addItem("COMMENTAIRES", new LayoutHints(true, true, true, true, true, true, true, true));
108
        gInfo.addItem("COMMENTAIRES", new LayoutHints(true, true, true, true, true, true, true, true));
108
        gInfo.addItem("OBSOLETE");
109
        gInfo.addItem("OBSOLETE");
109
        this.add(gInfo);
110
        this.add(gInfo);
110
 
111
 
111
    }
112
    }
112
}
113
}