Revision 1213b27a
Von Hans Peter Schlaepfer vor etwa 5 Jahren hinzugefügt
templates/webpages/wh/report_filter.html | ||
---|---|---|
6 | 6 |
|
7 | 7 |
<h1>[% 'Report about warehouse contents' | $T8 %]</h1> |
8 | 8 |
|
9 |
<script type="text/javascript"> |
|
10 |
<!-- |
|
11 |
warehouses = new Array(); |
|
12 |
warehouses[0] = new Array(); |
|
13 |
warehouses[0]['id'] = "0"; |
|
14 |
warehouses[0]['bins'] = new Array(); |
|
15 |
warehouses[0]['bins'][0] = new Array(); |
|
16 |
warehouses[0]['bins'][0]['description'] = "---"; |
|
17 |
warehouses[0]['bins'][0]['id'] = ""; |
|
18 |
[%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %][%- FOREACH warehouse = WAREHOUSES_it %] |
|
19 |
warehouses[[% WAREHOUSES_it.count %]] = new Array(); |
|
20 |
warehouses[[% WAREHOUSES_it.count %]]['id'] = [% warehouse.id %]; |
|
21 |
warehouses[[% WAREHOUSES_it.count %]]['bins'] = new Array(); |
|
22 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0] = new Array(); |
|
23 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['description'] = "---"; |
|
24 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['id'] = ""; |
|
25 |
[% USE BINS_it = Iterator(warehouse.BINS) %][% FOREACH bin = BINS_it %] |
|
9 |
<script type="text/javascript"><!-- |
|
10 |
warehouses = new Array(); |
|
11 |
warehouses[0] = new Array(); |
|
12 |
warehouses[0]['id'] = "0"; |
|
13 |
warehouses[0]['bins'] = new Array(); |
|
14 |
warehouses[0]['bins'][0] = new Array(); |
|
15 |
warehouses[0]['bins'][0]['description'] = "---"; |
|
16 |
warehouses[0]['bins'][0]['id'] = ""; |
|
17 |
[%- USE WAREHOUSES_it = Iterator(WAREHOUSES) %] |
|
18 |
[%- FOREACH warehouse = WAREHOUSES_it %] |
|
19 |
warehouses[[% WAREHOUSES_it.count %]] = new Array(); |
|
20 |
warehouses[[% WAREHOUSES_it.count %]]['id'] = [% warehouse.id %]; |
|
21 |
warehouses[[% WAREHOUSES_it.count %]]['bins'] = new Array(); |
|
22 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0] = new Array(); |
|
23 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['description'] = "---"; |
|
24 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][0]['id'] = ""; |
|
25 |
[% USE BINS_it = Iterator(warehouse.BINS) %] |
|
26 |
[% FOREACH bin = BINS_it %] |
|
26 | 27 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]] = new Array(); |
27 | 28 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['description'] = "[% JavaScript.escape(bin.description) %]"; |
28 | 29 |
warehouses[[% WAREHOUSES_it.count %]]['bins'][[% BINS_it.count %]]['id'] = [% bin.id %]; |
29 |
[% END %]
|
|
30 |
[% END %]
|
|
30 |
[% END %] |
|
31 |
[% END %] |
|
31 | 32 |
|
32 |
function warehouse_selected(warehouse_id, bin_id) {
|
|
33 |
var control = document.getElementById("bin_id");
|
|
33 |
function warehouse_selected(warehouse_id, bin_id) { |
|
34 |
var control = document.getElementById("bin_id"); |
|
34 | 35 |
|
35 |
for (var i = control.options.length - 1; i >= 0; i--) {
|
|
36 |
control.options[i] = null;
|
|
37 |
}
|
|
36 |
for (var i = control.options.length - 1; i >= 0; i--) { |
|
37 |
control.options[i] = null; |
|
38 |
} |
|
38 | 39 |
|
39 |
var warehouse_index = 0;
|
|
40 |
var warehouse_index = 0; |
|
40 | 41 |
|
41 |
for (i = 0; i < warehouses.length; i++)
|
|
42 |
if (warehouses[i]['id'] == warehouse_id) {
|
|
43 |
warehouse_index = i;
|
|
44 |
break;
|
|
45 |
}
|
|
42 |
for (i = 0; i < warehouses.length; i++) |
|
43 |
if (warehouses[i]['id'] == warehouse_id) { |
|
44 |
warehouse_index = i; |
|
45 |
break; |
|
46 |
} |
|
46 | 47 |
|
47 |
var warehouse = warehouses[warehouse_index];
|
|
48 |
var bin_index = 0;
|
|
48 |
var warehouse = warehouses[warehouse_index]; |
|
49 |
var bin_index = 0; |
|
49 | 50 |
|
50 |
for (i = 0; i < warehouse['bins'].length; i++)
|
|
51 |
if (warehouse['bins'][i]['id'] == bin_id) {
|
|
52 |
bin_index = i;
|
|
53 |
break;
|
|
54 |
}
|
|
51 |
for (i = 0; i < warehouse['bins'].length; i++) |
|
52 |
if (warehouse['bins'][i]['id'] == bin_id) { |
|
53 |
bin_index = i; |
|
54 |
break; |
|
55 |
} |
|
55 | 56 |
|
56 |
for (i = 0; i < warehouse['bins'].length; i++) {
|
|
57 |
control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']);
|
|
58 |
}
|
|
57 |
for (i = 0; i < warehouse['bins'].length; i++) { |
|
58 |
control.options[i] = new Option(warehouse['bins'][i]['description'], warehouse['bins'][i]['id']); |
|
59 |
} |
|
59 | 60 |
|
60 | 61 |
|
61 |
control.options[bin_index].selected = true;
|
|
62 |
}
|
|
62 |
control.options[bin_index].selected = true; |
|
63 |
} |
|
63 | 64 |
|
64 |
$(function () { |
|
65 |
warehouse_selected(0, 0); |
|
66 |
document.Form.partnumber.focus(); |
|
67 |
}); |
|
68 |
--> |
|
69 |
</script> |
|
65 |
$(function () { |
|
66 |
warehouse_selected(0, 0); |
|
67 |
document.Form.partnumber.focus(); |
|
68 |
}); |
|
70 | 69 |
|
71 |
<form method="post" name="Form" action="wh.pl" id="form">
|
|
70 |
--></script>
|
|
72 | 71 |
|
73 | 72 |
<input type="hidden" name="nextsub" value="generate_report"> |
74 | 73 |
|
... | ... | |
76 | 75 |
<tr> |
77 | 76 |
<th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Filter' | $T8 %]</th> |
78 | 77 |
</tr> |
79 |
|
|
80 | 78 |
<tr> |
81 | 79 |
<td> |
82 | 80 |
<table> |
... | ... | |
147 | 145 |
<tr> |
148 | 146 |
<th class="listheading" align="left" valign="top" colspan="6" nowrap>[% 'Include in Report' | $T8 %]</th> |
149 | 147 |
</tr> |
150 |
|
|
151 | 148 |
<tr> |
152 | 149 |
<td> |
153 | 150 |
<input name="l_partdescription" type="hidden" value="Y"> |
Auch abrufbar als: Unified diff
Design-4.0: Kosmetik: templates/webpages/wh/..: Einrückung/HTML
Neues kivitendo Design Aenderungen in templates/webpages/wh/..