www/js/prod_edit.js

changeset 554
c62ff53cfc3d
parent 552
ee0db754111e
child 555
7c4f34b7e16f
equal deleted inserted replaced
553:481dbe0af222 554:c62ff53cfc3d
1278 { name: 'y_attenuation', type: 'float' }, 1278 { name: 'y_attenuation', type: 'float' },
1279 { name: 'y_use', type: 'int' }, 1279 { name: 'y_use', type: 'int' },
1280 { name: 'y_cells', type: 'float' }, 1280 { name: 'y_cells', type: 'float' },
1281 { name: 'y_tolerance', type: 'float' }, 1281 { name: 'y_tolerance', type: 'float' },
1282 { name: 'y_inventory', type: 'float' }, 1282 { name: 'y_inventory', type: 'float' },
1283 { name: 'y_sta1', type: 'int' },
1284 { name: 'y_bacteria', type: 'int' },
1285 { name: 'y_harvest_top', type: 'int' },
1286 { name: 'y_harvest_time', type: 'int' },
1287 { name: 'y_pitch_temperature', type: 'float' },
1288 { name: 'y_pofpos', type: 'int' },
1289 { name: 'y_zymocide', type: 'int' },
1283 { name: 'y_avail', type: 'int' } 1290 { name: 'y_avail', type: 'int' }
1284 ], 1291 ],
1285 addrow: function(rowid, rowdata, position, commit) { 1292 addrow: function(rowid, rowdata, position, commit) {
1286 console.log('yeast addrow ' + rowid); 1293 console.log('yeast addrow ' + rowid);
1287 commit(true); 1294 commit(true);
1345 row['y_attenuation'] = datarecord.attenuation; 1352 row['y_attenuation'] = datarecord.attenuation;
1346 row['y_flocculation'] = datarecord.flocculation; 1353 row['y_flocculation'] = datarecord.flocculation;
1347 row['y_cells'] = datarecord.cells; 1354 row['y_cells'] = datarecord.cells;
1348 row['y_tolerance'] = datarecord.tolerance; 1355 row['y_tolerance'] = datarecord.tolerance;
1349 row['y_inventory'] = datarecord.inventory; 1356 row['y_inventory'] = datarecord.inventory;
1357 row['y_sta1'] = datarecord.sta1;
1358 row['y_bacteria'] = datarecord.bacteria;
1359 row['y_harvest_top'] = datarecord.harvest_top;
1360 row['y_harvest_time'] = datarecord.harvest_time;
1361 row['y_pitch_temperature'] = datarecord.pitch_temperature;
1362 row['y_pofpos'] = datarecord.pofpos;
1363 row['y_zymocide'] = datarecord.zymocide;
1350 $('#yeastGrid').jqxGrid('addrow', null, row); 1364 $('#yeastGrid').jqxGrid('addrow', null, row);
1351 } 1365 }
1352 calcYeast(); 1366 calcYeast();
1353 $('#yaddrowbutton').jqxDropDownList('clearSelection'); 1367 $('#yaddrowbutton').jqxDropDownList('clearSelection');
1354 }); 1368 });
5267 y_attenuation: yeastData.y_attenuation, 5281 y_attenuation: yeastData.y_attenuation,
5268 y_use: yeastData.y_use, 5282 y_use: yeastData.y_use,
5269 y_cells: yeastData.y_cells, 5283 y_cells: yeastData.y_cells,
5270 y_tolerance: yeastData.y_tolerance, 5284 y_tolerance: yeastData.y_tolerance,
5271 y_inventory: yeastData.y_inventory, 5285 y_inventory: yeastData.y_inventory,
5286 y_sta1: yeastData.y_sta1,
5287 y_bacteria: yeastData.y_bacteria,
5288 y_harvest_top: yeastData.y_harvest_top,
5289 y_harvest_time: yeastData.y_harvest_time,
5290 y_pitch_temperature: yeastData.y_pitch_temperature,
5291 y_pofpos: yeastData.y_pofpos,
5292 y_zymocide: yeastData.y_zymocide,
5272 y_avail: yeastData.y_avail 5293 y_avail: yeastData.y_avail
5273 }; 5294 };
5274 $('#yeastGrid').jqxGrid('updaterow', rowID, row); 5295 $('#yeastGrid').jqxGrid('updaterow', rowID, row);
5275 calcFermentables(); 5296 calcFermentables();
5276 calcYeast(); 5297 calcYeast();
5314 yeastData.y_max_temperature = datarecord.max_temperature; 5335 yeastData.y_max_temperature = datarecord.max_temperature;
5315 yeastData.y_flocculation = datarecord.flocculation; 5336 yeastData.y_flocculation = datarecord.flocculation;
5316 yeastData.y_attenuation = datarecord.attenuation; 5337 yeastData.y_attenuation = datarecord.attenuation;
5317 yeastData.y_cells = datarecord.cells; 5338 yeastData.y_cells = datarecord.cells;
5318 yeastData.y_inventory = datarecord.inventory; 5339 yeastData.y_inventory = datarecord.inventory;
5340 yeastData.y_sta1 = datarecord.sta1;
5341 yeastData,y_bacteria = datarecord.bacteria;
5342 yeastData.y_harvest_top = datarecord.harvest_top;
5343 yeastData.y_harvest_time = datarecord.harvest_time;
5344 yeastData.y_pitch_temperature = datarecord.pitch_temperature;
5345 yeastData.y_pofpos = datarecord.pofpos;
5346 yeastData.y_zymocide = datarecord.zymocide;
5319 if (yeastData.y_form == 0) { 5347 if (yeastData.y_form == 0) {
5320 $('#wy_pmpt_amount').html('Pak(ken):'); 5348 $('#wy_pmpt_amount').html('Pak(ken):');
5321 } else if (yeastData.y_form == 1 || yeastData.y_form == 6) { 5349 } else if (yeastData.y_form == 1 || yeastData.y_form == 6) {
5322 $('#wy_pmpt_amount').html('Gewicht gram:'); 5350 $('#wy_pmpt_amount').html('Gewicht gram:');
5323 } else { 5351 } else {

mercurial