本文整理汇总了Java中ims.core.vo.PersonAddress.setNotificationDate方法的典型用法代码示例。如果您正苦于以下问题:Java PersonAddress.setNotificationDate方法的具体用法?Java PersonAddress.setNotificationDate怎么用?Java PersonAddress.setNotificationDate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.core.vo.PersonAddress
的用法示例。
在下文中一共展示了PersonAddress.setNotificationDate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onBtnOkClick
import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
@Override
protected void onBtnOkClick() throws ims.framework.exceptions.PresentationLogicException
{
if(form.getMode().equals(FormMode.EDIT)){
if(form.dteDate().getValue()==null){
engine.showMessage("Date is mandatory.");
return;
}
else if(form.dteDate().getValue().isGreaterThan(new Date())){
engine.showMessage("Date cannot be in the future.");
return;
}
PersonAddress voPersonAddress = (PersonAddress) form.getLocalContext().getPersonAddress().clone();
voPersonAddress.setNotificationDate(form.dteDate().getValue());
voPersonAddress.setAddressType(AddressType.HISTORICAL);
form.getGlobalContext().Core.setPersonAddress(voPersonAddress);
engine.close(DialogResult.OK);
return;
}
engine.close(DialogResult.CANCEL);
}
示例2: populateAddressFromHistory
import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
private PersonAddress populateAddressFromHistory(PciAddressHistoryVo value)
{
PersonAddress address = new PersonAddress();
address.setLine1(value.getLine1());
address.setLine2(value.getLine2());
address.setLine3(value.getLine3());
address.setLine4(value.getLine4());
address.setLine5(value.getLine5());
address.setCounty(value.getCounty());
address.setPostCode(value.getPostCode());
address.setUpdateDate(value.getUpdateDate());
address.setNotificationDate(value.getNotificationDate());
return address;
}
示例3: updateClientAddress
import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
private Boolean updateClientAddress(ClientVo client, ClientAddressVo clientAddresses, CommChannelVoCollection commChannel)
{
Boolean isAddressChanged = false;
if(client == null || clientAddresses == null || (clientAddresses != null && !clientAddresses.getPersonAddressIsNotNull()))
return false;
PersonAddress familyAddress = clientAddresses.getPersonAddress();
familyAddress.setUpdateDate(new DateTime());
familyAddress.setNotificationDate(new Date());
client.setAddress(familyAddress);
if(clientAddresses.getCommunityCare() != null
&& clientAddresses.getCommunityCare().getAddressHistoryIsNotNull()
&& clientAddresses.getCommunityCare().getAddressHistory().get(0) != null)
{
PciAddressHistoryVo newAddress = clientAddresses.getCommunityCare().getAddressHistory().get(0);
PciAddressHistoryVoCollection clientAddressHistory = client.getCommunityCare().getAddressHistory();
if(clientAddressHistory.get(0) != null && hasAddressChanged(newAddress, clientAddressHistory.get(0)))
{
newAddress.setUpdateDate(new DateTime());
newAddress.setNotificationDate(new Date());
clientAddressHistory.add(0, newAddress);
isAddressChanged = true;
}
CommunityCareVo newClientCommunityCare = clientAddresses.getCommunityCare();
newClientCommunityCare.setAddressHistory(clientAddressHistory);
populateCommunityCare(client.getCommunityCare(), newClientCommunityCare);
}
Boolean isCommChannelChanged = populateCommChannels(client, commChannel);
if(!isAddressChanged)
isAddressChanged = isCommChannelChanged;
return isAddressChanged;
}