write(buf,"");
result+="\n";
write(buf,"E" + team.getId()+" ("+place.getName()+"):");
result+="E" + team.getId()+" ("+place.getName()+"):\n";
for(int j=1; j<=team.getHozzarendeltMunkak().gmMeret(); j++){
GeomPack pack = (GeomPack)team.getHozzarendeltMunkak().gmIedikElem(j);
GeomPlace newplace = pack.getWork().getPlace();
if(!newplace.equals(place)){
int utazasiKoltseg = res.matrixRoadCost.getElementByIndex(place.getId(), newplace.getId());
write(buf," utazas: " + newplace.getName() + " (ktg:"+ utazasiKoltseg +")");
result+= " utazas: " + newplace.getName() + " (ktg:"+ utazasiKoltseg +")\n";
lefoglaltIdo += utazasiKoltseg;
place = newplace;
}
lefoglaltIdo += pack.getEnd()-pack.getBegin();
write(buf," M" + pack.getWork().getId()+" [" + pack.getBegin() + "-" + pack.getEnd() + "]");
result+= " M" + pack.getWork().getId()+" [" + pack.getBegin() + "-" + pack.getEnd() + "]\n";
}
int teljesIdo = team.getIdoablak().getY()-team.getIdoablakEredetiKezdete();
szummaEroforrasTeljesIdo += teljesIdo;
szummaEroforrasLefoglaltIdo += lefoglaltIdo;
int kihasznaltsag = (100*lefoglaltIdo) / teljesIdo;