LocSiteUpprNameVo getSurgery(LocSiteUpprNameVoCollection locSites, AddressVo address) { for (int i = 0; i < locSites.size(); i++) { LocSiteUpprNameVo vo =locSites.get(i); if (vo != null && vo.getAddress() != null && address != null) { if ( adrLinesEqual(vo.getAddress().getLine1(),address.getLine1()) && adrLinesEqual(vo.getAddress().getLine2(),address.getLine2()) && adrLinesEqual(vo.getAddress().getLine3(),address.getLine3()) && adrLinesEqual(vo.getAddress().getLine4(),address.getLine4()) && adrLinesEqual(vo.getAddress().getLine5(),address.getLine5()) && adrLinesEqual(vo.getAddress().getPostCode(),address.getPostCode())) { return vo; } } } return null; }
private void populateInstanceControlsFromData(PrivateInsuranceCompanyVo privateInsuranceCompanyVo) { //Clear instance controls clearInstanceControls(); // Terminate function on null value parameter if (privateInsuranceCompanyVo == null) return; // Set value to instance controls form.ctnDetails().txtCompanyName().setValue(privateInsuranceCompanyVo.getName()); AddressVo addressVo = privateInsuranceCompanyVo.getAddress(); if(addressVo!=null){ form.ctnDetails().txtAddress1().setValue(addressVo.getLine1()); form.ctnDetails().txtAddress2().setValue(addressVo.getLine2()); form.ctnDetails().txtAddress3().setValue(addressVo.getLine3()); form.ctnDetails().txtAddress4().setValue(addressVo.getLine4()); form.ctnDetails().txtAddress5().setValue(addressVo.getLine5()); form.ctnDetails().txtPostcode().setValue(addressVo.getPostCode()); } form.ctnDetails().chkActive().setValue(Boolean.TRUE.equals(privateInsuranceCompanyVo.getIsActive())); populateOrgMappingsGrid(privateInsuranceCompanyVo.getCodeMappings()); }
private String getAddress(AddressVo address) { if(address == null) return null; StringBuffer str = new StringBuffer(); if(address.getLine1() != null) str.append(address.getLine1()); if(address.getLine2() != null) { str.append(", "); str.append(address.getLine2()); } if(address.getLine3() != null) { str.append(", "); str.append(address.getLine3()); } if(address.getLine4() != null) { str.append(", "); str.append(address.getLine4()); } return str.toString(); }
protected final void renderOrgAddressVoToXAD(AddressVo addressVo, XAD xad, ProviderSystemVo providerSystem) throws Exception { LOG.debug("VoMapper renderOrgAddressVoToXAD: entry"); if (addressVo == null) return; //XAD.1.1 Street or mailing address (ST) if(addressVo.getLine1() != null && addressVo.getLine1().length() > 0) { xad.getStreetAddress().getStreetOrMailingAddress().setValue(addressVo.getLine1()); } //XAD.2 Other designation (ST) if(addressVo.getLine2() != null && addressVo.getLine2().length() > 0) { xad.getOtherDesignation().setValue(addressVo.getLine2()); } //XAD.3 City (ST) if(addressVo.getLine3() != null && addressVo.getLine3().length() > 0) { xad.getCity().setValue(addressVo.getLine3()); } //XAD.4 Stae or province *ST) if(addressVo.getLine4() != null && addressVo.getLine4().length() > 0) { xad.getStateOrProvince().setValue(addressVo.getLine4()); } //XAD.5 Zip or postal code (ST) if(addressVo.getPostCode() != null && addressVo.getPostCode().length() > 0) { xad.getZipOrPostalCode().setValue(addressVo.getPostCode()); } //WDEV-22597 //XAD.8 Address type (ID) if (addressVo.getAddressType() != null) { xad.getAddressType().setValue(svc.getRemoteLookup(addressVo.getAddressType().getID(), providerSystem.getCodeSystem().getText())); } //WDEV-22597 //XAD.8 Other geographic designation (ST) if(addressVo.getLine5() != null && addressVo.getLine5().length() > 0) { xad.getOtherGeographicDesignation().setValue(addressVo.getLine5()); } LOG.debug("VoMapper renderOrgAddressVoToXAD: exit (" + xad.toString() + ")"); }