737 lines
16 KiB
Java
737 lines
16 KiB
Java
package it.acxent.anag;
|
|
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import java.sql.Date;
|
|
|
|
public class CliforCR extends CRAdapter {
|
|
private long id_clifor;
|
|
|
|
private long id_tipoPagamento;
|
|
|
|
private String codiceAlt;
|
|
|
|
private long flgValido;
|
|
|
|
private String flgTipo;
|
|
|
|
private long flgAzienda = -1L;
|
|
|
|
private String cognome;
|
|
|
|
private String contatto;
|
|
|
|
private String nome;
|
|
|
|
private String testoMessaggio;
|
|
|
|
private String numeroCivico;
|
|
|
|
private long id_comune;
|
|
|
|
private long id_nazione;
|
|
|
|
private Date dataNascita;
|
|
|
|
private String codFisc;
|
|
|
|
private String pIva;
|
|
|
|
private String eMail;
|
|
|
|
private String fax;
|
|
|
|
private String telefono;
|
|
|
|
private String nota;
|
|
|
|
private String imgTmst;
|
|
|
|
private long flgPrivComunicazione;
|
|
|
|
private long flgPrivSensibili;
|
|
|
|
private long flgPrivTrattamento;
|
|
|
|
private long flgSesso;
|
|
|
|
private String indirizzoSped;
|
|
|
|
private String numeroCivicoSped;
|
|
|
|
private String presso;
|
|
|
|
private long id_nazioneSped;
|
|
|
|
private long id_comuneSped;
|
|
|
|
private Date dataRegistrazioneDI;
|
|
|
|
private String dichiarazioneIntento;
|
|
|
|
private String flgCF;
|
|
|
|
private long flgArt8;
|
|
|
|
private long flgTipologiaClifor;
|
|
|
|
private TipoPagamento tipoPagamento;
|
|
|
|
private Comune comune;
|
|
|
|
private Nazione nazione;
|
|
|
|
private Nazione nazioneSped;
|
|
|
|
private Comune comuneSped;
|
|
|
|
private long id_cliforEscludi;
|
|
|
|
private String indirizzo;
|
|
|
|
private long flgMlCreata = 0L;
|
|
|
|
private String mailingListEmail;
|
|
|
|
private long flgMl = -1L;
|
|
|
|
private String searchTxt2;
|
|
|
|
private String numeroDocumento;
|
|
|
|
private Date DataScadenzaDocumento;
|
|
|
|
private double percProvvigione;
|
|
|
|
private long flgNascondiWeb = -1L;
|
|
|
|
private String fileName;
|
|
|
|
private String descrizioneComune;
|
|
|
|
private String provinciaComune;
|
|
|
|
private Clifor agente;
|
|
|
|
private long id_agente;
|
|
|
|
private long id_respCommerciale;
|
|
|
|
private Clifor respCommerciale;
|
|
|
|
private long id_tipoClifor;
|
|
|
|
private long flgPA = -1L;
|
|
|
|
private long flgSplitPayment = -1L;
|
|
|
|
private long flgTaxFree = -1L;
|
|
|
|
private long id_usersResponsabile;
|
|
|
|
private Users usersResponsabile;
|
|
|
|
private long flgStatoConfermaDati = -1L;
|
|
|
|
private long id_usersAttivita;
|
|
|
|
private Users usersAttivita;
|
|
|
|
private long flgEscludi = -1L;
|
|
|
|
public CliforCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public CliforCR() {}
|
|
|
|
public void setId_clifor(long newId_cliFor) {
|
|
this.id_clifor = newId_cliFor;
|
|
}
|
|
|
|
public void setId_tipoPagamento(long newId_tipoPagamento) {
|
|
this.id_tipoPagamento = newId_tipoPagamento;
|
|
setTipoPagamento(null);
|
|
}
|
|
|
|
public void setCodiceAlt(String newCodiceAlt) {
|
|
this.codiceAlt = newCodiceAlt;
|
|
}
|
|
|
|
public void setFlgValido(long newFlgValido) {
|
|
this.flgValido = newFlgValido;
|
|
}
|
|
|
|
public void setFlgTipo(String newFlgTipo) {
|
|
this.flgTipo = newFlgTipo;
|
|
}
|
|
|
|
public void setFlgAzienda(long newFlgAzienda) {
|
|
this.flgAzienda = newFlgAzienda;
|
|
}
|
|
|
|
public void setCognome(String newCognome) {
|
|
this.cognome = newCognome;
|
|
}
|
|
|
|
public void setContatto(String newContatto) {
|
|
this.contatto = newContatto;
|
|
}
|
|
|
|
public void setNome(String newNome) {
|
|
this.nome = newNome;
|
|
}
|
|
|
|
public void setIndirizzo(String newIndirizzo) {
|
|
this.indirizzo = newIndirizzo;
|
|
}
|
|
|
|
public void setNumeroCivico(String newNumeroCivico) {
|
|
this.numeroCivico = newNumeroCivico;
|
|
}
|
|
|
|
public void setId_comune(long newId_comune) {
|
|
this.id_comune = newId_comune;
|
|
setComune(null);
|
|
}
|
|
|
|
public void setId_nazione(long newId_nazione) {
|
|
this.id_nazione = newId_nazione;
|
|
setNazione(null);
|
|
}
|
|
|
|
public void setDataNascita(Date newDataNascita) {
|
|
this.dataNascita = newDataNascita;
|
|
}
|
|
|
|
public void setCodFisc(String newCodFisc) {
|
|
this.codFisc = newCodFisc;
|
|
}
|
|
|
|
public void setPIva(String newPIva) {
|
|
this.pIva = newPIva;
|
|
}
|
|
|
|
public void setEMail(String newEMail) {
|
|
this.eMail = newEMail;
|
|
}
|
|
|
|
public void setFax(String newFax) {
|
|
this.fax = newFax;
|
|
}
|
|
|
|
public void setTelefono(String newTelefono) {
|
|
this.telefono = newTelefono;
|
|
}
|
|
|
|
public void setNota(String newNota) {
|
|
this.nota = newNota;
|
|
}
|
|
|
|
public void setImgTmst(String newImgTmst) {
|
|
this.imgTmst = newImgTmst;
|
|
}
|
|
|
|
public void setFlgPrivComunicazione(long newFlgPrivComunicazione) {
|
|
this.flgPrivComunicazione = newFlgPrivComunicazione;
|
|
}
|
|
|
|
public void setFlgPrivSensibili(long newFlgPrivSensibili) {
|
|
this.flgPrivSensibili = newFlgPrivSensibili;
|
|
}
|
|
|
|
public void setFlgPrivTrattamento(long newFlgPrivTrattamento) {
|
|
this.flgPrivTrattamento = newFlgPrivTrattamento;
|
|
}
|
|
|
|
public void setFlgSesso(long newFlgSesso) {
|
|
this.flgSesso = newFlgSesso;
|
|
}
|
|
|
|
public void setIndirizzoSped(String newIndirizzoSped) {
|
|
this.indirizzoSped = newIndirizzoSped;
|
|
}
|
|
|
|
public void setNumeroCivicoSped(String newNumeroCivicoSped) {
|
|
this.numeroCivicoSped = newNumeroCivicoSped;
|
|
}
|
|
|
|
public void setPresso(String newPresso) {
|
|
this.presso = newPresso;
|
|
}
|
|
|
|
public void setId_nazioneSped(long newId_nazioneSped) {
|
|
this.id_nazioneSped = newId_nazioneSped;
|
|
setNazione(null);
|
|
}
|
|
|
|
public void setId_comuneSped(long newId_comuneSped) {
|
|
this.id_comuneSped = newId_comuneSped;
|
|
setComune(null);
|
|
}
|
|
|
|
public void setDataRegistrazioneDI(Date newDataRegistrazioneDI) {
|
|
this.dataRegistrazioneDI = newDataRegistrazioneDI;
|
|
}
|
|
|
|
public void setDichiarazioneIntento(String newDichiarazioneIntento) {
|
|
this.dichiarazioneIntento = newDichiarazioneIntento;
|
|
}
|
|
|
|
public void setFlgArt8(long newFlgArt8) {
|
|
this.flgArt8 = newFlgArt8;
|
|
}
|
|
|
|
public long getId_clifor() {
|
|
return this.id_clifor;
|
|
}
|
|
|
|
public long getId_tipoPagamento() {
|
|
return this.id_tipoPagamento;
|
|
}
|
|
|
|
public String getCodiceAlt() {
|
|
return (this.codiceAlt == null) ? "" : this.codiceAlt.trim();
|
|
}
|
|
|
|
public long getFlgValido() {
|
|
return this.flgValido;
|
|
}
|
|
|
|
public String getFlgTipo() {
|
|
return (this.flgTipo == null) ? "" : this.flgTipo.trim();
|
|
}
|
|
|
|
public String getTipo() {
|
|
return Clifor.getTipo(getFlgTipo());
|
|
}
|
|
|
|
public long getFlgAzienda() {
|
|
return this.flgAzienda;
|
|
}
|
|
|
|
public String getCognome() {
|
|
return (this.cognome == null) ? "" : this.cognome.trim();
|
|
}
|
|
|
|
public String getContatto() {
|
|
return (this.contatto == null) ? "" : this.contatto.trim();
|
|
}
|
|
|
|
public String getNome() {
|
|
return (this.nome == null) ? "" : this.nome.trim();
|
|
}
|
|
|
|
public String getIndirizzo() {
|
|
return (this.indirizzo == null) ? "" : this.indirizzo.trim();
|
|
}
|
|
|
|
public String getNumeroCivico() {
|
|
return (this.numeroCivico == null) ? "" : this.numeroCivico.trim();
|
|
}
|
|
|
|
public long getId_comune() {
|
|
return this.id_comune;
|
|
}
|
|
|
|
public long getId_nazione() {
|
|
return this.id_nazione;
|
|
}
|
|
|
|
public Date getDataNascita() {
|
|
return this.dataNascita;
|
|
}
|
|
|
|
public String getCodFisc() {
|
|
return (this.codFisc == null) ? "" : this.codFisc.trim();
|
|
}
|
|
|
|
public String getPIva() {
|
|
return (this.pIva == null) ? "" : this.pIva.trim();
|
|
}
|
|
|
|
public String getEMail() {
|
|
return (this.eMail == null) ? "" : this.eMail.trim();
|
|
}
|
|
|
|
public String getFax() {
|
|
return (this.fax == null) ? "" : this.fax.trim();
|
|
}
|
|
|
|
public String getTelefono() {
|
|
return (this.telefono == null) ? "" : this.telefono.trim();
|
|
}
|
|
|
|
public String getNota() {
|
|
return (this.nota == null) ? "" : this.nota.trim();
|
|
}
|
|
|
|
public String getImgTmst() {
|
|
return (this.imgTmst == null) ? "" : this.imgTmst.trim();
|
|
}
|
|
|
|
public long getFlgPrivComunicazione() {
|
|
return this.flgPrivComunicazione;
|
|
}
|
|
|
|
public long getFlgPrivSensibili() {
|
|
return this.flgPrivSensibili;
|
|
}
|
|
|
|
public long getFlgPrivTrattamento() {
|
|
return this.flgPrivTrattamento;
|
|
}
|
|
|
|
public long getFlgSesso() {
|
|
return this.flgSesso;
|
|
}
|
|
|
|
public String getIndirizzoSped() {
|
|
return (this.indirizzoSped == null) ? "" : this.indirizzoSped.trim();
|
|
}
|
|
|
|
public String getNumeroCivicoSped() {
|
|
return (this.numeroCivicoSped == null) ? "" : this.numeroCivicoSped.trim();
|
|
}
|
|
|
|
public String getPresso() {
|
|
return (this.presso == null) ? "" : this.presso.trim();
|
|
}
|
|
|
|
public long getId_nazioneSped() {
|
|
return this.id_nazioneSped;
|
|
}
|
|
|
|
public long getId_comuneSped() {
|
|
return this.id_comuneSped;
|
|
}
|
|
|
|
public Date getDataRegistrazioneDI() {
|
|
return this.dataRegistrazioneDI;
|
|
}
|
|
|
|
public String getDichiarazioneIntento() {
|
|
return (this.dichiarazioneIntento == null) ? "" : this.dichiarazioneIntento.trim();
|
|
}
|
|
|
|
public long getFlgArt8() {
|
|
return this.flgArt8;
|
|
}
|
|
|
|
public void setTipoPagamento(TipoPagamento newTipoPagamento) {
|
|
this.tipoPagamento = newTipoPagamento;
|
|
}
|
|
|
|
public TipoPagamento getTipoPagamento() {
|
|
this.tipoPagamento = (TipoPagamento)getSecondaryObject(this.tipoPagamento, TipoPagamento.class, getId_tipoPagamento());
|
|
return this.tipoPagamento;
|
|
}
|
|
|
|
public void setComune(Comune newComune) {
|
|
this.comune = newComune;
|
|
}
|
|
|
|
public Comune getComune() {
|
|
this.comune = (Comune)getSecondaryObject(this.comune, Comune.class, getId_comune());
|
|
return this.comune;
|
|
}
|
|
|
|
public void setNazione(Nazione newNazione) {
|
|
this.nazione = newNazione;
|
|
}
|
|
|
|
public Nazione getNazione() {
|
|
this.nazione = (Nazione)getSecondaryObject(this.nazione, Nazione.class, getId_nazione());
|
|
return this.nazione;
|
|
}
|
|
|
|
public void setNazioneSped(Nazione newNazione) {
|
|
this.nazioneSped = newNazione;
|
|
}
|
|
|
|
public Nazione getNazioneSped() {
|
|
this.nazioneSped = (Nazione)getSecondaryObject(this.nazioneSped, Nazione.class, getId_nazioneSped());
|
|
return this.nazioneSped;
|
|
}
|
|
|
|
public void setComuneSped(Comune newComune) {
|
|
this.comuneSped = newComune;
|
|
}
|
|
|
|
public Comune getComuneSped() {
|
|
this.comuneSped = (Comune)getSecondaryObject(this.comuneSped, Comune.class, getId_comuneSped());
|
|
return this.comuneSped;
|
|
}
|
|
|
|
public String getFlgCF() {
|
|
return (this.flgCF == null) ? AB_EMPTY_STRING : this.flgCF;
|
|
}
|
|
|
|
public String getCF() {
|
|
if (getFlgCF().equals("C"))
|
|
return "Cliente";
|
|
if (getFlgCF().equals("F"))
|
|
return "Fornitore";
|
|
return AB_EMPTY_STRING;
|
|
}
|
|
|
|
public void setFlgCF(String flgCF) {
|
|
this.flgCF = flgCF;
|
|
setFlgTipo(flgCF);
|
|
}
|
|
|
|
public long getId_cliforEscludi() {
|
|
return this.id_cliforEscludi;
|
|
}
|
|
|
|
public void setId_cliforEscludi(long id_cliforEscludi) {
|
|
this.id_cliforEscludi = id_cliforEscludi;
|
|
}
|
|
|
|
public String getTestoMessaggio() {
|
|
return (this.testoMessaggio == null) ? AB_EMPTY_STRING : this.testoMessaggio.trim();
|
|
}
|
|
|
|
public void setTestoMessaggio(String testoMessaggio) {
|
|
this.testoMessaggio = testoMessaggio;
|
|
}
|
|
|
|
public long getFlgMlCreata() {
|
|
return this.flgMlCreata;
|
|
}
|
|
|
|
public void setFlgMlCreata(long flgMlCreata) {
|
|
this.flgMlCreata = flgMlCreata;
|
|
}
|
|
|
|
public String getMailingListEmail() {
|
|
return this.mailingListEmail;
|
|
}
|
|
|
|
public void setMailingListEmail(String mailingListEmail) {
|
|
this.mailingListEmail = mailingListEmail;
|
|
}
|
|
|
|
public long getFlgMl() {
|
|
return this.flgMl;
|
|
}
|
|
|
|
public void setFlgMl(long flgMl) {
|
|
this.flgMl = flgMl;
|
|
}
|
|
|
|
public String getSearchTxt2() {
|
|
return (this.searchTxt2 == null) ? AB_EMPTY_STRING : this.searchTxt2;
|
|
}
|
|
|
|
public void setSearchTxt2(String searchText2) {
|
|
this.searchTxt2 = searchText2;
|
|
}
|
|
|
|
public String getNumeroDocumento() {
|
|
return this.numeroDocumento;
|
|
}
|
|
|
|
public void setNumeroDocumento(String numeroDocumento) {
|
|
this.numeroDocumento = numeroDocumento;
|
|
}
|
|
|
|
public Date getDataScadenzaDocumento() {
|
|
return this.DataScadenzaDocumento;
|
|
}
|
|
|
|
public void setDataScadenzaDocumento(Date dataScadenzaDocumento) {
|
|
this.DataScadenzaDocumento = dataScadenzaDocumento;
|
|
}
|
|
|
|
public double getPercProvvigione() {
|
|
return this.percProvvigione;
|
|
}
|
|
|
|
public void setPercProvvigione(double percProvvigione) {
|
|
this.percProvvigione = percProvvigione;
|
|
}
|
|
|
|
public long getFlgNascondiWeb() {
|
|
return this.flgNascondiWeb;
|
|
}
|
|
|
|
public void setFlgNascondiWeb(long flgVisibileWeb) {
|
|
this.flgNascondiWeb = flgVisibileWeb;
|
|
}
|
|
|
|
public long getFlgTipologiaClifor() {
|
|
return this.flgTipologiaClifor;
|
|
}
|
|
|
|
public void setFlgTipologiaClifor(long flgTipologiaClifor) {
|
|
this.flgTipologiaClifor = flgTipologiaClifor;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return (this.fileName == null) ? AB_EMPTY_STRING : this.fileName.trim();
|
|
}
|
|
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
public String getpIva() {
|
|
return this.pIva;
|
|
}
|
|
|
|
public void setpIva(String pIva) {
|
|
this.pIva = pIva;
|
|
}
|
|
|
|
public String geteMail() {
|
|
return this.eMail;
|
|
}
|
|
|
|
public void seteMail(String eMail) {
|
|
this.eMail = eMail;
|
|
}
|
|
|
|
public String getDescrizioneComune() {
|
|
return (this.descrizioneComune == null) ? AB_EMPTY_STRING : this.descrizioneComune;
|
|
}
|
|
|
|
public void setDescrizioneComune(String descrizioneComune) {
|
|
this.descrizioneComune = descrizioneComune;
|
|
}
|
|
|
|
public String getProvinciaComune() {
|
|
return (this.provinciaComune == null) ? AB_EMPTY_STRING : this.provinciaComune;
|
|
}
|
|
|
|
public void setProvinciaComune(String provinciaComune) {
|
|
this.provinciaComune = provinciaComune;
|
|
}
|
|
|
|
public Clifor getAgente() {
|
|
this.agente = (Clifor)getSecondaryObject(this.agente, Clifor.class, getId_agente());
|
|
return this.agente;
|
|
}
|
|
|
|
public long getId_agente() {
|
|
return this.id_agente;
|
|
}
|
|
|
|
public long getId_respCommerciale() {
|
|
return this.id_respCommerciale;
|
|
}
|
|
|
|
public Clifor getRespCommerciale() {
|
|
this.respCommerciale = (Clifor)getSecondaryObject(this.respCommerciale, Clifor.class, getId_respCommerciale());
|
|
return this.respCommerciale;
|
|
}
|
|
|
|
public void setAgente(Clifor agente) {
|
|
this.agente = agente;
|
|
}
|
|
|
|
public void setId_agente(long id_agente) {
|
|
this.id_agente = id_agente;
|
|
}
|
|
|
|
public void setId_respCommerciale(long id_respCommerciale) {
|
|
this.id_respCommerciale = id_respCommerciale;
|
|
}
|
|
|
|
public void setRespCommerciale(Clifor respCommerciale) {
|
|
this.respCommerciale = respCommerciale;
|
|
}
|
|
|
|
public long getId_tipoClifor() {
|
|
return this.id_tipoClifor;
|
|
}
|
|
|
|
public void setId_tipoClifor(long id_tipoClifor) {
|
|
this.id_tipoClifor = id_tipoClifor;
|
|
}
|
|
|
|
public long getFlgPA() {
|
|
return this.flgPA;
|
|
}
|
|
|
|
public void setFlgPA(long flgPA) {
|
|
this.flgPA = flgPA;
|
|
}
|
|
|
|
public long getFlgSplitPayment() {
|
|
return this.flgSplitPayment;
|
|
}
|
|
|
|
public void setFlgSplitPayment(long flgSplitPayment) {
|
|
this.flgSplitPayment = flgSplitPayment;
|
|
}
|
|
|
|
public long getFlgTaxFree() {
|
|
return this.flgTaxFree;
|
|
}
|
|
|
|
public void setFlgTaxFree(long flgTaxFree) {
|
|
this.flgTaxFree = flgTaxFree;
|
|
}
|
|
|
|
public long getId_usersResponsabile() {
|
|
return this.id_usersResponsabile;
|
|
}
|
|
|
|
public Users getUsersResponsabile() {
|
|
this.usersResponsabile = (Users)getSecondaryObject((DBAdapter)this.usersResponsabile, Users.class, getId_usersResponsabile());
|
|
return this.usersResponsabile;
|
|
}
|
|
|
|
public void setId_usersResponsabile(long id_usersResponsabile) {
|
|
this.id_usersResponsabile = id_usersResponsabile;
|
|
setUsersResponsabile(null);
|
|
}
|
|
|
|
public void setUsersResponsabile(Users usersResponsabile) {
|
|
this.usersResponsabile = usersResponsabile;
|
|
}
|
|
|
|
public long getFlgStatoConfermaDati() {
|
|
return this.flgStatoConfermaDati;
|
|
}
|
|
|
|
public void setFlgStatoConfermaDati(long flgStatoConfermaDati) {
|
|
this.flgStatoConfermaDati = flgStatoConfermaDati;
|
|
}
|
|
|
|
public static final String getStatoConfermaDati(long l_flgStatoConfermaDati) {
|
|
return Clifor.getStatoConfermaDati(l_flgStatoConfermaDati);
|
|
}
|
|
|
|
public final String getStatoConfermaDati() {
|
|
return getStatoConfermaDati(getFlgStatoConfermaDati());
|
|
}
|
|
|
|
public long getId_usersAttivita() {
|
|
return this.id_usersAttivita;
|
|
}
|
|
|
|
public Users getUsersAttivita() {
|
|
this.usersAttivita = (Users)getSecondaryObject((DBAdapter)this.usersAttivita, Users.class, getId_usersAttivita());
|
|
return this.usersAttivita;
|
|
}
|
|
|
|
public void setId_usersAttivita(long id_usersAttivita) {
|
|
this.id_usersAttivita = id_usersAttivita;
|
|
setUsersAttivita(null);
|
|
}
|
|
|
|
public void setUsersAttivita(Users usersAttivita) {
|
|
this.usersAttivita = usersAttivita;
|
|
}
|
|
|
|
public long getFlgEscludi() {
|
|
return this.flgEscludi;
|
|
}
|
|
|
|
public void setFlgEscludi(long flgEscludi) {
|
|
this.flgEscludi = flgEscludi;
|
|
}
|
|
}
|