前提表体数据行号已经根据要求排好顺序(与PK顺序不一致)
1、卡片刷新排序(根据行号排序rowno)
1.1、向节点XML注入卡片刷新按钮(顺序是数据库数据的顺序)
<bean id="cardRefreshAction" class="nc.ui.pubapp.uif2app.actions.RefreshSingleAction">
<property name="model" ref="bmModel" />
</bean>
1.2、重写卡片刷新按钮替换原先类路径
<!-- 卡片界面刷新 -->
<bean id="cardRefreshAction" class="nc.ui.arap.payplanadjust.action.RefreshSingleAction">
<property name="model" ref="bmModel" />
</bean>
下面是节点的XML和刷新按钮类 的链接https://download.csdn.net/download/d_c_hao/10875827
2、列表刷新排序(根据行号排序rowno)
2.1、在接口定义类中修改
public AggPsndocPayplanVO[] pubquerybills(IQueryScheme queryScheme) throws BusinessException {
AggPsndocPayplanVO[] bills = null;
try {
this.preQuery(queryScheme);
// BillLazyQuery<AggPsndocPayplanVO> query = new BillLazyQuery<AggPsndocPayplanVO>(
// AggPsndocPayplanVO.class);
// bills = query.query(queryScheme, null);
PsndocPayBillQuery<AggPsndocPayplanVO> query1 = new PsndocPayBillQuery<AggPsndocPayplanVO>(
AggPsndocPayplanVO.class);
bills = query1.query(queryScheme, null);
} catch (Exception e) {
ExceptionUtils.marsh(e);
}
return bills;
}
下载链接:https://download.csdn.net/download/d_c_hao/10875880