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

The following are Jave code examples for showing how to use getPhoneIsNotNull() 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: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private boolean isAddressRecorded() 
{
	PersonAddress address = form.ccAddressSearch().getValue();
	
	if((address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPostCodeIsNotNull() || address.getPCTIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null)
		return true;
	
	return false;
}
 
Example 2
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
private boolean fieldsCleared() 
{

	PersonAddress address = form.ccAddressSearch().getValue();
	
	if(form.txtNOKSName().getValue()!= null || form.txtNOKMiddlename().getValue() != null || form.txtNOKForename().getValue() != null || form.cmbTitle().getValue()!=null || (address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPhoneIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null || form.cmbRelationship().getValue()!=null)
		return false;
	
	return true;
}
 
Example 3
Project: AvoinApotti   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * WDEV-13432
 * Function used to test an address if it is empty.
 * A null address is also considered empty
 */
private boolean isEmptyAddress(PersonAddress previousAddress)
{
	// Test address for null value
	if (previousAddress == null)
		return true;
	
	// Test relevant fields if are not empty
	
	if (previousAddress.getLine1IsNotNull() && previousAddress.getLine1().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine2IsNotNull() && previousAddress.getLine2().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine3IsNotNull() && previousAddress.getLine3().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine4IsNotNull() && previousAddress.getLine4().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine5IsNotNull() && previousAddress.getLine5().trim().length() != 0)
		return false;
	
	if (previousAddress.getPostCodeIsNotNull() && previousAddress.getPostCode().trim().length() != 0)
		return false;
	
	if (previousAddress.getPhoneIsNotNull() && previousAddress.getPhone().trim().length() != 0)
		return false;
	
	if (previousAddress.getCountyIsNotNull())
		return false;
	
	return true;
}
 
Example 4
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * WDEV-13432
 * Function used to test an address if it is empty.
 * A null address is also considered empty
 */
private boolean isEmptyAddress(PersonAddress previousAddress)
{
	// Test address for null value
	if (previousAddress == null)
		return true;
	
	// Test relevant fields if are not empty
	
	if (previousAddress.getLine1IsNotNull() && previousAddress.getLine1().length() != 0)
		return false;
	
	if (previousAddress.getLine2IsNotNull() && previousAddress.getLine2().length() != 0)
		return false;
	
	if (previousAddress.getLine3IsNotNull() && previousAddress.getLine3().length() != 0)
		return false;
	
	if (previousAddress.getLine4IsNotNull() && previousAddress.getLine4().length() != 0)
		return false;
	
	if (previousAddress.getLine5IsNotNull() && previousAddress.getLine5().length() != 0)
		return false;
	
	if (previousAddress.getPostCodeIsNotNull() && previousAddress.getPostCode().length() != 0)
		return false;
	
	if (previousAddress.getPhoneIsNotNull() && previousAddress.getPhone().length() != 0)
		return false;
	
	if (previousAddress.getCountyIsNotNull())
		return false;
	
	if (previousAddress.getAreaOfResidenceIsNotNull()) //WDEV-19597
		return false;
	
	return true;
}
 
Example 5
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean isAddressRecorded() 
{
	PersonAddress address = form.ccAddressSearch().getValue();
	
	if((address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPostCodeIsNotNull() || address.getPCTIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null || form.txtMobilePhone().getValue()!=null)
		return true;
	
	return false;
}
 
Example 6
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean fieldsCleared() 
{

	PersonAddress address = form.ccAddressSearch().getValue();
	
	if(form.txtNOKSName().getValue()!= null || form.txtNOKMiddlename().getValue() != null || form.txtNOKForename().getValue() != null || form.cmbTitle().getValue()!=null || (address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPhoneIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null || form.cmbRelationship().getValue()!=null || form.txtMobilePhone().getValue()!=null)
		return false;
	
	return true;
}
 
Example 7
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * WDEV-13432
 * Function used to test an address if it is empty.
 * A null address is also considered empty
 */
private boolean isEmptyAddress(PersonAddress previousAddress)
{
	// Test address for null value
	if (previousAddress == null)
		return true;
	
	// Test relevant fields if are not empty
	
	if (previousAddress.getLine1IsNotNull() && previousAddress.getLine1().length() != 0)
		return false;
	
	if (previousAddress.getLine2IsNotNull() && previousAddress.getLine2().length() != 0)
		return false;
	
	if (previousAddress.getLine3IsNotNull() && previousAddress.getLine3().length() != 0)
		return false;
	
	if (previousAddress.getLine4IsNotNull() && previousAddress.getLine4().length() != 0)
		return false;
	
	if (previousAddress.getLine5IsNotNull() && previousAddress.getLine5().length() != 0)
		return false;
	
	if (previousAddress.getPostCodeIsNotNull() && previousAddress.getPostCode().length() != 0)
		return false;
	
	if (previousAddress.getPhoneIsNotNull() && previousAddress.getPhone().length() != 0)
		return false;
	
	if (previousAddress.getCountyIsNotNull())
		return false;
	
	if (previousAddress.getAreaOfResidenceIsNotNull()) //WDEV-19597
		return false;
	
	return true;
}
 
Example 8
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean isAddressRecorded() 
{
	PersonAddress address = form.ccAddressSearch().getValue();
	
	if((address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPostCodeIsNotNull() || address.getPCTIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null)
		return true;
	
	return false;
}
 
Example 9
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
private boolean fieldsCleared() 
{

	PersonAddress address = form.ccAddressSearch().getValue();
	
	if(form.txtNOKSName().getValue()!= null || form.txtNOKMiddlename().getValue() != null || form.txtNOKForename().getValue() != null || form.cmbTitle().getValue()!=null || (address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPhoneIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null || form.cmbRelationship().getValue()!=null)
		return false;
	
	return true;
}
 
Example 10
Project: openMAXIMS   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * WDEV-13432
 * Function used to test an address if it is empty.
 * A null address is also considered empty
 */
private boolean isEmptyAddress(PersonAddress previousAddress)
{
	// Test address for null value
	if (previousAddress == null)
		return true;
	
	// Test relevant fields if are not empty
	
	if (previousAddress.getLine1IsNotNull() && previousAddress.getLine1().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine2IsNotNull() && previousAddress.getLine2().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine3IsNotNull() && previousAddress.getLine3().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine4IsNotNull() && previousAddress.getLine4().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine5IsNotNull() && previousAddress.getLine5().trim().length() != 0)
		return false;
	
	if (previousAddress.getPostCodeIsNotNull() && previousAddress.getPostCode().trim().length() != 0)
		return false;
	
	if (previousAddress.getPhoneIsNotNull() && previousAddress.getPhone().trim().length() != 0)
		return false;
	
	if (previousAddress.getCountyIsNotNull())
		return false;
	
	return true;
}
 
Example 11
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private boolean isAddressRecorded() 
{
	PersonAddress address = form.ccAddressSearch().getValue();
	
	if((address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPostCodeIsNotNull() || address.getPCTIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null)
		return true;
	
	return false;
}
 
Example 12
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
private boolean fieldsCleared() 
{

	PersonAddress address = form.ccAddressSearch().getValue();
	
	if(form.txtNOKSName().getValue()!= null || form.txtNOKMiddlename().getValue() != null || form.txtNOKForename().getValue() != null || form.cmbTitle().getValue()!=null || (address!=null && (address.getLine1IsNotNull() || address.getLine2IsNotNull()
			|| address.getLine3IsNotNull() || address.getLine4IsNotNull() || address.getPhoneIsNotNull() || address.getPhoneIsNotNull()))
			|| form.txtPhoneWork().getValue()!=null || form.cmbRelationship().getValue()!=null)
		return false;
	
	return true;
}
 
Example 13
Project: openmaxims-linux   File: Logic.java   Source Code and License Vote up 5 votes
/**
 * WDEV-13432
 * Function used to test an address if it is empty.
 * A null address is also considered empty
 */
private boolean isEmptyAddress(PersonAddress previousAddress)
{
	// Test address for null value
	if (previousAddress == null)
		return true;
	
	// Test relevant fields if are not empty
	
	if (previousAddress.getLine1IsNotNull() && previousAddress.getLine1().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine2IsNotNull() && previousAddress.getLine2().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine3IsNotNull() && previousAddress.getLine3().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine4IsNotNull() && previousAddress.getLine4().trim().length() != 0)
		return false;
	
	if (previousAddress.getLine5IsNotNull() && previousAddress.getLine5().trim().length() != 0)
		return false;
	
	if (previousAddress.getPostCodeIsNotNull() && previousAddress.getPostCode().trim().length() != 0)
		return false;
	
	if (previousAddress.getPhoneIsNotNull() && previousAddress.getPhone().trim().length() != 0)
		return false;
	
	if (previousAddress.getCountyIsNotNull())
		return false;
	
	return true;
}