453 { name: 'notes', type: 'string' }, |
453 { name: 'notes', type: 'string' }, |
454 { name: 'profile', type: 'string' }, |
454 { name: 'profile', type: 'string' }, |
455 { name: 'ingredients', type: 'string' }, |
455 { name: 'ingredients', type: 'string' }, |
456 { name: 'examples', type: 'string' } |
456 { name: 'examples', type: 'string' } |
457 ], |
457 ], |
458 url: stylesUrl, |
458 url: stylesUrl |
459 async: true |
|
460 }; |
459 }; |
461 var styleslist = new $.jqx.dataAdapter(stylesSource); |
460 var styleslist = new $.jqx.dataAdapter(stylesSource); |
462 |
461 |
463 // Equipemnt dropdown list |
462 // Equipemnt dropdown list |
464 var equipmentUrl = "includes/db_inventory_equipments.php"; |
463 var equipmentUrl = "includes/db_inventory_equipments.php"; |
488 { name: 'kettle_height', type: 'float' }, |
487 { name: 'kettle_height', type: 'float' }, |
489 { name: 'mash_volume', type: 'float' }, |
488 { name: 'mash_volume', type: 'float' }, |
490 { name: 'mash_max', type: 'float' }, |
489 { name: 'mash_max', type: 'float' }, |
491 { name: 'efficiency', type: 'float' } |
490 { name: 'efficiency', type: 'float' } |
492 ], |
491 ], |
493 url: equipmentUrl, |
492 url: equipmentUrl |
494 async: true |
|
495 }; |
493 }; |
496 var equipmentlist = new $.jqx.dataAdapter(equipmentSource); |
494 var equipmentlist = new $.jqx.dataAdapter(equipmentSource); |
497 |
495 |
498 // dropdownlist datasource from inventory_fermentables |
496 // dropdownlist datasource from inventory_fermentables |
499 var fermentableInvSource = { |
497 var fermentableInvSource = { |
509 { name: 'supplier', type: 'string' }, |
507 { name: 'supplier', type: 'string' }, |
510 { name: 'coarse_fine_diff', type: 'float' }, |
508 { name: 'coarse_fine_diff', type: 'float' }, |
511 { name: 'moisture', type: 'float' }, |
509 { name: 'moisture', type: 'float' }, |
512 { name: 'diastatic_power', type: 'float' }, |
510 { name: 'diastatic_power', type: 'float' }, |
513 { name: 'protein', type: 'float' }, |
511 { name: 'protein', type: 'float' }, |
|
512 { name: 'dissolved_protein', type: 'float' }, |
514 { name: 'max_in_batch', type: 'float' }, |
513 { name: 'max_in_batch', type: 'float' }, |
515 { name: 'recommend_mash', type: 'int' }, |
514 { name: 'recommend_mash', type: 'int' }, |
516 { name: 'graintype', type: 'int' }, |
515 { name: 'graintype', type: 'int' }, |
517 { name: 'di_ph', type: 'float' }, |
516 { name: 'di_ph', type: 'float' }, |
|
517 { name: 'acid_to_ph_57', type: 'float' }, |
518 { name: 'inventory', type: 'float' }, |
518 { name: 'inventory', type: 'float' }, |
519 { name: 'cost', type: 'float' } |
519 { name: 'cost', type: 'float' } |
520 ], |
520 ], |
521 url: "getfermentablesources.php", |
521 url: "getfermentablesources.php" |
522 async: true |
|
523 }; |
522 }; |
524 var fermentableinstock = false; |
523 var fermentableinstock = false; |
525 var fermentablelist = new $.jqx.dataAdapter(fermentableInvSource, { |
524 var fermentablelist = new $.jqx.dataAdapter(fermentableInvSource, { |
526 beforeLoadComplete: function (records) { |
525 beforeLoadComplete: function (records) { |
527 var data = new Array(); |
526 var data = new Array(); |
556 { name: 'form', type: 'int' }, |
555 { name: 'form', type: 'int' }, |
557 { name: 'total_oil', type: 'float' }, |
556 { name: 'total_oil', type: 'float' }, |
558 { name: 'inventory', type: 'float' }, |
557 { name: 'inventory', type: 'float' }, |
559 { name: 'cost', type: 'float' } |
558 { name: 'cost', type: 'float' } |
560 ], |
559 ], |
561 url: "gethopsources.php", |
560 url: "gethopsources.php" |
562 async: true |
|
563 }; |
561 }; |
564 var hopinstock = false; |
562 var hopinstock = false; |
565 var hoplist = new $.jqx.dataAdapter(hopInvSource, { |
563 var hoplist = new $.jqx.dataAdapter(hopInvSource, { |
566 beforeLoadComplete: function (records) { |
564 beforeLoadComplete: function (records) { |
567 var data = new Array(); |
565 var data = new Array(); |
588 { name: 'amount_is_weight', type: 'int' }, |
586 { name: 'amount_is_weight', type: 'int' }, |
589 { name: 'time', type: 'float' }, |
587 { name: 'time', type: 'float' }, |
590 { name: 'inventory', type: 'float' }, |
588 { name: 'inventory', type: 'float' }, |
591 { name: 'cost', type: 'float' } |
589 { name: 'cost', type: 'float' } |
592 ], |
590 ], |
593 url: "getmiscsources.php", |
591 url: "getmiscsources.php" |
594 async: true |
|
595 }; |
592 }; |
596 var miscinstock = false; |
593 var miscinstock = false; |
597 var misclist = new $.jqx.dataAdapter(miscInvSource, { |
594 var misclist = new $.jqx.dataAdapter(miscInvSource, { |
598 beforeLoadComplete: function (records) { |
595 beforeLoadComplete: function (records) { |
599 var data = new Array(); |
596 var data = new Array(); |
623 { name: 'max_temperature', type: 'float' }, |
620 { name: 'max_temperature', type: 'float' }, |
624 { name: 'attenuation', type: 'float' }, |
621 { name: 'attenuation', type: 'float' }, |
625 { name: 'inventory', type: 'float' }, |
622 { name: 'inventory', type: 'float' }, |
626 { name: 'cost', type: 'float' } |
623 { name: 'cost', type: 'float' } |
627 ], |
624 ], |
628 url: "getyeastsources.php", |
625 url: "getyeastsources.php" |
629 async: true |
|
630 }; |
626 }; |
631 var yeastinstock = false; |
627 var yeastinstock = false; |
632 var yeastlist = new $.jqx.dataAdapter(yeastInvSource, { |
628 var yeastlist = new $.jqx.dataAdapter(yeastInvSource, { |
633 beforeLoadComplete: function (records) { |
629 beforeLoadComplete: function (records) { |
634 var data = new Array(); |
630 var data = new Array(); |
659 { name: 'ph', type: 'float' }, |
655 { name: 'ph', type: 'float' }, |
660 { name: 'total_alkalinity', type: 'float' }, |
656 { name: 'total_alkalinity', type: 'float' }, |
661 { name: 'inventory', type: 'float' }, |
657 { name: 'inventory', type: 'float' }, |
662 { name: 'cost', type: 'float' }, |
658 { name: 'cost', type: 'float' }, |
663 ], |
659 ], |
664 url: "getwatersources.php", |
660 url: "getwatersources.php" |
665 async: true |
|
666 }; |
661 }; |
667 var waterinstock = false; |
662 var waterinstock = false; |
668 var waterlist = new $.jqx.dataAdapter(waterInvSource, { |
663 var waterlist = new $.jqx.dataAdapter(waterInvSource, { |
669 beforeLoadComplete: function (records) { |
664 beforeLoadComplete: function (records) { |
670 var data = new Array(); |
665 var data = new Array(); |
693 { name: 'sodium', type: 'float' }, |
688 { name: 'sodium', type: 'float' }, |
694 { name: 'magnesium', type: 'float' }, |
689 { name: 'magnesium', type: 'float' }, |
695 { name: 'ph', type: 'float' }, |
690 { name: 'ph', type: 'float' }, |
696 { name: 'total_alkalinity', type: 'float' }, |
691 { name: 'total_alkalinity', type: 'float' }, |
697 ], |
692 ], |
698 url: "includes/db_profile_water.php", |
693 url: "includes/db_profile_water.php" |
699 async: true |
|
700 }; |
694 }; |
701 var waterprofiles = new $.jqx.dataAdapter(waterProfileSource); |
695 var waterprofiles = new $.jqx.dataAdapter(waterProfileSource); |
702 |
696 |
703 // dropdownlist datasource from profile_mash |
697 // dropdownlist datasource from profile_mash |
704 var mashInvSource = { |
698 var mashInvSource = { |
706 datafields: [ |
700 datafields: [ |
707 { name: 'record', type: 'number' }, |
701 { name: 'record', type: 'number' }, |
708 { name: 'name', type: 'string' }, |
702 { name: 'name', type: 'string' }, |
709 { name: 'steps', type: 'array' } |
703 { name: 'steps', type: 'array' } |
710 ], |
704 ], |
711 url: "include/db_profile_mash.php", |
705 url: "include/db_profile_mash.php" |
712 async: true |
|
713 }; |
706 }; |
714 var mashlist = new $.jqx.dataAdapter(mashInvSource); |
707 var mashlist = new $.jqx.dataAdapter(mashInvSource); |
715 |
708 |
716 |
709 |
717 |
710 |