if (txtTotalDeduction.getValue() != null && txtTotalDeduction.getValue().length() > 0)
totaldeduction = txtTotalDeduction.getValue().substring(0, txtTotalDeduction.getValue().length() - 1);
values.add(new NameValuePair("totaldeduction", totaldeduction));
List<PenaltyDto> listPenalty = centerPanel.getPenaltyDtoList();
PenaltyDto penaltyDto = null;
String penaltys = "";
// Grid 1
for (int j = 0; j < listPenalty.size(); j++) {
penaltyDto = listPenalty.get(j);
/*
* penaltys += DateTimeFormat.getFormat(Constants.DATE_FORMAT).format(penaltyDto.getDate()) + Constants.SEPRATE + numberFormat.format(penaltyDto.getAmount()) + Constants.SEPRATE +
* penaltyDto.getComment() + Constants.SEPRATE;
*/
penaltys += append(penaltyDto.getDate(), penaltyDto.getAmount(), penaltyDto.getComment());
amount += penaltyDto.getAmount();
}
if (penaltys != null && penaltys.length() > 0)
penaltys = penaltys.substring(0, penaltys.length() - 1);
values.add(new NameValuePair(ConstantClient.PENALTYDTO_ID_STR, penaltys));