ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : [Bug #539]
This bug was fixed with the following patch : ItEr60S04ValidacionEProbasFuncionaisItEr59S04 : It fixes the template screen. This patch adds to the aplications list of a template the name of the order element. Also, assigns correctly the template to the order when the order is created from a template.
This commit is contained in:
parent
ef5e7f69fd
commit
6637da457c
3 changed files with 10 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ public class OrderTemplate extends OrderLineGroupTemplate {
|
|||
order.useSchedulingDataFor(currentScenario);
|
||||
order.setInitDate(today());
|
||||
order.setCalendar(calendar);
|
||||
order.initializeTemplate(this);
|
||||
return setupGroupParts(setupSchedulingStateType(order));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ public class OrderElementHistoricAssignmentDTO {
|
|||
|
||||
public final String orderCode;
|
||||
public final String orderElementCode;
|
||||
private final String name;
|
||||
public final String estimatedHours;
|
||||
public final String workedHours;
|
||||
public final OrderElement orderElement;
|
||||
|
|
@ -44,6 +45,7 @@ public class OrderElementHistoricAssignmentDTO {
|
|||
this.order = order;
|
||||
this.orderCode = order.getCode();
|
||||
this.orderElementCode = orderElement.getCode();
|
||||
this.name = orderElement.getName();
|
||||
this.estimatedHours = estimatedHours;
|
||||
this.workedHours = workedHours;
|
||||
}
|
||||
|
|
@ -72,4 +74,8 @@ public class OrderElementHistoricAssignmentDTO {
|
|||
return order;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,14 +33,16 @@
|
|||
<columns>
|
||||
<column label="${i18n:_('Order code')}" sort="orderCode" sortDirection="descending"/>
|
||||
<column label="${i18n:_('Order element code')}" sort="auto(name)" sortDirection="descending"/>
|
||||
<column label="${i18n:_('Name')}" width="250px" sort="auto(name)" sortDirection="descending"/>
|
||||
<column label="${i18n:_('Estimated hours')}" />
|
||||
<column label="${i18n:_('worked hours')}" />
|
||||
<column label="${i18n:_('Operations')}" />
|
||||
<column label="${i18n:_('Operations')}" align="center" width="100px" />
|
||||
</columns>
|
||||
<rows>
|
||||
<row self="@{each='orderElementDTO'}" value="@{orderElementDTO}">
|
||||
<label value="@{orderElementDTO.orderCode}"/>
|
||||
<label value="@{orderElementDTO.orderElementCode}"/>
|
||||
<label value="@{orderElementDTO.name}"/>
|
||||
<label value="@{orderElementDTO.estimatedHours}"/>
|
||||
<label value="@{orderElementDTO.workedHours}"/>
|
||||
<button label="${i18n:_('View')}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue