www/js/prod_edit.js

changeset 500
8d53ad389204
parent 497
0fe366d953ab
child 515
9d771385a8a0
equal deleted inserted replaced
499:4f14a18b581e 500:8d53ad389204
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_parts', type: 'int' }, 310 { name: 'divide_parts', type: 'int' },
311 { name: 'divide_from', type: 'string' },
312 { name: 'fermentables', type: 'array' }, 311 { name: 'fermentables', type: 'array' },
313 { name: 'hops', type: 'array' }, 312 { name: 'hops', type: 'array' },
314 { name: 'miscs', type: 'array' }, 313 { name: 'miscs', type: 'array' },
315 { name: 'yeasts', type: 'array' }, 314 { name: 'yeasts', type: 'array' },
316 { name: 'mashs', type: 'array' } 315 { name: 'mashs', type: 'array' }
532 $('#prop2_volume').val(dataRecord.prop2_volume); 531 $('#prop2_volume').val(dataRecord.prop2_volume);
533 $('#prop3_type').val(dataRecord.prop3_type); 532 $('#prop3_type').val(dataRecord.prop3_type);
534 $('#prop3_volume').val(dataRecord.prop3_volume); 533 $('#prop3_volume').val(dataRecord.prop3_volume);
535 $('#prop4_type').val(dataRecord.prop4_type); 534 $('#prop4_type').val(dataRecord.prop4_type);
536 $('#prop4_volume').val(dataRecord.prop4_volume); 535 $('#prop4_volume').val(dataRecord.prop4_volume);
537 // hidden divide_type 536 $('#divide_type').val(SplitData[dataRecord.divide_type].nl);
538 // hidden divide_size 537 // hidden divide_size
539 // hidden divide_parts 538 $('#divide_parts').val(dataRecord.divide_parts);
540 // hidden divide_from
541 editFermentable(dataRecord); 539 editFermentable(dataRecord);
542 editHop(dataRecord); 540 editHop(dataRecord);
543 editMisc(dataRecord); 541 editMisc(dataRecord);
544 editYeast(dataRecord); 542 editYeast(dataRecord);
545 editMash(dataRecord); 543 editMash(dataRecord);
4378 prop4_type: $('#prop4_type').val(), 4376 prop4_type: $('#prop4_type').val(),
4379 prop4_volume: parseFloat($('#prop4_volume').jqxNumberInput('decimal')), 4377 prop4_volume: parseFloat($('#prop4_volume').jqxNumberInput('decimal')),
4380 divide_type: dataRecord.divide_type, 4378 divide_type: dataRecord.divide_type,
4381 divide_size: dataRecord.divide_size, 4379 divide_size: dataRecord.divide_size,
4382 divide_parts: dataRecord.divide_parts, 4380 divide_parts: dataRecord.divide_parts,
4383 divide_from: dataRecord.divide_from,
4384 fermentables: $('#fermentableGrid').jqxGrid('getrows'), 4381 fermentables: $('#fermentableGrid').jqxGrid('getrows'),
4385 hops: $('#hopGrid').jqxGrid('getrows'), 4382 hops: $('#hopGrid').jqxGrid('getrows'),
4386 miscs: $('#miscGrid').jqxGrid('getrows'), 4383 miscs: $('#miscGrid').jqxGrid('getrows'),
4387 yeasts: $('#yeastGrid').jqxGrid('getrows'), 4384 yeasts: $('#yeastGrid').jqxGrid('getrows'),
4388 mashs: $('#mashGrid').jqxGrid('getrows') 4385 mashs: $('#mashGrid').jqxGrid('getrows')
4435 dataRecord.locked = 0; 4432 dataRecord.locked = 0;
4436 dataRecord.stage = 10; 4433 dataRecord.stage = 10;
4437 calcStage(); 4434 calcStage();
4438 } 4435 }
4439 }); 4436 });
4437 $('#divide_parts').jqxTooltip({ content: 'Het aantal gesplitste brouw producten.' });
4438 $('#divide_parts').jqxNumberInput(Show0dec);
4439 $('#divide_type').jqxTooltip({ content: 'Het splitsing moment in het productie proces.' });
4440 $('#divide_type').jqxInput({ theme: theme, width: 120, height: 23 });
4441
4440 $('#notes').jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' }); 4442 $('#notes').jqxTooltip({ content: 'De uitgebreide opmerkingen over dit product.' });
4441 $('#notes').jqxInput({ theme: theme, width: 960, height: 100 }); 4443 $('#notes').jqxInput({ theme: theme, width: 960, height: 100 });
4442 $('#type').jqxTooltip({ content: 'Het brouw type van dit recept.' }); 4444 $('#type').jqxTooltip({ content: 'Het brouw type van dit recept.' });
4443 $('#type').jqxDropDownList({ 4445 $('#type').jqxDropDownList({
4444 theme: theme, 4446 theme: theme,

mercurial