onBeforeEdit:function(rowIndex,row){
var param=$('#paramForm').datagrid('getColumnOption', 'paramValue');
if(row.paramDataType == "date" ||row.paramDataType == "date"){
param.editor={type:'datetimebox'};
}else if(row.paramDataType == "string" && row.paramCode=="dataModel" ){
param.editor={ type:'combobox',options:{url:'/log/getLogConfigById?sysId=3',valueField:'logName',textField:'logName',panelHeight:"auto"}};
}else if(row.paramCode == "fieldName" && row.paramDataType == "string" ){
var rows = $('#paramForm').datagrid('getRows');
var logName ;
for(var i=0;i<rows.length;i++){
if(rows[i].paramCode=="dataModel"){
logName = rows[i].paramValue;
}
}
param.editor={type:'combobox',options:{url:'/log/getAllAnaConfigByLogName?logName='+logName,valueField:'fieldCnName',textField:'fieldCnName',panelHeight:"auto"}};
}else if(row.paramCode == "fieldValue" ){
param.editor={type:'numberbox'};
}else{
param.editor={type:'text'};
}
},
var param=$('#paramForm').datagrid('getColumnOption', 'paramValue');
if(row.paramDataType == "date" ||row.paramDataType == "date"){
param.editor={type:'datetimebox'};
}else if(row.paramDataType == "string" && row.paramCode=="dataModel" ){
param.editor={ type:'combobox',options:{url:'/log/getLogConfigById?sysId=3',valueField:'logName',textField:'logName',panelHeight:"auto"}};
}else if(row.paramCode == "fieldName" && row.paramDataType == "string" ){
var rows = $('#paramForm').datagrid('getRows');
var logName ;
for(var i=0;i<rows.length;i++){
if(rows[i].paramCode=="dataModel"){
logName = rows[i].paramValue;
}
}
param.editor={type:'combobox',options:{url:'/log/getAllAnaConfigByLogName?logName='+logName,valueField:'fieldCnName',textField:'fieldCnName',panelHeight:"auto"}};
}else if(row.paramCode == "fieldValue" ){
param.editor={type:'numberbox'};
}else{
param.editor={type:'text'};
}
},