var intjavadillcheck=0;
var rowjavadillselect=null;
function ghm_getPageListCallback(result){
if(result==-3333){
$.messager.show({title:'系统提示',msg:'您没有该操作的权限!',timeout:2000});
return;
}else if(result== -201 || result==-111){
$.messager.show({title:'系统提示',msg:'参数错误!',timeout:2000});
return;
}else{
guestManageArray_highLevel= result;
$('#tab_client_guestHighLevel_manage').datagrid({
loader:guestManageLoader_highLevel,
title : '客源高级信息列表', //表格标题
iconCls : 'icon-list', //表格图标
nowrap : false, //是否只显示一行,即文本过多是否省略部分。
fitColumns : true, //防止水平滚动
scrollbarSize : 0, //去掉右侧滚动条列
collapsible : false, //是否可折叠的
striped:true,//隔行变色
loadMsg : "loading....",
singleSelect:true,
rownumbers:true,
fit:true,
checkOnSelect:false,//关键设置
onClickRow : function(rowIndex,rowData){
if(intjavadillcheck==2){
intjavadillcheck=0;
return;
}else{
intjavadillcheck=1;
} var rows = $('#tab_client_guestHighLevel_manage').datagrid('getChecked');
var flag = true;
for(var i = 0; i < rows.length; i++) {
if(rowData == rows[i]){
flag = false;
break;
}
} if(flag){
$('#tab_client_guestHighLevel_manage').datagrid('checkRow',rowIndex);
$('#tab_client_guestHighLevel_manage').datagrid('selectRow',rowIndex);
rowjavadillselect = $('#tab_client_guestHighLevel_manage').datagrid('getSelected');
}
else{
$('#tab_client_guestHighLevel_manage').datagrid('uncheckRow',rowIndex);
$('#tab_client_guestHighLevel_manage').datagrid('unselectRow',rowIndex);
rowjavadillselect=null;
} intjavadillcheck=0;
},
onCheck:function(rowIndex,rowData){
if(intjavadillcheck==2){
return;
} if(intjavadillcheck==1){
intjavadillcheck=0;
return;
}else{
intjavadillcheck=2;
} if(rowData != rowjavadillselect){
$('#tab_client_guestHighLevel_manage').datagrid('checkRow',rowIndex);
$('#tab_client_guestHighLevel_manage').datagrid('selectRow',rowIndex);
rowjavadillselect = $('#tab_client_guestHighLevel_manage').datagrid('getSelected');
}else{
$('#tab_client_guestHighLevel_manage').datagrid('uncheckRow',rowIndex);
$('#tab_client_guestHighLevel_manage').datagrid('unselectRow',rowIndex);
rowjavadillselect=null;
} intjavadillcheck=0;
},
05-27 14:29