2024年4月12日发(作者:)

ComboTreeDetailListUI左树右表必须实现的方法事件

//增加下拉列表选择改变事件处理(会重新生成树)

protected void cbxMain_itemStateChanged(ent e) throws Exception

{

n_itemStateChanged(e);// 本超类事件重新生成树

if (Count() > 1)

ectionRow(1);// 有数据选择第一个节点

1

else

ectionRow(0);// 无数据选择根节点

}

//给左树传查询过滤条件(如果需要传参数给左树,需要实现ILNTreeNodeCtrl接口)

protected ILNTreeNodeCtrl getLNTreeNodeCtrl() throws Exception

{

if (mCount() > 0) tateChanged(e);//本超类函数重新生成树

if (Count() > 1)

{

return new LNCsAccountTypeTreeNodeCtrl(getTreeInterface(), (CsAccountTableInfo) ectedItem(), "acccountTable");

} else

{

return new LNCsAccountTypeTreeNodeCtrl(getTreeInterface(), new CsAccountTableInfo(), "acccountTable");

2