81,092
社区成员
发帖
与我相关
我的任务
分享
$(function() {
$("#flex1").flexigrid({
url : '../iim/invoiceStubAction!query.do',
dataType : 'json',
colModel : [{
display : '列1',
name:'invoiceNumber',
alias : 'invoiceNumber',
width : '120',
sortable : true,
align : 'center'
}, {
display : '列2',
name : 'invoicePrintNbr',
width : '120',
sortable : true,
align : 'center'
} ],
checkbox : false,
sortname : 'makeOutDate',
sortorder : 'asc',
rowId : 'orgId',
autoload : true,
usepager : true,
useRp : true,
width : 'auto',
title : ' ',
rp : 10,
pagestat : '显示 {from} 到 {to} 条,共 {total} 条记录',
rpOptions : [10, 20, 50, 100, 150],
showTableToggleBtn : false,
height : 280,
onChangeSort:false
});
// 按条件查询区域信息列表。
$("#queryBtn").click(function() {
var invoiceNumber=$('#invoiceNumber').val();
if(isNaN(invoiceNumber)){
alert('姓名 只能为数字!');
}
$.ajax({
type : "post",
url : "../iim/invoiceStubAction!query.do",
dataType : "json",
data : $("#actionForm").formSerialize(),
success : function(data, textStatus) {
if (!data.rows) {
$("#flex1").empty();
} else {
// $("#flex1").flexAddData(data);
$("#flex1").flexAddData(data);
}
},
error : function(e) {
alert("查询信息失败。" + e);
}
});
});
});
$("#queryBtn").click(function() {
var invoiceNumber=$('#invoiceNumber').val();
$("#invoiceNumberValue").val()=invoiceNumber;