@SuppressWarnings(['PropertyName', 'MethodCount'])
class EleveImpressionInfo {
- // media cible d'impression des données de l'élève
- TypeMedia typeMedia
-
- /**
- * Permet de savoir sur quelle adresse on vaut faire le publipostage
- */
- SelectionAdresseResponsableEnum selectionAdresseResponsable =
- SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1
-
- // objet de données associé aux informations d'impression
- // élève
- Personne personne
- // responsable1
- Personne responsable1
- // responsable2
- Personne responsable2
- // structure enseignement
- StructureEnseignement structureEnseignement
-
- // identifiant de la personne
- @ChampPublipostage(applications = [])
- Long personneId
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String etablissement = ""
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String classe_ProfPrincipal
- // trimestre ou semestre
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String classe_PeriodeNom = ""
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String classe_PeriodeDebut = ""
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String classe_PeriodeFin = ""
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_Nom
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_Prenom
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_Regime
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_Sexe
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_Classe
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_ClasseLibelleLong
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String classe_Effectif = ""
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String eleve_DateNaissance
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String dateDuJour
-
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Float eleve_NbAbsNonExc = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Float eleve_NbAbsExc = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Float eleve_NbAbsJusRec = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Float eleve_NbAbsJusNonRec = 0
-
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Float eleve_NbAbsence = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbAbsDemiPens = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbAbsInternat = 0
-
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbRetard = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbDepAnti = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbPunitions = 0
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- Integer eleve_NbSanctions = 0
-
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String eleve_ApprGenerale
-
- SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy", Locale.FRANCE)
-
- public String getEleve_ApprGenerale() {
- return donneesTableau.appreciationGenrale ? donneesTableau.appreciationGenrale : ""
- }
+ // media cible d'impression des données de l'élève
+ TypeMedia typeMedia
+
+ /**
+ * Permet de savoir sur quelle adresse on vaut faire le publipostage
+ */
+ SelectionAdresseResponsableEnum selectionAdresseResponsable =
+ SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1
+
+ // objet de données associé aux informations d'impression
+ // élève
+ Personne personne
+ // responsable1
+ Personne responsable1
+ // responsable2
+ Personne responsable2
+ // structure enseignement
+ StructureEnseignement structureEnseignement
+
+ // identifiant de la personne
+ @ChampPublipostage(applications = [])
+ Long personneId
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String etablissement = ""
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String classe_ProfPrincipal
+ // trimestre ou semestre
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String classe_PeriodeNom = ""
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String classe_PeriodeDebut = ""
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String classe_PeriodeFin = ""
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_Nom
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_Prenom
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_Regime
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_Sexe
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_Classe
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_ClasseLibelleLong
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String classe_Effectif = ""
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String eleve_DateNaissance
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String dateDuJour
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Float eleve_NbAbsNonExc = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Float eleve_NbAbsExc = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Float eleve_NbAbsJusRec = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Float eleve_NbAbsJusNonRec = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Float eleve_NbAbsence = 0
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbAbsDemiPens = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbAbsInternat = 0
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbRetard = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbDepAnti = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbPunitions = 0
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ Integer eleve_NbSanctions = 0
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String eleve_ApprGenerale
+
+ SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy", Locale.FRANCE)
+
+ public String getEleve_ApprGenerale() {
+ return donneesTableau.appreciationGenrale ? donneesTableau.appreciationGenrale : ""
+ }
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String eleve_AvisConseil
+
+ public String getEleve_AvisConseil() {
+ return donneesTableau.avis1 ? donneesTableau.avis1 : ""
+ }
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String eleve_AvisOrientation
+
+ public String getEleve_AvisOrientation() {
+ return donneesTableau.avis2 ? donneesTableau.avis2 : ""
+ }
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String eleve_LibelleAvisConseil
+
+ public String getEleve_LibelleAvisConseil() {
+ return donneesTableau.libelleAvis1 ? donneesTableau.libelleAvis1 : ""
+ }
+
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
+ String eleve_LibelleAvisOrientation
+
+ public String getEleve_LibelleAvisOrientation() {
+ return donneesTableau.libelleAvis2 ? donneesTableau.libelleAvis2 : ""
+ }
+
+ List<RetardImpression> retards = []
+
+ List<AbsencesImpression> absences = [] // l'information complete sur les absences
+
+ List<Date> datesAbsence = [] // // liste des dates d'absences par ordre décroissant
+
+ TableauImpressionInfo donneesTableau = new TableauImpressionInfo()
+
+ @ChampPublipostage(estChampMemo = true)
+ String textSignature
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String eleve_AvisConseil
+ @ChampPublipostage(estChampMemo = true)
+ String textAdresse
- public String getEleve_AvisConseil() {
- return donneesTableau.avis1 ? donneesTableau.avis1 : ""
- }
+ @ChampPublipostage(estChampMemo = true)
+ String textEtablissement
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String eleve_AvisOrientation
+ @ChampPublipostage(estChampMemo = true)
+ String textCorpsDeLettre
- public String getEleve_AvisOrientation() {
- return donneesTableau.avis2 ? donneesTableau.avis2 : ""
- }
+ @ChampPublipostage(estChampMemo = true)
+ String textInfoEleve
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String eleve_LibelleAvisConseil
+ @ChampPublipostage(estChampMemo = true)
+ String textObservation
- public String getEleve_LibelleAvisConseil() {
- return donneesTableau.libelleAvis1 ? donneesTableau.libelleAvis1 : ""
- }
+ @ChampPublipostage(estChampMemo = true)
+ String textTitre
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_NOTES])
- String eleve_LibelleAvisOrientation
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String parent_Nom
- public String getEleve_LibelleAvisOrientation() {
- return donneesTableau.libelleAvis2 ? donneesTableau.libelleAvis2 : ""
- }
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String parent_Prenom
- List<RetardImpression> retards = []
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String parent_Adresse
- List<AbsencesImpression> absences = [] // l'information complete sur les absences
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String parent_CodePostal
- List<Date> datesAbsence = [] // // liste des dates d'absences par ordre décroissant
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
+ String parent_Ville
- TableauImpressionInfo donneesTableau = new TableauImpressionInfo()
+ @ChampPublipostage(applications = [ModuleEliot.SMS])
+ String Date_Absence
- @ChampPublipostage(estChampMemo = true)
- String textSignature
+ // alimenté par le requetage
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String annee_scol_deb = ""
- @ChampPublipostage(estChampMemo = true)
- String textAdresse
+ // alimenté par le requetage
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String annee_scol_fin = ""
- @ChampPublipostage(estChampMemo = true)
- String textEtablissement
+ // alimenté par le requetage
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String etablissement_academie = ""
- @ChampPublipostage(estChampMemo = true)
- String textCorpsDeLettre
+ // alimenté par le requetage
+ @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
+ String etablissement_nature = ""
- @ChampPublipostage(estChampMemo = true)
- String textInfoEleve
+ /**
+ * Méthode de récupération des données pour faciliter la gestion
+ * des données au niveau de jasperReport
+ */
+ public List<TableauImpressionInfo> getSousModele() {
+ List<TableauImpressionInfo> tableau = []
+ tableau << donneesTableau
+ return tableau
+ }
- @ChampPublipostage(estChampMemo = true)
- String textObservation
+ String parent1_Nom
- @ChampPublipostage(estChampMemo = true)
- String textTitre
+ public String getParent1_Nom() {
+ getParent_Nom()
+ }
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String parent_Nom
+ String parent1_Prenom
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String parent_Prenom
+ public String getParent1_Prenom() {
+ getParent_Prenom()
+ }
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String parent_Adresse
+ String parent1_Adresse
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String parent_CodePostal
+ public String getParent1_Adresse() {
+ getParent_Adresse()
+ }
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.SMS])
- String parent_Ville
+ String parent1_CodePostal
- @ChampPublipostage(applications = [ModuleEliot.SMS])
- String Date_Absence
+ public String getParent1_CodePostal() {
+ getParent_CodePostal()
+ }
- // alimenté par le requetage
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String annee_scol_deb = ""
+ String parent1_Ville
- // alimenté par le requetage
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String annee_scol_fin = ""
+ public String getParent1_Ville() {
+ getParent_Ville()
+ }
- // alimenté par le requetage
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String etablissement_academie = ""
+ String parent2_Nom
- // alimenté par le requetage
- @ChampPublipostage(applications = [ModuleEliot.ELIOT_ABSENCES, ModuleEliot.ELIOT_NOTES, ModuleEliot.BREVET, ModuleEliot.SMS])
- String etablissement_nature = ""
+ public String getParent2_Nom() {
+ getParent_Nom()
+ }
- /**
- * Méthode de récupération des données pour faciliter la gestion
- * des données au niveau de jasperReport
- */
- public List<TableauImpressionInfo> getSousModele() {
- List<TableauImpressionInfo> tableau = []
- tableau << donneesTableau
- return tableau
- }
+ String parent2_Prenom
- String parent1_Nom
+ public String getParent2_Prenom() {
+ getParent_Prenom()
+ }
- public String getParent1_Nom() {
- getParent_Nom()
- }
+ String parent2_Adresse
- String parent1_Prenom
+ public String getParent2_Adresse() {
+ getParent_Adresse()
+ }
- public String getParent1_Prenom() {
- getParent_Prenom()
- }
+ String parent2_CodePostal
- String parent1_Adresse
+ public String getParent2_CodePostal() {
+ getParent_CodePostal()
+ }
- public String getParent1_Adresse() {
- getParent_Adresse()
- }
+ String parent2_Ville
- String parent1_CodePostal
+ public String getParent2_Ville() {
+ getParent_Ville()
+ }
- public String getParent1_CodePostal() {
- getParent_CodePostal()
+ public String getParent_Nom() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return parent1_Nom
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return parent2_Nom
}
+ }
- String parent1_Ville
-
- public String getParent1_Ville() {
- getParent_Ville()
+ public String getParent_Prenom() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return parent1_Prenom
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return parent2_Prenom
}
+ }
- String parent2_Nom
-
- public String getParent2_Nom() {
- getParent_Nom()
+ public String getParent_Adresse() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return parent1_Adresse
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return parent2_Adresse
}
+ }
- String parent2_Prenom
-
- public String getParent2_Prenom() {
- getParent_Prenom()
+ public String getParent_Ville() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return parent1_Ville
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return parent2_Ville
}
+ }
- String parent2_Adresse
-
- public String getParent2_Adresse() {
- getParent_Adresse()
+ public String getParent_CodePostal() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return parent1_CodePostal
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return parent2_CodePostal
}
+ }
- String parent2_CodePostal
+ /**
+ * indique si le destinataire du publipostage est valide
+ */
+ public Boolean isDestinataireCourrierValide() {
- public String getParent2_CodePostal() {
- getParent_CodePostal()
- }
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return (parent1_Nom) &&
+ (parent1_Adresse) &&
+ (parent1_CodePostal) &&
+ (parent1_Ville)
- String parent2_Ville
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return (parent2_Nom) &&
+ (parent2_Adresse) &&
+ (parent2_CodePostal) &&
+ (parent2_Ville)
- public String getParent2_Ville() {
- getParent_Ville()
}
+ }
- public String getParent_Nom() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return parent1_Nom
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return parent2_Nom
- }
- }
+ /**
+ * teste si la destinataire du sms à un numéro de portable
+ */
+ public Boolean isDestinataireSMSValide() {
+ String portable = getParent_portable()
+ return ((portable) && isAccepteSMS())
+ }
- public String getParent_Prenom() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return parent1_Prenom
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return parent2_Prenom
- }
- }
-
- public String getParent_Adresse() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return parent1_Adresse
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return parent2_Adresse
- }
- }
-
- public String getParent_Ville() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return parent1_Ville
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return parent2_Ville
- }
+ public boolean valide() {
+ switch (typeMedia) {
+ case TypeMedia.COURRIER:
+ return isDestinataireCourrierValide()
+ case TypeMedia.SMS:
+ return isDestinataireSMSValide()
}
+ return false
+ }
- public String getParent_CodePostal() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return parent1_CodePostal
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return parent2_CodePostal
- }
- }
- /**
- * indique si le destinataire du publipostage est valide
- */
- public Boolean isDestinataireCourrierValide() {
+ void setPeriodeDebut(Date dateDebutPeriode) {
+ classe_PeriodeDebut = df.format(dateDebutPeriode)
+ }
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return (parent1_Nom) &&
- (parent1_Adresse) &&
- (parent1_CodePostal) &&
- (parent1_Ville)
+ void setPeriodeFin(Date dateFinPeriode) {
+ classe_PeriodeFin = df.format(dateFinPeriode)
+ }
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return (parent2_Nom) &&
- (parent2_Adresse) &&
- (parent2_CodePostal) &&
- (parent2_Ville)
+ /**
+ * Permet de savoir si l'adresse 2 est différente de l'adresse 1
+ */
+ public boolean isAdresse2DifferenteAdresse1() {
- }
+ if (parent1_Adresse?.trim()?.toLowerCase() != parent2_Adresse?.trim()?.toLowerCase()) {
+ return true
}
- /**
- * teste si la destinataire du sms à un numéro de portable
- */
- public Boolean isDestinataireSMSValide() {
- String portable = getParent_portable()
- return ((portable) && isAccepteSMS())
+ if (parent1_CodePostal?.trim()?.toLowerCase() != parent2_CodePostal?.trim()?.toLowerCase()) {
+ return true
}
- public boolean valide() {
- switch (typeMedia) {
- case TypeMedia.COURRIER:
- return isDestinataireCourrierValide()
- case TypeMedia.SMS:
- return isDestinataireSMSValide()
- }
- return false
+ if (parent1_Ville?.trim()?.toLowerCase() != parent2_Ville?.trim()?.toLowerCase()) {
+ return true
}
+ return false
+ }
- void setPeriodeDebut(Date dateDebutPeriode) {
- classe_PeriodeDebut = df.format(dateDebutPeriode)
+ /**
+ * Permet de savoir si le téléphone portable 2 est différent du téléphone portable 1
+ */
+ public boolean isPortable2DifferentPortable1() {
+ String portable1
+ if (responsable1) {
+ portable1 = responsable1.getTelephonePortable()
+ } else {
+ portable1 = ""
}
- void setPeriodeFin(Date dateFinPeriode) {
- classe_PeriodeFin = df.format(dateFinPeriode)
+
+ String portable2
+ if (responsable2) {
+ portable2 = responsable2.getTelephonePortable()
+ } else {
+ portable2 = ""
}
- /**
- * Permet de savoir si l'adresse 2 est différente de l'adresse 1
- */
- public boolean isAdresse2DifferenteAdresse1() {
+ if (portable1 == portable2) {
+ return false
+ }
- if (parent1_Adresse?.trim()?.toLowerCase() != parent2_Adresse?.trim()?.toLowerCase()) {
- return true
- }
+ return true
+ }
- if (parent1_CodePostal?.trim()?.toLowerCase() != parent2_CodePostal?.trim()?.toLowerCase()) {
- return true
- }
- if (parent1_Ville?.trim()?.toLowerCase() != parent2_Ville?.trim()?.toLowerCase()) {
- return true
- }
+ public String toString() {
+ String resultat =
+ "Eleve : " +
+ eleve_Nom +
+ " " +
+ eleve_Prenom +
+ " Classe prof principal : " + classe_ProfPrincipal +
+ " Classe : " + eleve_Classe +
+ " Personne id : " + personneId
+ return resultat
+ }
- return false
- }
+ String parent_portable
- /**
- * Permet de savoir si le téléphone portable 2 est différent du téléphone portable 1
- */
- public boolean isPortable2DifferentPortable1() {
- String portable1
+ public String getParent_portable() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
if (responsable1) {
- portable1 = responsable1.getTelephonePortable()
+ return responsable1.getTelephonePortable()
} else {
- portable1 = ""
+ return ""
}
-
-
- String portable2
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
if (responsable2) {
- portable2 = responsable2.getTelephonePortable()
+ return responsable2.getTelephonePortable()
} else {
- portable2 = ""
+ return ""
}
-
- if (portable1 == portable2) {
- return false
- }
-
- return true
}
+ }
-
- public String toString() {
- String resultat =
- "Eleve : " +
- eleve_Nom +
- " " +
- eleve_Prenom +
- " Classe prof principal : " + classe_ProfPrincipal +
- " Classe : " + eleve_Classe +
- " Personne id : " + personneId
- return resultat
+ /**
+ * indique si le responsable accepte l'envoi de sms
+ */
+ public Boolean isAccepteSMS() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return (responsable1?.accepteSms)
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return (responsable2?.accepteSms)
}
+ }
- String parent_portable
-
- public String getParent_portable() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- if (responsable1) {
- return responsable1.getTelephonePortable()
- } else {
- return ""
- }
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- if (responsable2) {
- return responsable2.getTelephonePortable()
- } else {
- return ""
- }
- }
+ /**
+ * Retourne le responsable associé choisit
+ */
+ public Personne getResponsable() {
+ switch (selectionAdresseResponsable) {
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
+ return responsable1
+ case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
+ return responsable2
}
- /**
- * indique si le responsable accepte l'envoi de sms
- */
- public Boolean isAccepteSMS() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return (responsable1?.accepteSms)
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return (responsable2?.accepteSms)
- }
- }
-
- /**
- * Retourne le responsable associé choisit
- */
- public Personne getResponsable() {
- switch (selectionAdresseResponsable) {
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE1:
- return responsable1
- case SelectionAdresseResponsableEnum.ADRESSE_RESPONSABLE2:
- return responsable2
- }
-
- }
+ }
}