beginningEdit: function (s, e) {
e.cancel = true;//无效果
var col = s.columns[e.col];
debugger;
var isEditable = true;
var dom = theGrid.cells.getCellElement(e.row, e.col);
var oneColor = $(dom).attr("sd");
if (oneColor == "ysh"){
e.cancel = isEditable;
}
var inputtype = col.inputType;
if (inputtype != undefined) {
var type = inputtype.split("-");
if (type[0] == "reference") {
$("#row").val(e.row);
$("#col").val(e.col);
var sql = type[1];
var w = $(window).width() - 100;
var h = $(window).height() - 100;
layer.open({
type: 2,
title: "参照数据",
area: [w + 'px', h + 'px'],
content: '/work/workshopmain/toReference?sql=' + sql
});
}
}
}
|
|