821 { name: 'h_total_oil', type: 'float' }, |
821 { name: 'h_total_oil', type: 'float' }, |
822 { name: 'h_inventory', type: 'float' }, |
822 { name: 'h_inventory', type: 'float' }, |
823 { name: 'h_avail', type: 'int' } |
823 { name: 'h_avail', type: 'int' } |
824 ], |
824 ], |
825 addrow: function(rowid, rowdata, position, commit) { |
825 addrow: function(rowid, rowdata, position, commit) { |
826 console.log('hop addrow ' + rowid); |
|
827 commit(true); |
826 commit(true); |
828 }, |
827 }, |
829 deleterow: function(rowid, commit) { |
828 deleterow: function(rowid, commit) { |
830 console.log('hop deleterow ' + rowid); |
|
831 commit(true); |
829 commit(true); |
832 }, |
830 }, |
833 updaterow: function(rowid, rowdata, commit) { |
831 updaterow: function(rowid, rowdata, commit) { |
834 console.log('hop updaterow ' + rowid); |
|
835 commit(true); |
832 commit(true); |
836 } |
833 } |
837 }, |
834 }, |
838 hopAdapter = new $.jqx.dataAdapter(hopSource); |
835 hopAdapter = new $.jqx.dataAdapter(hopSource); |
839 |
836 |
1028 { name: 'm_amount_is_weight', type: 'int' }, |
1025 { name: 'm_amount_is_weight', type: 'int' }, |
1029 { name: 'm_inventory', type: 'float' }, |
1026 { name: 'm_inventory', type: 'float' }, |
1030 { name: 'm_avail', type: 'int' } |
1027 { name: 'm_avail', type: 'int' } |
1031 ], |
1028 ], |
1032 addrow: function(rowid, rowdata, position, commit) { |
1029 addrow: function(rowid, rowdata, position, commit) { |
1033 console.log('misc addrow ' + rowid); |
|
1034 commit(true); |
1030 commit(true); |
1035 }, |
1031 }, |
1036 deleterow: function(rowid, commit) { |
1032 deleterow: function(rowid, commit) { |
1037 console.log('misc deleterow ' + rowid); |
|
1038 commit(true); |
1033 commit(true); |
1039 }, |
1034 }, |
1040 updaterow: function(rowid, rowdata, commit) { |
1035 updaterow: function(rowid, rowdata, commit) { |
1041 console.log('misc updaterow ' + rowid); |
|
1042 commit(true); |
1036 commit(true); |
1043 } |
1037 } |
1044 }, |
1038 }, |
1045 miscAdapter = new $.jqx.dataAdapter(miscSource, { |
1039 miscAdapter = new $.jqx.dataAdapter(miscSource, { |
1046 beforeLoadComplete: function(records) { |
1040 beforeLoadComplete: function(records) { |
2416 $('#hopGrid').jqxGrid('setcellvalue', i, 'h_amount', amount); |
2410 $('#hopGrid').jqxGrid('setcellvalue', i, 'h_amount', amount); |
2417 } |
2411 } |
2418 }; |
2412 }; |
2419 |
2413 |
2420 function whirlpoolHops() { |
2414 function whirlpoolHops() { |
2421 console.log('whirlpoolHops()'); |
|
2422 var row, i, time, rowscount; |
2415 var row, i, time, rowscount; |
2423 if (!(rowscount = $('#hopGrid').jqxGrid('getdatainformation').rowscount)) |
2416 if (!(rowscount = $('#hopGrid').jqxGrid('getdatainformation').rowscount)) |
2424 return; |
2417 return; |
2425 if (rowscount == 0) |
2418 if (rowscount == 0) |
2426 return; |
2419 return; |
2427 for (i = 0; i < rowscount; i++) { |
2420 for (i = 0; i < rowscount; i++) { |
2428 row = $('#hopGrid').jqxGrid('getrowdata', i); |
2421 row = $('#hopGrid').jqxGrid('getrowdata', i); |