终于搞定这个设想了...可惜最后没用上...
以下基于Spring+webwork+js...
图中的两个列表的查询都是分别异步刷新,分别异步分页,点选中每个选择radio同时又各自异步刷新上方的额度栏位......
部分源码....kaka
private abstract class AJAHPageInfo extends PageInfo {
protected String context = "";
public AJAHPageInfo(String context) {
super();
this.context = context;
}
public String getPageInfoStr() {
StringBuffer pageStr = new StringBuffer();
if (pageVectorInfo.size() == 5) {
pageStr.append("共 " + pageVectorInfo.elementAt(0).toString()
+ " 条记录");
pageStr.append(" 共 " + pageVectorInfo.elementAt(1).toString()
+ " 页");
pageStr.append(" 当前第 " + intPage + " 页");
int tal = Integer.parseInt(pageVectorInfo.elementAt(0)
.toString());
int cur = Integer.parseInt(pageVectorInfo.elementAt(2)
.toString());
int pre = Integer.parseInt(pageVectorInfo.elementAt(3)
.toString());
int nex = Integer.parseInt(pageVectorInfo.elementAt(4)
.toString());
// 当审批等操作返回时会因为第二页最后一条记录消失而无法返回第一页。
//
if ((pre == 0 || (pre >= cur))
&& ((intPage - 1) * intPageSize + 1 = nex)) {
pageStr.append(" 下一页");
} else {
pageStr.append(" 下一页");
}
pageStr
.append(" 跳到");
for (int i = 1; i