var location = this.options.location; //获取当前控件的位置
var arr = contentPane.getWidgetsByName("gl");
var a = contentPane.curLGP.getCellValue("D1");
var b = '';
var c = '';
if (arr[0] != undefined) {
for (var i = 0; i < arr.length; i++) {
var location = arr[i].options.location;
var cr = FR.cellStr2ColumnRow(location);
var col = cr.col; //列号
var ro = cr.row; //行号
b = contentPane.getCellValue(col, ro);
c = contentPane.getCellValue(col, ro - 1);
if (ro == 2) {
contentPane.setCellValue("B3", null, b - a);
} else {
contentPane.setCellValue(col + 1, ro, b - c);
}
}
} else {
b = contentPane.curLGP.getCellValue("A3");
contentPane.setCellValue("B3", null, b - a);
}
在加油公里的文本控件添加编辑后事件