BillListView grandListView = (BillListView) this
.get(currentbodyTabCode);
.getMaingrandrelationship().getBodyTabTOGrandListComposite()
// 加载孙模板
this.getMainGrandAssist().updateGrandListByBodyTab(this); if (grandListView != null && currentRow != -1 ){
// 加载孙面板数据
AbstractBill aggVO = (AbstractBill) ((BillListView) this
.getMainPanel()).getModel().getSelectedData();
ShowUpableBillListViewEx billListViewEx =
.getMainPanel();
(ShowUpableBillListViewEx) this
// 获取类路径
String bodyClassName = billListViewEx.getBillListPanel()
List
//如果子表没有数据,则先清空孙表数据,再强制发送一次数据选择改变事件 this.clearGrandData(); ((BillListView)
.getGrandListDataByMainRow((BillListView)
currentRow, grandListView, bodyClassName, this.getMaingrandrelationship());
.getBodyBillModel(currentbodyTabCode).getTabvo()
.getBillMetaDataBusinessEntity().getFullClassName();
this.mainPanel,
if (grandVOList != null) {
// 孙面板加载数据并显示
grandListView.getBillListPanel().getBodyBillModel()
.setBodyDataVO(grandVOList.toArray(new
SuperVO[0]));
grandListView.getBillListPanel().getBodyBillModel()
.loadLoadRelationItemValue(); .execLoadFormula();
grandListView.getBillListPanel().getBodyBillModel()
} else {
grandListView.getBillListPanel().getBodyBillModel()
.clearBodyData();
}else{
this.getMainPanel()).getModel().fireEvent(new AppEvent(AppEventConst.SELECTION_CHANGED));
}
}
@Override
public void handleEvent(AppEvent event) { } /**
if (event instanceof ListBodyTabChangedEvent) { }
super.handleEvent(event);
//页签改变时的处理
this.tabChangeProcess(); return;
MainGrandEventTypeEnum.loadcardgranddata.toString())) {
} else if (event.getType().equals(
CardPanelEventUtil.grandListModelInit(this);
* 清除孙表数据 */
private void clearGrandData() {
String currentbodyTabCode = ((BillListView)
this.getMainPanel()).getBillListPanel().getChildListPanel().getTableCode();
// 根据当前子页签获取孙表view BillListView grandListView = (BillListView)
this.getMaingrandrelationship().getBodyTabTOGrandListComposite().get(currentbodyTabCode);
if (grandListView != null) { String[] grandTabCodes =
grandListView.getBillListPanel().getBillListData().getBodyTableCodes();
for (String grandTabcode : grandTabCodes) {
grandListView.getBillListPanel().getBillListData().getBodyBillModel(grandTabcode).clearBodyData(); } } }
和
nc.ui.pubapp.uif2app.components.grand.CardGrandPanelComposite
来进行操作的,例如事件的处理,给孙表设值等等。
6 点击查询按钮,需要根据查询面板得到语句,再进行查询,重写查询Action:
附件:红色部分需要小心配置 主子孙单据完整xml :
xsi:schemaLocation=\http://www.springframework.org/schema/beans/spring-beans.xsd\> class=\ /> class=\ry\ /> class=\ /> class=\> class=\> class=\> class=\ class=\> class=\ init-method=\> class=\> class=\> 百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库STUDIO生成主子孙单据开发说明(5)在线全文阅读。
相关推荐: