www/js/rec_edit.js

changeset 735
23d972f5d784
parent 710
9646123ea063
child 756
b702c25661e7
equal deleted inserted replaced
734:2a90ffaf04b7 735:23d972f5d784
1587 { name: 'y_harvest_top', type: 'int' }, 1587 { name: 'y_harvest_top', type: 'int' },
1588 { name: 'y_harvest_time', type: 'int' }, 1588 { name: 'y_harvest_time', type: 'int' },
1589 { name: 'y_pitch_temperature', type: 'float' }, 1589 { name: 'y_pitch_temperature', type: 'float' },
1590 { name: 'y_pofpos', type: 'int' }, 1590 { name: 'y_pofpos', type: 'int' },
1591 { name: 'y_zymocide', type: 'int' }, 1591 { name: 'y_zymocide', type: 'int' },
1592 { name: 'y_gr_hl_lo', type: 'int' },
1593 { name: 'y_sg_lo', type: 'float' },
1594 { name: 'y_gr_hl_hi', type: 'int' },
1595 { name: 'y_sg_hi', type: 'float' },
1592 { name: 'y_avail', type: 'int' } 1596 { name: 'y_avail', type: 'int' }
1593 ], 1597 ],
1594 addrow: function(rowid, rowdata, position, commit) { commit(true); }, 1598 addrow: function(rowid, rowdata, position, commit) { commit(true); },
1595 deleterow: function(rowid, commit) { commit(true); }, 1599 deleterow: function(rowid, commit) { commit(true); },
1596 updaterow: function(rowid, rowdata, commit) { commit(true); } 1600 updaterow: function(rowid, rowdata, commit) { commit(true); }
1651 row['y_harvest_top'] = datarecord.harvest_top; 1655 row['y_harvest_top'] = datarecord.harvest_top;
1652 row['y_harvest_time'] = datarecord.harvest_time; 1656 row['y_harvest_time'] = datarecord.harvest_time;
1653 row['y_pitch_temperature'] = datarecord.pitch_temperature; 1657 row['y_pitch_temperature'] = datarecord.pitch_temperature;
1654 row['y_pofpos'] = datarecord.pofpos; 1658 row['y_pofpos'] = datarecord.pofpos;
1655 row['y_zymocide'] = datarecord.zymocide; 1659 row['y_zymocide'] = datarecord.zymocide;
1660 row['y_gr_hl_lo'] = datarecord.gr_hl_lo;
1661 row['y_sg_lo'] = datarecord.sg_lo;
1662 row['y_gr_hl_hi'] = datarecord.gr_hl_hi;
1663 row['y_sg_hi'] = datarecord.sg_hi;
1656 $('#yeastGrid').jqxGrid('addrow', null, row); 1664 $('#yeastGrid').jqxGrid('addrow', null, row);
1657 } 1665 }
1658 $('#yaddrowbutton').jqxDropDownList('clearSelection'); 1666 $('#yaddrowbutton').jqxDropDownList('clearSelection');
1659 }); 1667 });
1660 $('#yinstockbutton').jqxCheckBox({ theme: theme, height: 27, disabled: (dataRecord.stage > 3) }); 1668 $('#yinstockbutton').jqxCheckBox({ theme: theme, height: 27, disabled: (dataRecord.stage > 3) });
3608 y_harvest_top: yeastData.y_harvest_top, 3616 y_harvest_top: yeastData.y_harvest_top,
3609 y_harvest_time: yeastData.y_harvest_time, 3617 y_harvest_time: yeastData.y_harvest_time,
3610 y_pitch_temperature: yeastData.y_pitch_temperature, 3618 y_pitch_temperature: yeastData.y_pitch_temperature,
3611 y_pofpos: yeastData.y_pofpos, 3619 y_pofpos: yeastData.y_pofpos,
3612 y_zymocide: yeastData.y_zymocide, 3620 y_zymocide: yeastData.y_zymocide,
3621 y_gr_hl_lo: yeastData.y_gr_hl_lo,
3622 y_sg_lo: yeastData.y_sg_lo,
3623 y_gr_hl_hi: yeastData.y_gr_hl_hi,
3624 y_sg_hi: yeastData.y_sg_hi,
3613 y_avail: yeastData.y_avail 3625 y_avail: yeastData.y_avail
3614 }; 3626 };
3615 $('#yeastGrid').jqxGrid('updaterow', rowID, row); 3627 $('#yeastGrid').jqxGrid('updaterow', rowID, row);
3616 calcFermentables(); 3628 calcFermentables();
3617 }); 3629 });
3661 yeastData.y_harvest_top = datarecord.harvest_top; 3673 yeastData.y_harvest_top = datarecord.harvest_top;
3662 yeastData.y_harvest_time = datarecord.harvest_time; 3674 yeastData.y_harvest_time = datarecord.harvest_time;
3663 yeastData.y_pitch_temperature = datarecord.pitch_temperature; 3675 yeastData.y_pitch_temperature = datarecord.pitch_temperature;
3664 yeastData.y_pofpos = datarecord.pofpos; 3676 yeastData.y_pofpos = datarecord.pofpos;
3665 yeastData.y_zymocide = datarecord.zymocide; 3677 yeastData.y_zymocide = datarecord.zymocide;
3678 yeastData.y_gr_hl_lo = datarecord.gr_hl_lo;
3679 yeastData.y_sg_lo = datarecord.sg_lo;
3680 yeastData.y_gr_hl_hi = datarecord.gr_hl_hi;
3681 yeastData.y_sg_hi = datarecord.sg_hi;
3666 if (yeastData.y_form == 0) { 3682 if (yeastData.y_form == 0) {
3667 $('#wy_pmpt_amount').html('Pak(ken):'); 3683 $('#wy_pmpt_amount').html('Pak(ken):');
3668 } else if (yeastData.y_form == 1 || yeastData.y_form == 6) { 3684 } else if (yeastData.y_form == 1 || yeastData.y_form == 6) {
3669 $('#wy_pmpt_amount').html('Gewicht gram:'); 3685 $('#wy_pmpt_amount').html('Gewicht gram:');
3670 } else { 3686 } else {

mercurial