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


Java PersonAddress.setAddressSearchText方法代码示例

本文整理汇总了Java中ims.core.vo.PersonAddress.setAddressSearchText方法的典型用法代码示例。如果您正苦于以下问题:Java PersonAddress.setAddressSearchText方法的具体用法?Java PersonAddress.setAddressSearchText怎么用?Java PersonAddress.setAddressSearchText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ims.core.vo.PersonAddress的用法示例。


在下文中一共展示了PersonAddress.setAddressSearchText方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onImbPostCodeSearchClick

import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
@Override
protected void onImbPostCodeSearchClick() throws PresentationLogicException 
{
	// Address provider helper
	IAddressProvider l_addressprovider = engine.getAddressProvider();
	if(l_addressprovider == null)
		throw new PresentationLogicException("Please Configure Address Provider");

	PersonAddress personAddress = new PersonAddress();
	PersonAddress[] personAddressResult = new PersonAddress[0];
			
	//Funtionality
	//To initiate search, the user will use either the poscode field or an additional address search field located on the right of the poscode field
	//The poscode field will initiate a search of type POSTCODE
	//the additional address search field will initiate a search of type BROWSE with input ADDR
			
	try
	{			
		if (form.txtAddressSearchText().getValue() != null && !form.txtAddressSearchText().getValue().equals(""))
		{
			personAddress.setAddressSearchText(form.txtAddressSearchText().getValue());// search criteria comma delimited.
			form.getGlobalContext().Core.setAddressSearchType("SEARCH");
		}
		else
		{
			engine.showMessage("Please enter a post code or keywords from the first or second line of the address.");
			return;
		}
		personAddressResult = (PersonAddress[])l_addressprovider.getAddress(personAddress,form.getGlobalContext().Core.getAddressSearchType(),"",""); // return result or ambiglist
	}
	catch (PresentationLogicException pe)
	{
		engine.showMessage(pe.getMessage());
	}
	
	//fill out rest of address fields if somthing found
	if (personAddressResult != null && personAddressResult.length == 1)
	{
		//exact match
		form.getLocalContext().setaddressResult(personAddressResult[0]);
		displayAddress();
	}
	else
	{
		form.getGlobalContext().Core.setAddressSearchText(form.txtAddressSearchText().getValue());
		form.getGlobalContext().Core.setPersonAddress(personAddress);
		engine.open(form.getForms().Core.AddressSelection);
	}						
}
 
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:50,代码来源:Logic.java

示例2: onImbPdsSearchPostcodeClick

import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
@Override
protected void onImbPdsSearchPostcodeClick() throws PresentationLogicException 
{
	tabPDSSearchContainer tabPDSSearch = form.lyrSearch().tabPDSSearch();
	IAddressProvider l_addressprovider = engine.getAddressProvider();
	if(l_addressprovider == null)
		throw new PresentationLogicException("Please Configure Address Provider");

	PersonAddress personAddress = new PersonAddress();
	PersonAddress[] personAddressResult = new PersonAddress[0];

	try
	{			
		if (tabPDSSearch.txtPdsSearchPostcode().getValue() != null && !tabPDSSearch.txtPdsSearchPostcode().getValue().equals(""))
		{
			personAddress.setAddressSearchText(tabPDSSearch.txtPdsSearchPostcode().getValue());
			form.getGlobalContext().Core.setAddressSearchType("SEARCH");
		}
		else
		{
			engine.showMessage("Please enter a post code or keywords from the first or second line of the address.","Warning", MessageButtons.OK, MessageIcon.WARNING); //WDEV-21356
			return;
		}
		personAddressResult = (PersonAddress[])l_addressprovider.getAddress(personAddress,form.getGlobalContext().Core.getAddressSearchType(),"",""); // return result or ambiglist
	}
	catch (PresentationLogicException pe)
	{
		engine.showMessage(pe.getMessage(),"Error", MessageButtons.OK, MessageIcon.ERROR); //WDEV-21356
	}

	if (personAddressResult != null && personAddressResult.length == 1)
	{
		form.getLocalContext().setAddressResult(personAddressResult[0]);
	}
	else
	{
		form.getGlobalContext().Core.setAddressSearchText(tabPDSSearch.txtPdsSearchPostcode().getValue());
		form.getGlobalContext().Core.setPersonAddress(personAddress);
		engine.open(form.getForms().Core.AddressSelection);
	}
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:42,代码来源:Logic.java

示例3: onImbLocalSearchPoscodeClick

import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
@Override
protected void onImbLocalSearchPoscodeClick() throws PresentationLogicException 
{
	tabLocalSearchContainer tabLocalSearch = form.lyrSearch().tabLocalSearch();
	IAddressProvider l_addressprovider = engine.getAddressProvider();
	if(l_addressprovider == null)
		throw new PresentationLogicException("Please Configure Address Provider");

	PersonAddress personAddress = new PersonAddress();
	PersonAddress[] personAddressResult = new PersonAddress[0];

	try
	{			
		if (tabLocalSearch.txtLocalSearchPostcode().getValue() != null && !tabLocalSearch.txtLocalSearchPostcode().getValue().equals(""))
		{
			personAddress.setAddressSearchText(tabLocalSearch.txtLocalSearchPostcode().getValue());
			form.getGlobalContext().Core.setAddressSearchType("SEARCH");
		}
		else
		{
			engine.showMessage("Please enter a post code or keywords from the first or second line of the address.","Warning", MessageButtons.OK, MessageIcon.WARNING); //WDEV-21356
			return;
		}
		personAddressResult = (PersonAddress[])l_addressprovider.getAddress(personAddress,form.getGlobalContext().Core.getAddressSearchType(),"",""); // return result or ambiglist
	}
	catch (PresentationLogicException pe)
	{
		engine.showMessage(pe.getMessage(),"Error", MessageButtons.OK, MessageIcon.ERROR); //WDEV-21356
	}

	if (personAddressResult != null && personAddressResult.length == 1)
	{
		form.getLocalContext().setAddressResult(personAddressResult[0]);
	}
	else
	{
		form.getGlobalContext().Core.setAddressSearchText(tabLocalSearch.txtLocalSearchPostcode().getValue());
		form.getGlobalContext().Core.setPersonAddress(personAddress);
		engine.open(form.getForms().Core.AddressSelection);
	}
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:42,代码来源:Logic.java

示例4: onImbPostCodeSearchClick

import ims.core.vo.PersonAddress; //导入方法依赖的package包/类
@Override
protected void onImbPostCodeSearchClick() throws PresentationLogicException 
{
	// Address provider helper
	IAddressProvider l_addressprovider = engine.getAddressProvider();
	if(l_addressprovider == null)
		throw new PresentationLogicException("Please Configure Address Provider");

	PersonAddress personAddress = new PersonAddress();
	PersonAddress[] personAddressResult = new PersonAddress[0];
			
	//Funtionality
	//To initiate search, the user will use either the poscode field or an additional address search field located on the right of the poscode field
	//The poscode field will initiate a search of type POSTCODE
	//the additional address search field will initiate a search of type BROWSE with input ADDR
			
	try
	{			
		if (form.txtAddressSearchText().getValue() != null && !form.txtAddressSearchText().getValue().equals(""))
		{
			personAddress.setAddressSearchText(form.txtAddressSearchText().getValue());// search criteria comma delimited.
			form.getGlobalContext().Core.setAddressSearchType("SEARCH");
		}
		else
		{
			engine.showMessage("Please enter a post code or keywords from the first or second line of the address.");
			return;
		}
		personAddressResult = (PersonAddress[])l_addressprovider.getAddress(personAddress,form.getGlobalContext().Core.getAddressSearchType(),"",""); // return result or ambiglist
	}
	catch (PresentationLogicException pe)
	{
		engine.showMessage(pe.getMessage());
	}
	
	//fill out rest of address fields if somthing found
	if (personAddressResult != null && personAddressResult.length == 1)
	{
		//exact match
		form.getLocalContext().setaddressResult(personAddressResult[0]);
		Date dateFrom = form.ccEffectiveDates().getDateFrom();
		Date dateTo = form.ccEffectiveDates().getDateTo();
		displayAddress();
		setPostCodeStatus();
		form.ccEffectiveDates().setEffectiveDates(dateFrom, dateTo);
		//WDEV-23175
		form.getLocalContext().setpostcodeValidated(true);
	}
	else
	{
		form.getGlobalContext().Core.setAddressSearchText(form.txtAddressSearchText().getValue());
		form.getGlobalContext().Core.setPersonAddress(personAddress);
		engine.open(form.getForms().Core.AddressSelection);
	}						
}
 
开发者ID:IMS-MAXIMS,项目名称:openMAXIMS,代码行数:56,代码来源:Logic.java


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