121,7 → 121,7 |
private HiddenField<String> idStructureChp = null; |
|
// Onglet IDENTIFICATION |
private Structure identification; |
private Structure identification = null; |
private ListStore<Valeur> magazinLstpr = null; |
private ComboBox<Valeur> comboLstpr = null; |
private ListStore<Valeur> magazinLstpu = null; |
134,21 → 134,21 |
private TextField<String> ihChp = null; |
private TextField<String> mnhnChp = null; |
private ComboBox<InterneValeur> comboTypeStructure = null; |
private TextField<String> nomStructureChp; |
private DateField dateFondationChp; |
private TextArea adrChp; |
private TextField<String> cpChp; |
private TextField<String> villeChp; |
private TextField<String> regionChp; |
private TextField<String> telChp; |
private TextField<String> faxChp; |
private TextField<String> emailChp; |
private TextField<String> urlChp; |
private ListStore<Valeur> magazinPays; |
private ComboBox<Valeur> comboPays; |
private TextField<String> nomStructureChp = null; |
private DateField dateFondationChp = null; |
private TextArea adrChp = null; |
private TextField<String> cpChp = null; |
private TextField<String> villeChp = null; |
private TextField<String> regionChp = null; |
private TextField<String> telChp = null; |
private TextField<String> faxChp = null; |
private TextField<String> emailChp = null; |
private TextField<String> urlChp = null; |
private ListStore<Valeur> magazinPays = null; |
private ComboBox<Valeur> comboPays = null; |
|
// Onglet PERSONNEL |
private StructureAPersonneListe personnel; |
private StructureAPersonneListe personnel = null; |
private StructureAPersonneListe personnelAjoute = null; |
private StructureAPersonneListe personnelModifie = null; |
private StructureAPersonneListe personnelSupprime = null; |
158,27 → 158,27 |
|
// Onglet CONSERVATION |
private StructureConservation conservation = null; |
private RadioGroup formationMarkRGrpChp; |
private RadioGroup interetFormationMarkRGrpChp; |
private RadioGroup collectionCommuneMarkRGrpChp; |
private RadioGroup accesControleMarkRGrpChp; |
private RadioGroup restaurationMarkRGrpChp; |
private RadioGroup traitementMarkRGrpChp; |
private RadioGroup collectionAcquisitionMarkRGrpChp; |
private RadioGroup echantillonAcquisitionMarkRGrpChp; |
private TextField<String> localStockageAutreChp; |
private TextField<String> meubleStockageAutreChp; |
private TextField<String> parametreStockageAutreChp; |
private TextField<String> collectionAutreAutreChp; |
private TextField<String> autreCollectionAutreChp; |
private TextField<String> opRestauAutreChp; |
private TextField<String> autreMaterielAutreChp; |
private TextField<String> poisonTraitementAutreChp; |
private TextField<String> traitementAutreChp; |
private TextField<String> insecteTraitementAutreChp; |
private TextField<String> actionAutreChp; |
private TextField<String> provenanceRechercheAutreChp; |
private TextField<String> typeRechercheAutreChp; |
private RadioGroup formationMarkRGrpChp = null; |
private RadioGroup interetFormationMarkRGrpChp = null; |
private RadioGroup collectionCommuneMarkRGrpChp = null; |
private RadioGroup accesControleMarkRGrpChp = null; |
private RadioGroup restaurationMarkRGrpChp = null; |
private RadioGroup traitementMarkRGrpChp = null; |
private RadioGroup collectionAcquisitionMarkRGrpChp = null; |
private RadioGroup echantillonAcquisitionMarkRGrpChp = null; |
private TextField<String> localStockageAutreChp = null; |
private TextField<String> meubleStockageAutreChp = null; |
private TextField<String> parametreStockageAutreChp = null; |
private TextField<String> collectionAutreAutreChp = null; |
private TextField<String> autreCollectionAutreChp = null; |
private TextField<String> opRestauAutreChp = null; |
private TextField<String> autreMaterielAutreChp = null; |
private TextField<String> poisonTraitementAutreChp = null; |
private TextField<String> traitementAutreChp = null; |
private TextField<String> insecteTraitementAutreChp = null; |
private TextField<String> actionAutreChp = null; |
private TextField<String> provenanceRechercheAutreChp = null; |
private TextField<String> typeRechercheAutreChp = null; |
private CheckBoxGroup localStockageTrukCacGrpChp = null; |
private LayoutContainer localStockageTrukCp = null; |
private CheckBoxGroup meubleStockageTrukCacGrpChp = null; |
216,20 → 216,20 |
private RadioGroup actionMarkRGrpChp = null; |
private LayoutContainer actionTrukCp = null; |
private CheckBoxGroup actionTrukCacGrpChp = null; |
private RadioGroup futureActionMarkRGrpChp; |
private RadioGroup rechercheMarkRGrpChp; |
private RadioGroup sansMotifAccesMarkRGrpChp; |
private RadioGroup avecMotifAccesMarkRGrpChp; |
private TextField<String> publicationChp; |
private LayoutContainer materielConservationCp; |
private ListStore<Personne> personneExistanteMagazin; |
private ComboBox<Personne> personneExistanteCombo; |
private Button supprimerPersonnelBtn; |
private ListStore<Projet> projetsMagazin; |
private ComboBox<Projet> projetsCombo; |
private CellEditor fonctionEditor; |
private List<Valeur> fonctionsListe; |
private ButtonBar barreOutilsValidation; |
private RadioGroup futureActionMarkRGrpChp = null; |
private RadioGroup rechercheMarkRGrpChp = null; |
private RadioGroup sansMotifAccesMarkRGrpChp = null; |
private RadioGroup avecMotifAccesMarkRGrpChp = null; |
private TextField<String> publicationChp = null; |
private LayoutContainer materielConservationCp = null; |
private ListStore<Personne> personneExistanteMagazin = null; |
private ComboBox<Personne> personneExistanteCombo = null; |
private Button supprimerPersonnelBtn = null; |
private ListStore<Projet> projetsMagazin = null; |
private ComboBox<Projet> projetsCombo = null; |
private CellEditor fonctionEditor = null; |
private List<Valeur> fonctionsListe = null; |
private ButtonBar barreOutilsValidation = null; |
|
|
public StructureForm(Mediateur mediateurCourrant, String modeDeCreation) { |
345,7 → 345,6 |
private void soumettreFormulaire() { |
// Vérification de la validité des champs du formulaire |
if (verifierFormulaire()) { |
GWT.log("Soumission du formulaire", null); |
// Collecte des données du formulaire |
Structure structure = collecterStructureIdentification(); |
StructureConservation conservation = collecterStructureConservation(); |
459,16 → 458,16 |
// RECHERCHE |
if (rechercheMarkRGrpChp.getValue() != null) { |
valorisationCollectee.setRecherche(rechercheMarkRGrpChp.getValue().getValueAttribute()); |
|
// RECHERCHE PROVENANCE |
valorisationCollectee.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues())); |
valorisationCollectee.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue()); |
|
// RECHERCHE TYPE |
valorisationCollectee.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues())); |
valorisationCollectee.setRechercheType("AUTRE", typeRechercheAutreChp.getValue()); |
} |
|
// RECHERCHE PROVENANCE |
valorisationCollectee.setRechercheProvenance(creerChaineDenormalisee(provenanceRechercheTrukCacGrpChp.getValues())); |
valorisationCollectee.setRechercheProvenance("AUTRE", provenanceRechercheAutreChp.getValue()); |
|
// RECHERCHE TYPE |
valorisationCollectee.setRechercheType(creerChaineDenormalisee(typeRechercheTrukCacGrpChp.getValues())); |
valorisationCollectee.setRechercheType("AUTRE", typeRechercheAutreChp.getValue()); |
|
// ACCÈS SANS MOTIF |
if (sansMotifAccesMarkRGrpChp.getValue() != null) { |
valorisationCollectee.setAccesSansMotif(sansMotifAccesMarkRGrpChp.getValue().getValueAttribute()); |
738,7 → 737,7 |
structureCollectee.setPays(comboPays.getRawValue()); |
} |
|
structureCollectee.setTelephone(telChp.getValue()); |
structureCollectee.setTelephoneFixe(telChp.getValue()); |
structureCollectee.setFax(faxChp.getValue()); |
structureCollectee.setCourriel(emailChp.getValue()); |
structureCollectee.setUrl(Structure.URL_SITE, urlChp.getValue()); |
807,7 → 806,7 |
comboPays.setRawValue(identification.getPays()); |
} |
|
telChp.setValue(identification.getTelephone()); |
telChp.setValue(identification.getTelephoneFixe()); |
faxChp.setValue(identification.getFax()); |
emailChp.setValue(identification.getCourriel()); |
urlChp.setValue(identification.getUrl("WEB")); |
1089,6 → 1088,8 |
} else { |
personne.setFonction("AUTRE", fonction); |
} |
} else { |
personne.setFonction(""); |
} |
|
// Gestion de la notion de "contact" |
1106,36 → 1107,28 |
} else { |
personne.setStatut("AUTRE", statut); |
} |
} else { |
personne.setStatut(""); |
} |
|
// Gestion du temps de travail |
if (personne.get("travail") != null && !personne.get("travail").equals(0)) { |
personne.setBotaTravailHebdoTps(personne.get("travail").toString()); |
} |
personne.setBotaTravailHebdoTps(personne.get("travail").toString()); |
|
// Gestion du téléphone |
String telephone = personne.get("telephone"); |
if (telephone != null && !telephone.equals("")) { |
personne.setTelephone(telephone); |
} |
String telephoneFixe = personne.get("tel_fix"); |
personne.setTelephoneFixe(telephoneFixe); |
|
// Gestion du fax |
String fax = personne.get("fax"); |
if (fax != null && !fax.equals("")) { |
personne.setFax(fax); |
} |
|
String fax = personne.get("tel_fax"); |
personne.setFax(fax); |
|
// Gestion du courriel |
String courriel = personne.get("courriel"); |
if (courriel != null && !courriel.equals("")) { |
personne.setCourriel(courriel); |
} |
personne.setCourriel(courriel); |
|
// Gestion de la sépcialité |
// Gestion de la spécialité |
String specialite = personne.get("specialite"); |
if (specialite != null && !specialite.equals("")) { |
personne.setSpecialite(specialite); |
} |
personne.setSpecialite(specialite); |
|
// Ajout de la personne dans la liste correspondant à son état (ajouté ou modifié) |
if (personne.get("etat") != null && personne.get("etat").equals("A")) {// Une personne ajoutée |
1158,7 → 1151,6 |
|
// Gestion de la fonction |
if (fonctionsMagazin != null && !((String) personnel.get(index).getFonction()).startsWith("AUTRE##")) { |
GWT.log(personnel.get(index).getFonction(), null); |
if (fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()) != null) { |
personnel.get(index).set("fonction", fonctionsMagazin.findModel("id_valeur", personnel.get(index).getFonction()).getNom()); |
} |
1263,7 → 1255,6 |
|
if (valeur != null) { |
String chaineTransmise = (String) valeur; |
GWT.log("ici:"+fonctionsMagazin.getCount(), null); |
if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) { |
fonctionsMagazin.add(fonctionsListe); |
} |
1283,9 → 1274,7 |
public Object postProcessValue(Object valeur) { |
String retour = ""; |
Valeur fonctionTrouvee = null; |
GWT.log("ICI ", null); |
if (valeur == null) { |
GWT.log(this.getField().getRawValue(), null); |
String valeurBrute = this.getField().getRawValue(); |
if (fonctionsMagazin.getCount() == 0 && fonctionsListe != null) { |
fonctionsMagazin.add(fonctionsListe); |
1325,12 → 1314,12 |
column.setEditor(new CellEditor(nomChp)); |
configs.add(column); |
|
column = new ColumnConfig("telephone", "Téléphone fixe", 100); |
column = new ColumnConfig("tel_fix", "Téléphone fixe", 100); |
TextField<String> telChp = new TextField<String>(); |
column.setEditor(new CellEditor(telChp)); |
configs.add(column); |
|
column = new ColumnConfig("fax", "Fax", 100); |
column = new ColumnConfig("tel_fax", "Fax", 100); |
TextField<String> faxChp = new TextField<String>(); |
column.setEditor(new CellEditor(faxChp)); |
configs.add(column); |
1357,7 → 1346,6 |
if (value == null) { |
return value; |
} |
//GWT.log("pre : "+value.toString(), null); |
return comboLiStatut.getStore().findModel("nom", (String) value); |
} |
|
1366,7 → 1354,6 |
if (value == null) { |
return value; |
} |
//GWT.log("post : "+value.toString(), null); |
return ((Valeur) value).get("nom"); |
} |
}; |
1480,7 → 1467,6 |
membreDuPersonnel.setNom(personneExistante.getNom()); |
membreDuPersonnel.setPrenom(personneExistante.getPrenom()); |
membreDuPersonnel.setTelephone(personneExistante.getTelephone()); |
membreDuPersonnel.setFax(personneExistante.getFax()); |
membreDuPersonnel.setCourriel(personneExistante.getCourriel()); |
membreDuPersonnel.setSpecialite(personneExistante.getSpecialite()); |
|
1791,7 → 1777,7 |
|
telChp = new TextField<String>(); |
telChp.setTabIndex(tabIndex++); |
telChp.setFieldLabel("Téléphone"); |
telChp.setFieldLabel("Téléphone fixe"); |
gaucheFdTelMail.add(telChp, new FormData("95%")); |
|
faxChp = new TextField<String>(); |
2132,7 → 2118,6 |
liste.add(personnes.get(it.next())); |
} |
|
GWT.log("Nbre de personnes trouvées :"+personnes.size(), null); |
personneExistanteMagazin.removeAll(); |
personneExistanteMagazin.add(liste); |
personneExistanteCombo.setStore(personneExistanteMagazin); |
2293,11 → 2278,11 |
if (!personnel.getNom().equals("")) { |
record.set("nom", personnel.getNom()); |
} |
if (!personnel.getTelephone().equals("")) { |
record.set("telephone", personnel.selectionnerTelephone(Personne.TELEPHONE_FIXE)); |
if (!personnel.getTelephoneFixe().equals("")) { |
record.set("tel_fix", personnel.getTelephoneFixe()); |
} |
if (!personnel.getFax().equals("")) { |
record.set("fax", personnel.selectionnerFax(1)); |
record.set("tel_fax", personnel.getFax()); |
} |
if (!personnel.getCourriel().equals("")) { |
record.set("courriel", personnel.selectionnerCourriel(1)); |