|
楼主 |
发表于 2016-9-21 13:14:53
|
显示全部楼层
本帖最后由 lwcompany 于 2016-9-21 14:56 编辑
//orgtreePC1下的orgtree date事件中的indexchanged编程
var orgTreeData = this.comp("orgTreeData");
var lnxxsbkpADatadataTables this.com("lnxxsbkpADatadataTables");
var sname = orgTreeData.getValue("sName");
event.source.setFilter( "sname","lnxxsbkpADatadataTables.bmmc='"+sname+"'");//对右边data进行过滤
还是不好用呀
后台
public static Table xxsbkpABytree(String concept,String idColumn,String select,String from,String condition,List range,String filter,Boolean distinct,Integer offset,Integer limit,String columns,String orderBy,String aggregate,String aggregateColumns,Map variables,String dataModel,String fnModel,String fBMMC,Boolean includeInherited)
{
Table table =KSQL.select("select ln_xxsbkpA.* ,SA_OPOrg.sName as sName,ln_xxsbkpA.fBMMC as fBMMC,ln_xxsbkpA.fRKMasterID as fRKMasterID,ln_xxsbkpA.fRKRQ as fRKRQ,ln_xxsbkpA.fDWMC as fDWMC,ln_xxsbkpA.fLBMC as fLBMC,ln_xxsbkpA.fRKMC as fRKMC,ln_xxsbkpA.fJZZTMC as fJZZTMC,ln_xxsbkpA.fCWBH as fCWBH,ln_xxsbkpA.fTXM as fTXM,ln_xxsbkpA.fGG as fGG,ln_xxsbkpA.fFPSL as fFPSL,ln_xxsbkpA.fFPJE as fFPJE,ln_xxsbkpA.fSYR as fSYR,ln_xxsbkpA.fCFDD as fCFDD,ln_xxsbkpA.fRKBZ as fRKBZ from ln_xxsbkpA ln_xxsbkpA optional join SA_OPOrg SA_OPOrg on ln_xxsbkpA.fBMMC = SA_OPOrg.sName where SA_OPOrg.sValidState = 1" ,null,RKDataModel,null);
table.getProperties().put(Table.PROP_NAME_ROWID,"ln_xxsbkpA");
return table;
}
|
|