www/js/inv_miscs.js

changeset 78
f35a38e8c16f
parent 34
a720353fada9
child 200
7b2f11652d67
equal deleted inserted replaced
77:a9f8de2d7b2b 78:f35a38e8c16f
111 commit(false); 111 commit(false);
112 } 112 }
113 }); 113 });
114 } 114 }
115 }; 115 };
116 var srcType = [ "Spice", "Fining", "Water Agent", "Herb", "Flavor", "Other" ]; 116 var srcType = [ "Spice", "Fining", "Water Agent", "Herb", "Flavor", "Yeast nutrient", "Other" ];
117 var srcUse = [ "Boil", "Mash", "Primary", "Secondary", "Bottling" ]; 117 var srcUse = [ "Boil", "Mash", "Primary", "Secondary", "Bottling" ];
118 // initialize the input fields. 118 // initialize the input fields.
119 $("#name").jqxInput({ theme: theme, width: 250, height: 23 }); 119 $("#name").jqxInput({ theme: theme, width: 250, height: 23 });
120 $("#type").jqxDropDownList({ theme: theme, source: srcType, width: 130, height: 23, dropDownHeight: 188 }); 120 $("#type").jqxDropDownList({ theme: theme, source: srcType, width: 130, height: 23, dropDownHeight: 220 });
121 $("#use_use").jqxDropDownList({ theme: theme, source: srcUse, width: 90, height: 23, dropDownHeight: 156 }); 121 $("#use_use").jqxDropDownList({ theme: theme, source: srcUse, width: 90, height: 23, dropDownHeight: 156 });
122 $("#time").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 2, spinButtons: true }); 122 $("#time").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 2, spinButtons: true });
123 $("#amount_is_weight").jqxCheckBox({ theme: theme, width: 120, height: 23 }); 123 $("#amount_is_weight").jqxCheckBox({ theme: theme, width: 120, height: 23 });
124 $("#use_for").jqxInput({ theme: theme, width: 640, height: 48 }); 124 $("#use_for").jqxInput({ theme: theme, width: 640, height: 48 });
125 $("#notes").jqxInput({ theme: theme, width: 640, height: 100 }); 125 $("#notes").jqxInput({ theme: theme, width: 640, height: 100 });
166 }, 166 },
167 filterable: true, 167 filterable: true,
168 filtermode: 'excel', 168 filtermode: 'excel',
169 columns: [ 169 columns: [
170 { text: 'Ingredient naam', datafield: 'name', width: 525 }, 170 { text: 'Ingredient naam', datafield: 'name', width: 525 },
171 { text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 100 }, 171 { text: 'Soort', datafield: 'type', align: 'center', cellsalign: 'center', width: 110 },
172 { text: 'Gebruik', datafield: 'use_use', align: 'center', cellsalign: 'center', width: 100 }, 172 { text: 'Gebruik', datafield: 'use_use', align: 'center', cellsalign: 'center', width: 100 },
173 { text: 'Tijd', datafield: 'time', width: 90, align: 'right', cellsalign: 'right', cellsformat: 'f2' }, 173 { text: 'Tijd', datafield: 'time', width: 90, align: 'right', cellsalign: 'right', cellsformat: 'f2' },
174 { text: 'Voor. gr/ml.', datafield: 'inventory', width: 110, align: 'right', cellsalign: 'right' }, 174 { text: 'Voor. gr/ml.', datafield: 'inventory', width: 110, align: 'right', cellsalign: 'right' },
175 { text: 'Prijs kg/l', datafield: 'cost', width: 90, align: 'right', cellsalign: 'right', cellsformat: 'c2' }, 175 { text: 'Prijs kg/l', datafield: 'cost', width: 90, align: 'right', cellsalign: 'right', cellsformat: 'c2' },
176 { text: 'THT datum', datafield: 'tht_date', width: 100, align: 'center', cellsalign: 'center' }, 176 { text: 'THT datum', datafield: 'tht_date', width: 100, align: 'center', cellsalign: 'center' },

mercurial