| Line 1... |
Line 1... |
| 1 |
package org.tela_botanica.client.vues.observation;
|
1 |
package org.tela_botanica.client.vues.observation;
|
| Line -... |
Line 2... |
| - |
|
2 |
|
| 2 |
|
3 |
import org.tela_botanica.client.i18n.Msg;
|
| 3 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
4 |
import org.tela_botanica.client.modeles.objets.Configuration;
|
| 4 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
5 |
import org.tela_botanica.client.modeles.objets.Utilisateur;
|
| - |
|
6 |
import org.tela_botanica.client.observation.ObservationMediateur;
|
| 5 |
import org.tela_botanica.client.observation.ObservationMediateur;
|
7 |
|
| 6 |
import com.google.gwt.user.client.ui.FileUpload;
|
8 |
import com.google.gwt.user.client.ui.FileUpload;
|
| 7 |
import com.google.gwt.user.client.ui.FormPanel;
|
9 |
import com.google.gwt.user.client.ui.FormPanel;
|
| 8 |
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent;
|
10 |
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteEvent;
|
| 9 |
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler;
|
11 |
import com.google.gwt.user.client.ui.FormPanel.SubmitCompleteHandler;
|
| Line 26... |
Line 28... |
| 26 |
|
28 |
|
| Line 27... |
Line 29... |
| 27 |
public FormulaireImportObservationVue(ObservationMediateur om) {
|
29 |
public FormulaireImportObservationVue(ObservationMediateur om) {
|
| Line 28... |
Line 30... |
| 28 |
|
30 |
|
| 29 |
this.oMediateur = om;
|
31 |
this.oMediateur = om;
|
| 30 |
|
32 |
|
| 31 |
nPan = new Window("Import d'observations");
|
33 |
nPan = new Window(Msg.get("import-observations"));
|
| Line 32... |
Line 34... |
| 32 |
identifiant = new Hidden();
|
34 |
identifiant = new Hidden();
|
| 33 |
identifiant.setName("utilisateur");
|
35 |
identifiant.setName("utilisateur");
|
| Line 34... |
Line 36... |
| 34 |
identifiant.setValue(Utilisateur.getInstance().getIdentifiantUtilisateurConsulte());
|
36 |
identifiant.setValue(Utilisateur.getInstance().getIdentifiantUtilisateurConsulte());
|
| 35 |
|
37 |
|
| 36 |
final FormPanel form = new FormPanel();
|
38 |
final FormPanel form = new FormPanel();
|
| 37 |
final Button boutonValidation = new Button("envoyer");
|
39 |
final Button boutonValidation = new Button(Msg.get("envoyer"));
|
| Line 47... |
Line 49... |
| 47 |
upload.setName("upload");
|
49 |
upload.setName("upload");
|
| 48 |
holder.add(upload);
|
50 |
holder.add(upload);
|
| 49 |
holder.add(boutonValidation);
|
51 |
holder.add(boutonValidation);
|
| 50 |
holder.add(identifiant);
|
52 |
holder.add(identifiant);
|
| Line 51... |
Line 53... |
| 51 |
|
53 |
|
| Line 52... |
Line 54... |
| 52 |
HTML lienVersDocumentModele = new HTML("<a href=\"modele_import.xls\">Télécharger le modèle de document</a>");
|
54 |
HTML lienVersDocumentModele = new HTML("<a href=\"modele_import.xls\">" + Msg.get("telecharger-modele") + "</a>");
|
| Line 53... |
Line 55... |
| 53 |
|
55 |
|