function GridRowOnDblClick(strFile, pkValue, rowIndex) {
var myJSON = {
value1: '',
value2: '',
load: function () {
},
serialize: function () {
var json = "";
for (var key in this) {
if (typeof this[key] != 'function') {
json += (json != "" ? "," : "") + key + ":'" + this[key] + "'";
}
}
json = '{' + json + '}';
return json;
}
}//end of myJSOON
var obj = getUrlArgs(); //JS获取URL参数
if (typeof(myJSON) != 'undefined') {
myJSON.value1 = obj.CS;// URL参数
myJSON.value2 = pkValue;
}
$.ajax({
type: "POST",
contentType: "application/json",
url: "/SlnWLPZ/KCWLPZ.aspx/GetCKWish",
data:myJSON.serialize(),
dataType: 'json',
success: function (result) {
var json = eval(result.d);
if (json == "1") {
var r=rowIndex*1+1;
var grid = document.all.grdTest;
var selectedRow = grid.rows[r];
selectedRow.style.backgroundColor = '#76EE00';
}
if (json == "0") {
alert('配置出错');
}
return false;
} //success: function(result)
}); //$.ajax
return false;
}