jqgrid查询

$("#list1").jqGrid({ 
url:'${rc.contextPath}/normalActive.do?com.roiland.command=query&flag=query', //jqGrid控件通过这个参数得到需要显示的数据,具体的返回值可以是xml也可以是json
datatype:"json", //将要得到的数据类型
mtype:'POST', //那种方法发起的请求
height:bodyHeight, //高度
width:bodyWidth,
colNames:['ID','UnitType','上次修改时间','创建者','活动标题','审核状态','发布企业','类型','底盘号','开始时间','结束时间','审核时间','发布时间','操作','参与情况'], //注意在colNames和colModel中都不要忘记加修改和删除这两列 
colModel:[ 
{name:'ID',index:'ID',width:0,align:"center",sortable:false,hidden:true},
{name:'UnitType',index:'UnitType',width:0,align:"center",sortable:false,hidden:true}, 
{name:'lastModifyTime',index:'lastModifyTime',width:0,align:"center",sortable:false,hidden:true}, 
{name:'Creator',index:'Creator',width:0,align:"center",sortable:false,hidden:true}, 
{name:'Title',
index:'Title',
width:80,
search:true,
editable:true,
edittype:'text',
sortable:true,
search:true,
fixed:false,
searchoptions:{sopt:['cn']},
}, 
{name:'checkResult',index:'checkResult',formatter:'select',editoptions:{value:"0:不通过;1:通过;2:待审核"},edittype:'select',width:60,editable:false,sortable:true,search:true,searchoptions:{value:"0:不通过;1:通过;2:待审核",sopt:['eq']},stype:'select'}, 
 
{name:'enterprisename',index:'enterprisename',width:70,sortable:true, search:true,searchoptions:{sopt:['cn']},}, 
{name:'PublicType',index:'PublicType',width:60,editable:true,edittype:'select',
formatter:'select',editoptions:{size:1,value:'1:优惠信息;2:客户活动;3:常规信息;4:其他信息'},formatter:'select',sortable:true,search:true,searchoptions:{value:"1:优惠信息;2:客户活动;3:常规信息;4:其他信息",sopt:['eq']},stype:'select'}, 
{name:'carcardno',index:'carcardno',width:60,search:false,searchoptions:{sopt:['cn']}},
{name:'BeginTime',index:'BeginTime',formatoptions: {srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i:s'},datefmt:'Y-m-d H:i:s',formatter:"date",width:90, sortable:true,search:true,searchoptions:{sopt:['le','ge'],dataInit:function(el){ $(el).datepicker({dateFormat:'yy-mm-dd 00:00:00.0'}); }},
editable:true, editoptions:{size:20, dataInit:function(el){ $(el).datepicker({dateFormat:'yy-mm-dd'}); } }
}, 
{name:'EndTime',index:'EndTime',formatoptions: {srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i:s'},datefmt:'Y-m-d H:i:s',formatter:"date",width:90,sortable:true,search:true,searchoptions:{sopt:['le','ge'],dataInit:function(el){ $(el).datepicker({dateFormat:'yy-mm-dd 00:00:00.0'}); }},editable:true, editoptions:{size:20, dataInit:function(el){ $(el).datepicker({dateFormat:'yy-mm-dd 00:00:00.0'}); },  }
}, 
{name:'checkTime',index:'checkTime',width:90,formatoptions: {srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i:s'},datefmt:'Y-m-d H:i:s',formatter:"date",sortable:true,search:true,searchoptions:{sopt:['le','ge'],dataInit:function(el){ $(el).datepicker({dateFormat:'yy-mm-dd 00:00:00.0'}); }}}, 
{name:'CreateTime',index:'CreateTime',formatoptions: {srcformat:'Y-m-d H:i:s',newformat:'Y-m-d H:i:s'},datefmt:'Y-m-d H:i:s',formatter:"date",width:65,sortable:true,search:true,searchoptions:{sopt:['le','ge'],dataI
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值