20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
21 *****************************************************************************/ |
21 *****************************************************************************/ |
22 |
22 |
23 |
23 |
24 var sugardensity = 1.611; //kg/l in solution |
24 var sugardensity = 1.611; //kg/l in solution |
|
25 |
|
26 // Styles dropdown list |
|
27 var stylesUrl = "includes/db_profile_styles.php"; |
|
28 var stylesSource = { |
|
29 datatype: "json", |
|
30 datafields: [ |
|
31 { name: 'record', type: 'number' }, |
|
32 { name: 'name', type: 'string' }, |
|
33 { name: 'category', type: 'string' }, |
|
34 { name: 'category_number', type: 'number' }, |
|
35 { name: 'style_letter', type: 'string' }, |
|
36 { name: 'style_guide', type: 'string' }, |
|
37 { name: 'type', type: 'string' }, |
|
38 { name: 'og_min', type: 'float' }, |
|
39 { name: 'og_max', type: 'float' }, |
|
40 { name: 'fg_min', type: 'float' }, |
|
41 { name: 'fg_max', type: 'float' }, |
|
42 { name: 'ibu_min', type: 'float' }, |
|
43 { name: 'ibu_max', type: 'float' }, |
|
44 { name: 'color_min', type: 'float' }, |
|
45 { name: 'color_max', type: 'float' }, |
|
46 { name: 'carb_min', type: 'float' }, |
|
47 { name: 'carb_max', type: 'float' }, |
|
48 { name: 'abv_min', type: 'float' }, |
|
49 { name: 'abv_max', type: 'float' }, |
|
50 { name: 'notes', type: 'string' }, |
|
51 { name: 'profile', type: 'string' }, |
|
52 { name: 'ingredients', type: 'string' }, |
|
53 { name: 'examples', type: 'string' } |
|
54 ], |
|
55 url: stylesUrl, |
|
56 async: true |
|
57 }; |
|
58 var styleslist = new $.jqx.dataAdapter(stylesSource); |
|
59 |
|
60 // dropdownlist datasource from inventory_fermentables |
|
61 var fermentableUrl = "getfermentablesources.php"; |
|
62 var fermentableInvSource = { |
|
63 datatype: "json", |
|
64 datafields: [ |
|
65 { name: 'record', type: 'number' }, |
|
66 { name: 'name', type: 'string' }, |
|
67 { name: 'type', type: 'string' }, |
|
68 { name: 'yield', type: 'float' }, |
|
69 { name: 'color', type: 'float' }, |
|
70 { name: 'add_after_boil', type: 'bool' }, |
|
71 { name: 'origin', type: 'string' }, |
|
72 { name: 'supplier', type: 'string' }, |
|
73 { name: 'coarse_fine_diff', type: 'float' }, |
|
74 { name: 'moisture', type: 'float' }, |
|
75 { name: 'diastatic_power', type: 'float' }, |
|
76 { name: 'protein', type: 'float' }, |
|
77 { name: 'max_in_batch', type: 'float' }, |
|
78 { name: 'recommend_mash', type: 'bool' }, |
|
79 { name: 'graintype', type: 'string' }, |
|
80 { name: 'di_ph', type: 'float' }, |
|
81 { name: 'inventory', type: 'float' }, |
|
82 { name: 'cost', type: 'float' } |
|
83 ], |
|
84 url: fermentableUrl, |
|
85 async: true |
|
86 }; |
|
87 var fermentablelist = new $.jqx.dataAdapter(fermentableInvSource); |
|
88 |
|
89 // dropdownlist datasource from inventory_hops |
|
90 var hopUrl = "gethopsources.php"; |
|
91 var hopInvSource = { |
|
92 datatype: "json", |
|
93 datafields: [ |
|
94 { name: 'record', type: 'number' }, |
|
95 { name: 'name', type: 'string' }, |
|
96 { name: 'origin', type: 'string' }, |
|
97 { name: 'type', type: 'string' }, |
|
98 { name: 'alpha', type: 'float' }, |
|
99 { name: 'beta', type: 'float' }, |
|
100 { name: 'humulene', type: 'float' }, |
|
101 { name: 'caryophyllene', type: 'float' }, |
|
102 { name: 'cohumulone', type: 'float' }, |
|
103 { name: 'myrcene', type: 'float' }, |
|
104 { name: 'hsi', type: 'float' }, |
|
105 { name: 'useat', type: 'string' }, |
|
106 { name: 'form', type: 'string' }, |
|
107 { name: 'total_oil', type: 'float' }, |
|
108 { name: 'cost', type: 'float' } |
|
109 ], |
|
110 url: hopUrl, |
|
111 async: true |
|
112 }; |
|
113 var hoplist = new $.jqx.dataAdapter(hopInvSource); |
|
114 |
|
115 // dropdownlist datasource from inventory_miscs |
|
116 var miscUrl = "getmiscsources.php"; |
|
117 var miscInvSource = { |
|
118 datatype: "json", |
|
119 datafields: [ |
|
120 { name: 'record', type: 'number' }, |
|
121 { name: 'name', type: 'string' }, |
|
122 { name: 'type', type: 'string' }, |
|
123 { name: 'use_use', type: 'string' }, |
|
124 { name: 'amount_is_weight', type: 'bool' }, |
|
125 { name: 'time', type: 'float' }, |
|
126 { name: 'cost', type: 'float' } |
|
127 ], |
|
128 url: miscUrl, |
|
129 async: true |
|
130 }; |
|
131 var misclist = new $.jqx.dataAdapter(miscInvSource); |
|
132 |
|
133 // dropdownlist datasource from inventory_yeasts |
|
134 var yeastUrl = "getyeastsources.php"; |
|
135 var yeastInvSource = { |
|
136 datatype: "json", |
|
137 datafields: [ |
|
138 { name: 'record', type: 'number' }, |
|
139 { name: 'name', type: 'string' }, |
|
140 { name: 'type', type: 'string' }, |
|
141 { name: 'form', type: 'string' }, |
|
142 { name: 'laboratory', type: 'string' }, |
|
143 { name: 'product_id', type: 'string' }, |
|
144 { name: 'min_temperature', type: 'float' }, |
|
145 { name: 'max_temperature', type: 'float' }, |
|
146 { name: 'attenuation', type: 'float' }, |
|
147 { name: 'cost', type: 'float' } |
|
148 ], |
|
149 url: yeastUrl, |
|
150 async: true |
|
151 }; |
|
152 var yeastlist = new $.jqx.dataAdapter(yeastInvSource); |
|
153 |
|
154 // dropdownlist datasource from inventory_waters |
|
155 var waterUrl = "getwatersources.php"; |
|
156 var waterInvSource = { |
|
157 datatype: "json", |
|
158 datafields: [ |
|
159 { name: 'record', type: 'number' }, |
|
160 { name: 'name', type: 'string' }, |
|
161 { name: 'unlimited_stock', type: 'bool' }, |
|
162 { name: 'calcium', type: 'float' }, |
|
163 { name: 'sulfate', type: 'float' }, |
|
164 { name: 'chloride', type: 'float' }, |
|
165 { name: 'sodium', type: 'float' }, |
|
166 { name: 'magnesium', type: 'float' }, |
|
167 { name: 'ph', type: 'float' }, |
|
168 { name: 'total_alkalinity', type: 'float' }, |
|
169 { name: 'cost', type: 'float' }, |
|
170 ], |
|
171 url: waterUrl, |
|
172 async: true |
|
173 }; |
|
174 var waterlist = new $.jqx.dataAdapter(waterInvSource); |
|
175 |
|
176 // dropdownlist datasource from profile_mash |
|
177 var mashUrl = "include/db_profile_mash.php"; |
|
178 var mashInvSource = { |
|
179 datatype: "json", |
|
180 datafields: [ |
|
181 { name: 'record', type: 'number' }, |
|
182 { name: 'name', type: 'string' }, |
|
183 { name: 'steps', type: 'array' } |
|
184 ], |
|
185 url: mashUrl, |
|
186 async: true |
|
187 }; |
|
188 var mashlist = new $.jqx.dataAdapter(mashInvSource); |
|
189 |
25 |
190 |
26 |
191 |
27 function getLocalization() { |
192 function getLocalization() { |
28 var localizationobj = {}; |
193 var localizationobj = {}; |
29 localizationobj.pagerGoToPageString = "Gehe zu:"; |
194 localizationobj.pagerGoToPageString = "Gehe zu:"; |