+ lib.util.Date.format(q.getDataParecer(),
lib.util.Date.FORMATO1) + "</P>");
}
}
Address end = q.getEnderecoSolicitante();
if (end != null) {
out.println("<P>Complainer's address: " + end.getStreet() + ","
+ end.getComplement() + " Province: "
+ end.getNeighbourhood() + " </P>");
out.println("<P>ZIP code: " + end.getZip() + " City: "
+ end.getCity() + " State: " + end.getState() + "</P>");
out.println("<P> Phone number: " + end.getPhone() + "</P>");
}
if (q instanceof FoodComplaint) {
out.println("<P>Amount of people that ate the meal: "
+ ((FoodComplaint) q).getQtdeComensais() + "</P>");
out.println("<P>Amount of sick people: "
+ ((FoodComplaint) q).getQtdeDoentes() + "</P>");
out.println("<P>Amount of people checked into a hospital: "
+ ((FoodComplaint) q).getQtdeInternacoes() + "</P>");
out.println("<P>Amount of deaths: "
+ ((FoodComplaint) q).getQtdeObitos() + "</P>");
out.println("<P>Place of medical care: "
+ ((FoodComplaint) q).getLocalAtendimento() + "</P>");
out.println("<P>Suspicious meal: "
+ ((FoodComplaint) q).getRefeicaoSuspeita() + "</P>");
end = ((FoodComplaint) q).getEnderecoDoente();
if (end != null) {
out.println("<P>Person sick's address: " + end.getStreet()
+ "," + end.getComplement() + " Province: "
+ end.getNeighbourhood() + " </P>");
out.println("<P>ZIP code: " + end.getZip() + " City: "
+ end.getCity() + " State: " + end.getState()
+ "</P>");
out.println("<P> Phone number: " + end.getPhone() + "</P>");
}
}
if (q instanceof AnimalComplaint) {
out.println("<P>Animal: " + ((AnimalComplaint) q).getAnimal()
+ "</P>");
out.println("<P>Amount of animals: "
+ ((AnimalComplaint) q).getAnimalQuantity() + "</P>");
if (((AnimalComplaint) q).getInconvenienceDate() != null) {
out.println("<P>Date: "
+ lib.util.Date.format(((AnimalComplaint) q)
.getInconvenienceDate(),
lib.util.Date.FORMATO1) + "</P>");
}
end = ((AnimalComplaint) q).getOccurenceLocalAddress();
if (end != null) {
out.println("<P>Person sick's address: " + end.getStreet()
+ "," + end.getComplement() + " Province: "
+ end.getNeighbourhood() + " </P>");
out.println("<P>ZIP code: " + end.getZip() + " City: "
+ end.getCity() + " State: " + end.getState()
+ "</P>");
out.println("<P> Phone number: " + end.getPhone() + "</P>");
}
}
if (q instanceof SpecialComplaint) {
out.println("<P>Years old: "
+ ((SpecialComplaint) q).getIdade() + "</P>");
out.println("<P>School level: "
+ ((SpecialComplaint) q).getInstrucao() + "</P>");
out.println("<P>Ocuppation: "
+ ((SpecialComplaint) q).getOcupacao() + "</P>");
end = ((SpecialComplaint) q).getEnderecoOcorrencia();
if (end != null) {
out.println("<P>Person sick's address: " + end.getStreet()
+ "," + end.getComplement() + " Province: "
+ end.getNeighbourhood() + " </P>");
out.println("<P>ZIP code: " + end.getZip() + " City: "
+ end.getCity() + " State: " + end.getState()
+ "</P>");
out.println("<P> Phone number: " + end.getPhone() + "</P>");
}
}
out.println(HTMLCode.closeQueries());
} catch (ObjectNotFoundException e) {