Change the value format of the last progress in

sent communications from subcontractors.

FEA: ItEr75S30SubcontractorIncommingCommunicationsLists
This commit is contained in:
Susana Montes Pedreira 2012-03-22 08:29:44 +00:00
parent 42bc8f9346
commit f6200b56bc
2 changed files with 5 additions and 5 deletions

View file

@ -99,7 +99,7 @@ public class SubcontractorCommunicationValue implements INewObject {
@Override
public String toString() {
String datetime = (date == null) ? "" : new SimpleDateFormat(
"dd/MM/yyyy HH:mm").format(date);
return progress.toString() + " - " + datetime;
"dd/MM/yyyy").format(date);
return progress.toString() + "% - " + datetime;
}
}

View file

@ -64,13 +64,13 @@
<popup id="pp">
<grid id="listingValues" width="300px" fixedLayout="true">
<columns>
<column label="${i18n:_('Date')}" width="150px" sort="auto(date)" sortDirection="descending"/>
<column label="${i18n:_('Progress')}" width="150px" sort="auto(progress)" sortDirection="descending"/>
<column label="${i18n:_('Progress %')}" width="150px"/>
<column label="${i18n:_('Date')}" width="150px"/>
</columns>
<rows>
<row self="@{each='value'}" value="@{value}">
<label value="@{value.date,converter='org.libreplan.web.common.typeconverters.DateConverter'}" />
<label value="@{value.progress}"/>
<label value="@{value.date,converter='org.libreplan.web.common.typeconverters.DateConverter'}" />
</row>
</rows>
</grid>