Java Code Examples for ims.core.vo.PersonAddress.setBeffdate()

The following are Jave code examples for showing how to use setBeffdate() of the ims.core.vo.PersonAddress class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private PersonAddress getlines(PersonAddress addressResult)
{
	if (addressResult == null)
		return null;
	
	addressResult.setLine1((form.txtAddress1().getValue()));
	addressResult.setLine2((form.txtAddress2().getValue()));
	addressResult.setLine3((form.txtAddress3().getValue()));
	addressResult.setLine4((form.txtAddress4().getValue()));
	addressResult.setLine5((form.txtAddress5().getValue()));
	
	addressResult.setPostCode(form.txtPost().getValue()); //WDEV-17700
	addressResult.setPCT(form.txtPctCode().getValue());
	addressResult.setCountry(form.cmbCountry().getValue());
	addressResult.setBeffdate(form.ccEffectiveDates().getDateFrom());
	addressResult.setBetdate(form.ccEffectiveDates().getDateTo());
	
	addressResult.setCareHome(form.chkCareHome().getValue());
	addressResult.setNoFixedAbode(form.chkNoFixed().getValue());
	
	//boolean svuhMandatory = ConfigFlag.UI.SVUH_MANDATORY_DEMOGRAPHIC_ATTRIBUTES.getValue() == true;
	if(form.cmbAreaOfResidence().getVisible())
	{
		addressResult.setAreaOfResidence(form.cmbAreaOfResidence().getValue());
	}
	
	return addressResult;
}
 
Example 2
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 4 votes
public PersonAddress populateDataFromScreen()
{
	form.getLocalContext().setpersonAddress(form.ccAddress().getValue());
	
	if (form.getLocalContext().getpersonAddressIsNotNull()) //WDEV-23240
	{
		form.getLocalContext().getpersonAddress().setAddressType(form.cmbAddressType().getValue());
		form.getLocalContext().getpersonAddress().setOtherphone(form.txtOtherPhone().getValue());
	}
	
	//WDEV-22492
	PersonAddress addr = form.getLocalContext().getpersonAddress();
	if(addr != null)
	{
		Date dateFrom = form.ccEffectiveDates().getDateFrom();
		Date dateTo = form.ccEffectiveDates().getDateTo();
		
		if(dateFrom != null)
		{
			addr.setBeffdate(dateFrom);
			addr.setBeffdatecnf(Boolean.TRUE);
		}
		else
		{
			addr.setBeffdate(null);
			addr.setBeffdatecnf(Boolean.FALSE);
		}
		
		if(dateTo != null)
		{
			addr.setBetdate(dateTo);
			addr.setBetdatecnf(Boolean.TRUE);
		}
		else
		{
			addr.setBetdate(null);
			addr.setBetdatecnf(Boolean.FALSE);
		}
	}
	//WDEV-22492

	return form.getLocalContext().getpersonAddress();
}