//设置点击节点时,默认设置为开片界面
this.setCurrentPanel("CARDPANEL");
//给开片界面中的参照加入默认查询语句
String pk_corp = ClientEnvironment.getInstance().getCorporation().getUnitcode();
//String whereSql = "pk_corp in ('1001','"+pk_corp+"')";
String whereSql = "(pk_corp = '1001' or pk_corp='"+pk_corp+"')";
UIRefPane refPactno = (UIRefPane)this.getBillCardPanel().getHeadItem("pactno").getComponent();
refPactno.setWhereString(whereSql);
本文介绍了一种通过编程方式设置默认查询条件的方法。具体步骤包括:首先设置开片界面为默认显示面板;然后构造一个包含当前单位编码的默认查询语句,并将其应用于开片界面上的参照字段。
3364

被折叠的 条评论
为什么被折叠?



