Exemple #1
0
  private String getPhoneNumer() {
    String phoneNumber = "";
    String[] values = {
      selectedBean.getPhone_mobile(),
      selectedBean.getPhone_work(),
      selectedBean.getPhone_home(),
      selectedBean.getPhone_other(),
      selectedBean.getPhone_fax(),
      selectedBean.getAssistant_phone()
    };
    for (String betterPhone : values) {
      if (betterPhone != null && !betterPhone.equals("") && !betterPhone.equalsIgnoreCase("null")) {
        if (betterPhone.length() == 7) {
          betterPhone =
              ListsConversor.convert(
                      ConversorsType.DPTO_PHONE, selectedBean.getDepartamento_c(), DataToGet.VALUE)
                  + betterPhone;
        }
        phoneNumber = betterPhone;
        break;
      }
    }

    return phoneNumber;
  }
Exemple #2
0
  public void showValues(ContactoDetalle contactoDetalle) {
    TextView valorContacto = (TextView) findViewById(R.id.valor_contacto);
    valorContacto.setText(contactoDetalle.getFirst_name());
    TextView valorIdentificacion = (TextView) findViewById(R.id.valor_identificacion);
    valorIdentificacion.setText(contactoDetalle.getIdentificacion_c());
    TextView valorCumpleanos = (TextView) findViewById(R.id.valor_cumpleanos);
    valorCumpleanos.setText(contactoDetalle.getBirthdate());
    TextView valorGenero = (TextView) findViewById(R.id.valor_genero);
    valorGenero.setText(
        ListGenderConverter.getInstance().convert(contactoDetalle.getGenero_c(), DataToGet.VALUE));
    TextView valorCargo = (TextView) findViewById(R.id.valor_cargo);
    valorCargo.setText(contactoDetalle.getTitle());
    TextView valorCertificaciones = (TextView) findViewById(R.id.valor_certificaciones);
    valorCertificaciones.setText(contactoDetalle.getCertificaciones_c());
    TextView valorProfesion = (TextView) findViewById(R.id.valor_profesion);
    valorProfesion.setText(contactoDetalle.getProfesion_c());
    TextView valorTipo = (TextView) findViewById(R.id.valor_tipo);
    valorTipo.setText(contactoDetalle.getTipocontacto_c());
    TextView valorTel1 = (TextView) findViewById(R.id.valor_tel1);
    valorTel1.setText(contactoDetalle.getPhone_work());
    TextView valorExt1 = (TextView) findViewById(R.id.valor_ext1);
    valorExt1.setText(contactoDetalle.getExtension1_c());
    TextView valorTel2 = (TextView) findViewById(R.id.valor_tel2);
    valorTel2.setText(contactoDetalle.getPhone_other());
    TextView valorExt2 = (TextView) findViewById(R.id.valor_ext2);
    valorExt2.setText(contactoDetalle.getExtension2_c());
    TextView valorCelular = (TextView) findViewById(R.id.valor_celular);
    valorCelular.setText(contactoDetalle.getPhone_mobile());
    TextView valorFax = (TextView) findViewById(R.id.valor_fax);
    valorFax.setText(contactoDetalle.getPhone_fax());
    TextView valorEmail = (TextView) findViewById(R.id.valor_email);
    valorEmail.setText(contactoDetalle.getEmail_address());
    TextView valorCuenta = (TextView) findViewById(R.id.valor_cuenta);
    valorCuenta.setText(contactoDetalle.getNameAccount());

    TextView valorDepartamento = (TextView) findViewById(R.id.valor_departamento);
    valorDepartamento.setText(
        ListsConversor.convert(
            ConversorsType.DPTO, contactoDetalle.getDepartamento_c(), DataToGet.VALUE));

    TextView valorMunicipio = (TextView) findViewById(R.id.valor_municipio);
    valorMunicipio.setText(contactoDetalle.getMunicipio_c());
    TextView valorDireccion = (TextView) findViewById(R.id.valor_direccion);
    valorDireccion.setText(contactoDetalle.getDireccion_c());
    TextView valorSegmento = (TextView) findViewById(R.id.valor_segmento);
    valorSegmento.setText(contactoDetalle.getSegmento_c());
    TextView valorGrupo = (TextView) findViewById(R.id.valor_grupo);
    valorGrupo.setText(contactoDetalle.getGrupo_objetivo_c());
    TextView valorUen = (TextView) findViewById(R.id.valor_uen);
    valorUen.setText(contactoDetalle.getUen_c());

    TextView valorZona = (TextView) findViewById(R.id.valor_zona);
    valorZona.setText(
        ListsConversor.convert(ConversorsType.ZONE, contactoDetalle.getZona_c(), DataToGet.VALUE));

    TextView valorCanal = (TextView) findViewById(R.id.valor_canal);
    valorCanal.setText(
        ListsConversor.convert(
            ConversorsType.CHANNEL, contactoDetalle.getCanal_c(), DataToGet.VALUE));

    TextView valorSector = (TextView) findViewById(R.id.valor_sector);
    valorSector.setText(contactoDetalle.getSector_c());
    TextView valorEstado = (TextView) findViewById(R.id.valor_estado);
    valorEstado.setText(contactoDetalle.getEstado_cliente_c());
    TextView valorRegalo1 = (TextView) findViewById(R.id.valor_regalo1);
    valorRegalo1.setText(contactoDetalle.getRegalo1_c());
    TextView valorFechaRegalo1 = (TextView) findViewById(R.id.valor_fecha_regalo1);
    valorFechaRegalo1.setText(contactoDetalle.getFecregalo1_c());
    TextView valorMotivoRegalo1 = (TextView) findViewById(R.id.valor_motivo_regalo1);
    valorMotivoRegalo1.setText(contactoDetalle.getMregalo1_c());
    TextView valorRegalo2 = (TextView) findViewById(R.id.valor_regalo2);
    valorRegalo2.setText(contactoDetalle.getRegalo2_c());
    TextView valorFechaRegalo2 = (TextView) findViewById(R.id.valor_fecha_regalo2);
    valorFechaRegalo2.setText(contactoDetalle.getFecregalo2_c());
    TextView valorMotivoRegalo2 = (TextView) findViewById(R.id.valor_motivo_regalo2);
    valorMotivoRegalo2.setText(contactoDetalle.getMregalo2_c());
    TextView valorRegalo3 = (TextView) findViewById(R.id.valor_regalo3);
    valorRegalo3.setText(contactoDetalle.getRegalo3_c());
    TextView valorFechaRegalo3 = (TextView) findViewById(R.id.valor_fecha_regalo3);
    valorFechaRegalo3.setText(contactoDetalle.getFecregalo3_c());
    TextView valorMotivoRegalo3 = (TextView) findViewById(R.id.valor_motivo_regalo3);
    valorMotivoRegalo3.setText(contactoDetalle.getMregalo3_c());
    TextView valorRegalo4 = (TextView) findViewById(R.id.valor_regalo4);
    valorRegalo4.setText(contactoDetalle.getRegalo4_c());
    TextView valorFechaRegalo4 = (TextView) findViewById(R.id.valor_fecha_regalo4);
    valorFechaRegalo4.setText(contactoDetalle.getFecregalo4_c());
    TextView valorMotivoRegalo4 = (TextView) findViewById(R.id.valor_motivo_regalo4);
    valorMotivoRegalo4.setText(contactoDetalle.getMregalo4_c());
    TextView valorRegalo5 = (TextView) findViewById(R.id.valor_regalo5);
    valorRegalo5.setText(contactoDetalle.getRegalo5_c());
    TextView valorFechaRegalo5 = (TextView) findViewById(R.id.valor_fecha_regalo5);
    valorFechaRegalo5.setText(contactoDetalle.getFecregalo5_c());
    TextView valorMotivoRegalo5 = (TextView) findViewById(R.id.valor_motivo_regalo5);
    valorMotivoRegalo5.setText(contactoDetalle.getMregalo5_c());
    valorRegalo1.setText(contactoDetalle.getRegalo1_c());
    TextView valorInforma = (TextView) findViewById(R.id.valor_informa);
    valorInforma.setText(contactoDetalle.getReports_to_name());
    TextView valorToma = (TextView) findViewById(R.id.valor_toma);
    valorToma.setText(contactoDetalle.getLead_source());
    TextView valorNo = (TextView) findViewById(R.id.valor_no);
    valorNo.setText(contactoDetalle.getDo_not_call());
    TextView valorCampana = (TextView) findViewById(R.id.valor_campana);
    valorCampana.setText(contactoDetalle.getNameCampaign());
    TextView valorDiligenciado = (TextView) findViewById(R.id.valor_diligenciado);
    valorDiligenciado.setText(contactoDetalle.getCreated_by_name());
    TextView valorModificado = (TextView) findViewById(R.id.valor_modificado);
    valorModificado.setText(contactoDetalle.getModified_user_name());
    TextView valorUsuario = (TextView) findViewById(R.id.valor_responsable);
    valorUsuario.setText(contactoDetalle.getAssigned_user_name());
  }