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, 3);//类型值
if (args.col == 4 && v != true) { // 客户列
args.cancel = true;
return;
}
if (args.col ==5 && v != true) { // 供应商列
args.cancel = true;
return;
}
});
|