日期:2014-05-17 浏览次数:21038 次
int count = fieldManageService.getFieldmanageCount(name); List<Fieldmanage> list = fieldManageService.getFieldmanageList(name, start, limitNo); JSONArray array = JSONArray.fromObject(list); System.out.println(array.toString()+"dsds111sdsd"); this.setData(array.toString()); this.setTotalCount(count);
<action name="fieldManage_*" method="{1}" class="fieldManageAction">
<interceptor-ref name="json"></interceptor-ref>
<result type="json">
<param name="includeProperties">totalCount,data</param>
</result>
</action>
this.vstore = new Ext.data.JsonStore({
url:this.listUrl,
totalProperty : 'totalCount',
root : 'data',
fields:this.fields,
})
this.grid = new Ext.grid.GridPanel({
store:this.vstore,
loadMask: {msg:'正在加载数据,请稍侯……'},
tbar:[
{
text:"添加",
iconCls:"addIcon",
handler:this.addActivity,
scope:this
},
"-",
{
text:"修改",
iconCls:"editIcon",
handler:this.editActivity,
scope:this
},
"-",
{
text:"删除",
iconCls:"deleteIcon",
handler:this.delActivity,
scope:this
}
],
frame:true,
columns:this.getColumns(),
bbar:this.pagingToolbar
})