OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 180 | Details | Compare with Previous | Last modification | View Log | RSS feed

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