Пример #1
0
  public ContactWS(ContactDTOEx other) {
    setId(other.getId());
    setOrganizationName(other.getOrganizationName());
    setAddress1(other.getAddress1());
    setAddress2(other.getAddress2());
    setCity(other.getCity());
    setStateProvince(other.getStateProvince());
    setPostalCode(other.getPostalCode());
    setCountryCode(other.getCountryCode());
    setLastName(other.getLastName());
    setFirstName(other.getFirstName());
    setInitial(other.getInitial());
    setTitle(other.getTitle());
    setPhoneCountryCode(other.getPhoneCountryCode());
    setPhoneAreaCode(other.getPhoneAreaCode());
    setPhoneNumber(other.getPhoneNumber());
    setFaxCountryCode(other.getFaxCountryCode());
    setFaxAreaCode(other.getFaxAreaCode());
    setFaxNumber(other.getFaxNumber());
    setEmail(other.getEmail());
    setCreateDate(other.getCreateDate());
    setDeleted(other.getDeleted());
    setInclude(other.getInclude() != null && other.getInclude().equals(1));
    setType(other.getType());
    int index = 0;

    // set Contact Type Name
    if (null != other.getContactMap() && null != other.getContactMap().getContactType()) {
      setContactTypeId(other.getContactMap().getContactType().getId());
    }
  }
Пример #2
0
 public ContactWS(ContactWS other) {
   setId(other.getId());
   setOrganizationName(other.getOrganizationName());
   setAddress1(other.getAddress1());
   setAddress2(other.getAddress2());
   setCity(other.getCity());
   setStateProvince(other.getStateProvince());
   setPostalCode(other.getPostalCode());
   setCountryCode(other.getCountryCode());
   setLastName(other.getLastName());
   setFirstName(other.getFirstName());
   setInitial(other.getInitial());
   setTitle(other.getTitle());
   setPhoneCountryCode(other.getPhoneCountryCode());
   setPhoneAreaCode(other.getPhoneAreaCode());
   setPhoneNumber(other.getPhoneNumber());
   setFaxCountryCode(other.getFaxCountryCode());
   setFaxAreaCode(other.getFaxAreaCode());
   setFaxNumber(other.getFaxNumber());
   setEmail(other.getEmail());
   setCreateDate(other.getCreateDate());
   setDeleted(other.getDeleted());
   setInclude(other.getInclude());
 }