Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 202 Rev 208
Line 56... Line 56...
56
				this.set(champ, chaineExistante+";;"+type+"##"+valeur);
56
				this.set(champ, chaineExistante+";;"+type+"##"+valeur);
57
			}
57
			}
58
		}
58
		}
59
	}
59
	}
Line -... Line 60...
-
 
60
	
-
 
61
	protected String getInfoDenormaliseParType(String chaineExistante, String type) {
-
 
62
		String sortie = "";
-
 
63
		if (!chaineExistante.equals("")) {
-
 
64
			String[] valeurs = chaineExistante.split(";;");
-
 
65
			for (int i = 0; i < valeurs.length; i++) {
-
 
66
				if (valeurs[i].startsWith(type+"##")) {
-
 
67
					sortie =  valeurs[i].replaceFirst("^"+type+"##", "");
-
 
68
				}
-
 
69
			}
-
 
70
		}
-
 
71
		return sortie;
-
 
72
	}
-
 
73
	
-
 
74
	protected String getInfoDenormaliseParPosition(String chaineExistante, int position) {
-
 
75
		String sortie = "";
-
 
76
		if (!chaineExistante.equals("")) {
-
 
77
			String[] valeurs = chaineExistante.split(";;");
-
 
78
			if (valeurs.length >= position) {
-
 
79
				for (int i = 0; i < valeurs.length; i++) {
-
 
80
					if (i == (position - 1)) {
-
 
81
						if (valeurs[i].contains("##")) {
-
 
82
							sortie =  valeurs[i].replaceFirst("^[^#]+##", "");
-
 
83
						} else {
-
 
84
							sortie =  valeurs[i];
-
 
85
						}
-
 
86
						break;
-
 
87
					}
-
 
88
				}
-
 
89
			}
-
 
90
		}
-
 
91
		return sortie;
-
 
92
	}
60
	
93
	
61
	public String getDateModification() {
94
	public String getDateModification() {
62
		return (String) renvoyerValeurCorrecte("cmhl_date_modification");
95
		return (String) renvoyerValeurCorrecte("cmhl_date_modification");
Line 63... Line 96...
63
	}
96
	}