OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 65 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
30 ilm 1
package org.openconcerto.modules.customerrelationship.lead;
2
 
3
import org.openconcerto.ui.group.Group;
4
import org.openconcerto.ui.group.LayoutHints;
5
 
6
public class LeadGroup extends Group {
7
 
8
    public LeadGroup() {
9
        super("customerrelationship.lead.default");
10
        final Group g = new Group("customerrelationship.lead.identifier");
11
        g.add("NUMBER");
12
        g.add("DATE");
13
        g.add("COMPANY", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
14
        this.add(g);
15
 
16
        final Group gContact = new Group("customerrelationship.lead.person");
17
        gContact.add("NAME");
18
        gContact.add("FIRSTNAME");
19
        this.add(gContact, LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
20
 
21
        final Group gCustomer = new Group("customerrelationship.lead.contact");
22
        gCustomer.add("PHONE");
23
        gCustomer.add("MOBILE");
24
        gCustomer.add("FAX");
25
        gCustomer.add("EMAIL", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
26
        gCustomer.add("WEBSITE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
27
        this.add(gCustomer, LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
28
 
29
        final Group gAddress = new Group("customerrelationship.lead.address");
30
        gAddress.add("ID_ADRESSE");
31
        this.add(gAddress, LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
32
 
33
        final Group gInfos = new Group("customerrelationship.lead.info");
34
        gInfos.add("INFORMATION", new LayoutHints(true, true, true, true, true));
35
        gInfos.add("INDUSTRY");
36
        gInfos.add("REVENUE");
37
        gInfos.add("EMPLOYEES");
38
        this.add(gInfos);
39
 
40
        final Group gState = new Group("customerrelationship.lead.state");
41
        gState.add("RATING");
42
        gState.add("SOURCE");
43
        gState.add("STATUS");
44
        gState.add("ID_COMMERCIAL");
45
        this.add(gState);
46
 
47
    }
48
 
49
    public static void main(String[] args) {
50
        final LeadGroup leadGroup = new LeadGroup();
51
        leadGroup.dumpTwoColumn();
52
        leadGroup.dumpOneColumn();
53
    }
54
}