--- dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/01/24 21:48:55 2838
+++ dao/DaoAdresseVedligehold/src/main/webapp/index.html 2016/02/01 07:30:14 2895
@@ -45,6 +45,20 @@
html += entry.detail;
+ if (entry.state == "STATE_ABORTED")
+ html += "
" + entry.errorMessage + "
";
+
+ if (entry.state == "STATE_RUNNING") {
+ if (entry.percentCompleted >= 0) {
+ var percent = entry.percentCompleted.toFixed(2);
+ html += "";
+ html += "
" ;
+ html += percent + "%";
+ html += "
";
+ html += "
";
+ }
+ }
+
html += "
" + entry.state + "
";
html += "";
@@ -100,6 +114,21 @@
$('#file').fileinput('upload');
});
+
+ $("#afstandBtn").click( function(){
+ var dist = $("#afstand_distributor").val();
+ if (dist == "") {
+ alert("Du skal vælge distributør");
+ return;
+ }
+
+
+ $.get("rest/commands/distancecalculation/" + dist, function() {
+ loadTasks(); //Force reload of tasks immediately
+ } );
+
+ });
+
});
@@ -133,7 +162,7 @@
-
Actions
+ Upload File
@@ -142,11 +171,9 @@
@@ -166,11 +193,37 @@
-
-
-
+
+
+
+
+
Afstand anden rute
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+