OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

Rev 106 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 106 Rev 181
Line 5... Line 5...
5
import org.openconcerto.ui.group.LayoutHints;
5
import org.openconcerto.ui.group.LayoutHints;
6
 
6
 
7
public class ExpenseGroup extends Group {
7
public class ExpenseGroup extends Group {
8
 
8
 
9
    public ExpenseGroup() {
9
	public ExpenseGroup() {
10
        super(ExpenseSQLElement.ELEMENT_CODE + ".default");
10
		super(ExpenseSQLElement.ELEMENT_CODE + ".default", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
11
        final Group g = new Group(ExpenseSQLElement.ELEMENT_CODE + ".identifier");
11
		final Group g = new Group(ExpenseSQLElement.ELEMENT_CODE + ".identifier");
12
        g.addItem("DATE");
12
		g.addItem("DATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
13
        g.addItem("ID_USER_COMMON");
13
		g.addItem("ID_USER_COMMON", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
14
 
14
 
15
        this.add(g);
15
		this.add(g);
16
 
16
 
17
        final Group gDescription = new Group(ExpenseSQLElement.ELEMENT_CODE + ".description");
17
		final Group gDescription = new Group(ExpenseSQLElement.ELEMENT_CODE + ".description");
18
        gDescription.add(new Item("DESCRIPTION", new LayoutHints(true, true, true, true, true, true)));
18
		gDescription.addItem("DESCRIPTION", new LayoutHints(true, true, true, true, true, true, true, true));
-
 
19
		gDescription.addItem("ID_EXPENSE_STATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
19
        this.add(gDescription);
20
		this.add(gDescription);
20
 
21
 
21
        final Group gTravel = new Group(ExpenseSQLElement.ELEMENT_CODE + ".travel", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
22
		final Group gTravel = new Group(ExpenseSQLElement.ELEMENT_CODE + ".travel",
-
 
23
				LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
22
        gTravel.addItem("TRAVEL_DISTANCE");
24
		gTravel.addItem("TRAVEL_DISTANCE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
23
        gTravel.addItem("TRAVEL_RATE");
25
		gTravel.addItem("TRAVEL_RATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
24
        gTravel.addItem("TRAVEL_AMOUNT");
26
		gTravel.addItem("TRAVEL_AMOUNT", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
25
        this.add(gTravel);
27
		this.add(gTravel);
26
 
28
 
27
        final Group gAddress = new Group(ExpenseSQLElement.ELEMENT_CODE + ".misc", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
29
		final Group gAddress = new Group(ExpenseSQLElement.ELEMENT_CODE + ".misc",
-
 
30
				LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
28
        gAddress.addItem("MISC_AMOUNT");
31
		gAddress.addItem("MISC_AMOUNT", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
-
 
32
		// gAddress.addItem("ID_EXPENSE_STATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
29
        this.add(gAddress);
33
		this.add(gAddress);
30
 
34
 
31
        final Group gState = new Group(ExpenseSQLElement.ELEMENT_CODE + ".state");
-
 
32
        gState.addItem("ID_EXPENSE_STATE");
-
 
33
 
-
 
34
        this.add(gState);
-
 
35
 
-
 
36
    }
35
	}
37
 
36
 
38
}
37
}