当前位置: 首页>>代码示例>>Java>>正文


Java PersonAddress.setNotificationDate方法代码示例

本文整理汇总了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);
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:26,代码来源:Logic.java

示例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;
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:17,代码来源:Logic.java

示例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;
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:43,代码来源:FamilyRecordsImpl.java


注:本文中的ims.core.vo.PersonAddress.setNotificationDate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。