var listviewName = "表格1";
var sumCol = 4;
var countCol = 8;
var sumName = "sum";
var countName = "count";
var unitName = "unit";
Forguncy.ForguncyData.pageInfo.dataModel.getListDataByListviewName(listviewName, "p").bind("valuechanged", function (arg1, arg2) {
var listview = Forguncy.Page.getListView(listviewName);
var cellRange = arg2.cellRange;
if (arg2.uiAction && arg2.valueType === 5 && cellRange.RowCount === 1 && cellRange.ColumnCount === 1) {
var row = cellRange.Row;
if (cellRange.Column === sumCol) {
listview.setValue(row, countName, listview.getValue(row, sumName) / listview.getValue(row, unitName));
} else if (cellRange.Column === countCol) {
listview.setValue(row, sumName, listview.getValue(row, countName) * listview.getValue(row, unitName));
}
}
});
ForguncyData
相关对象、属性、方法说明文档在哪里能查看到
|