????????Ext?? ??????????????????js??Ext??servlet?????????′???
var obj = this;
var pageSize = 20;   //??????????????????????
//?????????Store??????????????????????????????????????????????????
//HttpProxy????????????????json????????????????????JsonReader????????
var proxy = new Ext.data.HttpProxy({
url:"com.test.check.servlets.QueryDetailServlet"
});
var statTime = Ext.data.Record.create([
{name:"rowNo"??type:"string"??mapping:"rowNo"}??
{name:"gpsid"??type:"string"??mapping:"gpsid"}??
{name:"policeName"??type:"string"??mapping:"policeName"}
]);
var reader = new Ext.data.JsonReader({
totalProperty:"count"?? //???????json????????????????????????
root:"data"      //????????json????????
}??statTime);
var store = new Ext.data.Store({
proxy:proxy??
reader:reader
});
//????????????
var bbarObj = new Ext.PagingToolbar({
pageSize: pageSize??
store: store??
width: 300??
displayInfo: true??      //?????????????????????????
//??????????????????????????????????滻???
displayMsg: '????? {0} ???? {1} ?????????? {2} ??'??
emptyMsg: "??м??"??
prependButtons: true
});
????????????????GridPanel?????????????????????????£?
var grid = new Ext.grid.GridPanel({
store: store??
columns: [
{header:'???'??width: 33?? sortable: true??dataIndex:'rowNo'??align:'center'}??
{id:'gpsid'??header:'GPS???'??width: 85?? sortable: true??dataIndex:'gpsid'??align:'center'}??
{header:'???????'??width: 90?? sortable: true??dataIndex:'policeName'??align:'center'}
]??
region:'center'??
stripeRows: true??
title:'????'??
autoHeight:true??
width:302??
autoScroll:true??
loadMask:true??
stateful: true??
stateId: 'grid'??
columnLines:true??
bbar:bbarObj   //???????????????GridPanel??
});
//?????·???????????????????????????servlet?п??????
//request.getParameter("");????????????????
store.on('beforeload'??function(){
store.baseParams={
code: code??
timeType: timeType??
timeValue: timeValue
}
});
//??????????????????????????????????????????????
//??????request.getParameter("")???
store.reload({
params:{
start:0??
limit:pageSize
}
});
duty.leftPanel.add(grid); //??GridPanel???????????????????????
duty.leftPanel.doLayout();
duty.leftPanel.expand();  //????????????