www/js/profile_setup.js

changeset 446
ee7bcfb8e270
parent 289
4082c41f45e9
child 494
af28ebe4a779
equal deleted inserted replaced
445:bcba4f17703f 446:ee7bcfb8e270
44 $("#factor_mashhop").jqxTooltip({ content: 'Het efficientie percentage voor hop tijdens de maisch.' }); 44 $("#factor_mashhop").jqxTooltip({ content: 'Het efficientie percentage voor hop tijdens de maisch.' });
45 $("#factor_fwh").jqxTooltip({ content: 'Het efficientie percentage voor First Wort Hop.' }); 45 $("#factor_fwh").jqxTooltip({ content: 'Het efficientie percentage voor First Wort Hop.' });
46 $("#factor_pellet").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van hop pellets.' }); 46 $("#factor_pellet").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van hop pellets.' });
47 $("#factor_plug").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van hop plugs.' }); 47 $("#factor_plug").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van hop plugs.' });
48 $("#factor_wethop").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van nat geplukte hop.' }); 48 $("#factor_wethop").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van nat geplukte hop.' });
49 $("#factor_cryohop").jqxTooltip({ content: 'Het efficientie percentage bij gebruik van Cryo Hop®.' });
49 $("#brix_correction").jqxTooltip({ content: 'Omzettingsfactor voor Plato naar Brix' }); 50 $("#brix_correction").jqxTooltip({ content: 'Omzettingsfactor voor Plato naar Brix' });
50 $("#grain_absorbtion").jqxTooltip({ content: 'Absorbtie van water door graan (L/Kg)' }); 51 $("#grain_absorbtion").jqxTooltip({ content: 'Absorbtie van water door graan (L/Kg)' });
51 52
52 // Prepare the data 53 // Prepare the data
53 var source = { 54 var source = {
59 { name: 'factor_mashhop', type: 'number' }, 60 { name: 'factor_mashhop', type: 'number' },
60 { name: 'factor_fwh', type: 'number' }, 61 { name: 'factor_fwh', type: 'number' },
61 { name: 'factor_pellet', type: 'number' }, 62 { name: 'factor_pellet', type: 'number' },
62 { name: 'factor_plug', type: 'number' }, 63 { name: 'factor_plug', type: 'number' },
63 { name: 'factor_wethop', type: 'number' }, 64 { name: 'factor_wethop', type: 'number' },
65 { name: 'factor_cryohop', type: 'number' },
64 { name: 'ibu_method', type: 'int' }, 66 { name: 'ibu_method', type: 'int' },
65 { name: 'color_method', type: 'int' }, 67 { name: 'color_method', type: 'int' },
66 { name: 'brix_correction', type: 'float' }, 68 { name: 'brix_correction', type: 'float' },
67 { name: 'grain_absorbtion', type: 'float' }, 69 { name: 'grain_absorbtion', type: 'float' },
68 { name: 'default_water', type: 'string' } 70 { name: 'default_water', type: 'string' }
79 $("#factor_mashhop").val(dataRecord.factor_mashhop); 81 $("#factor_mashhop").val(dataRecord.factor_mashhop);
80 $("#factor_fwh").val(dataRecord.factor_fwh); 82 $("#factor_fwh").val(dataRecord.factor_fwh);
81 $("#factor_pellet").val(dataRecord.factor_pellet); 83 $("#factor_pellet").val(dataRecord.factor_pellet);
82 $("#factor_plug").val(dataRecord.factor_plug); 84 $("#factor_plug").val(dataRecord.factor_plug);
83 $("#factor_wethop").val(dataRecord.factor_wethop); 85 $("#factor_wethop").val(dataRecord.factor_wethop);
86 $("#factor_cryohop").val(dataRecord.factor_cryohop);
84 $("#color_method").val(dataRecord.color_method); 87 $("#color_method").val(dataRecord.color_method);
85 $("#ibu_method").val(dataRecord.ibu_method); 88 $("#ibu_method").val(dataRecord.ibu_method);
86 $("#brix_correction").val(dataRecord.brix_correction); 89 $("#brix_correction").val(dataRecord.brix_correction);
87 $("#grain_absorbtion").val(dataRecord.grain_absorbtion); 90 $("#grain_absorbtion").val(dataRecord.grain_absorbtion);
88 }, 91 },
96 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 99 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
97 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 100 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
98 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 101 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
99 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 102 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
100 $("#factor_wethop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -98, max: -20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); 103 $("#factor_wethop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -98, max: -20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
104 $("#factor_cryohop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -20, max: 150, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' });
101 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true }); 105 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true });
102 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true }); 106 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true });
103 $("#color_method").jqxDropDownList({ 107 $("#color_method").jqxDropDownList({
104 theme: theme, 108 theme: theme,
105 source: ColorMethodAdapter, 109 source: ColorMethodAdapter,
137 factor_mashhop: $("#factor_mashhop").val(), 141 factor_mashhop: $("#factor_mashhop").val(),
138 factor_fwh: $("#factor_fwh").val(), 142 factor_fwh: $("#factor_fwh").val(),
139 factor_pellet: $("#factor_pellet").val(), 143 factor_pellet: $("#factor_pellet").val(),
140 factor_plug: $("#factor_plug").val(), 144 factor_plug: $("#factor_plug").val(),
141 factor_wethop: $("#factor_wethop").val(), 145 factor_wethop: $("#factor_wethop").val(),
146 factor_cryohop: $("#factor_cryohop").val(),
142 color_method: $("#color_method").val(), 147 color_method: $("#color_method").val(),
143 ibu_method: $("#ibu_method").val(), 148 ibu_method: $("#ibu_method").val(),
144 brix_correction: parseFloat($("#brix_correction").jqxNumberInput('decimal')), 149 brix_correction: parseFloat($("#brix_correction").jqxNumberInput('decimal')),
145 grain_absorbtion: parseFloat($("#grain_absorbtion").jqxNumberInput('decimal')), 150 grain_absorbtion: parseFloat($("#grain_absorbtion").jqxNumberInput('decimal')),
146 default_water: $("#default_water").val() 151 default_water: $("#default_water").val()

mercurial