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