本文整理汇总了Java中ims.core.vo.PersonAddress类的典型用法代码示例。如果您正苦于以下问题:Java PersonAddress类的具体用法?Java PersonAddress怎么用?Java PersonAddress使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PersonAddress类属于ims.core.vo包,在下文中一共展示了PersonAddress类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getRefferingGPAddress
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private String getRefferingGPAddress(PersonAddress voAddress)
{
if (voAddress == null)
return "";
StringBuffer address = new StringBuffer();
if (voAddress.getLine1IsNotNull())
address.append(voAddress.getLine1().toString());
if (voAddress.getLine2IsNotNull())
address.append("\r\n" + voAddress.getLine2().toString());
if (voAddress.getLine3IsNotNull())
address.append("\r\n" + voAddress.getLine3().toString());
if (voAddress.getLine4IsNotNull())
address.append("\r\n" + voAddress.getLine4().toString());
if (voAddress.getLine5IsNotNull())
address.append("\r\n" + voAddress.getLine5().toString());
return address.toString();
}
示例2: insertgrdGpAdressee
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void insertgrdGpAdressee(GpShortVo gpShortVo, LocSiteShortVo locSiteShortVo)
{
if (gpShortVo == null || locSiteShortVo == null)
return;
RecipientVo gpRecipVo = new RecipientVo();
GenForm.lyrCorrespondenceDetailLayer.tabRecipientsContainer.grdAdresseeRow row = form.lyrCorrespondenceDetail().tabRecipients().grdAdressee().getRows().newRow();
GpShortVo voGP = (GpShortVo) gpShortVo;
PersonAddress surgeryAddress = null;
if (locSiteShortVo.getAddressIsNotNull())
{
surgeryAddress = locSiteShortVo.getAddress();
row.setAddress(surgeryAddress.toDisplayString());
}
row.setGP(form.getImages().Admin.StaffBlue);
gpRecipVo.setName(voGP.getName());
gpRecipVo.setAddress(surgeryAddress);
gpRecipVo.setRecipientType(RecipientType.EXTERNAL_GP);
row.setValue(gpRecipVo);
row.setAdressee(voGP.getName().toString());
}
示例3: populateAdmittedFromDetails
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void populateAdmittedFromDetails(ExternalResourceVo selectedExtResForAdmittedFrom)
{
if (selectedExtResForAdmittedFrom == null)
return;
if (selectedExtResForAdmittedFrom.getExternalResourceTypeIsNotNull())
{
form.txtAdmittedFromName().setValue(selectedExtResForAdmittedFrom.getResourcename() != null ? selectedExtResForAdmittedFrom.getResourcename() : null);
if (selectedExtResForAdmittedFrom.getResourceAddressIsNotNull())
{
PersonAddress resAddress = selectedExtResForAdmittedFrom.getResourceAddress();
form.txtAdrAdmittedFromLine1().setValue(resAddress.getLine1());
form.txtAdrAdmittedFromLine2().setValue(resAddress.getLine2());
form.txtAdrAdmittedFromLine3().setValue(resAddress.getLine3());
form.cmbAdmittedCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);
form.txtTelephoneNr().setValue(resAddress.getPhone());
}
}
}
示例4: populateReferrerDetails
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void populateReferrerDetails(ExternalResourceVo selectedExtResForReferredFrom)
{
if (selectedExtResForReferredFrom == null)
return;
if (selectedExtResForReferredFrom.getExternalResourceTypeIsNotNull())
{
form.txtReferrerNameOrganisation().setValue(selectedExtResForReferredFrom.getResourcename() != null ? selectedExtResForReferredFrom.getResourcename() : null);
if (selectedExtResForReferredFrom.getResourceAddressIsNotNull())
{
PersonAddress resAddress = selectedExtResForReferredFrom.getResourceAddress();
form.txtReferrerAdr1().setValue(resAddress.getLine1());
form.txtReferrerAdr2().setValue(resAddress.getLine2());
form.txtReferrerAdr3().setValue(resAddress.getLine3());
form.cmbReferrerCounty().setValue(resAddress.getCounty() != null ? resAddress.getCounty() : null);
form.txtReferrerContactNr().setValue(resAddress.getPhone());
}
}
}
示例5: onBtnNewClick
import ims.core.vo.PersonAddress; //导入依赖的package包/类
protected void onBtnNewClick() throws PresentationLogicException
{
clearScreen();
form.recbrAddress().clear();//WDEV-14367
form.setMode(FormMode.EDIT); //WDEV-14367
//16179
form.ccAddress().setRequireAdress(true);
form.getLocalContext().setpersonAddress(new PersonAddress());
form.getLocalContext().setaddressIndex(-1);
form.btnNew().setEnabled(false);
form.btnUpdate().setEnabled(false);
form.recbrAddress().setEnabled(false);
// form.cmbAddressType().setValue(AddressType.CORRESPONDENCE);
form.cmbAddressType().setValue(null);//WDEV-14188
form.cmbAddressType().removeRow(AddressType.NOKHOME);
form.cmbAddressType().removeRow(AddressType.HISTORICAL);//WDEV-13009 exclude Historical type
form.cmbAddressType().setRequired(true);
}
示例6: populateScreenFromData
import ims.core.vo.PersonAddress; //导入依赖的package包/类
public void populateScreenFromData(PersonAddress pa)
{
if (pa != null)
{
pa.setPhone(pa.getPhone());
if (form.getGlobalContext().Core.getPatientShortIsNotNull()
&& form.getGlobalContext().Core.getPatientShort().getCommChannelsIsNotNull()
&& form.getGlobalContext().Core.getPatientShort().getCommChannels().getCommunicationChannel(ChannelType.GEN_PHONE) != null)
pa.setPhone(form.getGlobalContext().Core.getPatientShort().getCommChannels().getCommunicationChannel(ChannelType.GEN_PHONE).getCommValue());
form.ccAddress().setValue(pa);
form.txtOtherPhone().setValue(pa.getOtherphone());
form.cmbAddressType().setValue(pa.getAddressTypeIsNotNull()?pa.getAddressType():null);
form.getLocalContext().setpersonAddress(pa);
}
form.getLocalContext().setaddressIndex(form.recbrAddress().getSelectedIndex());
}
示例7: doCopy
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void doCopy()
{
clearAddressControls();
if (form.getGlobalContext().Core.getNOKPersonAddressIsNotNull())
{
PersonAddress personAddress = (PersonAddress) form.getGlobalContext().Core.getNOKPersonAddress().clone();
//start WDEV-14370
if (ConfigFlag.UI.DEMOGRAPHICS_TYPE.getValue().equals("UK"))
{
personAddress.setPhone(form.getGlobalContext().Core.getCommChannels().getCommunicationChannel(ChannelType.HOME_PHONE) !=null ? form.getGlobalContext().Core.getCommChannels().getCommunicationChannel(ChannelType.HOME_PHONE).getCommValue() : null);
}
//end
form.ccAddressSearch().setComponentEnabled(false);//WDEV-17432
populateScreenFromData(personAddress);
displayPhoneNumbers();
form.ccAddressSearch().setComponentEnabled(true);//WDEV-17432
}
}
示例8: onFormOpen
import ims.core.vo.PersonAddress; //导入依赖的package包/类
@Override
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException
{
initialize();
if (args != null && args.length > 0 && args[0] instanceof PersonAddressCollection)
{
PersonAddressCollection voColl = (PersonAddressCollection)args[0];
populateRecordBrowser(voColl);
}
else if (args != null && args.length > 0 && args[0] instanceof PersonAddress){
form.getLocalContext().setPersonAddress((PersonAddress) args[0]);
form.ccAddress().setValue((PersonAddress) args[0]);
form.setMode(FormMode.EDIT);
form.btnOk().setText("Save");
}
}
示例9: 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);
}
示例10: getlines
import ims.core.vo.PersonAddress; //导入依赖的package包/类
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()));
if(ConfigFlag.DOM.HEARTS_REPLICATE_PATIENTS.getValue())
addressResult.setLine5("");
else
addressResult.setLine5((form.txtAddress5().getValue()));
return addressResult;
}
示例11: getGPSCoordinatesForPostCode
import ims.core.vo.PersonAddress; //导入依赖的package包/类
public GeoCoOrdVo getGPSCoordinatesForPostCode(String postCode)
{
GeoCoOrdVo geoCoOrdvo = new GeoCoOrdVo();
AddressManagmentProvider amf = new AddressManagmentProvider();
ims.core.vo.PersonAddress lpa = new ims.core.vo.PersonAddress();
lpa.setPostCode(postCode);
double[] coOrds;
try
{
coOrds = amf.getLatitudeLogitude(lpa);
}
catch (DomainRuntimeException e)
{
return null;
}
if (coOrds != null && coOrds.length == 2)
{
geoCoOrdvo.setLatitude((float)coOrds[0]);
geoCoOrdvo.setLogitude((float)coOrds[1]);
return geoCoOrdvo;
}
return null;
}
示例12: extractPracticeAddressFromDTOPracticeRecord
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private PersonAddress extractPracticeAddressFromDTOPracticeRecord(Gp_practiceRecord gp_practice_record)
{
if (gp_practice_record == null)
return null;
PersonAddress voPracticeAddress = new PersonAddress();
voPracticeAddress.setPhone(gp_practice_record.Practice_phone_no == null ? null : gp_practice_record.Practice_phone_no);
voPracticeAddress.setFax(gp_practice_record.Practice_fax_no == null ? null: gp_practice_record.Practice_fax_no);
voPracticeAddress.setLine1(gp_practice_record.Address_line1 == null ? null: gp_practice_record.Address_line1);
voPracticeAddress.setLine2(gp_practice_record.Address_line2 == null ? null: gp_practice_record.Address_line2);
voPracticeAddress.setLine3(gp_practice_record.Address_line3 == null ? null: gp_practice_record.Address_line3);
voPracticeAddress.setLine4(gp_practice_record.Address_line4 == null ? null: gp_practice_record.Address_line4);
voPracticeAddress.setLine5(gp_practice_record.Address_line5 == null ? null: gp_practice_record.Address_line5);
// TODO ask leader voPracticeAddress.setCounty()
return voPracticeAddress;
}
示例13: onBtnPatientAddressClick
import ims.core.vo.PersonAddress; //导入依赖的package包/类
protected void onBtnPatientAddressClick() throws ims.framework.exceptions.PresentationLogicException
{
clearAddress();
if( form.getGlobalContext().Core.getPatientShortIsNotNull())
{
PersonAddress driverAdress = form.getGlobalContext().Core.getPatientShort().getAddress();
if( driverAdress != null)
{
form.txtAddress1().setValue(driverAdress.getAddressBuildingName());
form.txtAddress2().setValue(driverAdress.getAddressBuildingNumber());
form.txtAddress3().setValue(driverAdress.getAddressLocality());
form.txtAddress4().setValue(driverAdress.getAddressPostTown());
form.txtPostCode().setValue(driverAdress.getAddressPostCode());
}
}
}
示例14: populateDataFromScreen
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void populateDataFromScreen()
{
OrganisationVo voOrganisation = form.getGlobalContext().Admin
.getOrganisationVoIsNotNull() ? form.getGlobalContext().Admin
.getOrganisationVo() : new OrganisationVo();
PersonAddress voAddress = voOrganisation.getAddressIsNotNull() ? voOrganisation
.getAddress()
: new PersonAddress();
voAddress.setLine1(form.txtOrgAdd1().getValue());
voAddress.setLine2(form.txtOrgAdd2().getValue());
voAddress.setLine3(form.txtOrgAdd3().getValue());
voAddress.setLine4(form.txtOrgAdd4().getValue());
voAddress.setLine5(form.txtOrgAdd5().getValue());
voAddress.setCounty(form.cmbCounty().getValue());
voAddress.setPhone(form.txtOrgPhone().getValue());
voAddress.setFax(form.txtOrgFax().getValue());
voAddress.setPostCode(form.txtPostCode().getValue());
voOrganisation.setAddress(voAddress);
voOrganisation.setIsActive(Boolean.TRUE);
voOrganisation.setName(form.txtOrgName().getValue());
voOrganisation.setType(OrganisationType.GPP);
form.getGlobalContext().Admin.setOrganisationVo(voOrganisation);
}
示例15: populateAddress
import ims.core.vo.PersonAddress; //导入依赖的package包/类
private void populateAddress(PersonAddress voAddress)
{
if (voAddress != null)
{
if (voAddress.getLine1IsNotNull())
form.ctnDetails().txtDetailsAddress1().setValue(voAddress.getLine1());
if (voAddress.getLine2IsNotNull())
form.ctnDetails().txtDetailsAddress2().setValue(voAddress.getLine2());
if (voAddress.getLine3IsNotNull())
form.ctnDetails().txtDetailsAddress3().setValue(voAddress.getLine3());
if (voAddress.getLine4IsNotNull())
form.ctnDetails().txtDetailsAddress4().setValue(voAddress.getLine4());
if (voAddress.getLine5IsNotNull())
form.ctnDetails().txtDetailsAddress5().setValue(voAddress.getLine5());
form.ctnDetails().txtDetailsPostCode().setValue(voAddress.getPostCode());
form.ctnDetails().cmbCounty().setValue(voAddress.getCounty());
}
}