new HSSFRichTextString(personneTransaction
.getNomPrenom()));
}
// --------- Information sur l'inscription -------
final Inscription inscription = dossier.getInscription();
final Club club = dossier.getClub();
final Categorie categorie = dossier.getCategorie();
row.createCell((short) 18).setCellValue(inscription.getId());
if (club != null)
{
row.createCell((short) 19).setCellValue(
new HSSFRichTextString(club.getNomComplet()));
}
row.createCell((short) 20).setCellValue(
new HSSFRichTextString(inscription.getCommanditaire()));
try
{
final Integer plaqueInt = Integer.parseInt(inscription
.getNoPlaque());
row.createCell((short) 21).setCellValue(plaqueInt);
}
catch (final NumberFormatException e)
{
row.createCell((short) 21).setCellValue(
new HSSFRichTextString(inscription.getNoPlaque()));
}
row.createCell((short) 22).setCellValue(
new HSSFRichTextString(inscription.getCodePuce()));
if (inscription.getNumeroPuce() != null)
{
row.createCell((short) 23).setCellValue(
inscription.getNumeroPuce());
}
row.createCell((short) 24).setCellValue(
new HSSFRichTextString(categorie.getNomComplet()));
if (inscription.getEquipeCourse() != null)
{
row.createCell((short) 25).setCellValue(
new HSSFRichTextString(inscription.getEquipeCourse()
.getNomEquipe()));
}
// --------- Information sur la facture et la transaction -------
final Facture facture = dossier.getFacture();
final FactureItem factureItem = dossier.getFactureItem();
final Transaction transaction = dossier.getTransaction();
if (facture != null)
{
row.createCell((short) 26).setCellValue(facture.getId());
}
if (inscription.getPrix() != null)
{
row.createCell((short) 27).setCellValue(inscription.getPrix());
}
else if (factureItem != null)
{
row.createCell((short) 28).setCellValue(
new HSSFRichTextString(transaction.getTxID()));