Revision 1f3dda5f
Von Tamino vor fast 4 Jahren hinzugefügt
js/kivi.ShopOrder.js | ||
---|---|---|
8 | 8 |
}); |
9 | 9 |
}; |
10 | 10 |
|
11 |
ns.get_orders_one = function() { |
|
12 |
|
|
13 |
var data = $('#get_one_order_form').serializeArray(); |
|
14 |
data.push({ name: 'type', value: 'get_one'}); |
|
15 |
data.push({ name: 'action', value: 'ShopOrder/get_orders' }); |
|
16 |
|
|
17 |
$.post("controller.pl", data, kivi.eval_json_result); |
|
18 |
}; |
|
19 |
|
|
20 |
ns.get_orders_next = function() { |
|
21 |
|
|
22 |
$.post("controller.pl", { action: 'ShopOrder/get_orders', type: 'get_next'}, kivi.eval_json_result); |
|
23 |
}; |
|
24 |
|
|
25 |
ns.getOneOrderInitialize = function() { |
|
26 |
kivi.popup_dialog({ |
|
27 |
id: 'get_one', |
|
28 |
dialog: { |
|
29 |
title: kivi.t8('Get one shoporder'), |
|
30 |
} |
|
31 |
}); |
|
32 |
}; |
|
33 |
|
|
34 |
|
|
35 |
ns.get_one_order_setup = function() { |
|
36 |
kivi.ShopOrder.getOneOrderInitialize(); |
|
37 |
kivi.submit_ajax_form('controller.pl?action=ShopOrder/get_orders', $('#shoporder')); |
|
38 |
}; |
|
39 |
|
|
11 | 40 |
ns.massTransferStarted = function() { |
12 | 41 |
$('#status_mass_transfer').data('timerId', setInterval(function() { |
13 | 42 |
$.get("controller.pl", { |
templates/webpages/shop_order/_get_one.html | ||
---|---|---|
1 |
[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE T8 -%] |
|
2 |
[% USE Dumper %] |
|
3 |
[% L.stylesheet_tag('webshop') %] |
|
4 |
[%- INCLUDE 'common/flash.html' %] |
|
5 |
<form id="get_one_order_form" action="controller.pl" method="post" style="padding-left:1em;"> |
|
6 |
<table> |
|
7 |
<tr> |
|
8 |
<th align="right">[% 'Shop' | $T8 %]</th> |
|
9 |
<td>[% L.select_tag('shop_id', SELF.shops, value_key = 'value', title_key = 'title', default=1) %]</td> |
|
10 |
</tr> |
|
11 |
<tr> |
|
12 |
<th align="right">[% 'Shop ordernumber' | $T8 %]</th> |
|
13 |
<td>[% L.input_tag('shop_ordernumber', "") %]</td> |
|
14 |
</tr> |
|
15 |
</table> |
|
16 |
[% L.hidden_tag("action", "ShopOrder/dispatch") %] |
|
17 |
[% L.button_tag("kivi.ShopOrder.get_orders_one()", LxERP.t8('Fetch order')) %] |
|
18 |
</form> |
templates/webpages/shop_order/list.html | ||
---|---|---|
192 | 192 |
[%- INCLUDE 'shop_order/_transfer_status.html' %] |
193 | 193 |
</div> |
194 | 194 |
</form> |
195 |
<div id="get_one" style="display:none;"> |
|
196 |
[% INCLUDE 'shop_order/_get_one.html' %] |
|
197 |
</div> |
|
195 | 198 |
<script type="text/javascript"> |
196 | 199 |
<!-- |
197 | 200 |
|
Auch abrufbar als: Unified diff
WebshopApi: template und js überarbeitet