43 $("#brewery_name").jqxTooltip({ content: 'De naam voor deze brouwerij.' }); |
43 $("#brewery_name").jqxTooltip({ content: 'De naam voor deze brouwerij.' }); |
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 $("#brix_correction").jqxTooltip({ content: 'Omzettingsfactor voor Plato naar Brix' }); |
49 $("#brix_correction").jqxTooltip({ content: 'Omzettingsfactor voor Plato naar Brix' }); |
49 $("#grain_absorbtion").jqxTooltip({ content: 'Absorbtie van water door graan (L/Kg)' }); |
50 $("#grain_absorbtion").jqxTooltip({ content: 'Absorbtie van water door graan (L/Kg)' }); |
50 |
51 |
51 // Prepare the data |
52 // Prepare the data |
52 var source = { |
53 var source = { |
57 /* { name: 'brewery_logo', type: 'array' }, */ |
58 /* { name: 'brewery_logo', type: 'array' }, */ |
58 { name: 'factor_mashhop', type: 'number' }, |
59 { name: 'factor_mashhop', type: 'number' }, |
59 { name: 'factor_fwh', type: 'number' }, |
60 { name: 'factor_fwh', type: 'number' }, |
60 { name: 'factor_pellet', type: 'number' }, |
61 { name: 'factor_pellet', type: 'number' }, |
61 { name: 'factor_plug', type: 'number' }, |
62 { name: 'factor_plug', type: 'number' }, |
|
63 { name: 'factor_wethop', type: 'number' }, |
62 { name: 'ibu_method', type: 'int' }, |
64 { name: 'ibu_method', type: 'int' }, |
63 { name: 'color_method', type: 'int' }, |
65 { name: 'color_method', type: 'int' }, |
64 { name: 'brix_correction', type: 'float' }, |
66 { name: 'brix_correction', type: 'float' }, |
65 { name: 'grain_absorbtion', type: 'float' }, |
67 { name: 'grain_absorbtion', type: 'float' }, |
66 { name: 'default_water', type: 'string' } |
68 { name: 'default_water', type: 'string' } |
76 $("#brewery_name").val(dataRecord.brewery_name); |
78 $("#brewery_name").val(dataRecord.brewery_name); |
77 $("#factor_mashhop").val(dataRecord.factor_mashhop); |
79 $("#factor_mashhop").val(dataRecord.factor_mashhop); |
78 $("#factor_fwh").val(dataRecord.factor_fwh); |
80 $("#factor_fwh").val(dataRecord.factor_fwh); |
79 $("#factor_pellet").val(dataRecord.factor_pellet); |
81 $("#factor_pellet").val(dataRecord.factor_pellet); |
80 $("#factor_plug").val(dataRecord.factor_plug); |
82 $("#factor_plug").val(dataRecord.factor_plug); |
|
83 $("#factor_wethop").val(dataRecord.factor_wethop); |
81 $("#color_method").val(dataRecord.color_method); |
84 $("#color_method").val(dataRecord.color_method); |
82 $("#ibu_method").val(dataRecord.ibu_method); |
85 $("#ibu_method").val(dataRecord.ibu_method); |
83 $("#brix_correction").val(dataRecord.brix_correction); |
86 $("#brix_correction").val(dataRecord.brix_correction); |
84 $("#grain_absorbtion").val(dataRecord.grain_absorbtion); |
87 $("#grain_absorbtion").val(dataRecord.grain_absorbtion); |
85 }, |
88 }, |
92 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 }); |
95 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 }); |
93 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
96 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
94 $("#factor_mashhop").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' }); |
95 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, 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' }); |
96 $("#factor_plug").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' }); |
|
100 $("#factor_wethop").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: -98, max: -20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
97 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true }); |
101 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true }); |
98 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, 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 }); |
99 $("#color_method").jqxDropDownList({ |
103 $("#color_method").jqxDropDownList({ |
100 theme: theme, |
104 theme: theme, |
101 source: ColorMethodAdapter, |
105 source: ColorMethodAdapter, |
132 brewery_name: $("#brewery_name").val(), |
136 brewery_name: $("#brewery_name").val(), |
133 factor_mashhop: $("#factor_mashhop").val(), |
137 factor_mashhop: $("#factor_mashhop").val(), |
134 factor_fwh: $("#factor_fwh").val(), |
138 factor_fwh: $("#factor_fwh").val(), |
135 factor_pellet: $("#factor_pellet").val(), |
139 factor_pellet: $("#factor_pellet").val(), |
136 factor_plug: $("#factor_plug").val(), |
140 factor_plug: $("#factor_plug").val(), |
|
141 factor_wethop: $("#factor_wethop").val(), |
137 color_method: $("#color_method").val(), |
142 color_method: $("#color_method").val(), |
138 ibu_method: $("#ibu_method").val(), |
143 ibu_method: $("#ibu_method").val(), |
139 brix_correction: parseFloat($("#brix_correction").jqxNumberInput('decimal')), |
144 brix_correction: parseFloat($("#brix_correction").jqxNumberInput('decimal')), |
140 grain_absorbtion: parseFloat($("#grain_absorbtion").jqxNumberInput('decimal')), |
145 grain_absorbtion: parseFloat($("#grain_absorbtion").jqxNumberInput('decimal')), |
141 default_water: $("#default_water").val() |
146 default_water: $("#default_water").val() |