コード例 #1
0
 /**
  * Rempli les divers objets (TypeConvention, ...) depuis les listes en caches
  *
  * @param c
  */
 public void setObjectsExport(final ConventionDTO c) {
   if (c != null) {
     if (c.getIdTheme() != null) {
       c.setTheme(this.nomenclatureDomainService.getThemeDTOFromId(c.getIdTheme()));
     }
     if (c.getIdUniteGratification() != null) {
       c.setUniteGratification(
           this.nomenclatureDomainService.getUniteGratificationDTOFromId(
               c.getIdUniteGratification()));
     }
     if (c.getStructure() != null) {
       if (c.getStructure().getIdTypeStructure() > 0) {
         c.getStructure()
             .setTypeStructure(
                 this.nomenclatureDomainService.getTypeStructureFromId(
                     c.getStructure().getIdTypeStructure()));
       }
       if (c.getStructure().getIdStatutJuridique() > 0) {
         c.getStructure()
             .setStatutJuridique(
                 this.nomenclatureDomainService.getStatutJuridiqueFromId(
                     c.getStructure().getIdStatutJuridique()));
       }
       if (c.getStructure().getIdEffectif() > 0) {
         c.getStructure()
             .setEffectif(
                 this.nomenclatureDomainService.getEffectifFromId(
                     c.getStructure().getIdEffectif()));
       }
       if (c.getStructure().getIdPays() > 0) {
         c.getStructure()
             .setPays(this.nomenclatureDomainService.getPaysFromId(c.getStructure().getIdPays()));
       }
     }
     if (c.getService() != null && c.getService().getIdPays() > 0) {
       c.getService()
           .setPays(this.nomenclatureDomainService.getPaysFromId(c.getService().getIdPays()));
     }
     if (c.getIdUniteDureeExceptionnelle() != null && c.getIdUniteDureeExceptionnelle() > 0) {
       c.setUniteDuree(
           this.nomenclatureDomainService.getUniteDureeFromId(c.getIdUniteDureeExceptionnelle()));
     }
     if (c.getIdTypeConvention() != null) {
       c.setTypeConvention(
           this.nomenclatureDomainService.getTypeConventionDTOFromId(c.getIdTypeConvention()));
     }
   }
 }
コード例 #2
0
 /**
  * Rempli les divers objets (TypeConvention, ...) depuis les listes en caches
  *
  * @param c
  */
 public void setObjects(ConventionDTO c) {
   if (c != null) {
     if (c.getIdTypeConvention() != null && c.getIdTypeConvention() > 0) {
       c.setTypeConvention(
           this.nomenclatureDomainService.getTypeConventionDTOFromId(c.getIdTypeConvention()));
     }
     if (c.getIdTheme() != null && c.getIdTheme() > 0) {
       c.setTheme(this.nomenclatureDomainService.getThemeDTOFromId(c.getIdTheme()));
     }
     if (c.getIdUniteDureeExceptionnelle() != null && c.getIdUniteDureeExceptionnelle() > 0) {
       c.setUniteDuree(
           this.nomenclatureDomainService.getUniteDureeFromId(c.getIdUniteDureeExceptionnelle()));
     }
     if (c.getIdTempsTravail() != null && c.getIdTempsTravail() > 0) {
       c.setTempsTravail(
           this.nomenclatureDomainService.getTempsTravailFromId(c.getIdTempsTravail()));
     }
     if (c.getIdIndemnisation() != null && c.getIdTempsTravail() > 0) {
       c.setIndemnisation(
           this.nomenclatureDomainService.getIndemnisationDTOFromId(c.getIdIndemnisation()));
     }
     if (c.getIdUniteGratification() != null && c.getIdUniteGratification() > 0) {
       c.setUniteGratification(
           this.nomenclatureDomainService.getUniteGratificationDTOFromId(
               c.getIdUniteGratification()));
     }
     if (c.getIdModeVersGratification() != null && c.getIdModeVersGratification() > 0) {
       c.setModeVersGratification(
           this.nomenclatureDomainService.getModeVersGratificationDTOFromId(
               c.getIdModeVersGratification()));
     }
     if (c.getIdNatureTravail() != null && c.getIdNatureTravail() > 0) {
       c.setNatureTravail(
           this.nomenclatureDomainService.getNatureTravailDTOFromId(c.getIdNatureTravail()));
     }
     if (c.getIdModeValidationStage() != null && c.getIdModeValidationStage() > 0) {
       c.setModeValidationStage(
           this.nomenclatureDomainService.getModeValidationStageDTOFromId(
               c.getIdModeValidationStage()));
     }
     if (c.getIdOrigineStage() != null && c.getIdOrigineStage() > 0) {
       c.setOrigineStage(
           this.nomenclatureDomainService.getOrigineStageDTOFromId(c.getIdOrigineStage()));
     }
     if (c.getIdAssurance() != null && c.getIdAssurance() > 0) {
       c.setAssurance(this.nomenclatureDomainService.getAssuranceDTOFromId(c.getIdAssurance()));
     }
     if (c.getCodeCaisse() != null && !c.getCodeCaisse().isEmpty()) {
       c.setCaisseRegime(
           this.nomenclatureDomainService.getCaisseRegimeDTOFromId(c.getCodeCaisse()));
     }
     if (c.getCodeLangueConvention() != null && !c.getCodeLangueConvention().isEmpty()) {
       c.setLangueConvention(
           this.nomenclatureDomainService.getLangueConventionDTOFromId(
               c.getCodeLangueConvention()));
     }
     if (c.getIdService() != null && c.getIdService() > 0) {
       c.setService(this.structureDomainService.getServiceFromId(c.getIdService()));
     }
     if (c.getIdContact() != null && c.getIdContact() > 0) {
       c.setContact(this.structureDomainService.getContactFromId(c.getIdContact()));
     }
     if (c.getCodeUFR() != null) {
       c.setUfr(getUfrFromId(c.getCodeUFR(), c.getCodeUniversiteUFR()));
     }
     if (c.getCodeEtape() != null) {
       c.setEtape(getEtapeFromId(c.getCodeEtape(), c.getCodeUniversiteEtape()));
     }
   }
 }