www/js/prod_edit.js

changeset 115
ad31f4bd4036
parent 114
4935e86b2775
child 119
ae5e8d740173
equal deleted inserted replaced
114:4935e86b2775 115:ad31f4bd4036
45 45
46 46
47 $(document).ready(function () { 47 $(document).ready(function () {
48 48
49 var brewstage = 0; // Numeric value of stage 49 var brewstage = 0; // Numeric value of stage
50 var this_uuid = '';
50 51
51 console.log("record:" + my_record + " return:" + my_return + " theme:" + theme); 52 console.log("record:" + my_record + " return:" + my_return + " theme:" + theme);
52 53
53 // Equipemnt dropdown list 54 // Equipemnt dropdown list
54 var equipmentUrl = "includes/db_inventory_equipments.php"; 55 var equipmentUrl = "includes/db_inventory_equipments.php";
58 { name: 'name', type: 'string' }, 59 { name: 'name', type: 'string' },
59 { name: 'boil_size', type: 'float' }, 60 { name: 'boil_size', type: 'float' },
60 { name: 'batch_size', type: 'float' }, 61 { name: 'batch_size', type: 'float' },
61 { name: 'tun_volume', type: 'float' }, 62 { name: 'tun_volume', type: 'float' },
62 { name: 'tun_weight', type: 'float' }, 63 { name: 'tun_weight', type: 'float' },
64 { name: 'tun_specific_heat', type: 'float' },
65 { name: 'tun_material', type: 'string' },
66 { name: 'tun_height', type: 'float' },
67 { name: 'top_up_water', type: 'float' },
63 { name: 'trub_chiller_loss', type: 'float' }, 68 { name: 'trub_chiller_loss', type: 'float' },
64 { name: 'evap_rate', type: 'float' }, 69 { name: 'evap_rate', type: 'float' },
65 { name: 'boil_time', type: 'float' }, 70 { name: 'boil_time', type: 'float' },
66 { name: 'lauter_deadspace', type: 'float' }, 71 { name: 'calc_boil_volume', type: 'bool' },
67 { name: 'top_up_kettle', type: 'float' }, 72 { name: 'top_up_kettle', type: 'float' },
68 { name: 'hop_utilization', type: 'float' }, 73 { name: 'hop_utilization', type: 'float' },
69 { name: 'notes', type: 'string' }, 74 { name: 'notes', type: 'string' },
70 { name: 'lauter_volume', type: 'float' }, 75 { name: 'lauter_volume', type: 'float' },
76 { name: 'lauter_height', type: 'float' },
77 { name: 'lauter_deadspace', type: 'float' },
71 { name: 'kettle_volume', type: 'float' }, 78 { name: 'kettle_volume', type: 'float' },
72 { name: 'tun_material', type: 'string' },
73 { name: 'tun_height', type: 'float' },
74 { name: 'kettle_height', type: 'float' }, 79 { name: 'kettle_height', type: 'float' },
75 { name: 'lauter_height', type: 'float' },
76 { name: 'mash_volume', type: 'float' }, 80 { name: 'mash_volume', type: 'float' },
77 { name: 'efficiency', type: 'float' } 81 { name: 'efficiency', type: 'float' }
78 ], 82 ],
79 url: equipmentUrl, 83 url: equipmentUrl,
80 async: true 84 async: true
100 $("#eq_name").val(datarecord.name); 104 $("#eq_name").val(datarecord.name);
101 $("#eq_boil_size").val(datarecord.boil_size); 105 $("#eq_boil_size").val(datarecord.boil_size);
102 $("#eq_batch_size").val(datarecord.batch_size); 106 $("#eq_batch_size").val(datarecord.batch_size);
103 $("#eq_tun_volume").val(datarecord.tun_volume); 107 $("#eq_tun_volume").val(datarecord.tun_volume);
104 $("#eq_tun_weight").val(datarecord.tun_weight); 108 $("#eq_tun_weight").val(datarecord.tun_weight);
109 $("#eq_tun_specific_heat").val(datarecord.tun_specific_heat);
110 $("#eq_tun_material").val(datarecord.tun_material);
111 $("#eq_tun_height").val(datarecord.tun_height);
112 $("#eq_top_up_water").val(datarecord.top_up_water);
105 $("#eq_trub_chiller_loss").val(datarecord.trub_chiller_loss); 113 $("#eq_trub_chiller_loss").val(datarecord.trub_chiller_loss);
106 $("#eq_evap_rate").val(datarecord.evap_rate); 114 $("#eq_evap_rate").val(datarecord.evap_rate);
107 $("#eq_boil_time").val(datarecord.boil_time); 115 $("#eq_boil_time").val(datarecord.boil_time);
108 $("#eq_lauter_deadspace").val(datarecord.lauter_deadspace); 116 $("#eq_calc_boil_volume").val(datarecord.calc_boil_volume);
109 $("#eq_top_up_kettle").val(datarecord.top_up_kettle); 117 $("#eq_top_up_kettle").val(datarecord.top_up_kettle);
110 $("#eq_hop_utilization").val(datarecord.hop_utilization); 118 $("#eq_hop_utilization").val(datarecord.hop_utilization);
111 $("#eq_notes").val(datarecord.notes); 119 $("#eq_notes").val(datarecord.notes);
112 $("#eq_lauter_volume").val(datarecord.lauter_volume); 120 $("#eq_lauter_volume").val(datarecord.lauter_volume);
121 $("#eq_lauter_height").val(datarecord.lauter_height);
122 $("#eq_lauter_deadspace").val(datarecord.lauter_deadspace);
113 $("#eq_kettle_volume").val(datarecord.kettle_volume); 123 $("#eq_kettle_volume").val(datarecord.kettle_volume);
114 $("#eq_tun_material").val(datarecord.tun_material);
115 $("#eq_tun_height").val(datarecord.tun_height);
116 $("#eq_kettle_height").val(datarecord.kettle_height); 124 $("#eq_kettle_height").val(datarecord.kettle_height);
117 $("#eq_lauter_height").val(datarecord.lauter_height);
118 $("#eq_mash_volume").val(datarecord.mash_volume); 125 $("#eq_mash_volume").val(datarecord.mash_volume);
119 $("#eq_efficiency").val(datarecord.efficiency); 126 $("#eq_efficiency").val(datarecord.efficiency);
120 } 127 }
121 }); 128 });
122 129
168 { name: 'eq_name', type: 'string' }, 175 { name: 'eq_name', type: 'string' },
169 { name: 'eq_boil_size', type: 'float' }, 176 { name: 'eq_boil_size', type: 'float' },
170 { name: 'eq_batch_size', type: 'float' }, 177 { name: 'eq_batch_size', type: 'float' },
171 { name: 'eq_tun_volume', type: 'float' }, 178 { name: 'eq_tun_volume', type: 'float' },
172 { name: 'eq_tun_weight', type: 'float' }, 179 { name: 'eq_tun_weight', type: 'float' },
180 { name: 'eq_tun_specific_heat', type: 'float' },
181 { name: 'eq_tun_material', type: 'string' },
182 { name: 'eq_tun_height', type: 'float' },
183 { name: 'eq_top_up_water', type: 'float' },
173 { name: 'eq_trub_chiller_loss', type: 'float' }, 184 { name: 'eq_trub_chiller_loss', type: 'float' },
174 { name: 'eq_evap_rate', type: 'float' }, 185 { name: 'eq_evap_rate', type: 'float' },
175 { name: 'eq_boil_time', type: 'float' }, 186 { name: 'eq_boil_time', type: 'float' },
176 { name: 'eq_lauter_deadspace', type: 'float' }, 187 { name: 'eq_calc_boil_volume', type: 'bool' },
177 { name: 'eq_top_up_kettle', type: 'float' }, 188 { name: 'eq_top_up_kettle', type: 'float' },
178 { name: 'eq_hop_utilization', type: 'float' }, 189 { name: 'eq_hop_utilization', type: 'float' },
179 { name: 'eq_notes', type: 'string' }, 190 { name: 'eq_notes', type: 'string' },
180 { name: 'eq_lauter_volume', type: 'float' }, 191 { name: 'eq_lauter_volume', type: 'float' },
192 { name: 'eq_lauter_height', type: 'float' },
193 { name: 'eq_lauter_deadspace', type: 'float' },
181 { name: 'eq_kettle_volume', type: 'float' }, 194 { name: 'eq_kettle_volume', type: 'float' },
182 { name: 'eq_tun_material', type: 'string' }, 195 { name: 'eq_kettle_height', type: 'float' },
183 { name: 'eq_tun_height', type: 'float' },
184 { name: 'eq_kettle_height', type: 'float' },
185 { name: 'eq_lauter_height', type: 'float' },
186 { name: 'eq_mash_volume', type: 'float' }, 196 { name: 'eq_mash_volume', type: 'float' },
187 { name: 'eq_efficiency', type: 'float' }, 197 { name: 'eq_efficiency', type: 'float' },
188 { name: 'brew_date_start', type: 'string' }, 198 { name: 'brew_date_start', type: 'string' },
189 { name: 'brew_mash_ph', type: 'float' }, 199 { name: 'brew_mash_ph', type: 'float' },
190 { name: 'brew_mash_sg', type: 'float' }, 200 { name: 'brew_mash_sg', type: 'float' },
191 201
192 { name: 'brew_date_end', type: 'string' } 202 { name: 'brew_date_end', type: 'string' }
193 ], 203 ],
194 id: 'record', 204 id: 'record',
205 // data: "record=" + my_record,
195 url: url 206 url: url
207 // url: url + '?record=' + my_record,
196 }; 208 };
197 // Load data and select one record. 209 // Load data and select one record.
198 var dataAdapter = new $.jqx.dataAdapter(source, { 210 var dataAdapter = new $.jqx.dataAdapter(source, {
199 loadComplete: function () { 211 loadComplete: function () {
200 var records = dataAdapter.records; 212 var records = dataAdapter.records;
201 dataRecord = records[0]; 213 dataRecord = records[0];
202 // Hidden record uuid 214 // Hidden record uuid
215 this_uuid = dataRecord.uuid;
203 $("#name").val(dataRecord.name); 216 $("#name").val(dataRecord.name);
204 $("#code").val(dataRecord.code); 217 $("#code").val(dataRecord.code);
205 $("#birth").val(dataRecord.birth); 218 $("#birth").val(dataRecord.birth);
206 $("#stage").val(dataRecord.stage); 219 $("#stage").val(dataRecord.stage);
207 $("#notes").val(dataRecord.notes); 220 $("#notes").val(dataRecord.notes);
208 $("#log_brew").val(dataRecord.log_brew); 221 $("#log_brew").val(dataRecord.log_brew);
209 $("#log_fermentation").val(dataRecord.log_fermentation); 222 $("#log_fermentation").val(dataRecord.log_fermentation);
210 $("#inventory_reduced").val(dataRecord.inventory_reduced); 223 $("#inventory_reduced").val(dataRecord.inventory_reduced);
211 $("#locked").val(dataRecord.locked); 224 $("#locked").val(dataRecord.locked);
212 $("#eq_name").val(dataRecord.eq_name); 225 $("#eq_name").val(dataRecord.eq_name);
226 $("#eq_notes").val(dataRecord.eq_notes);
213 $("#eq_boil_size").val(dataRecord.eq_boil_size); 227 $("#eq_boil_size").val(dataRecord.eq_boil_size);
214 $("#eq_batch_size").val(dataRecord.eq_batch_size); 228 $("#eq_batch_size").val(dataRecord.eq_batch_size);
215 $("#eq_tun_volume").val(dataRecord.eq_tun_volume); 229 $("#eq_tun_volume").val(dataRecord.eq_tun_volume);
216 $("#eq_tun_weight").val(dataRecord.eq_tun_weight); 230 $("#eq_tun_weight").val(dataRecord.eq_tun_weight);
231 $("#eq_tun_specific_heat").val(dataRecord.eq_tun_specific_heat);
232 $("#eq_tun_material").val(dataRecord.eq_tun_material);
233 $("#eq_tun_height").val(dataRecord.eq_tun_height);
234 $("#eq_top_up_water").val(dataRecord.eq_top_up_water);
217 $("#eq_trub_chiller_loss").val(dataRecord.eq_trub_chiller_loss); 235 $("#eq_trub_chiller_loss").val(dataRecord.eq_trub_chiller_loss);
218 $("#eq_evap_rate").val(dataRecord.eq_evap_rate); 236 $("#eq_evap_rate").val(dataRecord.eq_evap_rate);
219 $("#eq_boil_time").val(dataRecord.eq_boil_time); 237 $("#eq_boil_time").val(dataRecord.eq_boil_time);
220 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace); 238 $("#eq_calc_boil_volume").val(dataRecord.eq_calc_boil_volume);
221 $("#eq_top_up_kettle").val(dataRecord.eq_top_up_kettle); 239 $("#eq_top_up_kettle").val(dataRecord.eq_top_up_kettle);
222 $("#eq_hop_utilization").val(dataRecord.eq_hop_utilization); 240 $("#eq_hop_utilization").val(dataRecord.eq_hop_utilization);
223 $("#eq_notes").val(dataRecord.eq_notes);
224 $("#eq_lauter_volume").val(dataRecord.eq_lauter_volume); 241 $("#eq_lauter_volume").val(dataRecord.eq_lauter_volume);
242 $("#eq_lauter_height").val(dataRecord.eq_lauter_height);
243 $("#eq_lauter_deadspace").val(dataRecord.eq_lauter_deadspace);
225 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume); 244 $("#eq_kettle_volume").val(dataRecord.eq_kettle_volume);
226 $("#eq_tun_material").val(dataRecord.eq_tun_material);
227 $("#eq_tun_height").val(dataRecord.eq_tun_height);
228 $("#eq_kettle_height").val(dataRecord.eq_kettle_height); 245 $("#eq_kettle_height").val(dataRecord.eq_kettle_height);
229 $("#eq_lauter_height").val(dataRecord.eq_lauter_height);
230 $("#eq_mash_volume").val(dataRecord.eq_mash_volume); 246 $("#eq_mash_volume").val(dataRecord.eq_mash_volume);
231 $("#eq_efficiency").val(dataRecord.eq_efficiency); 247 $("#eq_efficiency").val(dataRecord.eq_efficiency);
232 $("#brew_date_start").val(dataRecord.brew_date_start); 248 $("#brew_date_start").val(dataRecord.brew_date_start);
233 $("#brew_mash_ph").val(dataRecord.brew_mash_ph); 249 $("#brew_mash_ph").val(dataRecord.brew_mash_ph);
234 $("#brew_mash_sg").val(dataRecord.brew_mash_sg); 250 $("#brew_mash_sg").val(dataRecord.brew_mash_sg);
316 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 }); 332 $("#eq_name").jqxInput({ theme: theme, width: 250, height: 23 });
317 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 333 $("#eq_boil_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
318 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 334 $("#eq_batch_size").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
319 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 335 $("#eq_tun_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
320 $("#eq_tun_weight").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2 }); 336 $("#eq_tun_weight").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2 });
337 $("#eq_tun_specific_heat").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 3 });
338 $("#eq_tun_material").jqxInput({ theme: theme, width: 100, height: 23 });
339 $("#eq_tun_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
340 $("#eq_top_up_water").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
321 $("#eq_trub_chiller_loss").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 341 $("#eq_trub_chiller_loss").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
322 $("#eq_evap_rate").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2, }); 342 $("#eq_evap_rate").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 2, });
323 $("#eq_boil_time").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); 343 $("#eq_boil_time").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 });
324 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 344 $("#eq_calc_boil_volume").jqxCheckBox({ theme: theme, width: 120, height: 23 });
325 $("#eq_top_up_kettle").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 345 $("#eq_top_up_kettle").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
326 $("#eq_hop_utilization").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 }); 346 $("#eq_hop_utilization").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 0 });
327 $("#eq_notes").jqxInput({ theme: theme, width: 640, height: 100 }); 347 $("#eq_notes").jqxInput({ theme: theme, width: 640, height: 100 });
328 $("#eq_lauter_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 348 $("#eq_lauter_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
349 $("#eq_lauter_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
350 $("#eq_lauter_deadspace").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
329 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 351 $("#eq_kettle_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
330 $("#eq_tun_material").jqxInput({ theme: theme, width: 100, height: 23 });
331 $("#eq_tun_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
332 $("#eq_kettle_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 352 $("#eq_kettle_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
333 $("#eq_lauter_height").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
334 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 353 $("#eq_mash_volume").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
335 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 }); 354 $("#eq_efficiency").jqxNumberInput({ inputMode: 'simple', readOnly: true, theme: theme, width: 70, height: 23, decimalDigits: 1 });
336 355
337 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true }); 356 $("#brew_date_start").jqxDateTimeInput({ theme: theme, width: 230, height: 23, formatString: 'yyyy-MM-dd HH:mm:ss', showTimeButton: true });
338 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); 357 $("#brew_mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 70, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 });
383 402
384 $("#Save").jqxButton({ template: "success", width: '90px', theme: theme }); 403 $("#Save").jqxButton({ template: "success", width: '90px', theme: theme });
385 $("#Save").click(function () { 404 $("#Save").click(function () {
386 var row = { 405 var row = {
387 record: my_record, 406 record: my_record,
388 uuid: $("#uuid").val(), 407 uuid: this_uuid,
389 name: $("#name").val(), 408 name: $("#name").val(),
390 code: $("#code").val(), 409 code: $("#code").val(),
391 birth: $("#birth").val(), 410 birth: $("#birth").val(),
392 stage: $("#stage").val(), 411 stage: $("#stage").val(),
393 notes: $("#notes").val(), 412 notes: $("#notes").val(),
398 eq_name: $("#eq_name").val(), 417 eq_name: $("#eq_name").val(),
399 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')), 418 eq_boil_size: parseFloat($("#eq_boil_size").jqxNumberInput('decimal')),
400 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')), 419 eq_batch_size: parseFloat($("#eq_batch_size").jqxNumberInput('decimal')),
401 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')), 420 eq_tun_volume: parseFloat($("#eq_tun_volume").jqxNumberInput('decimal')),
402 eq_tun_weight: parseFloat($("#eq_tun_weight").jqxNumberInput('decimal')), 421 eq_tun_weight: parseFloat($("#eq_tun_weight").jqxNumberInput('decimal')),
422 eq_tun_specific_heat: parseFloat($("#eq_tun_specific_heat").jqxNumberInput('decimal')),
423 eq_tun_material: $("#eq_tun_material").val(),
424 eq_tun_height: parseFloat($("#eq_tun_height").jqxNumberInput('decimal')),
425 eq_top_up_water: parseFloat($("#eq_top_up_water").jqxNumberInput('decimal')),
403 eq_trub_chiller_loss: parseFloat($("#eq_trub_chiller_loss").jqxNumberInput('decimal')), 426 eq_trub_chiller_loss: parseFloat($("#eq_trub_chiller_loss").jqxNumberInput('decimal')),
404 eq_evap_rate: parseFloat($("#eq_evap_rate").jqxNumberInput('decimal')), 427 eq_evap_rate: parseFloat($("#eq_evap_rate").jqxNumberInput('decimal')),
405 eq_boil_time: parseFloat($("#eq_boil_time").jqxNumberInput('decimal')), 428 eq_boil_time: parseFloat($("#eq_boil_time").jqxNumberInput('decimal')),
406 eq_lauter_deadspace: parseFloat($("#eq_lauter_deadspace").jqxNumberInput('decimal')), 429 eq_calc_boil_volume: $("#eq_calc_boil_volume").val(),
407 eq_top_up_kettle: parseFloat($("#eq_top_up_kettle").jqxNumberInput('decimal')), 430 eq_top_up_kettle: parseFloat($("#eq_top_up_kettle").jqxNumberInput('decimal')),
408 eq_hop_utilization: parseFloat($("#eq_hop_utilization").jqxNumberInput('decimal')), 431 eq_hop_utilization: parseFloat($("#eq_hop_utilization").jqxNumberInput('decimal')),
409 eq_notes: $("#eq_notes").val(), 432 eq_notes: $("#eq_notes").val(),
410 eq_lauter_volume: parseFloat($("#eq_lauter_volume").jqxNumberInput('decimal')), 433 eq_lauter_volume: parseFloat($("#eq_lauter_volume").jqxNumberInput('decimal')),
434 eq_lauter_height: parseFloat($("#eq_lauter_height").jqxNumberInput('decimal')),
435 eq_lauter_deadspace: parseFloat($("#eq_lauter_deadspace").jqxNumberInput('decimal')),
411 eq_kettle_volume: parseFloat($("#eq_kettle_volume").jqxNumberInput('decimal')), 436 eq_kettle_volume: parseFloat($("#eq_kettle_volume").jqxNumberInput('decimal')),
412 eq_tun_material: $("#eq_tun_material").val(),
413 eq_tun_height: parseFloat($("#eq_tun_height").jqxNumberInput('decimal')),
414 eq_kettle_height: parseFloat($("#eq_kettle_height").jqxNumberInput('decimal')), 437 eq_kettle_height: parseFloat($("#eq_kettle_height").jqxNumberInput('decimal')),
415 eq_lauter_height: parseFloat($("#eq_lauter_height").jqxNumberInput('decimal')),
416 eq_mash_volume: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')), 438 eq_mash_volume: parseFloat($("#eq_mash_volume").jqxNumberInput('decimal')),
417 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal')) 439 eq_efficiency: parseFloat($("#eq_efficiency").jqxNumberInput('decimal'))
418 }; 440 };
419 var data = "update=true&" + $.param(row); 441 var data = "update=true&" + $.param(row);
420 $.ajax({ 442 $.ajax({

mercurial