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 | 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
 *
4
 * Copyright 2011 OpenConcerto, by ILM Informatique. All rights reserved.
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
 
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));
62
        this.add(gContact);
63
 
151 ilm 64
        final Group gProspect = new Group("customerrelationship.customer.lead", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
65
        gProspect.addItem("ACCEPTE_TEL");
66
        gProspect.addItem("ACCEPTE_SMS");
67
        gProspect.addItem("ACCEPTE_EMAIL");
68
        gProspect.addItem("ACCEPTE_COURRIER");
69
        this.add(gProspect);
156 ilm 70
 
93 ilm 71
        final Group gPayment = new Group("customerrelationship.customer.payment", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
94 ilm 72
        gPayment.addItem("RIB", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
93 ilm 73
        gPayment.addItem("CENTRE_GESTION", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
151 ilm 74
        gPayment.addItem("IBAN", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
75
        gPayment.addItem("BIC", LayoutHints.DEFAULT_FIELD_HINTS);
93 ilm 76
        gPayment.addItem("ID_MODE_REGLEMENT", new LayoutHints(true, true, true, true, true, false, true, true));
77
        gPayment.addItem("ID_COMPTE_PCE");
177 ilm 78
        gPayment.addItem("ID_SEPA_MANDATE_DEFAULT");
93 ilm 79
        gPayment.addItem("ENCOURS_MAX");
80
        gPayment.addItem("ID_COMPTE_PCE_PRODUIT");
81
        gPayment.addItem("ID_COMPTE_PCE_SERVICE");
82
        gPayment.addItem("ID_DEVISE");
83
        gPayment.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
84
        gPayment.addItem("NOTE_FINANCIERE", LayoutHints.DEFAULT_VERY_LARGE_FIELD_HINTS);
85
        gPayment.addItem("METHODE_RELANCE");
86
        this.add(gPayment);
87
 
88
        final Group gState = new Group("customerrelationship.customer.sales", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
89
        gState.addItem("ID_COMMERCIAL");
90
        gState.addItem("ID_LANGUE");
91
        gState.addItem("ID_TARIF");
156 ilm 92
        gState.addItem("ID_CATEGORIE_COMPTABLE");
93
        gState.addItem("ID_FRAIS_DOCUMENT");
93 ilm 94
 
144 ilm 95
        final Group gCustomProduct = new Group("customerrelationship.customer.customproduct", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
96
        gCustomProduct.addItem("customerrelationship.customer.customproduct", new LayoutHints(true, true, true, true, true, true, true, true));
97
        this.add(gCustomProduct);
174 ilm 98
        final Group gCustomRemiseProduct = new Group("customerrelationship.customer.customtarif", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
99
        gCustomRemiseProduct.addItem("customerrelationship.customer.customtarif", new LayoutHints(true, true, true, true, true, true, true, true));
100
        this.add(gCustomRemiseProduct);
144 ilm 101
 
93 ilm 102
        this.add(gState);
103
        final Group gInfo = new Group("customerrelationship.customer.info", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
144 ilm 104
        gInfo.addItem("CODE_FOURNISSEUR");
142 ilm 105
        gInfo.addItem("REMIND_DATE");
144 ilm 106
        gInfo.addItem("CONDITIONS_LIVRAISON", new LayoutHints(true, true, true, true, true, true, true, true));
94 ilm 107
        gInfo.addItem("INFOS", new LayoutHints(true, true, true, true, true, true, true, true));
93 ilm 108
        gInfo.addItem("COMMENTAIRES", new LayoutHints(true, true, true, true, true, true, true, true));
132 ilm 109
        gInfo.addItem("OBSOLETE");
93 ilm 110
        this.add(gInfo);
111
 
112
    }
113
}