Line 42... |
Line 42... |
42 |
*/
|
42 |
*/
|
43 |
@SuppressWarnings("unused")
|
43 |
@SuppressWarnings("unused")
|
44 |
private static void appelerUploadSimple() {
|
44 |
private static void appelerUploadSimple() {
|
Line 45... |
Line 45... |
45 |
|
45 |
|
46 |
UploadDialog up = new UploadDialog("Upload simple de fichiers");
|
46 |
UploadDialog up = new UploadDialog("Upload simple de fichiers");
|
47 |
up.setUrl(iModele.getConfig().getServiceBaseUrl() + "/InventoryImage");
|
47 |
up.setUrl(Configuration.getServiceBaseUrl() + "/InventoryImage");
|
48 |
UrlParam id = new UrlParam("identifiant", iModele.getIdentifiant());
|
48 |
UrlParam id = new UrlParam("identifiant", iModele.getIdentifiant());
|
49 |
UrlParam[] params = { id };
|
49 |
UrlParam[] params = { id };
|
50 |
up.setBaseParams(params);
|
50 |
up.setBaseParams(params);
|
Line 82... |
Line 82... |
82 |
|
82 |
|
Line 83... |
Line 83... |
83 |
final String warning = "<p class=\"warning_upload\"> A la fin de l'envoi, veuillez fermer la fenêtre pour accéder aux images. </p>";
|
83 |
final String warning = "<p class=\"warning_upload\"> A la fin de l'envoi, veuillez fermer la fenêtre pour accéder aux images. </p>";
|
84 |
|
84 |
|
85 |
final String applet = "<applet code=\"wjhk.jupload2.JUploadApplet\" archive=\"wjhk.jupload.jar\" alt=\"\" mayscript=\"\" height=\"350\" width=\"625\">";
|
85 |
final String applet = "<applet code=\"wjhk.jupload2.JUploadApplet\" archive=\"wjhk.jupload.jar\" alt=\"\" mayscript=\"\" height=\"350\" width=\"625\">";
|
86 |
final String paramPostTarget = "<param name=\"postURL\" value=\""
|
86 |
final String paramPostTarget = "<param name=\"postURL\" value=\""
|
87 |
+ iModele.getConfig().getServiceBaseUrl()
|
87 |
+ Configuration.getServiceBaseUrl()
|
88 |
+ "/InventoryImage/\">";
|
88 |
+ "/InventoryImage/\">";
|
89 |
final String paramUploadPolicy = "<param name=\"uploadPolicy\" value=\"PictureUploadPolicy\">";
|
89 |
final String paramUploadPolicy = "<param name=\"uploadPolicy\" value=\"PictureUploadPolicy\">";
|
90 |
final String paramMaxChunkSize = "<param name=\"maxChunkSize\" value=\"0\">";
|
90 |
final String paramMaxChunkSize = "<param name=\"maxChunkSize\" value=\"0\">";
|