Added empty cell renderer to criterion to include the cost category

FEA: ItEr77S17AutomaticBudgeting
This commit is contained in:
Lorenzo Tilve Álvaro 2013-06-06 19:17:56 +02:00
parent e5450066de
commit 4408f965d1
2 changed files with 8 additions and 1 deletions

View file

@ -179,6 +179,11 @@ public class CriterionTreeController extends GenericForwardComposer {
tr.setDraggable("true");
tr.setDroppable("true");
// Treecell with the code of the Criterion
Treecell cellForCostCategory = new Treecell();
Textbox costCategoryLabel = new Textbox("Cost category combo");
cellForCostCategory.appendChild(costCategoryLabel);
// Treecell with the code of the Criterion
Treecell cellForCode = new Treecell();
cellForCode.setStyle("center");
@ -200,6 +205,7 @@ public class CriterionTreeController extends GenericForwardComposer {
}));
cellForName.setParent(tr);
cellForCostCategory.setParent(tr);
cellForCode.setParent(tr);
cellForActive.setParent(tr);

View file

@ -39,7 +39,8 @@
sclass="orderTree" fixedLayout="true" mold="paging">
<treecols sizable="true">
<treecol label="${i18n:_('Name')}" />
<treecol width="250px" label="${i18n:_('Code')}" />
<treecol width="200px" label="${i18n:_('Cost category')}" />
<treecol width="200px" label="${i18n:_('Code')}" />
<treecol width="60px" align="center" label="${i18n:_('Active')}" />
<treecol width="150px" align="center" label="${i18n:_('Operations')}" />
</treecols>