159 // Prepare the data |
159 // Prepare the data |
160 var source = { |
160 var source = { |
161 datatype: "json", |
161 datatype: "json", |
162 cache: false, |
162 cache: false, |
163 datafields: [ |
163 datafields: [ |
|
164 // From prod_main |
164 { name: 'record', type: 'number' }, |
165 { name: 'record', type: 'number' }, |
165 { name: 'uuid', type: 'string' }, |
166 { name: 'puuid', type: 'string' }, |
166 { name: 'name', type: 'string' }, |
167 { name: 'pname', type: 'string' }, |
167 { name: 'code', type: 'string' }, |
168 { name: 'code', type: 'string' }, |
168 { name: 'birth', type: 'string' }, |
169 { name: 'birth', type: 'string' }, |
169 { name: 'stage', type: 'string' }, |
170 { name: 'stage', type: 'string' }, |
170 { name: 'notes', type: 'string' }, |
171 { name: 'pnotes', type: 'string' }, |
171 { name: 'log_brew', type: 'bool' }, |
172 { name: 'log_brew', type: 'bool' }, |
172 { name: 'log_fermentation', type: 'bool' }, |
173 { name: 'log_fermentation', type: 'bool' }, |
173 { name: 'inventory_reduced', type: 'bool' }, |
174 { name: 'inventory_reduced', type: 'bool' }, |
174 { name: 'locked', type: 'bool' }, |
175 { name: 'plocked', type: 'bool' }, |
175 { name: 'eq_name', type: 'string' }, |
176 { name: 'eq_name', type: 'string' }, |
176 { name: 'eq_boil_size', type: 'float' }, |
177 { name: 'eq_boil_size', type: 'float' }, |
177 { name: 'eq_batch_size', type: 'float' }, |
178 { name: 'eq_batch_size', type: 'float' }, |
178 { name: 'eq_tun_volume', type: 'float' }, |
179 { name: 'eq_tun_volume', type: 'float' }, |
179 { name: 'eq_tun_weight', type: 'float' }, |
180 { name: 'eq_tun_weight', type: 'float' }, |
196 { name: 'eq_mash_volume', type: 'float' }, |
197 { name: 'eq_mash_volume', type: 'float' }, |
197 { name: 'eq_efficiency', type: 'float' }, |
198 { name: 'eq_efficiency', type: 'float' }, |
198 { name: 'brew_date_start', type: 'string' }, |
199 { name: 'brew_date_start', type: 'string' }, |
199 { name: 'brew_mash_ph', type: 'float' }, |
200 { name: 'brew_mash_ph', type: 'float' }, |
200 { name: 'brew_mash_sg', type: 'float' }, |
201 { name: 'brew_mash_sg', type: 'float' }, |
201 |
202 { name: 'brew_sparge_temperature', type: 'float' }, |
202 { name: 'brew_date_end', type: 'string' } |
203 { name: 'brew_sparge_volume', type: 'float' }, |
|
204 { name: 'brew_preboil_volume', type: 'float' }, |
|
205 { name: 'brew_preboil_sg', type: 'float' }, |
|
206 { name: 'brew_preboil_ph', type: 'float' }, |
|
207 { name: 'brew_aboil_volume', type: 'float' }, |
|
208 { name: 'brew_aboil_sg', type: 'float' }, |
|
209 { name: 'brew_aboil_ph', type: 'float' }, |
|
210 { name: 'brew_aboil_efficiency', type: 'float' }, |
|
211 { name: 'brew_cooling_method', type: 'string' }, |
|
212 { name: 'brew_cooling_time', type: 'float' }, |
|
213 { name: 'brew_cooling_to', type: 'float' }, |
|
214 { name: 'brew_whirlpool9', type: 'float' }, |
|
215 { name: 'brew_whirlpool7', type: 'float' }, |
|
216 { name: 'brew_whirlpool6', type: 'float' }, |
|
217 { name: 'brew_whirlpool2', type: 'float' }, |
|
218 { name: 'brew_fermenter_volume', type: 'float' }, |
|
219 { name: 'brew_fermenter_extrawater', type: 'float' }, |
|
220 { name: 'brew_aeration_time', type: 'float' }, |
|
221 { name: 'brew_aeration_speed', type: 'float' }, |
|
222 { name: 'brew_aeration_type', type: 'string' }, |
|
223 { name: 'brew_fermenter_sg', type: 'float' }, |
|
224 { name: 'brew_fermenter_ibu', type: 'float' }, |
|
225 { name: 'brew_date_end', type: 'string' }, |
|
226 { name: 'brew_log_available', type: 'bool' }, |
|
227 { name: 'primary_start_temp', type: 'float' }, |
|
228 { name: 'primary_max_temp', type: 'float' }, |
|
229 { name: 'primary_end_temp', type: 'float' }, |
|
230 { name: 'primary_end_sg', type: 'float' }, |
|
231 { name: 'primary_end_date', type: 'string' }, |
|
232 { name: 'secondary_temp', type: 'float' }, |
|
233 { name: 'secondary_end_date', type: 'string' }, |
|
234 { name: 'tertiary_temp', type: 'float' }, |
|
235 { name: 'package_date', type: 'string' }, |
|
236 { name: 'bottle_amount', type: 'float' }, |
|
237 { name: 'bottle_carbonation', type: 'float' }, |
|
238 { name: 'bottle_priming_sugar', type: 'string' }, |
|
239 { name: 'bottle_priming_amount', type: 'float' }, |
|
240 { name: 'bottle_carbonation_temp', type: 'float' }, |
|
241 { name: 'keg_amount', type: 'float' }, |
|
242 { name: 'keg_carbonation', type: 'float' }, |
|
243 { name: 'keg_priming_sugar', type: 'string' }, |
|
244 { name: 'keg_priming_amount', type: 'float' }, |
|
245 { name: 'keg_carbonation_temp', type: 'float' }, |
|
246 { name: 'keg_forced_carb', type: 'bool' }, |
|
247 { name: 'keg_pressure', type: 'float' }, |
|
248 { name: 'keg_priming_factor', type: 'float' }, |
|
249 { name: 'taste_notes', type: 'string' }, |
|
250 { name: 'taste_rate', type: 'float' }, |
|
251 { name: 'taste_date', type: 'string' }, |
|
252 { name: 'taste_color', type: 'string' }, |
|
253 { name: 'taste_transparency', type: 'string' }, |
|
254 { name: 'taste_head', type: 'string' }, |
|
255 { name: 'taste_aroma', type: 'string' }, |
|
256 { name: 'taste_taste', type: 'string' }, |
|
257 { name: 'taste_mouthfeel', type: 'string' }, |
|
258 { name: 'taste_aftertaste', type: 'string' }, |
|
259 // From prod_recipes |
|
260 { name: 'uuid', type: 'string' }, |
|
261 { name: 'locked', type: 'bool' }, |
|
262 { name: 'st_name', type: 'string' }, |
|
263 { name: 'st_letter', type: 'string' }, |
|
264 { name: 'st_guide', type: 'string' }, |
|
265 { name: 'st_category', type: 'string' }, |
|
266 { name: 'st_category_number', type: 'float' }, |
|
267 { name: 'st_type', type: 'string' }, |
|
268 { name: 'st_og_min', type: 'float' }, |
|
269 { name: 'st_og_max', type: 'float' }, |
|
270 { name: 'st_fg_min', type: 'float' }, |
|
271 { name: 'st_fg_max', type: 'float' }, |
|
272 { name: 'st_ibu_min', type: 'float' }, |
|
273 { name: 'st_ibu_max', type: 'float' }, |
|
274 { name: 'st_color_min', type: 'float' }, |
|
275 { name: 'st_color_max', type: 'float' }, |
|
276 { name: 'st_carb_min', type: 'float' }, |
|
277 { name: 'st_carb_max', type: 'float' }, |
|
278 { name: 'st_abv_min', type: 'float' }, |
|
279 { name: 'st_abv_max', type: 'float' }, |
|
280 { name: 'name', type: 'string' }, |
|
281 { name: 'notes', type: 'string' }, |
|
282 { name: 'type', type: 'string' }, |
|
283 { name: 'batch_size', type: 'float' }, |
|
284 { name: 'boil_size', type: 'float' }, |
|
285 { name: 'boil_time', type: 'float' }, |
|
286 { name: 'efficiency', type: 'float' }, |
|
287 { name: 'est_og', type: 'float' }, |
|
288 { name: 'est_fg', type: 'float' }, |
|
289 { name: 'est_abv', type: 'float' }, |
|
290 { name: 'est_color', type: 'float' }, |
|
291 { name: 'color_method', type: 'string' }, |
|
292 { name: 'est_ibu', type: 'float' }, |
|
293 { name: 'ibu_method', type: 'string' }, |
|
294 { name: 'est_carb', type: 'float' }, |
|
295 { name: 'mash_sparge_temp', type: 'float' }, |
|
296 { name: 'mash_ph', type: 'float' }, |
|
297 { name: 'mash_name', type: 'string' }, |
|
298 { name: 'fermentables', type: 'array' }, |
|
299 { name: 'hops', type: 'string' }, |
|
300 { name: 'miscs', type: 'string' }, |
|
301 { name: 'yeasts', type: 'string' }, |
|
302 { name: 'waters', type: 'array' }, |
|
303 { name: 'mashs', type: 'string' } |
203 ], |
304 ], |
204 id: 'record', |
305 id: 'record', |
205 // data: "record=" + my_record, |
306 url: url + '?record=' + my_record |
206 url: url |
|
207 // url: url + '?record=' + my_record, |
|
208 }; |
307 }; |
209 // Load data and select one record. |
308 // Load data and select one record. |
210 var dataAdapter = new $.jqx.dataAdapter(source, { |
309 var dataAdapter = new $.jqx.dataAdapter(source, { |
211 loadComplete: function () { |
310 loadComplete: function () { |
212 var records = dataAdapter.records; |
311 var records = dataAdapter.records; |
213 dataRecord = records[0]; |
312 dataRecord = records[0]; |
214 // Hidden record uuid |
313 // Hidden record uuid |
215 this_uuid = dataRecord.uuid; |
314 this_uuid = dataRecord.puuid; |
216 $("#name").val(dataRecord.name); |
315 $("#pname").val(dataRecord.pname); |
217 $("#code").val(dataRecord.code); |
316 $("#code").val(dataRecord.code); |
218 $("#birth").val(dataRecord.birth); |
317 $("#birth").val(dataRecord.birth); |
219 $("#stage").val(dataRecord.stage); |
318 $("#stage").val(dataRecord.stage); |
220 $("#notes").val(dataRecord.notes); |
319 $("#pnotes").val(dataRecord.pnotes); |
221 $("#log_brew").val(dataRecord.log_brew); |
320 $("#log_brew").val(dataRecord.log_brew); |
222 $("#log_fermentation").val(dataRecord.log_fermentation); |
321 $("#log_fermentation").val(dataRecord.log_fermentation); |
223 $("#inventory_reduced").val(dataRecord.inventory_reduced); |
322 $("#inventory_reduced").val(dataRecord.inventory_reduced); |
224 $("#locked").val(dataRecord.locked); |
323 $("#plocked").val(dataRecord.plocked); |
225 $("#eq_name").val(dataRecord.eq_name); |
324 $("#eq_name").val(dataRecord.eq_name); |
226 $("#eq_notes").val(dataRecord.eq_notes); |
325 $("#eq_notes").val(dataRecord.eq_notes); |
227 $("#eq_boil_size").val(dataRecord.eq_boil_size); |
326 $("#eq_boil_size").val(dataRecord.eq_boil_size); |
228 $("#eq_batch_size").val(dataRecord.eq_batch_size); |
327 $("#eq_batch_size").val(dataRecord.eq_batch_size); |
229 $("#eq_tun_volume").val(dataRecord.eq_tun_volume); |
328 $("#eq_tun_volume").val(dataRecord.eq_tun_volume); |
243 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace); |
342 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace); |
244 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume); |
343 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume); |
245 $("#eq_kettle_height").val(dataRecord.eq_kettle_height); |
344 $("#eq_kettle_height").val(dataRecord.eq_kettle_height); |
246 $("#eq_mash_volume").val(dataRecord.eq_mash_volume); |
345 $("#eq_mash_volume").val(dataRecord.eq_mash_volume); |
247 $("#eq_efficiency").val(dataRecord.eq_efficiency); |
346 $("#eq_efficiency").val(dataRecord.eq_efficiency); |
|
347 // Brewdate |
248 $("#brew_date_start").val(dataRecord.brew_date_start); |
348 $("#brew_date_start").val(dataRecord.brew_date_start); |
|
349 |
249 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); |
350 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); |
250 $("#brew_mash_sg").val(dataRecord.brew_mash_sg); |
351 $("#brew_mash_sg").val(dataRecord.brew_mash_sg); |
|
352 // brew_mash_efficiency to calculate on th fly. |
|
353 // Header Spoelen en filteren |
|
354 $("#brew_sparge_temperature").val(dataRecord.brew_sparge_temperature); |
|
355 $("#brew_sparge_volume").val(dataRecord.brew_sparge_volume); |
|
356 //$("#brew_sparge_ph").val(dataRecord.brew_sparge_ph); |
|
357 // Header Beluchten |
|
358 $("#brew_aeration_type").val(dataRecord.brew_aeration_type); |
|
359 $("#brew_aeration_time").val(dataRecord.brew_aeration_time); |
|
360 $("#brew_aeration_speed").val(dataRecord.brew_aeration_speed); |
|
361 |
|
362 $("#brew_preboil_ph").val(dataRecord.brew_preboil_ph); |
|
363 $("#brew_preboil_sg").val(dataRecord.brew_preboil_sg); |
|
364 $("#brew_preboil_volume").val(dataRecord.brew_preboil_volume); |
|
365 //$("#brew_preboil_efficiency").val(dataRecord.brew_preboil_efficiency); |
|
366 // Header Koelen en whirlpoolen |
|
367 $("#brew_whirlpool9").val(dataRecord.brew_whirlpool9); |
|
368 $("#brew_whirlpool7").val(dataRecord.brew_whirlpool7); |
|
369 $("#brew_whirlpool6").val(dataRecord.brew_whirlpool6); |
|
370 $("#brew_whirlpool2").val(dataRecord.brew_whirlpool2); |
|
371 // Header Naar gistvat |
|
372 $("#brew_fermenter_volume").val(dataRecord.brew_fermenter_volume); |
|
373 $("#brew_fermenter_sg").val(dataRecord.brew_fermenter_sg); |
|
374 $("#brew_fermenter_ibu").val(dataRecord.brew_fermenter_ibu); |
|
375 |
|
376 $("#brew_aboil_ph").val(dataRecord.brew_aboil_ph); |
|
377 $("#brew_aboil_sg").val(dataRecord.brew_aboil_sg); |
|
378 $("#brew_aboil_volume").val(dataRecord.brew_aboil_volume); |
|
379 $("#brew_aboil_efficiency").val(dataRecord.brew_aboil_efficiency); |
|
380 // Header Koelen en whirlpoolen |
|
381 $("#brew_cooling_to").val(dataRecord.brew_cooling_to); |
|
382 $("#brew_cooling_method").val(dataRecord.brew_cooling_method); |
|
383 $("#brew_cooling_time").val(dataRecord.brew_cooling_time); |
|
384 // Niks |
|
385 // Header Naar gistvat |
|
386 $("#brew_fermenter_extrawater").val(dataRecord.brew_fermenter_extrawater); |
|
387 $("#brew_fermenter_extrasugar").val(dataRecord.brew_fermenter_extrasugar); |
|
388 $("#brew_fermenter_color").val(dataRecord.brew_fermenter_color); |
251 |
389 |
252 $("#brew_date_end").val(dataRecord.brew_date_end); |
390 $("#brew_date_end").val(dataRecord.brew_date_end); |
253 |
391 |
254 switch (dataRecord.stage) { |
392 switch (dataRecord.stage) { |
255 case 'Plan': brewstage = 0; break; |
393 case 'Plan': brewstage = 0; break; |
289 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
427 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
290 else if ($('#inventory_reduced').jqxCheckBox('checked')) |
428 else if ($('#inventory_reduced').jqxCheckBox('checked')) |
291 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
429 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
292 }, |
430 }, |
293 loadError: function (jqXHR, status, error) { |
431 loadError: function (jqXHR, status, error) { |
294 }, |
|
295 beforeLoadComplete: function (records) { |
|
296 var filteredRecords = []; |
|
297 for (var i = 0; i < records.length; i++) { |
|
298 if (records[i].record == my_record) { |
|
299 filteredRecords.push(records[i]); |
|
300 } |
|
301 } |
|
302 return filteredRecords; |
|
303 } |
432 } |
304 }); |
433 }); |
305 dataAdapter.dataBind(); |
434 dataAdapter.dataBind(); |
306 |
435 |
307 // initialize the input fields. |
436 // initialize the input fields. |
308 var srcMaterial= [ "RVS", "Aluminium", "Kunststof", "Koper" ]; |
437 var srcMaterial= [ "RVS", "Aluminium", "Kunststof", "Koper" ]; |
309 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
438 var srcAeration= [ 'None', 'Air', 'Oxygen' ]; |
|
439 var srcCooling= [ '-', 'Emersion chiller', 'Counterflow chiller', 'Au bain marie', 'Natural' ]; |
|
440 // '-', 'Dompelkoeler', 'Tegenstroomkoeler', 'Au bain marie', 'Laten afkoelen' |
|
441 $("#pname").jqxInput({ theme: theme, width: 640, height: 23 }); |
310 $("#code").jqxInput({ theme: theme, width: 100, height: 23 }); |
442 $("#code").jqxInput({ theme: theme, width: 100, height: 23 }); |
311 $("#birth").jqxDateTimeInput({ theme: theme, width: 150, height: 23, formatString: 'yyyy-MM-dd' }); |
443 $("#birth").jqxDateTimeInput({ theme: theme, width: 150, height: 23, formatString: 'yyyy-MM-dd' }); |
312 $("#stage").jqxInput({ theme: theme, width: 100, height: 23 }); |
444 $("#stage").jqxInput({ theme: theme, width: 100, height: 23 }); |
313 $("#notes").jqxInput({ theme: theme, width: 960, height: 200 }); |
445 $("#pnotes").jqxInput({ theme: theme, width: 960, height: 200 }); |
314 $("#log_brew").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
446 $("#log_brew").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
315 $("#log_fermentation").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
447 $("#log_fermentation").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
316 $("#inventory_reduced").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
448 $("#inventory_reduced").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
317 $('#inventory_reduced').on('checked', function (event) { |
449 $('#inventory_reduced').on('checked', function (event) { |
318 // Call a script to do the work and block this. |
450 // Call a script to do the work and block this. |
319 // Note that this script must set this flag too, so of the user doesn't Save it is still set. |
451 // Note that this script must set this flag too, so of the user doesn't Save it is still set. |
320 // Call the script with the uuid. |
452 // Call the script with the uuid. |
321 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
453 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
322 }); |
454 }); |
323 $("#locked").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
455 $("#plocked").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
324 $('#locked').on('checked', function (event) { |
456 $('#plocked').on('checked', function (event) { |
325 $("#stage").val('Closed'); |
457 if (brewstage >= 10) { |
326 brewstage = 11; |
458 $("#stage").val('Closed'); |
327 }); |
459 brewstage = 11; |
328 $('#locked').on('unchecked', function (event) { |
460 } |
329 $("#stage").val('Ready'); |
461 }); |
330 brewstage = 10; |
462 $('#plocked').on('unchecked', function (event) { |
|
463 if (brewstage >= 10) { |
|
464 $("#stage").val('Ready'); |
|
465 brewstage = 10; |
|
466 } |
331 }); |
467 }); |
332 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
468 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
333 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
469 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
334 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
470 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
335 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
471 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
350 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
486 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
351 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
487 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
352 $("#eq_kettle_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
488 $("#eq_kettle_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
353 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
489 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
354 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
490 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
355 |
491 // Brewday |
356 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
492 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
357 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
493 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
358 $("#brew_mash_sg").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 3, spinButtons: true, spinButtonsStep: 0.001 }); |
494 $("#brew_mash_sg").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 3, spinButtons: true, spinButtonsStep: 0.001 }); |
359 |
495 $("#brew_mash_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
496 $("#brew_sparge_temperature").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
497 $("#brew_sparge_volume").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
498 $("#brew_sparge_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
499 $("#brew_preboil_volume").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
500 $("#brew_preboil_sg").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 3, spinButtons: true, spinButtonsStep: 0.001 }); |
|
501 $("#brew_preboil_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
502 $("#brew_preboil_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
503 $("#brew_aboil_volume").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
504 $("#brew_aboil_sg").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 3, spinButtons: true, spinButtonsStep: 0.001 }); |
|
505 $("#brew_aboil_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
506 $("#brew_aboil_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
507 $("#brew_whirlpool9").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 120, decimalDigits: 0, spinButtons: true }); |
|
508 $("#brew_whirlpool7").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 120, decimalDigits: 0, spinButtons: true }); |
|
509 $("#brew_whirlpool6").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 120, decimalDigits: 0, spinButtons: true }); |
|
510 $("#brew_whirlpool2").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 120, decimalDigits: 0, spinButtons: true }); |
|
511 $("#brew_cooling_method").jqxDropDownList({ theme: theme, source: srcCooling, width: 170, height: 23, dropDownHeight: 153 }); |
|
512 $("#brew_cooling_to").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
513 $("#brew_cooling_time").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 1440, decimalDigits: 0, spinButtons: true }); |
|
514 $("#brew_aeration_type").jqxDropDownList({ theme: theme, source: srcAeration, width: 100, height: 23, dropDownHeight: 95 }); |
|
515 $("#brew_aeration_time").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 1440, decimalDigits: 0, spinButtons: true }); |
|
516 $("#brew_aeration_speed").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, max: 1440, decimalDigits: 0, spinButtons: true }); |
|
517 $("#brew_fermenter_volume").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
518 $("#brew_fermenter_extrawater").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
519 $("#brew_fermenter_extrasugar").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
520 $("#brew_fermenter_sg").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 3 }); |
|
521 $("#brew_fermenter_ibu").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
|
522 $("#brew_fermenter_color").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
360 $("#brew_date_end").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
523 $("#brew_date_end").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
|
524 // Vergisting |
|
525 // Packaging |
|
526 // Tasting |
361 |
527 |
362 $('#jqxTabs').jqxTabs({ |
528 $('#jqxTabs').jqxTabs({ |
363 theme: theme, |
529 theme: theme, |
364 width: 1280, |
530 width: 1280, |
365 height: 630, |
531 height: 630, |