if (list.get(i).getMarche() != null && !lstKeys.contains(list.get(i).getMarche().getLabel())) {
lstKeys.add(list.get(i).getMarche().getLabel());
keys += list.get(i).getMarche().getLabel() + Constants.SEPRATE;
}
}
GestionDto gestionDto = null;
String alltotalgestion = "";
double allamount = 0.0;
double allavenants = 0.0;
double allarrete = 0.0;
double allnonarrete = 0.0;
double allprovision = 0.0;
double alldevisrefuse = 0.0;
double allreelactivitive = 0.0;
double allamount2 = 0.0;
double alltotalecart = 0.0;
double alltotalfdc = 0.0;
String summary = "";
String budget = "";
for (int i = 0; i < lstKeys.size(); i++) {
String gestion = "";
String totalgestion = "";
double amount = 0.0;
double avenants = 0.0;
double arrete = 0.0;
double nonarrete = 0.0;
double provision = 0.0;
double devisrefuse = 0.0;
double reelactivitive = 0.0;
double amount2 = 0.0;
String gestionComment = "";
double totalfdcSum = 0.0;
double ecartSum = 0.0;
for (int j = 0; j < list.size(); j++) {
gestionDto = list.get(j);
if (lstKeys.get(i).equalsIgnoreCase(gestionDto.getMarche().getLabel())) {
String tmp = gestionDto.getMarche().getLabel() + " " + gestionDto.getTraite();
gestionComment = gestionDto.getComment() != null ? gestionDto.getComment() : "";
/*
* gestion += gestionDto.getDevis() + Constants.SEPRATE + gestionDto.getStatut().getLabel() + Constants.SEPRATE + gestionDto.getLabel() + Constants.SEPRATE + gestionComment +
* Constants.SEPRATE + gestionDto.getAmount() + Constants.SEPRATE + tmp + Constants.SEPRATE + gestionDto.getArrete() + Constants.SEPRATE + gestionDto.getNonArrete() +
* Constants.SEPRATE + gestionDto.getProvision() + Constants.SEPRATE + gestionDto.getDevisRefuse() + Constants.SEPRATE + calculateTotalFdc(gestionDto) + Constants.SEPRATE +
* gestionDto.getReelActivitive() + Constants.SEPRATE + gestionDto.getType().getLabel() + Constants.SEPRATE + gestionDto.getLabel2() + Constants.SEPRATE + gestionDto.getAmount2() +
* Constants.SEPRATE + calculateEcart(gestionDto) + Constants.SEPRATE;
*/
gestion += append(gestionDto.getDevis(), gestionDto.getStatut().getLabel(), gestionDto.getLabel(), gestionComment, gestionDto.getAmount(), tmp, gestionDto.getArrete(),
gestionDto.getNonArrete(), gestionDto.getProvision(), gestionDto.getDevisRefuse(), calculateTotalFdc(gestionDto), gestionDto.getReelActivitive(), gestionDto.getType()
.getLabel(), gestionDto.getLabel2(), gestionDto.getAmount2(), calculateEcart(gestionDto));
// Sum Group
amount += gestionDto.getAmount();
avenants += gestionDto.getTraite();
arrete += gestionDto.getArrete();
nonarrete += gestionDto.getNonArrete();
provision += gestionDto.getProvision();
devisrefuse += gestionDto.getDevisRefuse();
reelactivitive += gestionDto.getReelActivitive();
amount2 += gestionDto.getAmount2();
totalfdcSum += calculateTotalFdc(gestionDto);
ecartSum += calculateEcart(gestionDto);
}
}
allamount += amount;