196 var datarecord = equipmentlist.records[index]; |
196 var datarecord = equipmentlist.records[index]; |
197 $("#eq_name").val(datarecord.name); |
197 $("#eq_name").val(datarecord.name); |
198 $("#eq_boil_size").val(datarecord.boil_size); |
198 $("#eq_boil_size").val(datarecord.boil_size); |
199 $("#eq_batch_size").val(datarecord.batch_size); |
199 $("#eq_batch_size").val(datarecord.batch_size); |
200 $("#eq_tun_volume").val(datarecord.tun_volume); |
200 $("#eq_tun_volume").val(datarecord.tun_volume); |
201 $("#eq_tun_weight").val(datarecord.tun_weight); |
201 dataRecord.eq_tun_weight = datarecord.tun_weight; |
202 $("#eq_tun_specific_heat").val(datarecord.tun_specific_heat); |
202 dataRecord.eq_tun_specific_heat = datarecord.tun_specific_heat; |
203 $("#eq_tun_material").val(datarecord.tun_material); |
203 dataRecord.eq_tun_material = datarecord.tun_material; |
204 $("#eq_tun_height").val(datarecord.tun_height); |
204 dataRecord.eq_tun_height = datarecord.tun_height; |
205 $("#eq_top_up_water").val(datarecord.top_up_water); |
205 $("#eq_top_up_water").val(datarecord.top_up_water); |
206 $("#eq_trub_chiller_loss").val(datarecord.trub_chiller_loss); |
206 $("#eq_trub_chiller_loss").val(datarecord.trub_chiller_loss); |
207 $("#eq_evap_rate").val(datarecord.evap_rate); |
207 $("#eq_evap_rate").val(datarecord.evap_rate); |
208 $("#eq_boil_time").val(datarecord.boil_time); |
208 $("#eq_boil_time").val(datarecord.boil_time); |
209 $("#eq_calc_boil_volume").val(datarecord.calc_boil_volume); |
209 dataRecord.eq_calc_boil_volume = datarecord.calc_boil_volume; |
210 $("#eq_top_up_kettle").val(datarecord.top_up_kettle); |
210 $("#eq_top_up_kettle").val(datarecord.top_up_kettle); |
211 $("#eq_hop_utilization").val(datarecord.hop_utilization); |
211 $("#eq_hop_utilization").val(datarecord.hop_utilization); |
212 $("#eq_notes").val(datarecord.notes); |
212 $("#eq_notes").val(datarecord.notes); |
213 $("#eq_lauter_volume").val(datarecord.lauter_volume); |
213 $("#eq_lauter_volume").val(datarecord.lauter_volume); |
214 $("#eq_lauter_height").val(datarecord.lauter_height); |
214 dataRecord.eq_lauter_height = datarecord.lauter_height; |
215 $("#eq_lauter_deadspace").val(datarecord.lauter_deadspace); |
215 $("#eq_lauter_deadspace").val(datarecord.lauter_deadspace); |
216 $("#eq_kettle_volume").val(datarecord.kettle_volume); |
216 $("#eq_kettle_volume").val(datarecord.kettle_volume); |
217 $("#eq_kettle_height").val(datarecord.kettle_height); |
217 dataRecord.eq_kettle_height = datarecord.kettle_height; |
218 $("#eq_mash_volume").val(datarecord.mash_volume); |
218 $("#eq_mash_volume").val(datarecord.mash_volume); |
219 $("#eq_efficiency").val(datarecord.efficiency); |
219 $("#eq_efficiency").val(datarecord.efficiency); |
220 } |
220 } |
221 }); |
221 }); |
222 |
222 |
229 $("#stage").jqxTooltip({ content: 'De productie fase van dit product.' }); |
229 $("#stage").jqxTooltip({ content: 'De productie fase van dit product.' }); |
230 $("#pnotes").jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' }); |
230 $("#pnotes").jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' }); |
231 $("#eq_name").jqxTooltip({ content: 'De naam van deze brouw apparatuur.' }); |
231 $("#eq_name").jqxTooltip({ content: 'De naam van deze brouw apparatuur.' }); |
232 $("#eq_notes").jqxTooltip({ content: 'Opmerkingen over deze apparatuur.' }); |
232 $("#eq_notes").jqxTooltip({ content: 'Opmerkingen over deze apparatuur.' }); |
233 $("#eq_tun_volume").jqxTooltip({ content: 'Maisch ketel volume.' }); |
233 $("#eq_tun_volume").jqxTooltip({ content: 'Maisch ketel volume.' }); |
234 $("#eq_tun_height").jqxTooltip({ content: 'Maisch ketel hoogte in cm.' }); |
|
235 $("#eq_tun_weight").jqxTooltip({ content: 'Maisch ketel gewicht in Kg.' }); |
|
236 $("#eq_tun_material").jqxTooltip({ content: 'Maisch ketel materiaal. Nodig om de juiste inmaisch temperatuur te berekenen.' }); |
|
237 $("#eq_mash_volume").jqxTooltip({ content: 'Maisch water voor de eerste stap.' }); |
234 $("#eq_mash_volume").jqxTooltip({ content: 'Maisch water voor de eerste stap.' }); |
238 $("#eq_lauter_volume").jqxTooltip({ content: 'Filterkuip volume.' }); |
235 $("#eq_lauter_volume").jqxTooltip({ content: 'Filterkuip volume.' }); |
239 $("#eq_lauter_height").jqxTooltip({ content: 'Hoogte van de filterkuip in cm.' }); |
|
240 $("#eq_lauter_deadspace").jqxTooltip({ content: 'Filterkuip verlies in liters.' }); |
236 $("#eq_lauter_deadspace").jqxTooltip({ content: 'Filterkuip verlies in liters.' }); |
241 $("#eq_efficiency").jqxTooltip({ content: 'Gemiddeld brouwzaal rendement.' }); |
237 $("#eq_efficiency").jqxTooltip({ content: 'Gemiddeld brouwzaal rendement.' }); |
242 $("#eq_kettle_volume").jqxTooltip({ content: 'Kook ketel volume in liters.' }); |
238 $("#eq_kettle_volume").jqxTooltip({ content: 'Kook ketel volume in liters.' }); |
243 $("#eq_kettle_height").jqxTooltip({ content: 'Kook ketel hoogte in cm.' }); |
|
244 $("#eq_boil_size").jqxTooltip({ content: 'Normaal kook volume in liters' }); |
239 $("#eq_boil_size").jqxTooltip({ content: 'Normaal kook volume in liters' }); |
245 $("#eq_evap_rate").jqxTooltip({ content: 'Verdamping in liters per uur.' }); |
240 $("#eq_evap_rate").jqxTooltip({ content: 'Verdamping in liters per uur.' }); |
246 $("#eq_boil_time").jqxTooltip({ content: 'Normale kooktijd in minuten..' }); |
241 $("#eq_boil_time").jqxTooltip({ content: 'Normale kooktijd in minuten..' }); |
247 $("#eq_top_up_kettle").jqxTooltip({ content: 'Extra water toevoegen tijdens de kook.' }); |
242 $("#eq_top_up_kettle").jqxTooltip({ content: 'Extra water toevoegen tijdens de kook.' }); |
248 $("#eq_hop_utilization").jqxTooltip({ content: '100% voor kleine installaties, hoger voor grote brouwerijen.' }); |
243 $("#eq_hop_utilization").jqxTooltip({ content: '100% voor kleine installaties, hoger voor grote brouwerijen.' }); |
417 $("#eq_name").val(dataRecord.eq_name); |
412 $("#eq_name").val(dataRecord.eq_name); |
418 $("#eq_notes").val(dataRecord.eq_notes); |
413 $("#eq_notes").val(dataRecord.eq_notes); |
419 $("#eq_boil_size").val(dataRecord.eq_boil_size); |
414 $("#eq_boil_size").val(dataRecord.eq_boil_size); |
420 $("#eq_batch_size").val(dataRecord.eq_batch_size); |
415 $("#eq_batch_size").val(dataRecord.eq_batch_size); |
421 $("#eq_tun_volume").val(dataRecord.eq_tun_volume); |
416 $("#eq_tun_volume").val(dataRecord.eq_tun_volume); |
422 $("#eq_tun_weight").val(dataRecord.eq_tun_weight); |
|
423 $("#eq_tun_specific_heat").val(dataRecord.eq_tun_specific_heat); |
|
424 $("#eq_tun_material").val(dataRecord.eq_tun_material); |
|
425 $("#eq_tun_height").val(dataRecord.eq_tun_height); |
|
426 $("#eq_top_up_water").val(dataRecord.eq_top_up_water); |
417 $("#eq_top_up_water").val(dataRecord.eq_top_up_water); |
427 $("#eq_trub_chiller_loss").val(dataRecord.eq_trub_chiller_loss); |
418 $("#eq_trub_chiller_loss").val(dataRecord.eq_trub_chiller_loss); |
428 $("#eq_evap_rate").val(dataRecord.eq_evap_rate); |
419 $("#eq_evap_rate").val(dataRecord.eq_evap_rate); |
429 $("#eq_boil_time").val(dataRecord.eq_boil_time); |
420 $("#eq_boil_time").val(dataRecord.eq_boil_time); |
430 $("#eq_calc_boil_volume").val(dataRecord.eq_calc_boil_volume); |
|
431 $("#eq_top_up_kettle").val(dataRecord.eq_top_up_kettle); |
421 $("#eq_top_up_kettle").val(dataRecord.eq_top_up_kettle); |
432 $("#eq_hop_utilization").val(dataRecord.eq_hop_utilization); |
422 $("#eq_hop_utilization").val(dataRecord.eq_hop_utilization); |
433 $("#eq_lauter_volume").val(dataRecord.eq_lauter_volume); |
423 $("#eq_lauter_volume").val(dataRecord.eq_lauter_volume); |
434 $("#eq_lauter_height").val(dataRecord.eq_lauter_height); |
|
435 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace); |
424 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace); |
436 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume); |
425 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume); |
437 $("#eq_kettle_height").val(dataRecord.eq_kettle_height); |
|
438 $("#eq_mash_volume").val(dataRecord.eq_mash_volume); |
426 $("#eq_mash_volume").val(dataRecord.eq_mash_volume); |
439 $("#eq_efficiency").val(dataRecord.eq_efficiency); |
427 $("#eq_efficiency").val(dataRecord.eq_efficiency); |
440 // Brewdate |
428 // Brewdate |
441 $("#brew_date_start").val(dataRecord.brew_date_start); |
429 $("#brew_date_start").val(dataRecord.brew_date_start); |
442 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); |
430 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); |
569 $("#log_brew").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
557 $("#log_brew").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
570 $("#log_fermentation").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
558 $("#log_fermentation").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
571 $("#inventory_reduced").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
559 $("#inventory_reduced").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
572 $('#inventory_reduced').on('checked', function (event) { |
560 $('#inventory_reduced').on('checked', function (event) { |
573 // Call a script to do the work and block this. |
561 // Call a script to do the work and block this. |
574 // Note that this script must set this flag too, so of the user doesn't Save it is still set. |
562 // Note that this script must set this flag too, so if the user doesn't Save it is still set. |
575 // Call the script with the uuid. |
563 // Call the script with the uuid. |
576 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
564 $("#inventory_reduced").jqxCheckBox({ disabled : true }); |
577 }); |
565 }); |
578 $("#plocked").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
566 $("#plocked").jqxCheckBox({ theme: theme, width: 120, height: 23, disabled : true }); |
579 $('#plocked').on('checked', function (event) { |
567 $('#plocked').on('checked', function (event) { |
590 }); |
578 }); |
591 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
579 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
592 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
580 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
593 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
581 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
594 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
582 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
595 $("#eq_tun_weight").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2 }); |
|
596 $("#eq_tun_specific_heat").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 3 }); |
|
597 $("#eq_tun_material").jqxInput({ theme: theme, width: 100, height: 23 }); |
|
598 $("#eq_tun_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
599 $("#eq_top_up_water").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
583 $("#eq_top_up_water").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
600 $("#eq_trub_chiller_loss").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
584 $("#eq_trub_chiller_loss").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
601 $("#eq_evap_rate").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2, }); |
585 $("#eq_evap_rate").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2, }); |
602 $("#eq_boil_time").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
586 $("#eq_boil_time").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
603 $("#eq_calc_boil_volume").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
|
604 $("#eq_top_up_kettle").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
587 $("#eq_top_up_kettle").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
605 $("#eq_hop_utilization").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
588 $("#eq_hop_utilization").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); |
606 $("#eq_notes").jqxInput({ theme: theme, width: 640, height: 100 }); |
589 $("#eq_notes").jqxInput({ theme: theme, width: 800, height: 100 }); |
607 $("#eq_lauter_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
590 $("#eq_lauter_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
608 $("#eq_lauter_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
609 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
591 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
610 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
592 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
611 $("#eq_kettle_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
|
612 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
593 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
613 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
594 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); |
614 // Brewday |
595 // Brewday |
615 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
596 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); |
616 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
597 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 90, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
714 plocked: $("#plocked").val(), |
695 plocked: $("#plocked").val(), |
715 eq_name: $("#eq_name").val(), |
696 eq_name: $("#eq_name").val(), |
716 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')), |
697 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')), |
717 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')), |
698 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')), |
718 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')), |
699 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')), |
719 eq_tun_weight: parseFloat($("#eq_tun_weight").jqxNumberInput('decimal')), |
700 eq_tun_weight: dataRecord.eq_tun_weight, |
720 eq_tun_specific_heat: parseFloat($("#eq_tun_specific_heat").jqxNumberInput('decimal')), |
701 eq_tun_specific_heat: dataRecord.eq_tun_specific_heat, |
721 eq_tun_material: $("#eq_tun_material").val(), |
702 eq_tun_material: dataRecord.eq_tun_material, |
722 eq_tun_height: parseFloat($("#eq_tun_height").jqxNumberInput('decimal')), |
703 eq_tun_height: dataRecord.eq_tun_height, |
723 eq_top_up_water: parseFloat($("#eq_top_up_water").jqxNumberInput('decimal')), |
704 eq_top_up_water: parseFloat($("#eq_top_up_water").jqxNumberInput('decimal')), |
724 eq_trub_chiller_loss: parseFloat($("#eq_trub_chiller_loss").jqxNumberInput('decimal')), |
705 eq_trub_chiller_loss: parseFloat($("#eq_trub_chiller_loss").jqxNumberInput('decimal')), |
725 eq_evap_rate: parseFloat($("#eq_evap_rate").jqxNumberInput('decimal')), |
706 eq_evap_rate: parseFloat($("#eq_evap_rate").jqxNumberInput('decimal')), |
726 eq_boil_time: parseFloat($("#eq_boil_time").jqxNumberInput('decimal')), |
707 eq_boil_time: parseFloat($("#eq_boil_time").jqxNumberInput('decimal')), |
727 eq_calc_boil_volume: $("#eq_calc_boil_volume").val(), |
708 eq_calc_boil_volume: dataRecord.eq_calc_boil_volume, |
728 eq_top_up_kettle: parseFloat($("#eq_top_up_kettle").jqxNumberInput('decimal')), |
709 eq_top_up_kettle: parseFloat($("#eq_top_up_kettle").jqxNumberInput('decimal')), |
729 eq_hop_utilization: parseFloat($("#eq_hop_utilization").jqxNumberInput('decimal')), |
710 eq_hop_utilization: parseFloat($("#eq_hop_utilization").jqxNumberInput('decimal')), |
730 eq_notes: $("#eq_notes").val(), |
711 eq_notes: $("#eq_notes").val(), |
731 eq_lauter_volume: parseFloat($("#eq_lauter_volume").jqxNumberInput('decimal')), |
712 eq_lauter_volume: parseFloat($("#eq_lauter_volume").jqxNumberInput('decimal')), |
732 eq_lauter_height: parseFloat($("#eq_lauter_height").jqxNumberInput('decimal')), |
713 eq_lauter_height: dataRecord.eq_lauter_height, |
733 eq_lauter_deadspace: parseFloat($("#eq_lauter_deadspace").jqxNumberInput('decimal')), |
714 eq_lauter_deadspace: parseFloat($("#eq_lauter_deadspace").jqxNumberInput('decimal')), |
734 eq_kettle_volume: parseFloat($("#eq_kettle_volume").jqxNumberInput('decimal')), |
715 eq_kettle_volume: parseFloat($("#eq_kettle_volume").jqxNumberInput('decimal')), |
735 eq_kettle_height: parseFloat($("#eq_kettle_height").jqxNumberInput('decimal')), |
716 eq_kettle_height: dataRecord.eq_kettle_height, |
736 eq_mash_volume: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), |
717 eq_mash_volume: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), |
737 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')) |
718 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')) |
738 }; |
719 }; |
739 var data = "update=true&" + $.param(row); |
720 var data = "update=true&" + $.param(row); |
740 $.ajax({ |
721 $.ajax({ |