57 /* { name: 'brewery_logo', type: 'array' }, */ |
57 /* { name: 'brewery_logo', type: 'array' }, */ |
58 { name: 'factor_mashhop', type: 'number' }, |
58 { name: 'factor_mashhop', type: 'number' }, |
59 { name: 'factor_fwh', type: 'number' }, |
59 { name: 'factor_fwh', type: 'number' }, |
60 { name: 'factor_pellet', type: 'number' }, |
60 { name: 'factor_pellet', type: 'number' }, |
61 { name: 'factor_plug', type: 'number' }, |
61 { name: 'factor_plug', type: 'number' }, |
62 { name: 'ibu_method', type: 'string' }, |
62 { name: 'ibu_method', type: 'int' }, |
63 { name: 'color_method', type: 'string' }, |
63 { name: 'color_method', type: 'int' }, |
64 { name: 'brix_correction', type: 'float' }, |
64 { name: 'brix_correction', type: 'float' }, |
65 { name: 'grain_absorbtion', type: 'float' }, |
65 { name: 'grain_absorbtion', type: 'float' }, |
66 { name: 'default_water', type: 'string' } |
66 { name: 'default_water', type: 'string' } |
67 ], |
67 ], |
68 url: url |
68 url: url |
88 }, |
88 }, |
89 }); |
89 }); |
90 dataAdapter.dataBind(); |
90 dataAdapter.dataBind(); |
91 |
91 |
92 // Editers |
92 // Editers |
93 var srcColor = [ "Morey", "Mosher", "Daniels" ]; |
|
94 var srcIBU = [ "Tinseth", "Rager", "Daniels" ]; // Only these are supported at this time. |
|
95 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 }); |
93 $("#brewery_name").jqxInput({ theme: theme, width: 640, height: 23 }); |
96 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
94 $("#factor_fwh").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
97 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
95 $("#factor_mashhop").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: -50, max: 50, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
98 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
96 $("#factor_pellet").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
99 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
97 $("#factor_plug").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0, max: 20, decimalDigits: 0, spinButtons: true, symbol: '%', symbolPosition: 'right' }); |
100 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); |
98 $("#brix_correction").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 1.00, max: 1.05, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); |
101 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); |
99 $("#grain_absorbtion").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 110, height: 23, min: 0.5, max: 1.1, decimalDigits: 2, spinButtons: true, spinButtonsStep: 0.01 }); |
102 $("#color_method").jqxDropDownList({ theme: theme, source: srcColor, width: 125, height: 23, dropDownHeight: 95 }); |
100 $("#color_method").jqxDropDownList({ |
103 $("#ibu_method").jqxDropDownList({ theme: theme, source: srcIBU, width: 125, height: 23, dropDownHeight: 95 }); |
101 theme: theme, |
|
102 source: ColorMethodAdapter, |
|
103 valueMember: 'id', |
|
104 displayMember: 'nl', |
|
105 width: 180, |
|
106 autoDropDownHeight: true |
|
107 }); |
|
108 $("#ibu_method").jqxDropDownList({ |
|
109 theme: theme, |
|
110 source: IBUmethodAdapter, |
|
111 valueMember: 'id', |
|
112 displayMember: 'nl', |
|
113 width: 180, |
|
114 autoDropDownHeight: true |
|
115 }); |
104 $('#default_water').jqxDropDownList({ |
116 $('#default_water').jqxDropDownList({ |
105 placeHolder: "Kies water:", |
117 placeHolder: "Kies water:", |
106 theme: theme, |
118 theme: theme, |
107 source: waterlist, |
119 source: waterlist, |
108 valueMember: "name", |
120 valueMember: "name", |
109 displayMember: "name", |
121 displayMember: "name", |
110 width: 250, |
122 width: 250, |
111 height: 27, |
|
112 dropDownHorizontalAlignment: 'right', |
123 dropDownHorizontalAlignment: 'right', |
113 dropDownWidth: 300 |
124 dropDownWidth: 300, |
|
125 autoDropDownHeight: true |
114 }); |
126 }); |
115 $('#default_water').jqxDropDownList( 'selectItem', dataRecord.default_water ); |
127 $('#default_water').jqxDropDownList( 'selectItem', dataRecord.default_water ); |
116 |
128 |
117 $("#Save").jqxButton({ template: "success", width: '90px', theme: theme }); |
129 $("#Save").jqxButton({ template: "success", width: '90px', theme: theme }); |
118 $("#Save").click(function () { |
130 $("#Save").click(function () { |