OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 65 | Rev 140 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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