54 ], |
54 ], |
55 url: stylesUrl, |
55 url: stylesUrl, |
56 async: true |
56 async: true |
57 }; |
57 }; |
58 var styleslist = new $.jqx.dataAdapter(stylesSource); |
58 var styleslist = new $.jqx.dataAdapter(stylesSource); |
|
59 |
|
60 // Equipemnt dropdown list |
|
61 var equipmentUrl = "includes/db_inventory_equipments.php"; |
|
62 var equipmentSource = { |
|
63 datatype: "json", |
|
64 datafields: [ |
|
65 { name: 'name', type: 'string' }, |
|
66 { name: 'boil_size', type: 'float' }, |
|
67 { name: 'batch_size', type: 'float' }, |
|
68 { name: 'tun_volume', type: 'float' }, |
|
69 { name: 'tun_weight', type: 'float' }, |
|
70 { name: 'tun_specific_heat', type: 'float' }, |
|
71 { name: 'tun_material', type: 'string' }, |
|
72 { name: 'tun_height', type: 'float' }, |
|
73 { name: 'top_up_water', type: 'float' }, |
|
74 { name: 'trub_chiller_loss', type: 'float' }, |
|
75 { name: 'evap_rate', type: 'float' }, |
|
76 { name: 'boil_time', type: 'float' }, |
|
77 { name: 'calc_boil_volume', type: 'bool' }, |
|
78 { name: 'top_up_kettle', type: 'float' }, |
|
79 { name: 'hop_utilization', type: 'float' }, |
|
80 { name: 'notes', type: 'string' }, |
|
81 { name: 'lauter_volume', type: 'float' }, |
|
82 { name: 'lauter_height', type: 'float' }, |
|
83 { name: 'lauter_deadspace', type: 'float' }, |
|
84 { name: 'kettle_volume', type: 'float' }, |
|
85 { name: 'kettle_height', type: 'float' }, |
|
86 { name: 'mash_volume', type: 'float' }, |
|
87 { name: 'mash_max', type: 'float' }, |
|
88 { name: 'efficiency', type: 'float' } |
|
89 ], |
|
90 url: equipmentUrl, |
|
91 async: true |
|
92 }; |
|
93 var equipmentlist = new $.jqx.dataAdapter(equipmentSource); |
59 |
94 |
60 // dropdownlist datasource from inventory_fermentables |
95 // dropdownlist datasource from inventory_fermentables |
61 var fermentableInvSource = { |
96 var fermentableInvSource = { |
62 datatype: "json", |
97 datatype: "json", |
63 datafields: [ |
98 datafields: [ |