Wed, 18 Sep 2019 22:50:44 +0200
Initial design of the divide batch screen.
498
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | /***************************************************************************** |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | * Copyright (C) 2019 |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * Michiel Broek <mbroek at mbse dot eu> |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * This file is part of BMS |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * This is free software; you can redistribute it and/or modify it |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * under the terms of the GNU General Public License as published by the |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * Free Software Foundation; either version 2, or (at your option) any |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * later version. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * BrewCloud is distributed in the hope that it will be useful, but |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * General Public License for more details. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | *****************************************************************************/ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | $(document).ready(function () { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
26 | $('#divide_type').jqxDropDownList({ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | theme: theme, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | source: SplitAdapter, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | valueMember: 'id', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | displayMember: 'nl', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | width: 180, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
32 | height: 23, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | autoDropDownHeight: true |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
34 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
35 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | var dataRecord = {}, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
37 | i, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
38 | url = 'includes/db_product.php', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
39 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
40 | // Prepare the data |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
41 | source = { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
42 | datatype: 'json', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
43 | cache: false, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | datafields: [ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
45 | // From prod_main |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
46 | { name: 'record', type: 'number' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
47 | { name: 'uuid', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
48 | { name: 'name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
49 | { name: 'code', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
50 | { name: 'birth', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
51 | { name: 'stage', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
52 | { name: 'notes', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
53 | { name: 'log_brew', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
54 | { name: 'log_fermentation', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
55 | { name: 'inventory_reduced', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
56 | { name: 'locked', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
57 | { name: 'eq_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
58 | { name: 'eq_boil_size', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | { name: 'eq_batch_size', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
60 | { name: 'eq_tun_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
61 | { name: 'eq_tun_weight', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
62 | { name: 'eq_tun_specific_heat', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
63 | { name: 'eq_tun_material', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
64 | { name: 'eq_tun_height', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
65 | { name: 'eq_top_up_water', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
66 | { name: 'eq_trub_chiller_loss', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
67 | { name: 'eq_evap_rate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
68 | { name: 'eq_boil_time', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
69 | { name: 'eq_calc_boil_volume', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
70 | { name: 'eq_top_up_kettle', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
71 | { name: 'eq_hop_utilization', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
72 | { name: 'eq_notes', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
73 | { name: 'eq_lauter_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
74 | { name: 'eq_lauter_height', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
75 | { name: 'eq_lauter_deadspace', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
76 | { name: 'eq_kettle_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
77 | { name: 'eq_kettle_height', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
78 | { name: 'eq_mash_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
79 | { name: 'eq_mash_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
80 | { name: 'eq_efficiency', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
81 | { name: 'brew_date_start', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
82 | { name: 'brew_mash_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
83 | { name: 'brew_mash_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
84 | { name: 'brew_mash_efficiency', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
85 | { name: 'brew_sparge_est', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
86 | { name: 'brew_sparge_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
87 | { name: 'brew_preboil_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
88 | { name: 'brew_preboil_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
89 | { name: 'brew_preboil_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
90 | { name: 'brew_preboil_efficiency', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
91 | { name: 'brew_aboil_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
92 | { name: 'brew_aboil_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
93 | { name: 'brew_aboil_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
94 | { name: 'brew_aboil_efficiency', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
95 | { name: 'brew_cooling_method', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
96 | { name: 'brew_cooling_time', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
97 | { name: 'brew_cooling_to', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
98 | { name: 'brew_whirlpool9', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
99 | { name: 'brew_whirlpool7', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
100 | { name: 'brew_whirlpool6', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
101 | { name: 'brew_whirlpool2', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
102 | { name: 'brew_fermenter_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
103 | { name: 'brew_fermenter_extrawater', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
104 | { name: 'brew_fermenter_tcloss', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
105 | { name: 'brew_aeration_time', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
106 | { name: 'brew_aeration_speed', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
107 | { name: 'brew_aeration_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
108 | { name: 'brew_fermenter_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
109 | { name: 'brew_fermenter_ibu', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
110 | { name: 'brew_fermenter_color', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
111 | { name: 'brew_date_end', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
112 | { name: 'og', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
113 | { name: 'fg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
114 | { name: 'primary_start_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
115 | { name: 'primary_max_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
116 | { name: 'primary_end_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
117 | { name: 'primary_end_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
118 | { name: 'primary_end_date', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
119 | { name: 'secondary_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
120 | { name: 'secondary_end_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
121 | { name: 'secondary_end_date', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
122 | { name: 'tertiary_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
123 | { name: 'package_date', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
124 | { name: 'package_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
125 | { name: 'package_infuse_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
126 | { name: 'package_infuse_abv', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
127 | { name: 'package_infuse_notes', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
128 | { name: 'package_abv', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
129 | { name: 'package_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
130 | { name: 'bottle_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
131 | { name: 'bottle_carbonation', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
132 | { name: 'bottle_priming_water', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
133 | { name: 'bottle_priming_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
134 | { name: 'bottle_carbonation_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
135 | { name: 'keg_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
136 | { name: 'keg_carbonation', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
137 | { name: 'keg_priming_water', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
138 | { name: 'keg_priming_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
139 | { name: 'keg_carbonation_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
140 | { name: 'keg_forced_carb', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
141 | { name: 'keg_pressure', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
142 | { name: 'taste_notes', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
143 | { name: 'taste_rate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
144 | { name: 'taste_date', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
145 | { name: 'taste_color', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
146 | { name: 'taste_transparency', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
147 | { name: 'taste_head', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
148 | { name: 'taste_aroma', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
149 | { name: 'taste_taste', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
150 | { name: 'taste_mouthfeel', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
151 | { name: 'taste_aftertaste', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
152 | { name: 'st_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
153 | { name: 'st_letter', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
154 | { name: 'st_guide', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
155 | { name: 'st_category', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
156 | { name: 'st_category_number', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
157 | { name: 'st_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
158 | { name: 'st_og_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
159 | { name: 'st_og_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
160 | { name: 'st_fg_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
161 | { name: 'st_fg_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
162 | { name: 'st_ibu_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
163 | { name: 'st_ibu_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
164 | { name: 'st_color_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
165 | { name: 'st_color_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
166 | { name: 'st_carb_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
167 | { name: 'st_carb_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
168 | { name: 'st_abv_min', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
169 | { name: 'st_abv_max', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
170 | { name: 'type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
171 | { name: 'batch_size', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
172 | { name: 'boil_size', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
173 | { name: 'boil_time', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
174 | { name: 'efficiency', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
175 | { name: 'est_og', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
176 | { name: 'est_fg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
177 | { name: 'est_abv', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
178 | { name: 'est_color', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
179 | { name: 'color_method', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
180 | { name: 'est_ibu', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
181 | { name: 'ibu_method', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
182 | { name: 'est_carb', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
183 | { name: 'sparge_temp', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
184 | { name: 'sparge_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
185 | { name: 'sparge_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
186 | { name: 'sparge_source', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
187 | { name: 'sparge_acid_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
188 | { name: 'sparge_acid_perc', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
189 | { name: 'sparge_acid_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
190 | { name: 'mash_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
191 | { name: 'mash_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
192 | { name: 'calc_acid', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
193 | { name: 'w1_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
194 | { name: 'w1_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
195 | { name: 'w1_calcium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
196 | { name: 'w1_sulfate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
197 | { name: 'w1_chloride', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
198 | { name: 'w1_sodium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
199 | { name: 'w1_magnesium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
200 | { name: 'w1_total_alkalinity', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
201 | { name: 'w1_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
202 | { name: 'w1_cost', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
203 | { name: 'w2_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
204 | { name: 'w2_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
205 | { name: 'w2_calcium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
206 | { name: 'w2_sulfate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
207 | { name: 'w2_chloride', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
208 | { name: 'w2_sodium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
209 | { name: 'w2_magnesium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
210 | { name: 'w2_total_alkalinity', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
211 | { name: 'w2_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
212 | { name: 'w2_cost', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
213 | { name: 'wg_amount', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
214 | { name: 'wg_calcium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
215 | { name: 'wg_sulfate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
216 | { name: 'wg_chloride', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
217 | { name: 'wg_sodium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
218 | { name: 'wg_magnesium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
219 | { name: 'wg_total_alkalinity', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
220 | { name: 'wg_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
221 | { name: 'wb_calcium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
222 | { name: 'wb_sulfate', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
223 | { name: 'wb_chloride', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
224 | { name: 'wb_sodium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
225 | { name: 'wb_magnesium', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
226 | { name: 'wb_total_alkalinity', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
227 | { name: 'wb_ph', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
228 | { name: 'wa_acid_name', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
229 | { name: 'wa_acid_perc', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
230 | { name: 'wa_base_name', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
231 | { name: 'starter_enable', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
232 | { name: 'starter_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
233 | { name: 'starter_sg', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
234 | { name: 'starter_viability', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
235 | { name: 'starter_viability', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
236 | { name: 'prop1_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
237 | { name: 'prop1_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
238 | { name: 'prop2_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
239 | { name: 'prop2_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
240 | { name: 'prop3_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
241 | { name: 'prop3_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
242 | { name: 'prop4_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
243 | { name: 'prop4_volume', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
244 | { name: 'divide_type', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
245 | { name: 'divide_size', type: 'float' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
246 | { name: 'divide_parts', type: 'int' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
247 | { name: 'divide_from', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
248 | { name: 'fermentables', type: 'array' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
249 | { name: 'hops', type: 'array' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
250 | { name: 'miscs', type: 'array' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
251 | { name: 'yeasts', type: 'array' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
252 | { name: 'mashs', type: 'array' } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
253 | ], |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
254 | id: 'record', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
255 | url: url + '?record=' + my_record |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
256 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
257 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
258 | // Load data and select one record. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
259 | dataAdapter = new $.jqx.dataAdapter(source, { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
260 | loadComplete: function() { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
261 | var records = dataAdapter.records; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
262 | dataRecord = records[0]; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
263 | // Hidden record uuid |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
264 | $('#name').val(dataRecord.name); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
265 | $('#code').val(dataRecord.code); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
266 | $('#stage').val(StageData[dataRecord.stage].nl); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
267 | // Disable stages that are already done. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
268 | for (i = 0; i < SplitData.length; i++) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
269 | console.log('i:' + i + ' ok:' + SplitData[i].ok + ' stage:' + dataRecord.stage); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
270 | if (SplitData[i].ok < dataRecord.stage) |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
271 | $("#divide_type").jqxDropDownList('disableAt', i); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
272 | } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
273 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
274 | loadError: function(jqXHR, status, error) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
275 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
276 | beforeLoadComplete: function(records) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
277 | $('#jqxLoader').jqxLoader('open'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
278 | } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
279 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
280 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
281 | var editSplit = function(data) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
282 | var splitSource = { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
283 | datatype: 'local', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
284 | cache: false, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
285 | async: false, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
286 | datafields: [ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
287 | { name: 'split_name', type: 'string' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
288 | { name: 'split_size', type: 'float' } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
289 | ], |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
290 | addrow: function(rowid, rowdata, position, commit) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
291 | console.log('split addrow ' + rowid); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
292 | commit(true); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
293 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
294 | deleterow: function(rowid, commit) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
295 | console.log('split deleterow ' + rowid); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
296 | commit(true); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
297 | } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
298 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
299 | splitAdapter = new $.jqx.dataAdapter(splitSource, {}); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
300 | $('#splitGrid').jqxGrid({ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
301 | width: 1240, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
302 | height: 400, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
303 | source: splitAdapter, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
304 | theme: theme, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
305 | selectionmode: 'singlerow', |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
306 | showtoolbar: true, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
307 | rendertoolbar: function(toolbar) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
308 | var container = $('<div style="overflow: hidden; position: relative; margin: 5px;"></div>'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
309 | toolbar.append(container); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
310 | container.append('<input style="float: left; margin-left: 165px;" id="saddrowbutton" type="button" value="Nieuwe splitsing" />'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
311 | container.append('<input style="float: left; margin-left: 565px;" id="sdeleterowbutton" type="button" value="Verwijder splitsing" />'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
312 | $('#saddrowbutton').jqxButton({ template: 'primary', theme: theme, height: 27, width: 150 }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
313 | $('#saddrowbutton').on('click', function() { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
314 | var row = {}, rowscount = $('#splitGrid').jqxGrid('getdatainformation').rowscount; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
315 | row['split_name'] = dataRecord.name + ' ' + (rowscount + 1); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
316 | row['split_size'] = 0; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
317 | $('#splitGrid').jqxGrid('addrow', null, row); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
318 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
319 | // delete selected split |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
320 | $('#sdeleterowbutton').jqxButton({ template: 'danger', theme: theme, height: 27, width: 150 }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
321 | $('#sdeleterowbutton').on('click', function() { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
322 | var rowscount, id, selectedrowindex = $('#splitGrid').jqxGrid('getselectedrowindex'); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
323 | rowscount = $('#splitGrid').jqxGrid('getdatainformation').rowscount; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
324 | if (selectedrowindex >= 0 && selectedrowindex < rowscount) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
325 | id = $('#splitGrid').jqxGrid('getrowid', selectedrowindex); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
326 | $('#splitGrid').jqxGrid('deleterow', id); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
327 | } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
328 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
329 | }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
330 | columns: [ |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
331 | { text: 'Splits naam', datafield: 'split_name' }, |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
332 | { text: 'Splits volume', datafield: 'split_size', width: 90, align: 'right', cellsalign: 'right', cellsformat: 'f2' } |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
333 | ] |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
334 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
335 | }; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
336 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
337 | dataAdapter.dataBind(); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
338 | editSplit(dataRecord); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
339 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
340 | // initialize the input fields. |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
341 | $('#name').jqxTooltip({ content: 'De naam voor dit product.' }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
342 | $('#name').jqxInput({ theme: theme, width: 640, height: 23 }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
343 | $('#code').jqxTooltip({ content: 'Product code nummer.' }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
344 | $('#code').jqxInput({ theme: theme, width: 100, height: 23 }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
345 | $('#stage').jqxTooltip({ content: 'De productie fase van dit product.' }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
346 | $('#stage').jqxInput({ theme: theme, width: 100, height: 23 }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
347 | $('#divide_type').val(0); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
348 | $('#divide_type').on('change', function(event) { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
349 | dataRecord.divide_type = event.args.index; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
350 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
351 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
352 | $('#Cancel').jqxButton({ template: 'primary', width: '80px', theme: theme }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
353 | $('#Cancel').bind('click', function() { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
354 | window.location.href = my_return; |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
355 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
356 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
357 | $('#Save').jqxButton({ template: 'success', width: '80px', theme: theme }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
358 | $('#Save').bind('click', function() { |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
359 | // saveRecord(1); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
360 | }); |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
361 | |
10c6eeee60ce
Initial design of the divide batch screen.
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
362 | }); |