Package com.centraview.contact.helper

Examples of com.centraview.contact.helper.AddressVO


      // Getting AddressVO from Contact Helper Ejb //
      // (userID,contactID,contactType
      // TODO: Hardcoded UserId to be removed Later (use
      // this.operationIndividualID)
      AddressVO addVO = remote.getPrimaryAddressForContact(1, this.indVo.getContactID(), this.indVo.getContactType());
      this.indVo.setPrimaryAddress(addVO);

      if (indVo.getModifiedBy() != 0) {
        String individualName = remote.getIndividualName(this.indVo.getModifiedBy());
        if (individualName != null && individualName.length() > 20) {
View Full Code Here


    String sid = (String)dynaForm.get("sourceid");
    setSource(Integer.parseInt(sid));
    setSourceName((String)dynaForm.get("source"));

    //This is for setting Address
    AddressVO primaryAdd = new AddressVO();
    primaryAdd.setStreet1((String)dynaForm.get("street1"));
    primaryAdd.setStreet2((String)dynaForm.get("street2"));
    primaryAdd.setCity((String)dynaForm.get("city"));

    primaryAdd.setStateName((String)dynaForm.get("state"));

    primaryAdd.setZip((String)dynaForm.get("zip"));

    primaryAdd.setCountryName((String)dynaForm.get("country"));

    primaryAdd.setWebsite(((String)dynaForm.get("paWebsite")));

    String addId = (String)dynaForm.get("AddressID");
    int addressID;
    if (addId != null && addId.length() == 0) {
      addressID = 0;
    } else {
      addressID = Integer.parseInt(addId);
    }
    primaryAdd.setAddressID(addressID);

    setPrimaryAddress(primaryAdd);
  }// end of constructor
View Full Code Here

        Integer sourceId = (null == dynaForm.get("sourceId")) ? new Integer(0) : (Integer)dynaForm.get("sourceId");
        this.setSourceName((String)dynaForm.get("sourceName"));
        this.setSource(sourceId.intValue());
      }
      if (CVUtility.updateFieldPermitted(individualFieldRights, "address")) {
        AddressVO primaryAddress = this.getPrimaryAddress();
        primaryAddress.setStreet1((String)dynaForm.get("street1"));
        primaryAddress.setStreet2((String)dynaForm.get("street2"));
        primaryAddress.setCity((String)dynaForm.get("city"));
        primaryAddress.setStateName((String)dynaForm.get("state"));
        primaryAddress.setZip((String)dynaForm.get("zip"));
        primaryAddress.setCountryName((String)dynaForm.get("country"));
        String webSiteForm = (null == dynaForm.get("website")) ? "" : (String)dynaForm.get("website");
        String webSite = "";
        if (webSiteForm.matches("^https?://.+")) {
          webSite = webSiteForm;
        } else if (webSiteForm.trim().length() > 0) {
          webSite = "http://" + webSiteForm;
        }
        primaryAddress.setWebsite(webSite);
        Integer addressId = (dynaForm.get("addressId") == null) ? new Integer(-1) : (Integer)dynaForm.get("addressId");
        primaryAddress.setAddressID(addressId.intValue());
        this.setPrimaryAddress(primaryAddress);
      }
      if (CVUtility.updateFieldPermitted(individualFieldRights, "contactmethod")) {
        MethodOfContactVO workingVO = null;
        HashMap currentMocVOs = new HashMap();
View Full Code Here

        individualForm.set("mocId" + count, String.valueOf(moc.getMocID()));
        count++;
      }
    } // end of while

    AddressVO address = this.getPrimaryAddress();
    if (address != null) {
      if (address.getAddressID() != 0) {
        individualForm.set("addressId", new Integer(address.getAddressID()));
      }
      if (address.getStreet1() != null) {
        individualForm.set("street1", address.getStreet1());
      }
      if (address.getStreet2() != null) {
        individualForm.set("street2", address.getStreet2());
      }
      if (address.getCity() != null) {
        individualForm.set("city", address.getCity());
      }
      if (address.getStateName() != null) {
        individualForm.set("state", address.getStateName());
      }
      if (address.getZip() != null) {
        individualForm.set("zip", address.getZip());
      }
      if (address.getCountryName() != null) {
        individualForm.set("country", address.getCountryName());
      }
      if (address.getWebsite() != null) {
        individualForm.set("website", address.getWebsite());
      }
    }
  } // end of populateFormBean()
View Full Code Here

              accHelper.setDataSource(this.dataSource);

              ContactHelperLocalHome home2 = (ContactHelperLocalHome) ic.lookup("local/ContactHelper");
              ContactHelperLocal contactHelperLocal = home2.create();
              contactHelperLocal.setDataSource(this.dataSource);
              AddressVO addVO = contactHelperLocal.getAddress(shipToId);
              // FIXME I assume the addVO is gotten here so the taxJurisdictionId can be
              // found, unfortunately that doesn't happen.
              if (taxJurisdictionId != 0) {
                taxRate = accHelper.getTax(taxClassId, taxJurisdictionId);
              }// if (taxJurisdictionId !=0)
View Full Code Here

TOP

Related Classes of com.centraview.contact.helper.AddressVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.