2 |
<head> |
<head> |
3 |
<head> |
<head> |
4 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
5 |
|
|
6 |
|
<link rel="stylesheet" href="webjars/jquery-ui/1.11.4/jquery-ui.css" /> |
7 |
|
|
8 |
<link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" /> |
<link rel="stylesheet" href="webjars/bootstrap/3.3.5/css/bootstrap.min.css" /> |
9 |
|
|
10 |
<link rel="stylesheet" href="webjars/bootstrap-fileinput/4.2.7/css/fileinput.min.css" /> |
<link rel="stylesheet" href="webjars/bootstrap-fileinput/4.2.7/css/fileinput.min.css" /> |
11 |
|
|
12 |
|
<style> |
13 |
|
|
14 |
|
@media (min-width: 1300px) { |
15 |
|
.container { |
16 |
|
width: 1300px; /*default 1170px*/ |
17 |
|
} |
18 |
|
} |
19 |
|
</style> |
20 |
|
|
21 |
<!-- use webjars for dependencies --> |
<!-- use webjars for dependencies --> |
22 |
<script src="webjars/jquery/2.1.4/jquery.js"></script> |
<script src="webjars/jquery/2.1.4/jquery.js"></script> |
23 |
|
<script src="webjars/jquery-ui/1.11.4/jquery-ui.js"></script> |
24 |
<script src="webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script> |
<script src="webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script> |
25 |
|
|
26 |
<script src="webjars/bootstrap-fileinput/4.2.7/js/fileinput.min.js"></script> |
<script src="webjars/bootstrap-fileinput/4.2.7/js/fileinput.min.js"></script> |
53 |
|
|
54 |
|
|
55 |
html += "<div class='panel " + pclass + "'>"; |
html += "<div class='panel " + pclass + "'>"; |
56 |
html += "<div class='panel-heading'><h4 class='panel-title'>" + entry.description + "</h4></div>"; |
html += "<div class='panel-heading'>"; |
57 |
|
if (entry.state == "STATE_DONE" || entry.state == "STATE_ABORTED" || entry.state == "STATE_QUEUED") { |
58 |
|
html += "<button type='button' class='close removetask' aria-label='Close' taskid='" + entry.id+ "'><span aria-hidden='true'>×</span></button>"; |
59 |
|
} |
60 |
|
html += "<h4 class='panel-title'>" + entry.description + "</h4>"; |
61 |
|
html += "</div>"; |
62 |
html += " <div class='panel-body'>"; |
html += " <div class='panel-body'>"; |
63 |
|
|
64 |
html += entry.detail; |
html += entry.detail; |
113 |
loadTasks(); |
loadTasks(); |
114 |
setInterval(loadTasks, 5000); |
setInterval(loadTasks, 5000); |
115 |
|
|
116 |
|
$("#center").resizable({ |
117 |
|
handles: 'e, w' |
118 |
|
}); |
119 |
|
|
120 |
|
|
121 |
$(document).on('click', '.viewlog', function(event) { // Bind future elements |
$(document).on('click', '.viewlog', function(event) { // Bind future elements |
122 |
var taskid = $(this).attr('taskid'); |
var taskid = $(this).attr('taskid'); |
124 |
|
|
125 |
}); |
}); |
126 |
|
|
127 |
|
$(document).on('click', '.removetask', function(event) { // Bind future elements |
128 |
|
var taskid = $(this).attr('taskid'); |
129 |
|
$.get('rest/tasks/remove/' + taskid, function() { |
130 |
|
loadTasks(); |
131 |
|
}); |
132 |
|
}); |
133 |
|
|
134 |
$("#file").fileinput({ |
$("#file").fileinput({ |
135 |
//'showUpload':false, |
//'showUpload':false, |
136 |
'showRemove': false, |
'showRemove': false, |
156 |
}); |
}); |
157 |
|
|
158 |
|
|
159 |
|
|
160 |
|
|
161 |
$("#afstandBtn").click( function(){ |
$("#afstandBtn").click( function(){ |
162 |
var dist = $("#afstand_distributor").val(); |
var dist = $("#afstand_distributor").val(); |
163 |
if (dist == "") { |
if (dist == "") { |
164 |
alert("Du skal vælge distributør"); |
alert("Du skal vælge distributør"); |
165 |
return; |
return; |
166 |
} |
} |
167 |
|
var type = $("#afstand_type").val(); |
168 |
|
var url = "rest/commands/distancecalculation/" + dist + "/" + type; |
169 |
|
|
170 |
|
|
171 |
|
$.get(url, function() { |
172 |
|
loadTasks(); //Force reload of tasks immediately |
173 |
|
} ); |
174 |
|
|
175 |
|
}); |
176 |
|
|
177 |
|
$("#dawaBtn").click( function(){ |
178 |
|
var regionCode = $("#dawa_region").val(); |
179 |
|
|
180 |
|
|
181 |
|
|
182 |
$.get("rest/commands/distancecalculation/" + dist, function() { |
var regionName = $('#dawa_region option:selected').text(); |
183 |
|
var url = "rest/commands/dawa/" + regionCode + "/" + regionName; |
184 |
|
|
185 |
|
|
186 |
|
$.get(url, function() { |
187 |
loadTasks(); //Force reload of tasks immediately |
loadTasks(); //Force reload of tasks immediately |
188 |
} ); |
} ); |
189 |
|
|
190 |
}); |
}); |
191 |
|
|
192 |
|
|
193 |
}); |
}); |
194 |
|
|
202 |
<h1>Dao Adresse Vedligehold</h1> |
<h1>Dao Adresse Vedligehold</h1> |
203 |
</div> |
</div> |
204 |
<div id="body"> |
<div id="body"> |
205 |
<div class="row"> |
<div class="row"> |
206 |
<div class="col-sm-3" id="leftCol" > |
<div class="col-sm-3" id="leftCol" > |
207 |
<div class="panel panel-primary"> |
<div class="panel panel-primary"> |
208 |
<div class="panel-heading"> |
<div class="panel-heading"> |
270 |
<option>BK</option> |
<option>BK</option> |
271 |
<option>DAO</option> |
<option>DAO</option> |
272 |
</select> |
</select> |
273 |
|
|
274 |
|
|
275 |
|
<label for="type">Type:</label> |
276 |
|
<select class="form-control" id="afstand_type" name="afstand_type"> |
277 |
|
<option>Incremental</option> |
278 |
|
<option>Full</option> |
279 |
|
</select> |
280 |
<br> |
<br> |
281 |
|
|
282 |
|
|
283 |
<button class="btn btn-primary" id="afstandBtn">Beregn</button> |
<button class="btn btn-primary" id="afstandBtn">Beregn</button> |
284 |
|
|
285 |
|
|
286 |
</div> |
</div> |
287 |
</div><!-- Afstand-andenrute panel --> |
</div><!-- Afstand-andenrute panel --> |
288 |
|
|
289 |
|
<div class="panel panel-primary"> |
290 |
|
<div class="panel-heading"> |
291 |
|
<h3 class="panel-title">Dawa Indlæsning</h3> |
292 |
|
</div> |
293 |
|
<div class="panel-body"> |
294 |
|
|
295 |
|
<label for="type">Region:</label> |
296 |
|
<select class="form-control" id="dawa_region" name="dawa_region"> |
297 |
|
<option value="1081">Nordjylland</option> |
298 |
|
<option value="1082">Midtjylland</option> |
299 |
|
<option value="1083">Syddanmark</option> |
300 |
|
<option value="1084">Hovedstaden</option> |
301 |
|
<option value="1085">Sjælland</option> |
302 |
|
|
303 |
|
</select> |
304 |
|
<br> |
305 |
|
|
306 |
|
|
307 |
|
<button class="btn btn-primary" id="dawaBtn">Beregn</button> |
308 |
|
|
309 |
|
</div> |
310 |
|
</div> <!-- DAWA --> |
311 |
|
|
312 |
|
|
313 |
</div><!-- rightcol --> |
</div><!-- rightcol --> |