var dataRows = $("#CustProfileSearchInfoListGrid").datagrid("getRows");
var inputs = "";
$.each(dataRows, function(index, row) {
$.each(row, function(name, value) {
inputs += '<input type="hidden" name="dataList['+index+'].' + name + '" value="' + value + '" />';
});
});
alert(inputs)
$('#CustProfileSearchInfoSubmitForm').append(inputs);
$('#CustProfileSearchInfoSubmitForm').ajaxSubmit({
url: "custProfileSearchInfo/saveCustProfileSearchInfoList.json",
dataType:'json',
type:'post',
success: function(data){
$.messager.progress('close');
if('success' == data.state) {
if(null != data.result) {
$("#CustProfileSearchInfoListGrid").datagrid("loadData",data.result);
}
$.messager.alert('保存成功','信息保存成功','info');
} else {
$.messager.alert('保存失败','信息保存失败','error');
}
}
});