EAS_DEP添加动态控件,在代码中获取DEP扩展控件

1.在编辑界面onload的方法前置事件添加脚本

//把动态控件传递到代码中
var components = new java.util.HashMap();
components.put("prmtassureAmountAccount", pluginCtx.getKDBizPromptBox("prmtassureAmountAccount"));
components.put("prmtassureInterestAccount", pluginCtx.getKDBizPromptBox("prmtassureInterestAccount"));
components.put("txtassureInterestRate",pluginCtx.getKDFormattedTextField("txtassureInterestRate"));
components.put("chkisMatchPaymentBill",pluginCtx.getKDCheckBox("chkisMatchPaymentBill"));
pluginCtx.getUI().setDEPComponents(components);

2.在后台editui中声明对应类型的控件对象,添加对应方法setDEPComponents(Object object),在改方法中,将声明的控件与界面控件绑定,这样即可在代码中通过对声明控件赋值,来设置对象的显示值

 

posted @ 2024-04-18 16:52  凉了记忆  阅读(48)  评论(0编辑  收藏  举报