本文共 1665 字,大约阅读时间需要 5 分钟。
import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
private void initalize()
{
//update local context
if (form.getGlobalContext().Core.getOtherAddressesIsNotNull())
{
PersonAddressCollection coll = (ims.core.vo.PersonAddressCollection)form.getGlobalContext().Core.getOtherAddresses().clone();
PersonAddressCollection collNonHistorical = new PersonAddressCollection();
for(int i=0; i
{
if(coll.get(i).getAddressType()!=null && !coll.get(i).getAddressType().equals(AddressType.HISTORICAL))
collNonHistorical.add(coll.get(i));
}
form.getLocalContext().setpersonAddressCol(collNonHistorical);
}
else
form.getLocalContext().setpersonAddressCol(null);
if (form.getLocalContext().getpersonAddressColIsNotNull() && form.getLocalContext().getpersonAddressCol().size() > 0)
{
for(PersonAddress pa:form.getLocalContext().getpersonAddressCol())
{
if(pa.getAddressType()!=null && !pa.getAddressType().equals(AddressType.HISTORICAL))//WDEV-13009 exclude Historical addresses
{
form.recbrAddress().newRow(pa, pa.getLine1IsNotNull()?pa.getLine1():"");
form.recbrAddress().setValue(pa);
form.recbrAddress().setEnabled(true);
}
else if(pa.getAddressType()==null)
{
form.recbrAddress().newRow(pa, pa.getLine1IsNotNull()?pa.getLine1():"");
form.recbrAddress().setValue(pa);
form.recbrAddress().setEnabled(true);
}
}
}
form.cmbAddressType().removeRow(AddressType.NOKHOME);
form.cmbAddressType().removeRow(AddressType.HISTORICAL);//WDEV-13009 exclude Historical type
populateScreenFromData(form.recbrAddress().getValue());
form.btnClear().setVisible(true);
form.btnNew().setVisible(true);
form.btnUpdate().setVisible(true);
form.btnOK().setVisible(true);
form.setMode(FormMode.VIEW);
}
转载地址:https://blog.csdn.net/weixin_34518190/article/details/115816745 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!