params.put("numeroIndirizzo", ticket.getNumeroIndirizzo());
params.put("telefono", ticket.getTelefono());
params.put("email", ticket.getEmail());
params.put("message", ticket.getMessage());
ITicketManager ticketManager = this.getTicketManager();
String userInterventionTypeDescr = null;
if (ticket.getUserInterventionType()>0) {
InterventionType userInterventionType = ticketManager.getInterventionType(ticket.getUserInterventionType());
if (null!=userInterventionType) {
userInterventionTypeDescr = userInterventionType.getDescr();
}
}
if (null==userInterventionTypeDescr) {
userInterventionTypeDescr = "Generico";
}
params.put("userInterventionType", userInterventionTypeDescr);
String assignedInterventionTypeDescr = null;
if (ticket.getOpInterventionType()>0) {
InterventionType opInterventionType = ticketManager.getInterventionType(ticket.getOpInterventionType());
if (null!=opInterventionType) {
assignedInterventionTypeDescr = opInterventionType.getDescr();
}
}
if (null==assignedInterventionTypeDescr) {
assignedInterventionTypeDescr = "Generico";
}
params.put("assignedInterventionType", assignedInterventionTypeDescr);
String priority = ticketManager.getPriorities().get(ticket.getPriority());
if (priority==null) priority = "Normale";
params.put("priority", priority);
Date closingDate = ticket.getClosingDate();
if (closingDate!=null) {