protected void addProfessionalExperience(ArrayList<HashMap> lines) {
if (this.getJobAssignment().getProfessionalExperience()!=null) {
Iterator<JaProfessionalExperience> it = this.getJobAssignment().getProfessionalExperience().iterator();
while (it.hasNext()) {
HashMap line = new HashMap();
JaProfessionalExperience experience = it.next();
line.put("jaDetail.groupName", JbsL10N.getString("JobApplication.professionalExperience"));
if (experience.getDateFrom()!=null)
line.put("jaDetail.dateFrom",ClientGlobals.getDateFormat().format(experience.getDateFrom())+" - ");
if (experience.getDateTo()!=null)
line.put("jaDetail.dateTo",ClientGlobals.getDateFormat().format(experience.getDateTo()));
String hs=JbsL10N.getString("JobApplication.jobGroup")+": ";
if (experience.getJobGroup()!=null)
hs = experience.getJobGroup().getName(ClientGlobals.getMainDbLanguage());
if ((experience.getJobName()!=null) && (!experience.getJobName().equals("")))
hs+=" ("+experience.getJobName()+")";
if ((experience.getCompanyName()!=null) && (!experience.getCompanyName().equals(""))) {
hs+="\n"+JbsL10N.getString("JobApplication.company")+": "+experience.getCompanyName();
if ((experience.getCity()!=null) && (!experience.getCity().equals("")))
hs+=", "+experience.getCity();
}
line.put("jaDetail.lineDetails",hs);
lines.add(line);
}