Subversion Repositories eFlore/Applications.coel

Rev

Rev 1573 | Rev 1613 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1573 Rev 1607
Line 195... Line 195...
195
		ToolBar barreOutils = new ToolBar();  
195
		ToolBar barreOutils = new ToolBar();  
Line 196... Line 196...
196
		
196
		
197
		Button ajouterBouton = creerBoutonAjouter();
197
		Button ajouterBouton = creerBoutonAjouter();
Line 198... Line -...
198
		barreOutils.add(ajouterBouton);
-
 
199
		
-
 
200
		barreOutils.add(new Text(" ou "));
198
		barreOutils.add(ajouterBouton);
201
		
199
		
Line 202... Line 200...
202
		creerComboBoxPersonnesSaisies();
200
		creerComboBoxPersonnesSaisies();
Line 969... Line 967...
969
			publicationARetourner = publication = publicationCollectee;
967
			publicationARetourner = publication = publicationCollectee;
970
		}
968
		}
971
		return publicationARetourner;
969
		return publicationARetourner;
972
	}
970
	}
Line -... Line 971...
-
 
971
	
-
 
972
	private String construireDate(String valeurDate) {
-
 
973
		
-
 
974
		String dateComplete = "";
-
 
975
		if (!UtilString.isEmpty(valeurDate)){
-
 
976
			String jour = "00";
-
 
977
			String mois = "00";
-
 
978
			String annee = "0000";
-
 
979
			String messageErreur = null;
-
 
980
			
-
 
981
			/**  JJ/MM/AAAA  **/
-
 
982
			if (valeurDate.matches("\\d{2}/\\d{2}/\\d{4}")) {	
-
 
983
				
-
 
984
			}
-
 
985
				
-
 
986
			/**  MM/AAAA  **/
-
 
987
			if (valeurDate.matches("\\d{2}/\\d{4}")) {
-
 
988
				dateComplete = valeurDate+"-00";				
-
 
989
			}
-
 
990
			
-
 
991
			/**  AAAA  **/
-
 
992
			if (valeurDate.matches("\\d{4}")) {
-
 
993
				dateComplete = valeurDate+"-00-00";	
-
 
994
			}
-
 
995
		}
-
 
996
		
-
 
997
		return dateComplete;
-
 
998
	}
973
	
999
	
974
	private String construireIntituleEditeur() {
1000
	private String construireIntituleEditeur() {
975
		String editeur = "";
1001
		String editeur = "";
976
		if (editeurCombobox.getValeur() != null) {
1002
		if (editeurCombobox.getValeur() != null) {
977
			Structure structure = new Structure(editeurCombobox.getValeur());
1003
			Structure structure = new Structure(editeurCombobox.getValeur());