$("#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
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