376 { name: 'est_color', type: 'float' }, |
418 { name: 'est_color', type: 'float' }, |
377 { name: 'color_method', type: 'string' }, |
419 { name: 'color_method', type: 'string' }, |
378 { name: 'est_ibu', type: 'float' }, |
420 { name: 'est_ibu', type: 'float' }, |
379 { name: 'ibu_method', type: 'string' }, |
421 { name: 'ibu_method', type: 'string' }, |
380 { name: 'est_carb', type: 'float' }, |
422 { name: 'est_carb', type: 'float' }, |
381 { name: 'mash_sparge_temp', type: 'float' }, |
423 { name: 'sparge_temp', type: 'float' }, |
|
424 { name: 'sparge_ph', type: 'float' }, |
|
425 { name: 'sparge_volume', type: 'float' }, |
|
426 { name: 'sparge_acid_type', type: 'string' }, |
|
427 { name: 'sparge_acid_perc', type: 'float' }, |
|
428 { name: 'sparge_acid_amount', type: 'float' }, |
382 { name: 'mash_ph', type: 'float' }, |
429 { name: 'mash_ph', type: 'float' }, |
383 { name: 'mash_name', type: 'string' }, |
430 { name: 'mash_name', type: 'string' }, |
|
431 { name: 'calc_acid', type: 'bool' }, |
384 { name: 'fermentables', type: 'array' }, |
432 { name: 'fermentables', type: 'array' }, |
385 { name: 'hops', type: 'string' }, |
433 { name: 'hops', type: 'string' }, |
386 { name: 'miscs', type: 'string' }, |
434 { name: 'miscs', type: 'string' }, |
387 { name: 'yeasts', type: 'string' }, |
435 { name: 'yeasts', type: 'string' }, |
388 { name: 'waters', type: 'array' }, |
436 { name: 'waters', type: 'array' }, |
1445 { text: 'CaSO4', editable: false, datafield: 'w_sulfate', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
1511 { text: 'CaSO4', editable: false, datafield: 'w_sulfate', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
1446 { text: 'Cl', editable: false, datafield: 'w_chloride', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
1512 { text: 'Cl', editable: false, datafield: 'w_chloride', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' }, |
1447 { text: 'pH', editable: false, datafield: 'w_ph', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' } |
1513 { text: 'pH', editable: false, datafield: 'w_ph', width: 80, align: 'right', cellsalign: 'right', cellsformat: 'f1' } |
1448 ] |
1514 ] |
1449 }); |
1515 }); |
1450 }; // editWater = function (data) { |
1516 $("#waterGrid").on('cellendedit', function (event) { |
|
1517 var args = event.args; |
|
1518 console.log("Event Type: cellendedit, Column: " + args.datafield + ", Row: " + (args.rowindex) + ", Value: " + args.value); |
|
1519 $("#waterGrid").jqxGrid('setcellvalue', args.rowindex, args.datafield, args.value); |
|
1520 calcWater(); |
|
1521 }); |
|
1522 }; |
1451 |
1523 |
1452 // inline mash editor |
1524 // inline mash editor |
1453 var editMash = function (data) { |
1525 var editMash = function (data) { |
1454 var generaterow = function () { |
1526 var generaterow = function () { |
1455 var row = {}; |
1527 var row = {}; |
1581 // initialize the input fields. |
1653 // initialize the input fields. |
1582 var srcType = [ "All Grain", "Partial Mash", "Extract" ]; |
1654 var srcType = [ "All Grain", "Partial Mash", "Extract" ]; |
1583 var srcColor = [ "Morey", "Mosher", "Daniels" ]; |
1655 var srcColor = [ "Morey", "Mosher", "Daniels" ]; |
1584 //var srcIBU = [ "Tinseth", "Rager", "Garetz", "Daniels", "Mosher", "Noonan" ]; |
1656 //var srcIBU = [ "Tinseth", "Rager", "Garetz", "Daniels", "Mosher", "Noonan" ]; |
1585 var srcIBU = [ "Tinseth", "Rager", "Daniels" ]; // Only these are supported at this time. |
1657 var srcIBU = [ "Tinseth", "Rager", "Daniels" ]; // Only these are supported at this time. |
|
1658 var srcDeAcid = [ "NaHCO3", "Na2CO3", "CaCO3", "Ca(OH)2" ]; |
|
1659 var srcAcid = [ "Melkzuur", "Zoutzuur", "Fosforzuur", "Zwavelzuur" ]; |
1586 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
1660 $("#name").jqxInput({ theme: theme, width: 640, height: 23 }); |
1587 $("#notes").jqxInput({ theme: theme, width: 960, height: 200 }); |
1661 $("#notes").jqxInput({ theme: theme, width: 960, height: 200 }); |
1588 $("#st_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
1662 $("#st_name").jqxInput({ theme: theme, width: 250, height: 23 }); |
1589 $("#st_letter").jqxInput({ theme: theme, width: 100, height: 23 }); |
1663 $("#st_letter").jqxInput({ theme: theme, width: 100, height: 23 }); |
1590 $("#st_guide").jqxInput({ theme: theme, width: 250, height: 23 }); |
1664 $("#st_guide").jqxInput({ theme: theme, width: 250, height: 23 }); |
1625 $("#st_carb_min").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 1, readOnly: true }); |
1699 $("#st_carb_min").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 1, readOnly: true }); |
1626 $("#st_carb_max").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 1, readOnly: true }); |
1700 $("#st_carb_max").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 50, height: 23, decimalDigits: 1, readOnly: true }); |
1627 |
1701 |
1628 $("#mash_name").jqxInput({ theme: theme, width: 320, height: 23 }); |
1702 $("#mash_name").jqxInput({ theme: theme, width: 320, height: 23 }); |
1629 $("#mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 4, max: 8, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
1703 $("#mash_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 4, max: 8, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
1704 $("#tgt_mash_ph").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 100, height: 23, decimalDigits: 1, readOnly: true }); |
1630 $("#mash_sparge_temp").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 70, max: 98, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.5 }); |
1705 $("#mash_sparge_temp").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 70, max: 98, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.5 }); |
1631 // Hop flavour and aroma gauges |
1706 // Hop flavour and aroma gauges |
1632 $("#hop_flavour").jqxProgressBar({ width: 300, height: 23, theme: theme, showText: true }); |
1707 $("#hop_flavour").jqxProgressBar({ width: 300, height: 23, theme: theme, showText: true }); |
1633 $("#hop_aroma").jqxProgressBar({ width: 300, height: 23, theme: theme, showText: true }); |
1708 $("#hop_aroma").jqxProgressBar({ width: 300, height: 23, theme: theme, showText: true }); |
|
1709 |
|
1710 // Water treatment |
|
1711 $("#wg_volume").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1712 $("#wg_calcium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1713 $("#wg_magnesium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1714 $("#wg_sodium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1715 $("#wg_total_alkalinity").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1716 $("#wg_chloride").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1717 $("#wg_sulfate").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1718 $("#wg_ph").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1719 |
|
1720 $("#wb_calcium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1721 $("#wb_magnesium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1722 $("#wb_sodium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1723 $("#wb_total_alkalinity").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1724 $("#wb_chloride").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1725 $("#wb_sulfate").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1726 $("#wb_ph").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1727 |
|
1728 $("#pr_calcium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1729 $("#pr_magnesium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1730 $("#pr_sodium").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1731 $("#pr_total_alkalinity").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1732 $("#pr_chloride").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1733 $("#pr_sulfate").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1734 $("#pr_ph").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 74, height: 23, decimalDigits: 1, readOnly: true }); |
|
1735 |
|
1736 $("#wa_cacl2").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1, symbol: ' gr', symbolPosition: 'right' }); |
|
1737 $("#wa_caso4").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1, symbol: ' gr', symbolPosition: 'right' }); |
|
1738 $("#wa_mgso4").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1, symbol: ' gr', symbolPosition: 'right' }); |
|
1739 $("#wa_nacl").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, min: 0, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1, symbol: ' gr', symbolPosition: 'right' }); |
|
1740 |
|
1741 $("#calc_acid").jqxCheckBox({ theme: theme, width: 120, height: 23 }); |
|
1742 $("#wa_ph_up").jqxDropDownList({ theme: theme, source: srcDeAcid, width: 125, height: 23, dropDownHeight: 128 }); |
|
1743 $("#wa_ph_up").val('NaHCO3'); |
|
1744 $("#wa_ph_down").jqxDropDownList({ theme: theme, source: srcAcid, width: 125, height: 23, dropDownHeight: 128 }) |
|
1745 $("#wa_ph_down").val('Melkzuur'); |
|
1746 |
|
1747 $("#sparge_volume").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
1748 $("#sparge_ph").jqxNumberInput({ inputMode: 'simple', spinMode: 'simple', theme: theme, width: 100, height: 23, decimalDigits: 1, spinButtons: true, spinButtonsStep: 0.1 }); |
|
1749 $("#sparge_acid_amount").jqxNumberInput({ inputMode: 'simple', theme: theme, width: 100, height: 23, decimalDigits: 5, readOnly: true }); |
1634 |
1750 |
1635 // Tabs inside the popup window. |
1751 // Tabs inside the popup window. |
1636 $('#jqxTabs').jqxTabs({ |
1752 $('#jqxTabs').jqxTabs({ |
1637 theme: theme, |
1753 theme: theme, |
1638 width: 1280, |
1754 width: 1280, |