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";
}