www/js/prod_edit.js

branch
divide
changeset 533
be8691b7d634
parent 525
8bbc5730aaa8
child 542
dabe1c854a0f
equal deleted inserted replaced
532:d8f4ca915468 533:be8691b7d634
305 { name: 'prop3_volume', type: 'float' }, 305 { name: 'prop3_volume', type: 'float' },
306 { name: 'prop4_type', type: 'int' }, 306 { name: 'prop4_type', type: 'int' },
307 { name: 'prop4_volume', type: 'float' }, 307 { name: 'prop4_volume', type: 'float' },
308 { name: 'divide_type', type: 'int' }, 308 { name: 'divide_type', type: 'int' },
309 { name: 'divide_size', type: 'float' }, 309 { name: 'divide_size', type: 'float' },
310 { name: 'divide_factor', type: 'float' },
310 { name: 'divide_parts', type: 'int' }, 311 { name: 'divide_parts', type: 'int' },
312 { name: 'divide_part', type: 'int' },
311 { name: 'fermentables', type: 'array' }, 313 { name: 'fermentables', type: 'array' },
312 { name: 'hops', type: 'array' }, 314 { name: 'hops', type: 'array' },
313 { name: 'miscs', type: 'array' }, 315 { name: 'miscs', type: 'array' },
314 { name: 'yeasts', type: 'array' }, 316 { name: 'yeasts', type: 'array' },
315 { name: 'mashs', type: 'array' } 317 { name: 'mashs', type: 'array' }
533 $('#prop3_volume').val(dataRecord.prop3_volume); 535 $('#prop3_volume').val(dataRecord.prop3_volume);
534 $('#prop4_type').val(dataRecord.prop4_type); 536 $('#prop4_type').val(dataRecord.prop4_type);
535 $('#prop4_volume').val(dataRecord.prop4_volume); 537 $('#prop4_volume').val(dataRecord.prop4_volume);
536 $('#divide_type').val(SplitData[dataRecord.divide_type].nl); 538 $('#divide_type').val(SplitData[dataRecord.divide_type].nl);
537 // hidden divide_size 539 // hidden divide_size
540 // hidden divide_factor
538 $('#divide_parts').val(dataRecord.divide_parts); 541 $('#divide_parts').val(dataRecord.divide_parts);
542 // hidden divide_part
539 editFermentable(dataRecord); 543 editFermentable(dataRecord);
540 editHop(dataRecord); 544 editHop(dataRecord);
541 editMisc(dataRecord); 545 editMisc(dataRecord);
542 editYeast(dataRecord); 546 editYeast(dataRecord);
543 editMash(dataRecord); 547 editMash(dataRecord);
4377 prop3_volume: parseFloat($('#prop3_volume').jqxNumberInput('decimal')), 4381 prop3_volume: parseFloat($('#prop3_volume').jqxNumberInput('decimal')),
4378 prop4_type: $('#prop4_type').val(), 4382 prop4_type: $('#prop4_type').val(),
4379 prop4_volume: parseFloat($('#prop4_volume').jqxNumberInput('decimal')), 4383 prop4_volume: parseFloat($('#prop4_volume').jqxNumberInput('decimal')),
4380 divide_type: dataRecord.divide_type, 4384 divide_type: dataRecord.divide_type,
4381 divide_size: dataRecord.divide_size, 4385 divide_size: dataRecord.divide_size,
4386 divide_factor: dataRecord.divide_factor,
4382 divide_parts: dataRecord.divide_parts, 4387 divide_parts: dataRecord.divide_parts,
4388 divide_part: dataRecord.divide_part,
4383 fermentables: $('#fermentableGrid').jqxGrid('getrows'), 4389 fermentables: $('#fermentableGrid').jqxGrid('getrows'),
4384 hops: $('#hopGrid').jqxGrid('getrows'), 4390 hops: $('#hopGrid').jqxGrid('getrows'),
4385 miscs: $('#miscGrid').jqxGrid('getrows'), 4391 miscs: $('#miscGrid').jqxGrid('getrows'),
4386 yeasts: $('#yeastGrid').jqxGrid('getrows'), 4392 yeasts: $('#yeastGrid').jqxGrid('getrows'),
4387 mashs: $('#mashGrid').jqxGrid('getrows') 4393 mashs: $('#mashGrid').jqxGrid('getrows')
4434 dataRecord.locked = 0; 4440 dataRecord.locked = 0;
4435 dataRecord.stage = 10; 4441 dataRecord.stage = 10;
4436 calcStage(); 4442 calcStage();
4437 } 4443 }
4438 }); 4444 });
4439 $('#divide_parts').jqxTooltip({ content: 'Het aantal gesplitste brouw producten.' }); 4445 $('#divide_parts').jqxTooltip({ content: 'Het aantal extra gesplitste brouw producten.' });
4440 $('#divide_parts').jqxNumberInput(Show0dec); 4446 $('#divide_parts').jqxNumberInput(Show0dec);
4441 $('#divide_type').jqxTooltip({ content: 'Het splitsing moment in het productie proces.' }); 4447 $('#divide_type').jqxTooltip({ content: 'Het splitsing moment in het productie proces.' });
4442 $('#divide_type').jqxInput({ theme: theme, width: 120, height: 23 }); 4448 $('#divide_type').jqxInput({ theme: theme, width: 120, height: 23 });
4443 4449
4444 $('#notes').jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' }); 4450 $('#notes').jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' });

mercurial