|
7#
楼主 |
发表于 2016-6-25 22:44:48
|
只看该作者
function Gbeforeedit(editor, e, eop) {
var edcmp = e.column.getEditor();
window.setTimeout(function () {
edcmp.selectText();
}, 100);
};
function onGridAfterEdit(editor, params) {
var me = this, columnId = params.column.id, rowId = params.record.getId();
if (columnId === 'FQty' || columnId === 'FPrice') {
var fQty = parseFloat(me.f_getCellValue(rowId, 'FQty'));
me.f_updateCellValue(rowId, 'FBottleQty', fQty);
var fPrice = parseFloat(me.f_getCellValue(rowId, 'FPrice'));
me.f_updateCellValue(rowId, 'FAmount', fQty * fPrice);
}
updateSummary();
};
|
|