OpenConcerto

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

svn://code.openconcerto.org/openconcerto

Rev

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

Rev Author Line No. Line
106 ilm 1
package org.openconcerto.modules.humanresources.travel.expense;
2
 
3
import org.openconcerto.ui.group.Group;
4
import org.openconcerto.ui.group.Item;
5
import org.openconcerto.ui.group.LayoutHints;
6
 
7
public class ExpenseGroup extends Group {
8
 
181 ilm 9
	public ExpenseGroup() {
10
		super(ExpenseSQLElement.ELEMENT_CODE + ".default", LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
11
		final Group g = new Group(ExpenseSQLElement.ELEMENT_CODE + ".identifier");
12
		g.addItem("DATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
13
		g.addItem("ID_USER_COMMON", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
106 ilm 14
 
181 ilm 15
		this.add(g);
106 ilm 16
 
181 ilm 17
		final Group gDescription = new Group(ExpenseSQLElement.ELEMENT_CODE + ".description");
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);
20
		this.add(gDescription);
106 ilm 21
 
181 ilm 22
		final Group gTravel = new Group(ExpenseSQLElement.ELEMENT_CODE + ".travel",
23
				LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
24
		gTravel.addItem("TRAVEL_DISTANCE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
25
		gTravel.addItem("TRAVEL_RATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
26
		gTravel.addItem("TRAVEL_AMOUNT", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
27
		this.add(gTravel);
106 ilm 28
 
181 ilm 29
		final Group gAddress = new Group(ExpenseSQLElement.ELEMENT_CODE + ".misc",
30
				LayoutHints.DEFAULT_SEPARATED_GROUP_HINTS);
31
		gAddress.addItem("MISC_AMOUNT", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
32
		// gAddress.addItem("ID_EXPENSE_STATE", LayoutHints.DEFAULT_LARGE_FIELD_HINTS);
33
		this.add(gAddress);
106 ilm 34
 
181 ilm 35
	}
106 ilm 36
 
37
}