Revision fa47048f
Von Sven Schöling vor etwa 12 Jahren hinzugefügt
templates/webpages/do/search.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE LxERP %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
[%- IF vc == 'customer' %] |
7 | 5 |
[%- SET is_customer = '1' %] |
8 | 6 |
[%- ELSE %] |
... | ... | |
10 | 8 |
[%- END %] |
11 | 9 |
|
12 | 10 |
<script type="text/javascript"> |
13 |
<!-- |
|
14 |
function on_load() { |
|
15 |
document.Form.donumber.focus(); |
|
16 |
} |
|
17 |
--> |
|
11 |
$(function(){ document.Form.donumber.focus(); }); |
|
18 | 12 |
</script> |
19 | 13 |
|
20 | 14 |
<style type="text/css"> |
templates/webpages/do/set_stock_in_out.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
[% USE L %] |
3 | 3 |
[% L.javascript_tag('jquery') %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript"> |
7 | 5 |
<!-- |
8 |
function on_load() {
|
|
6 |
$(function(){
|
|
9 | 7 |
var row = $('#row').attr('value'); |
10 | 8 |
window.opener.document.getElementsByName("stock_" + $('#in_out').attr('value') + "_" + row)[0].value = $('#stock').attr('value'); |
11 | 9 |
$(window.opener.document.getElementById("stock_in_out_qty_display_" + row)).html($('#qty_display').attr('value')); |
12 | 10 |
$(window.opener.document.getElementById("stock_in_out_qty_matches_" + row)).val([% qty_matches %]); |
13 | 11 |
|
14 | 12 |
window.close(); |
15 |
} |
|
13 |
});
|
|
16 | 14 |
--> |
17 | 15 |
</script> |
18 | 16 |
|
templates/webpages/do/stock_in_form.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE LxERP %][%- USE JavaScript %] |
4 |
<body[%- UNLESS delivered %] onload="on_load();"[%- END %]> |
|
5 |
|
|
6 | 4 |
[%- UNLESS delivered %] |
7 | 5 |
<script type="text/javascript"> |
8 | 6 |
<!-- |
... | ... | |
30 | 28 |
control.options[initial_bin_index].selected = true; |
31 | 29 |
} |
32 | 30 |
|
33 |
function on_load() {
|
|
31 |
$(function(){
|
|
34 | 32 |
[%- USE STOCK_INFO_it = Iterator(STOCK_INFO) %][%- FOREACH si = STOCK_INFO_it %] |
35 | 33 |
// new si for wh [% si.warehouse_id %] bin [% si.bin_id %] |
36 | 34 |
[%- SET warehouse_selected = '0' %] |
... | ... | |
48 | 46 |
warehouse_selected([% STOCK_INFO_it.count %], 0); |
49 | 47 |
[%- END %] |
50 | 48 |
[%- END %] |
51 |
} |
|
49 |
});
|
|
52 | 50 |
--> |
53 | 51 |
</script> |
54 | 52 |
[%- END %] |
templates/webpages/fu/add_edit.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript"> |
7 |
<!-- |
|
8 |
function on_load() { |
|
9 |
document.Form.subject.focus(); |
|
10 |
} |
|
11 |
--> |
|
5 |
$(function(){ document.Form.subject.focus(); }); |
|
12 | 6 |
</script> |
13 | 7 |
|
14 | 8 |
<form action="fu.pl" method="post" name="Form"> |
templates/webpages/fu/search.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[% USE HTML %] |
4 |
<body onload="on_load()"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript"> |
7 |
<!-- |
|
8 |
function on_load() { |
|
9 |
document.Form.subject.focus(); |
|
10 |
} |
|
11 |
--> |
|
5 |
$(function(){ document.Form.subject.focus(); }); |
|
12 | 6 |
</script> |
13 | 7 |
|
14 | 8 |
<div class="listtop">[% title %]</div> |
templates/webpages/wh/journal_filter.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE JavaScript %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript"> |
7 | 5 |
<!-- |
8 | 6 |
warehouses = new Array(); |
... | ... | |
58 | 56 |
control.options[bin_index].selected = true; |
59 | 57 |
} |
60 | 58 |
|
61 |
function on_load() {
|
|
59 |
$(function() {
|
|
62 | 60 |
warehouse_selected(0, 0); |
63 | 61 |
document.Form.partnumber.focus(); |
64 |
} |
|
62 |
})
|
|
65 | 63 |
--> |
66 | 64 |
</script> |
67 | 65 |
|
templates/webpages/wh/report_filter.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE JavaScript %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript"> |
7 | 5 |
<!-- |
8 | 6 |
warehouses = new Array(); |
... | ... | |
58 | 56 |
control.options[bin_index].selected = true; |
59 | 57 |
} |
60 | 58 |
|
61 |
function on_load() {
|
|
59 |
$(function () {
|
|
62 | 60 |
warehouse_selected(0, 0); |
63 | 61 |
document.Form.partnumber.focus(); |
64 |
} |
|
62 |
});
|
|
65 | 63 |
--> |
66 | 64 |
</script> |
67 | 65 |
|
templates/webpages/wh/transfer_parts_selection.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE HTML %][%- USE JavaScript %] |
3 |
<body onload="on_load();"> |
|
4 |
|
|
5 | 3 |
<script type="text/javascript"> |
6 | 4 |
<!-- |
7 | 5 |
warehouses = new Array(); |
... | ... | |
26 | 24 |
control.options[0].selected = true; |
27 | 25 |
} |
28 | 26 |
|
29 |
function on_load() {
|
|
27 |
$(function() {
|
|
30 | 28 |
[% FOREACH row = CONTENTS %] |
31 | 29 |
warehouse_selected([% loop.count %], [% initial_warehouse_idx %]); |
32 | 30 |
[% END %] |
33 |
} |
|
31 |
});
|
|
34 | 32 |
--> |
35 | 33 |
</script> |
36 | 34 |
|
templates/webpages/wh/warehouse_selection.html | ||
---|---|---|
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE L %] |
4 | 4 |
[%- USE JavaScript %] |
5 |
<body onload="on_load();"> |
|
6 |
|
|
7 | 5 |
<script type="text/javascript" src="js/common.js"></script> |
8 | 6 |
<script type="text/javascript" src="js/part_selection.js"></script> |
9 | 7 |
<script type="text/javascript"> |
... | ... | |
55 | 53 |
control.options[bin_index].selected = true; |
56 | 54 |
} |
57 | 55 |
|
58 |
function on_load() {
|
|
56 |
$(function() {
|
|
59 | 57 |
warehouse_selected(0, 0); |
60 | 58 |
document.Form.partnumber.focus(); |
61 |
} |
|
59 |
});
|
|
62 | 60 |
--> |
63 | 61 |
</script> |
64 | 62 |
|
templates/webpages/wh/warehouse_selection_assembly.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE JavaScript %][%- USE LxERP %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript" src="js/common.js"></script> |
7 | 5 |
<script type="text/javascript" src="js/part_selection.js"></script> |
8 | 6 |
<script type="text/javascript"> |
... | ... | |
51 | 49 |
control.options[bin_index].selected = true; |
52 | 50 |
} |
53 | 51 |
|
54 |
function on_load() {
|
|
52 |
$(function() {
|
|
55 | 53 |
warehouse_selected([% warehouse_id %], [% bin_id %]); |
56 |
} |
|
54 |
})
|
|
57 | 55 |
--> |
58 | 56 |
</script> |
59 | 57 |
|
templates/webpages/wh/warehouse_selection_stock.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE L %] |
3 | 3 |
[%- USE HTML %][%- USE JavaScript %][%- USE LxERP %] |
4 |
<body onload="on_load();"> |
|
5 |
|
|
6 | 4 |
<script type="text/javascript" src="js/common.js"></script> |
7 | 5 |
<script type="text/javascript" src="js/part_selection.js"></script> |
8 | 6 |
<script type="text/javascript"> |
... | ... | |
51 | 49 |
control.options[bin_index].selected = true; |
52 | 50 |
} |
53 | 51 |
|
54 |
function on_load() {
|
|
52 |
$(function() {
|
|
55 | 53 |
warehouse_selected([% warehouse_id %], [% bin_id %]); |
56 |
} |
|
54 |
})
|
|
57 | 55 |
--> |
58 | 56 |
</script> |
59 | 57 |
|
Auch abrufbar als: Unified diff
on_load entfernt und in jquery.ready verwandelt