function OnCellCommitEdit(e) {
var grid = e.sender;
var record = e.record;
var field = e.field, value = e.value;
if (field == "manufacturer") {
grid.updateRow(record, { deviceclass: "", deviceclass_name: "" });
}
}
var a3101150002 = ${applicationScope.dic['3101150002']};
var a3101150003 = ${applicationScope.dic['3101150003']};
var a3101150004 = ${applicationScope.dic['3101150004']};
function OnCellBeginEdit(e) {
var grid = e.sender;
var record = e.record;
var field = e.field, value = e.value;
var editor = e.editor;
if (field == "deviceclass") {
var id = record.manufacturer;
if(id=="3101150002"){
editor.setData(a3101150002);
}else if(id=="3101150003") {
editor.setData(a3101150003);
} else if(id=="3101150004") {
editor.setData(a3101150004);
} else {
editor.setData(null);
}
}
}