这个怎么写呢?
var p = Forguncy.Page
var listview = p.getListView("表格1");
var activeSheet = listview.getControl().getActiveSheet();
activeSheet.bind(GC.Spread.Sheets.Events.EditStarting, function (sender, args) {
if (listview.getRowCount() <= args.row) { //新增行
return;
}
var v = listview.getValue(args.row, 1);//类型值
if (args.col == 2 && v != "客户") { // 客户列
args.cancel = true;
return;
}
if (args.col == 3 && v != "供应商") { // 供应商列
args.cancel = true;
return;
}
});
|