2428 lines
61 KiB
Java
2428 lines
61 KiB
Java
package it.acxent.art;
|
|
|
|
import it.acxent.anag.Clifor;
|
|
import it.acxent.anag.Iva;
|
|
import it.acxent.anag.MagFisico;
|
|
import it.acxent.cc.Attivita;
|
|
import it.acxent.common.SimboliLavaggio;
|
|
import it.acxent.db.ApplParmFull;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import it.acxent.util.SimpleDateFormat;
|
|
import it.acxent.util.StringTokenizer;
|
|
import java.io.Serializable;
|
|
import java.net.URLEncoder;
|
|
import java.sql.Date;
|
|
import java.util.Locale;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
public class ArticoloCR extends CRAdapter implements Cloneable, Serializable {
|
|
private static final long serialVersionUID = 1750771112188353534L;
|
|
|
|
private static final String PAGINA = "pagina";
|
|
|
|
public static final long ORDER_NOME = 0L;
|
|
|
|
public static final long ORDER_MARCA = 1L;
|
|
|
|
public static final long ORDER_TIPO_NOME_ASC = 2L;
|
|
|
|
public static final long ORDER_TIPO_NOME_DESC = 3L;
|
|
|
|
public static final long ORDER_TIPO_PREZZO_ASC = 4L;
|
|
|
|
public static final long ORDER_TIPO_PREZZO_DESC = 5L;
|
|
|
|
public static final long ORDER_CREAZIONE_ASC = 6L;
|
|
|
|
public static final long ORDER_DISPO_TIPO_NOME = 7L;
|
|
|
|
public static final long ORDER_IMPRESSION_TIME_DESC = 8L;
|
|
|
|
public static final long ORDER_IMPRESSION_NUM_DESC = 9L;
|
|
|
|
public static final long ORDER_INDEX_NOW = 10L;
|
|
|
|
public static final long ORDER_ID = 11L;
|
|
|
|
public static final long ORDER_RAND = 99L;
|
|
|
|
public static final long TIPO_RICERCA_USA_MAG = 1L;
|
|
|
|
public static final long TIPO_RICERCA_VAR = 2L;
|
|
|
|
public static final long TIPO_RICERCA_WEB_ART = 10L;
|
|
|
|
public static final long TIPO_RICERCA_WEB_ART_VAR = 11L;
|
|
|
|
public static final long READY_FOR_WEB_ALL = -1L;
|
|
|
|
public static final long READY_FOR_WEB_SI = 1L;
|
|
|
|
public static final long READY_FOR_WEB_SI_SEO_KO = 2L;
|
|
|
|
public static final long READY_FOR_WEB_NO = 0L;
|
|
|
|
public static final long FLG_OFFERTA_NON_VALIDA = 0L;
|
|
|
|
public static final long FLG_OFFERTA_VALIDA = 1L;
|
|
|
|
public static final long FLG_OFFERTA_SENZA_NESSUNA = 3L;
|
|
|
|
public static final long FLG_OFFERTA_SENZA_INTERNA = 4L;
|
|
|
|
public static final long FLG_OFFERTA_INTERNA_VALIDA = 11L;
|
|
|
|
public static final long FLG_OFFERTA_FORNITORE_VALIDA = 12L;
|
|
|
|
public static final long FLG_OFFERTA_INTERNA_NON_VALIDA = 21L;
|
|
|
|
public static final long FLG_OFFERTA_FORNITORE_NON_VALIDA = 22L;
|
|
|
|
public static final long FLG_PREZZO_COMPETITIVO_AMZ_0 = 0L;
|
|
|
|
public static final long FLG_PREZZO_COMPETITIVO_SITO_1 = 1L;
|
|
|
|
public static final long FLG_PREZZO_COMPETITIVO_NESSUNO_2 = 2L;
|
|
|
|
public static final long FLG_PREZZO_COMPETITIVO_NON_RILEVATO_3 = 3L;
|
|
|
|
private long flgDisponibile;
|
|
|
|
private long flgOrdinaWww;
|
|
|
|
private long flgNascondi = -1L;
|
|
|
|
private String flgClienteFornitore;
|
|
|
|
private long risoluzioneImmaginiCatalogo;
|
|
|
|
private long flgNascondiNew;
|
|
|
|
private long flgPriceTypeAmz = -1L;
|
|
|
|
private long flgAmzWarn = -1L;
|
|
|
|
private long flgAmzFeaturedPriceData = -1L;
|
|
|
|
private long flgPrezzoCompetitivo = -1L;
|
|
|
|
private long flgAsinAmzNull = -1L;
|
|
|
|
private long flgUsaDisponibilita = 0L;
|
|
|
|
private String flgOrderType;
|
|
|
|
private long id_magFisico;
|
|
|
|
private long id_articolo;
|
|
|
|
private Articolo articolo;
|
|
|
|
private long id_marca;
|
|
|
|
private long id_iva;
|
|
|
|
private String fileName;
|
|
|
|
private String descrizioneTecnica;
|
|
|
|
private double prezzoPubblico;
|
|
|
|
private String searchTxtWeb;
|
|
|
|
private long flgStockOfferte;
|
|
|
|
private Date dataFineVld;
|
|
|
|
private Marca marca;
|
|
|
|
private Iva iva;
|
|
|
|
private long id_tipo;
|
|
|
|
private long id_tipoMenu;
|
|
|
|
private Tipo tipo;
|
|
|
|
private Tipo tipoSel;
|
|
|
|
private Tipo tipoMenu;
|
|
|
|
private long id_disponibilita;
|
|
|
|
private String nome;
|
|
|
|
private String currentCodice;
|
|
|
|
private String codice;
|
|
|
|
private long flgOrdinaArticolo = 0L;
|
|
|
|
private Date dataScadenzaOfferta;
|
|
|
|
private Colore colore;
|
|
|
|
private long flgQta;
|
|
|
|
private Clifor clifor;
|
|
|
|
private long numLabels;
|
|
|
|
private long blankLabels;
|
|
|
|
private long flgTipoReport = 0L;
|
|
|
|
private long id_colore;
|
|
|
|
private double percRicaricoEffettivo;
|
|
|
|
private long qtaA = 9999L;
|
|
|
|
private String compatibilita;
|
|
|
|
private long flgTipoRicerca = 0L;
|
|
|
|
private long id_clifor;
|
|
|
|
private String sitemapFilename;
|
|
|
|
private long flgRiordino = -1L;
|
|
|
|
private long id_users;
|
|
|
|
private long id_caratteristica;
|
|
|
|
private String carValS;
|
|
|
|
private long id_tipoSel;
|
|
|
|
private String carId_listaS;
|
|
|
|
private long carValLD;
|
|
|
|
private Date carValDate;
|
|
|
|
private long carId_lista1;
|
|
|
|
private long flgStato = -1L;
|
|
|
|
private long flgShowCostoAcquisto;
|
|
|
|
private long flgEscludiWeb = -1L;
|
|
|
|
private long id_tipoAccessorio;
|
|
|
|
private long id_tipoAcc;
|
|
|
|
private long id_vetrina = -1L;
|
|
|
|
private long id_lista;
|
|
|
|
private long id_lista1;
|
|
|
|
private long id_lista2;
|
|
|
|
private long id_lista3;
|
|
|
|
private long id_lista4;
|
|
|
|
private long id_caratteristicaValSN1;
|
|
|
|
private long id_caratteristicaValSN2;
|
|
|
|
private long id_caratteristicaValSN3;
|
|
|
|
private long valSN1;
|
|
|
|
private long valSN2;
|
|
|
|
private long valSN3;
|
|
|
|
private long giacenza;
|
|
|
|
private Date dataCreazioneDa;
|
|
|
|
private Date dataUpdateDa;
|
|
|
|
private long flgControlloCostoAggArt = -1L;
|
|
|
|
private long flgTipoSchedaArticoloWww = -1L;
|
|
|
|
private long lavaggio;
|
|
|
|
private long candeggio;
|
|
|
|
private long stiratura;
|
|
|
|
private long pulituraSecco;
|
|
|
|
private long asciugatura;
|
|
|
|
private double prezzo;
|
|
|
|
private long massaLineare;
|
|
|
|
private long altezzaMinima;
|
|
|
|
private SimboliLavaggio simboliLavaggio;
|
|
|
|
private String composizione;
|
|
|
|
private String codiceSerieV;
|
|
|
|
private String nomeV;
|
|
|
|
private String descrizioneArticolo;
|
|
|
|
private MagFisico magFisico;
|
|
|
|
public static final String getNoleggio(long l_flgNoleggio) {
|
|
return Articolo.getNoleggio(l_flgNoleggio);
|
|
}
|
|
|
|
public static final String getGoogle(long l_flgGoogle) {
|
|
return Articolo.getGoogle(l_flgGoogle);
|
|
}
|
|
|
|
public final String getGoogle() {
|
|
return Articolo.getGoogle(getFlgGoogle());
|
|
}
|
|
|
|
public static final void setCCCRFromtFiltriId(ArticoloCR CR) {
|
|
if (!CR.getFiltri_id().isEmpty()) {
|
|
String filtri = "m,pd,pa,c,d,";
|
|
StringTokenizer st = new StringTokenizer(CR.getFiltri_id(), ",");
|
|
String currentFiltro = "";
|
|
StringBuilder currentValues = new StringBuilder();
|
|
while (st.hasMoreTokens()) {
|
|
String token = st.nextToken();
|
|
if (filtri.contains(token + ",")) {
|
|
updateCCCRFiltri(CR, currentFiltro, currentValues.toString());
|
|
currentFiltro = token;
|
|
currentValues = new StringBuilder();
|
|
continue;
|
|
}
|
|
currentValues.append(token);
|
|
currentValues.append(",");
|
|
}
|
|
updateCCCRFiltri(CR, currentFiltro, currentValues.toString());
|
|
}
|
|
}
|
|
|
|
public static final String getTipoSchedaArticoloWww(long l_flgTipoSchedaArticoloWww) {
|
|
return Articolo.getTipoSchedaArticoloWww(l_flgTipoSchedaArticoloWww);
|
|
}
|
|
|
|
public String getTipoSchedaArticoloWww() {
|
|
return Articolo.getTipoSchedaArticoloWww(getFlgTipoSchedaArticoloWww());
|
|
}
|
|
|
|
protected static final void updateCCCRFiltri(ArticoloCR CR, String currentFiltro, String currentValues) {
|
|
if (currentValues.endsWith(","))
|
|
currentValues = currentValues.substring(0, currentValues.length() - 1);
|
|
if (!currentFiltro.isEmpty() && !currentValues.isEmpty())
|
|
if (currentFiltro.toLowerCase().equals("m")) {
|
|
CR.setId_marche(currentValues);
|
|
} else if (currentFiltro.toLowerCase().equals("pd")) {
|
|
CR.setPrezzoDa((double)Long.parseLong(currentValues));
|
|
} else if (currentFiltro.toLowerCase().equals("pa")) {
|
|
CR.setPrezzoA((double)Long.parseLong(currentValues));
|
|
} else if (currentFiltro.toLowerCase().equals("c")) {
|
|
CR.setFlgCondizioni(currentValues);
|
|
} else if (currentFiltro.toLowerCase().equals("d")) {
|
|
CR.setFlgDisponibilita(currentValues);
|
|
}
|
|
}
|
|
|
|
public static final void setCCFiltriIdFromCR(ArticoloCR CR) {
|
|
StringBuilder sb = new StringBuilder();
|
|
if (!CR.getId_marche().isEmpty()) {
|
|
sb.append("M,");
|
|
StringTokenizer st = new StringTokenizer(CR.getId_marche(), ",");
|
|
while (st.hasMoreTokens()) {
|
|
sb.append(st.nextToken());
|
|
if (st.hasMoreTokens())
|
|
sb.append(", ");
|
|
}
|
|
}
|
|
CR.setFiltri_id(sb.toString());
|
|
}
|
|
|
|
public ArticoloCR(ApplParmFull newApplParmFull) {
|
|
super(newApplParmFull);
|
|
}
|
|
|
|
public ArticoloCR() {}
|
|
|
|
public static final String getPercRicaricoEffettivoLike(long l_flgPercRicaricoEffettivoLike) {
|
|
if (l_flgPercRicaricoEffettivoLike == 0L)
|
|
return " ";
|
|
if (l_flgPercRicaricoEffettivoLike == 1L)
|
|
return ">=";
|
|
if (l_flgPercRicaricoEffettivoLike == 2L)
|
|
return "<=";
|
|
if (l_flgPercRicaricoEffettivoLike == 3L)
|
|
return "==";
|
|
return " ";
|
|
}
|
|
|
|
public static final String getModImportazione(long l_flgModIMportazione) {
|
|
return Articolo.getModImportazione(l_flgModIMportazione);
|
|
}
|
|
|
|
public String getModImportazione() {
|
|
return Articolo.getModImportazione(getFlgModImportazione());
|
|
}
|
|
|
|
public String getEscludiWeb() {
|
|
return getEscludiWeb(getFlgEscludiWeb());
|
|
}
|
|
|
|
public static final String getOrderBy(long l_flgOrderBy) {
|
|
if (l_flgOrderBy == 6L)
|
|
return "Creazione";
|
|
if (l_flgOrderBy == 7L)
|
|
return "Dispo-tipo-nome";
|
|
if (l_flgOrderBy == 8L)
|
|
return "Imp. Time desc";
|
|
if (l_flgOrderBy == 9L)
|
|
return "Imp. Num. desc";
|
|
if (l_flgOrderBy == 10L)
|
|
return "Index Now (hashcode)";
|
|
if (l_flgOrderBy == 1L)
|
|
return "Marca";
|
|
if (l_flgOrderBy == 0L)
|
|
return "Nome";
|
|
if (l_flgOrderBy == 2L)
|
|
return "Tipo-nome ";
|
|
if (l_flgOrderBy == 3L)
|
|
return "Tipo-nome desc";
|
|
if (l_flgOrderBy == 4L)
|
|
return "Tip-Prezzo";
|
|
if (l_flgOrderBy == 5L)
|
|
return "Tipo-Prezzo desc";
|
|
if (l_flgOrderBy == -1L)
|
|
return "";
|
|
return "??" + l_flgOrderBy;
|
|
}
|
|
|
|
public String getDisponibilitaWeb() {
|
|
return Articolo.getDisponibilitaWeb(getFlgDisponibilitaWeb());
|
|
}
|
|
|
|
public void setId_articolo(long newId_articolo) {
|
|
this.id_articolo = newId_articolo;
|
|
setArticolo(null);
|
|
}
|
|
|
|
public void setId_marca(long newId_marca) {
|
|
this.id_marca = newId_marca;
|
|
setMarca(null);
|
|
}
|
|
|
|
public void setId_iva(long newId_iva) {
|
|
this.id_iva = newId_iva;
|
|
setIva(null);
|
|
}
|
|
|
|
public void setDescrizione(String newDescrizione) {
|
|
this.descrizione = newDescrizione;
|
|
}
|
|
|
|
public void setDescrizioneTecnica(String newDescrizioneTecnica) {
|
|
this.descrizioneTecnica = newDescrizioneTecnica;
|
|
}
|
|
|
|
public void setPrezzoPubblico(double newPrezzoPubblico) {
|
|
this.prezzoPubblico = newPrezzoPubblico;
|
|
}
|
|
|
|
public void setGiacenza(long newGiacenza) {
|
|
this.giacenza = newGiacenza;
|
|
}
|
|
|
|
public void setFlgStockOfferte(long newFlgStockOfferte) {
|
|
this.flgStockOfferte = newFlgStockOfferte;
|
|
}
|
|
|
|
public void setDataFineVld(Date newDataFineVld) {
|
|
this.dataFineVld = newDataFineVld;
|
|
}
|
|
|
|
public long getId_articolo() {
|
|
return this.id_articolo;
|
|
}
|
|
|
|
public long getId_marca() {
|
|
return this.id_marca;
|
|
}
|
|
|
|
public long getId_iva() {
|
|
return this.id_iva;
|
|
}
|
|
|
|
public String getDescrizione() {
|
|
return (this.descrizione == null) ? "" : this.descrizione;
|
|
}
|
|
|
|
public String getDescrizioneTecnica() {
|
|
return (this.descrizioneTecnica == null) ? "" : this.descrizioneTecnica;
|
|
}
|
|
|
|
public double getPrezzoPubblico() {
|
|
return this.prezzoPubblico;
|
|
}
|
|
|
|
public long getGiacenza() {
|
|
return this.giacenza;
|
|
}
|
|
|
|
public long getFlgStockOfferte() {
|
|
return this.flgStockOfferte;
|
|
}
|
|
|
|
public Date getDataFineVld() {
|
|
return this.dataFineVld;
|
|
}
|
|
|
|
public void setMarca(Marca newMarca) {
|
|
this.marca = newMarca;
|
|
}
|
|
|
|
public Marca getMarca() {
|
|
return (Marca)getSecondaryObject(this.marca, Marca.class, new Long(getId_marca()));
|
|
}
|
|
|
|
public void setIva(Iva newIva) {
|
|
this.iva = newIva;
|
|
}
|
|
|
|
public Iva getIva() {
|
|
return (Iva)getSecondaryObject(this.iva, Iva.class, new Long(getId_iva()));
|
|
}
|
|
|
|
public long getFlgNascondi() {
|
|
return this.flgNascondi;
|
|
}
|
|
|
|
public void setFlgNascondi(long l) {
|
|
this.flgNascondi = l;
|
|
}
|
|
|
|
public long getId_tipo() {
|
|
return this.id_tipo;
|
|
}
|
|
|
|
public Tipo getTipo() {
|
|
this.tipo = (Tipo)getSecondaryObject(this.tipo, Tipo.class, getId_tipo());
|
|
return this.tipo;
|
|
}
|
|
|
|
public void setId_tipo(long id_tipo) {
|
|
this.id_tipo = id_tipo;
|
|
setTipo(null);
|
|
}
|
|
|
|
public void setTipo(Tipo tipo) {
|
|
this.tipo = tipo;
|
|
}
|
|
|
|
public long getFlgNascondiNew() {
|
|
return this.flgNascondiNew;
|
|
}
|
|
|
|
public void setFlgNascondiNew(long flgNascondiNew) {
|
|
this.flgNascondiNew = flgNascondiNew;
|
|
}
|
|
|
|
public long getId_tipoSel() {
|
|
return this.id_tipoSel;
|
|
}
|
|
|
|
public void setId_tipoSel(long id_tipoSel) {
|
|
this.id_tipoSel = id_tipoSel;
|
|
setTipoSel(null);
|
|
}
|
|
|
|
public long getId_tipoMenu() {
|
|
return this.id_tipoMenu;
|
|
}
|
|
|
|
public void setId_tipoMenu(long id_tipoMenu) {
|
|
this.id_tipoMenu = id_tipoMenu;
|
|
setTipoMenu(null);
|
|
}
|
|
|
|
public Tipo getTipoSel() {
|
|
this.tipoSel = (Tipo)getSecondaryObject(this.tipoSel, Tipo.class, getId_tipoSel());
|
|
return this.tipoSel;
|
|
}
|
|
|
|
public void setTipoSel(Tipo tipoSel) {
|
|
this.tipoSel = tipoSel;
|
|
}
|
|
|
|
public Tipo getTipoMenu() {
|
|
this.tipoMenu = (Tipo)getSecondaryObject(this.tipoMenu, Tipo.class, getId_tipoMenu());
|
|
return this.tipoMenu;
|
|
}
|
|
|
|
public void setTipoMenu(Tipo tipoMenu) {
|
|
this.tipoMenu = tipoMenu;
|
|
}
|
|
|
|
public long getId_disponibilita() {
|
|
return this.id_disponibilita;
|
|
}
|
|
|
|
public void setId_disponibilita(long id_disponibilita) {
|
|
this.id_disponibilita = id_disponibilita;
|
|
}
|
|
|
|
public String getFlgOrderType() {
|
|
return (this.flgOrderType == null) ? AB_EMPTY_STRING : this.flgOrderType;
|
|
}
|
|
|
|
public void setFlgOrderType(String flgOrderType) {
|
|
this.flgOrderType = flgOrderType;
|
|
}
|
|
|
|
public String getCurrentCodice() {
|
|
return (this.currentCodice == null) ? AB_EMPTY_STRING : this.currentCodice;
|
|
}
|
|
|
|
public void setCurrentCodice(String l_currentCodice) {
|
|
this.currentCodice = l_currentCodice;
|
|
}
|
|
|
|
public String getNome() {
|
|
return (this.nome == null) ? AB_EMPTY_STRING : this.nome;
|
|
}
|
|
|
|
public void setNome(String nome) {
|
|
this.nome = nome;
|
|
}
|
|
|
|
public String getCodice() {
|
|
return (this.codice == null) ? AB_EMPTY_STRING : this.codice.trim();
|
|
}
|
|
|
|
public void setCodice(String codice) {
|
|
this.codice = codice;
|
|
}
|
|
|
|
public long getFlgDisponibile() {
|
|
return this.flgDisponibile;
|
|
}
|
|
|
|
public String getFlgDisponibileLinkCode() {
|
|
return (getFlgDisponibile() == 1L) ? "d" : AB_EMPTY_STRING;
|
|
}
|
|
|
|
public void setFlgDisponibile(long flgDisponibile) {
|
|
this.flgDisponibile = flgDisponibile;
|
|
}
|
|
|
|
public long getFlgOrdinaArticolo() {
|
|
return this.flgOrdinaArticolo;
|
|
}
|
|
|
|
public void setFlgOrdinaArticolo(long flgOrdinaArticolo) {
|
|
this.flgOrdinaArticolo = flgOrdinaArticolo;
|
|
}
|
|
|
|
public Date getDataScadenzaOfferta() {
|
|
return this.dataScadenzaOfferta;
|
|
}
|
|
|
|
public void setDataScadenzaOfferta(Date dataScadenzaOfferta) {
|
|
this.dataScadenzaOfferta = dataScadenzaOfferta;
|
|
}
|
|
|
|
public long getFlgUsaDisponibilita() {
|
|
return this.flgUsaDisponibilita;
|
|
}
|
|
|
|
public void setFlgUsaDisponibilita(long flgUsaDisponibilita) {
|
|
this.flgUsaDisponibilita = flgUsaDisponibilita;
|
|
}
|
|
|
|
public Colore getColore() {
|
|
this.colore = (Colore)getSecondaryObject(this.colore, Colore.class, getId_colore());
|
|
return this.colore;
|
|
}
|
|
|
|
public long getId_colore() {
|
|
return this.id_colore;
|
|
}
|
|
|
|
public void setColore(Colore newColore) {
|
|
this.colore = newColore;
|
|
}
|
|
|
|
public void setId_colore(long newId_colore) {
|
|
this.id_colore = newId_colore;
|
|
setColore(null);
|
|
}
|
|
|
|
public long getId_clifor() {
|
|
return this.id_clifor;
|
|
}
|
|
|
|
public void setId_clifor(long id_clifor) {
|
|
this.id_clifor = id_clifor;
|
|
setClifor(null);
|
|
}
|
|
|
|
public Clifor getClifor() {
|
|
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
|
return this.clifor;
|
|
}
|
|
|
|
public void setClifor(Clifor clifor) {
|
|
this.clifor = clifor;
|
|
}
|
|
|
|
public long getNumLabels() {
|
|
return this.numLabels;
|
|
}
|
|
|
|
public void setNumLabels(long numLabels) {
|
|
this.numLabels = numLabels;
|
|
}
|
|
|
|
public long getBlankLabels() {
|
|
return this.blankLabels;
|
|
}
|
|
|
|
public void setBlankLabels(long blankLabels) {
|
|
this.blankLabels = blankLabels;
|
|
}
|
|
|
|
public long getFlgTipoRicerca() {
|
|
return this.flgTipoRicerca;
|
|
}
|
|
|
|
public void setFlgTipoRicerca(long flgUsaMag) {
|
|
this.flgTipoRicerca = flgUsaMag;
|
|
}
|
|
|
|
public long getFlgQta() {
|
|
return this.flgQta;
|
|
}
|
|
|
|
public void setFlgQta(long flgQta) {
|
|
this.flgQta = flgQta;
|
|
}
|
|
|
|
public long getQtaDa() {
|
|
return this.qtaDa;
|
|
}
|
|
|
|
public void setQtaDa(long qtaDa) {
|
|
this.qtaDa = qtaDa;
|
|
}
|
|
|
|
public long getQtaA() {
|
|
return this.qtaA;
|
|
}
|
|
|
|
public void setQtaA(long qtaA) {
|
|
this.qtaA = qtaA;
|
|
}
|
|
|
|
public String getFlgClienteFornitore() {
|
|
return (this.flgClienteFornitore == null) ? AB_EMPTY_STRING : this.flgClienteFornitore.trim();
|
|
}
|
|
|
|
public void setFlgClienteFornitore(String flgClienteFornitore) {
|
|
this.flgClienteFornitore = flgClienteFornitore;
|
|
}
|
|
|
|
public String getCompatibilita() {
|
|
return (this.compatibilita == null) ? AB_EMPTY_STRING : this.compatibilita.trim();
|
|
}
|
|
|
|
public void setCompatibilita(String compatibilita) {
|
|
this.compatibilita = compatibilita;
|
|
}
|
|
|
|
public long getFlgTipoReport() {
|
|
return this.flgTipoReport;
|
|
}
|
|
|
|
public void setFlgTipoReport(long flgTipoReport) {
|
|
this.flgTipoReport = flgTipoReport;
|
|
}
|
|
|
|
public long getId_magFisico() {
|
|
return this.id_magFisico;
|
|
}
|
|
|
|
public void setId_magFisico(long id_magFisico) {
|
|
this.id_magFisico = id_magFisico;
|
|
}
|
|
|
|
public String getFiltroCR() {
|
|
String temp = "" + getId_lista1() + "-" + getId_lista1() + "-" + getId_lista2() + "-" + getId_lista3() + "-" + getId_lista4() + "-" +
|
|
getId_caratteristicaValSN1() + "-" + getValSN1() + "-" + getId_caratteristicaValSN2() + "-" + getValSN2() + "-" +
|
|
getId_caratteristicaValSN3();
|
|
if (temp.equals("0-0-0-0-0-0-0-0-0-0"))
|
|
return AB_EMPTY_STRING;
|
|
return temp;
|
|
}
|
|
|
|
public void setFileName(String fileName) {
|
|
this.fileName = fileName;
|
|
}
|
|
|
|
public long getFlgRiordino() {
|
|
return this.flgRiordino;
|
|
}
|
|
|
|
public void setFlgRiordino(long flgRiordino) {
|
|
this.flgRiordino = flgRiordino;
|
|
}
|
|
|
|
public long getId_users() {
|
|
return this.id_users;
|
|
}
|
|
|
|
public void setId_users(long id_users) {
|
|
this.id_users = id_users;
|
|
}
|
|
|
|
public long getId_caratteristica() {
|
|
return this.id_caratteristica;
|
|
}
|
|
|
|
public void setId_caratteristica(long id_caratteristica) {
|
|
this.id_caratteristica = id_caratteristica;
|
|
}
|
|
|
|
public String getCarValS() {
|
|
return this.carValS;
|
|
}
|
|
|
|
public void setCarValS(String carValS) {
|
|
this.carValS = carValS;
|
|
}
|
|
|
|
public long getCarValLD() {
|
|
return this.carValLD;
|
|
}
|
|
|
|
public void setCarValLD(long carValLD) {
|
|
this.carValLD = carValLD;
|
|
}
|
|
|
|
public Date getCarValDate() {
|
|
return this.carValDate;
|
|
}
|
|
|
|
public void setCarValDate(Date carValDate) {
|
|
this.carValDate = carValDate;
|
|
}
|
|
|
|
public long getCarId_lista() {
|
|
return this.carId_lista;
|
|
}
|
|
|
|
public void setCarId_lista(long carId_lista) {
|
|
this.carId_lista = carId_lista;
|
|
}
|
|
|
|
public long getCarId_lista1() {
|
|
return this.carId_lista1;
|
|
}
|
|
|
|
public void setCarId_lista1(long carId_lista1) {
|
|
this.carId_lista1 = carId_lista1;
|
|
}
|
|
|
|
public long getFlgStato() {
|
|
return this.flgStato;
|
|
}
|
|
|
|
public void setFlgStato(long flgStato) {
|
|
this.flgStato = flgStato;
|
|
}
|
|
|
|
public long getFlgShowCostoAcquisto() {
|
|
return this.flgShowCostoAcquisto;
|
|
}
|
|
|
|
public void setFlgShowCostoAcquisto(long flgShowCostoAcquisto) {
|
|
this.flgShowCostoAcquisto = flgShowCostoAcquisto;
|
|
}
|
|
|
|
public long getFlgEscludiWeb() {
|
|
return this.flgEscludiWeb;
|
|
}
|
|
|
|
public void setFlgEscludiWeb(long flgEscludiWeb) {
|
|
this.flgEscludiWeb = flgEscludiWeb;
|
|
}
|
|
|
|
public long getId_tipoAccessorio() {
|
|
return this.id_tipoAccessorio;
|
|
}
|
|
|
|
public void setId_tipoAccessorio(long id_tipoAccessorio) {
|
|
this.id_tipoAccessorio = id_tipoAccessorio;
|
|
}
|
|
|
|
public long getId_tipoAcc() {
|
|
return this.id_tipoAcc;
|
|
}
|
|
|
|
public void setId_tipoAcc(long id_tipoAcc) {
|
|
this.id_tipoAcc = id_tipoAcc;
|
|
}
|
|
|
|
public long getId_vetrina() {
|
|
return this.id_vetrina;
|
|
}
|
|
|
|
public void setId_vetrina(long flgVetrina) {
|
|
this.id_vetrina = flgVetrina;
|
|
setVetrina(null);
|
|
}
|
|
|
|
public long getId_lista() {
|
|
return this.id_lista;
|
|
}
|
|
|
|
public void setId_lista(long id_lista) {
|
|
this.id_lista = id_lista;
|
|
}
|
|
|
|
public long getId_lista1() {
|
|
return this.id_lista1;
|
|
}
|
|
|
|
public void setId_lista1(long id_lista1) {
|
|
this.id_lista1 = id_lista1;
|
|
}
|
|
|
|
public long getId_lista2() {
|
|
return this.id_lista2;
|
|
}
|
|
|
|
public void setId_lista2(long id_lista2) {
|
|
this.id_lista2 = id_lista2;
|
|
}
|
|
|
|
public long getId_lista3() {
|
|
return this.id_lista3;
|
|
}
|
|
|
|
public void setId_lista3(long id_lista3) {
|
|
this.id_lista3 = id_lista3;
|
|
}
|
|
|
|
public long getId_lista4() {
|
|
return this.id_lista4;
|
|
}
|
|
|
|
public void setId_lista4(long id_lista4) {
|
|
this.id_lista4 = id_lista4;
|
|
}
|
|
|
|
public long getValSN1() {
|
|
return this.valSN1;
|
|
}
|
|
|
|
public void setValSN1(long valSN1) {
|
|
this.valSN1 = valSN1;
|
|
}
|
|
|
|
public long getValSN2() {
|
|
return this.valSN2;
|
|
}
|
|
|
|
public void setValSN2(long valSN2) {
|
|
this.valSN2 = valSN2;
|
|
}
|
|
|
|
public long getValSN3() {
|
|
return this.valSN3;
|
|
}
|
|
|
|
public void setValSN3(long valSN3) {
|
|
this.valSN3 = valSN3;
|
|
}
|
|
|
|
public long getId_caratteristicaValSN1() {
|
|
return this.id_caratteristicaValSN1;
|
|
}
|
|
|
|
public void setId_caratteristicaValSN1(long id_caratteristicaValSN1) {
|
|
this.id_caratteristicaValSN1 = id_caratteristicaValSN1;
|
|
}
|
|
|
|
public long getId_caratteristicaValSN2() {
|
|
return this.id_caratteristicaValSN2;
|
|
}
|
|
|
|
public void setId_caratteristicaValSN2(long id_caratteristicaValSN2) {
|
|
this.id_caratteristicaValSN2 = id_caratteristicaValSN2;
|
|
}
|
|
|
|
public long getId_caratteristicaValSN3() {
|
|
return this.id_caratteristicaValSN3;
|
|
}
|
|
|
|
public void setId_caratteristicaValSN3(long id_caratteristicaValSN3) {
|
|
this.id_caratteristicaValSN3 = id_caratteristicaValSN3;
|
|
}
|
|
|
|
public String getFileName() {
|
|
return (this.fileName == null) ? AB_EMPTY_STRING : this.fileName.trim();
|
|
}
|
|
|
|
public String getSearchTxtWeb() {
|
|
return (this.searchTxtWeb == null) ? AB_EMPTY_STRING : this.searchTxtWeb.trim();
|
|
}
|
|
|
|
public void setSearchTxtWeb(String searchTxtWeb) {
|
|
this.searchTxtWeb = searchTxtWeb;
|
|
}
|
|
|
|
private long flgWebNoVendita = -1L;
|
|
|
|
private Date dataMovimento;
|
|
|
|
private TipoAccessorio tipoAccessorio;
|
|
|
|
private Vetrina vetrina;
|
|
|
|
private long flgEbayPubblicato = -1L;
|
|
|
|
private long id_articoloVariante;
|
|
|
|
private long carId_lista;
|
|
|
|
private long flgTipoVisualizzazione = 0L;
|
|
|
|
private long flgNoleggio;
|
|
|
|
private String filtri_id;
|
|
|
|
private String id_marche;
|
|
|
|
private String flgCondizioni;
|
|
|
|
private String flgDisponibilita;
|
|
|
|
private double prezzoDa;
|
|
|
|
private double prezzoA;
|
|
|
|
private long flgKit = -1L;
|
|
|
|
private double prezzoMax;
|
|
|
|
private double prezzoMin;
|
|
|
|
private String tag;
|
|
|
|
private long flgUsato = -1L;
|
|
|
|
private long flgContoVendita = -1L;
|
|
|
|
private long flgEbay = -1L;
|
|
|
|
private long flgGoogle = -1L;
|
|
|
|
private String codiceEan;
|
|
|
|
private String nMatricola;
|
|
|
|
private String scaffale;
|
|
|
|
private long flgInEsaurimento = -1L;
|
|
|
|
private long flgRateale0 = -1L;
|
|
|
|
private Date dataDocumentoA;
|
|
|
|
private Date dataDocumentoDa;
|
|
|
|
private long flgDisponibilitaWeb = -1L;
|
|
|
|
private long flgModImportazione = -1L;
|
|
|
|
private long flgSubito = -1L;
|
|
|
|
private String tagArticolo;
|
|
|
|
private String codicePromozioneA;
|
|
|
|
private long id_fornitore;
|
|
|
|
private Clifor fornitore;
|
|
|
|
private long id_fornitoreUsato;
|
|
|
|
private Clifor fornitoreUsato;
|
|
|
|
private long flgPercRicaricoEffettivoLike = -1L;
|
|
|
|
public double getPercRicaricoEffettivo() {
|
|
return this.percRicaricoEffettivo;
|
|
}
|
|
|
|
public void setPercRicaricoEffettivo(double percRicaricoEffettivo) {
|
|
this.percRicaricoEffettivo = percRicaricoEffettivo;
|
|
}
|
|
|
|
public long getFlgPercRicaricoEffettivoLike() {
|
|
return this.flgPercRicaricoEffettivoLike;
|
|
}
|
|
|
|
public void setFlgPercRicaricoEffettivoLike(long flgPercRicaricoEffettivo) {
|
|
this.flgPercRicaricoEffettivoLike = flgPercRicaricoEffettivo;
|
|
}
|
|
|
|
private long qtaDa = 1L;
|
|
|
|
private String fileNameMs;
|
|
|
|
private String googleFeedFileName;
|
|
|
|
private ArticoloVariante articoloVarianteKit;
|
|
|
|
private long id_articoloVarianteKit;
|
|
|
|
private ArticoloTaglia articoloTaglia;
|
|
|
|
private long id_articoloTaglia;
|
|
|
|
private ArticoloVariante articoloVariante;
|
|
|
|
private long id_taglia;
|
|
|
|
private Taglia taglia;
|
|
|
|
private String descrizione;
|
|
|
|
private long flgReadyForWeb = -1L;
|
|
|
|
private String langReadyForWeb = Locale.ITALY.getCountry();
|
|
|
|
private String lastItems;
|
|
|
|
private long countImpressionA;
|
|
|
|
private long countImportNonTrovatoA;
|
|
|
|
private long flgArticoloComponente = -1L;
|
|
|
|
private long id_articoloEscluso;
|
|
|
|
private long id_statoUsato;
|
|
|
|
private StatoUsato statoUsato;
|
|
|
|
private Date dataCreazioneA;
|
|
|
|
private Clifor fornitoreCostoNuovo;
|
|
|
|
private long id_fornitoreCostoNuovo;
|
|
|
|
private Date dataDocumentoUsatoA;
|
|
|
|
private long flgOfferta = -1L;
|
|
|
|
private String categoriaImport;
|
|
|
|
private long flgAmazon = -1L;
|
|
|
|
private long flgTrovaprezzi = -1L;
|
|
|
|
private String fileNameTrovaprezzi;
|
|
|
|
private String fileNameIdealo;
|
|
|
|
private long flgIdealo = -1L;
|
|
|
|
private long countImportNonTrovatoDa;
|
|
|
|
private long countImpressionDa;
|
|
|
|
private long flgSitemapType = 0L;
|
|
|
|
private long flgIcecatAuto = -1L;
|
|
|
|
private long countGgNoImportDa;
|
|
|
|
private String countGgNoImportDaA;
|
|
|
|
private long countGgNoImportA;
|
|
|
|
private String fileNameGoogle;
|
|
|
|
public void setLavaggio(long newLavaggio) {
|
|
this.lavaggio = newLavaggio;
|
|
}
|
|
|
|
public void setCandeggio(long newCandeggio) {
|
|
this.candeggio = newCandeggio;
|
|
}
|
|
|
|
public void setStiratura(long newStiratura) {
|
|
this.stiratura = newStiratura;
|
|
}
|
|
|
|
public void setPulituraSecco(long newPulituraSecco) {
|
|
this.pulituraSecco = newPulituraSecco;
|
|
}
|
|
|
|
public void setAsciugatura(long newAsciugatura) {
|
|
this.asciugatura = newAsciugatura;
|
|
}
|
|
|
|
public void setMassaLineare(long newMassaLineare) {
|
|
this.massaLineare = newMassaLineare;
|
|
}
|
|
|
|
public void setAltezzaMinima(long newAltezzaMinima) {
|
|
this.altezzaMinima = newAltezzaMinima;
|
|
}
|
|
|
|
public long getLavaggio() {
|
|
return this.lavaggio;
|
|
}
|
|
|
|
public long getCandeggio() {
|
|
return this.candeggio;
|
|
}
|
|
|
|
public long getStiratura() {
|
|
return this.stiratura;
|
|
}
|
|
|
|
public long getPulituraSecco() {
|
|
return this.pulituraSecco;
|
|
}
|
|
|
|
public long getAsciugatura() {
|
|
return this.asciugatura;
|
|
}
|
|
|
|
public long getMassaLineare() {
|
|
return this.massaLineare;
|
|
}
|
|
|
|
public long getAltezzaMinima() {
|
|
return this.altezzaMinima;
|
|
}
|
|
|
|
public String getCodiceSerieV() {
|
|
return (this.codiceSerieV == null) ? AB_EMPTY_STRING : this.codiceSerieV;
|
|
}
|
|
|
|
public void setCodiceSerieV(String codiceSerieV) {
|
|
this.codiceSerieV = codiceSerieV;
|
|
}
|
|
|
|
public String getNomeV() {
|
|
return (this.nomeV == null) ? AB_EMPTY_STRING : this.nomeV;
|
|
}
|
|
|
|
public void setNomeV(String nomeV) {
|
|
this.nomeV = nomeV;
|
|
}
|
|
|
|
public String getDescrizioneArticolo() {
|
|
return (this.descrizioneArticolo == null) ? AB_EMPTY_STRING : this.descrizioneArticolo;
|
|
}
|
|
|
|
public void setDescrizioneArticolo(String descrizioneArticolo) {
|
|
this.descrizioneArticolo = descrizioneArticolo;
|
|
}
|
|
|
|
public MagFisico getMagFisico() {
|
|
this.magFisico = (MagFisico)getSecondaryObject(this.magFisico, MagFisico.class, new Long(getId_magFisico()));
|
|
return this.magFisico;
|
|
}
|
|
|
|
public void setMagFisico(MagFisico magFisico) {
|
|
this.magFisico = magFisico;
|
|
}
|
|
|
|
public long getFlgWebNoVendita() {
|
|
return this.flgWebNoVendita;
|
|
}
|
|
|
|
public void setFlgWebNoVendita(long flgWebNoVendita) {
|
|
this.flgWebNoVendita = flgWebNoVendita;
|
|
}
|
|
|
|
public Date getDataMovimento() {
|
|
return this.dataMovimento;
|
|
}
|
|
|
|
public void setDataMovimento(Date dataMovimento) {
|
|
this.dataMovimento = dataMovimento;
|
|
}
|
|
|
|
public String getDescrizioneCR() {
|
|
StringBuilder temp = new StringBuilder();
|
|
SimpleDateFormat df = new SimpleDateFormat("dd/MM/yyyy");
|
|
if (getId_magFisico() != 0L)
|
|
temp.append("Magazzino: " + getMagFisico().getDescrizione() + " - ");
|
|
if (!getCodice().isEmpty())
|
|
temp.append("Codice: " + getCodice() + " - ");
|
|
if (!getSearchTxt().isEmpty() && !getSearchTxt().equals("*"))
|
|
temp.append("Nome Prodotto: " + getSearchTxt() + " - ");
|
|
if (!getCompatibilita().isEmpty())
|
|
temp.append("Compatibilita': " + getCompatibilita() + " - ");
|
|
if (getFlgQta() > 0L)
|
|
temp.append("Quantità da " + getQtaDa() + " a " + getQtaA() + " - ");
|
|
if (getDataMovimento() != null)
|
|
temp.append("Fino a data movimento': " + df.format(getDataMovimento()) + " - ");
|
|
if (!getScaffale().isEmpty())
|
|
temp.append("Scaffale: " + getScaffale() + " ");
|
|
if (getId_tipo() != 0L)
|
|
temp.append("Tipo: " + getTipo().getDescrizioneRPdf() + " - ");
|
|
if (getId_marca() != 0L)
|
|
temp.append("Marca: " + getMarca().getDescrizione() + " - ");
|
|
if (getFlgRiordino() == 1L)
|
|
temp.append("Articoli da riordinare - ");
|
|
if (getId_tipoAccessorio() != 0L)
|
|
temp.append("Tipo Accessorio: " + getTipoAccessorio().getDescrizione() + " - ");
|
|
if (getId_vetrina() != 0L)
|
|
temp.append("Vetrina: " + getVetrina().getDescrizione() + " - ");
|
|
if (getFlgStockOfferte() > 0L)
|
|
temp.append("Stock/Offerte: " + getStockOfferte(getFlgStockOfferte()) + " - ");
|
|
if (getFlgNascondi() > 0L)
|
|
temp.append("Nascondi: " + getFlgNascondi() + " - ");
|
|
return temp.toString();
|
|
}
|
|
|
|
public TipoAccessorio getTipoAccessorio() {
|
|
this.tipoAccessorio = (TipoAccessorio)getSecondaryObject(this.tipoAccessorio, TipoAccessorio.class, getId_tipoAccessorio());
|
|
return this.tipoAccessorio;
|
|
}
|
|
|
|
public Vetrina getVetrina() {
|
|
this.vetrina = (Vetrina)getSecondaryObject(this.vetrina, Vetrina.class, getId_vetrina());
|
|
return this.vetrina;
|
|
}
|
|
|
|
public void setTipoAccessorio(TipoAccessorio tipoAccessorio) {
|
|
this.tipoAccessorio = tipoAccessorio;
|
|
setTipoAccessorio(null);
|
|
}
|
|
|
|
public void setVetrina(Vetrina vetrina) {
|
|
this.vetrina = vetrina;
|
|
}
|
|
|
|
public long getFlgArticoloComponente() {
|
|
return this.flgArticoloComponente;
|
|
}
|
|
|
|
public void setFlgArticoloComponente(long flgArticoloComponente) {
|
|
this.flgArticoloComponente = flgArticoloComponente;
|
|
}
|
|
|
|
public long getFlgOrdinaWww() {
|
|
return this.flgOrdinaWww;
|
|
}
|
|
|
|
public ArticoloCR getClone() throws CloneNotSupportedException {
|
|
return (ArticoloCR)clone();
|
|
}
|
|
|
|
public void setFlgOrdinaWww(long flgOrdinaWww) {
|
|
this.flgOrdinaWww = flgOrdinaWww;
|
|
}
|
|
|
|
public long getRisoluzioneImmaginiCatalogo() {
|
|
return this.risoluzioneImmaginiCatalogo;
|
|
}
|
|
|
|
public void setRisoluzioneImmaginiCatalogo(long risoluzioneImmaginiCatalogo) {
|
|
this.risoluzioneImmaginiCatalogo = risoluzioneImmaginiCatalogo;
|
|
}
|
|
|
|
public String getCarId_listaS() {
|
|
return (this.carId_listaS == null) ? AB_EMPTY_STRING : this.carId_listaS.trim();
|
|
}
|
|
|
|
public void setCarId_listaS(String carId_listaS) {
|
|
this.carId_listaS = carId_listaS;
|
|
}
|
|
|
|
public boolean isGoogleTranslatorEnable() {
|
|
return getParm("USE_GOOGLE_TRANSLATOR").isTrue();
|
|
}
|
|
|
|
public long getFlgTipoVisualizzazione() {
|
|
return this.flgTipoVisualizzazione;
|
|
}
|
|
|
|
public void setFlgTipoVisualizzazione(long flgTipoVisualizzazione) {
|
|
this.flgTipoVisualizzazione = flgTipoVisualizzazione;
|
|
}
|
|
|
|
public long getFlgNoleggio() {
|
|
return this.flgNoleggio;
|
|
}
|
|
|
|
public void setFlgNoleggio(long flgNoleggio) {
|
|
this.flgNoleggio = flgNoleggio;
|
|
}
|
|
|
|
public static final String getStockOfferte(long l_flgStockOfferte) {
|
|
return Articolo.getStockOfferte(l_flgStockOfferte);
|
|
}
|
|
|
|
public String getFiltri_id() {
|
|
return (this.filtri_id == null) ? AB_EMPTY_STRING : this.filtri_id.trim();
|
|
}
|
|
|
|
public void setFiltri_id(String filtri_id) {
|
|
this.filtri_id = filtri_id;
|
|
}
|
|
|
|
public String getId_marche() {
|
|
return (this.id_marche == null) ? AB_EMPTY_STRING : this.id_marche.trim();
|
|
}
|
|
|
|
public void setId_marche(String id_marche) {
|
|
this.id_marche = id_marche;
|
|
}
|
|
|
|
public String getFlgDisponibilita() {
|
|
return (this.flgDisponibilita == null) ? AB_EMPTY_STRING : this.flgDisponibilita.trim();
|
|
}
|
|
|
|
public void setFlgDisponibilita(String flgDisponibilita) {
|
|
this.flgDisponibilita = flgDisponibilita;
|
|
}
|
|
|
|
public String getFlgCondizioni() {
|
|
return (this.flgCondizioni == null) ? AB_EMPTY_STRING : this.flgCondizioni.trim();
|
|
}
|
|
|
|
public void setFlgCondizioni(String flgCondizioni) {
|
|
this.flgCondizioni = flgCondizioni;
|
|
}
|
|
|
|
public String getPrezzoDaS() {
|
|
if (getPrezzoDa() == 0.0D)
|
|
return AB_EMPTY_STRING;
|
|
return String.valueOf((long)getPrezzoDa());
|
|
}
|
|
|
|
public void setPrezzoDa(double prezzoDa) {
|
|
this.prezzoDa = prezzoDa;
|
|
}
|
|
|
|
public double getPrezzoA() {
|
|
return this.prezzoA;
|
|
}
|
|
|
|
public void setPrezzoA(double prezzoA) {
|
|
this.prezzoA = prezzoA;
|
|
}
|
|
|
|
public String getPrezzoAS() {
|
|
if (getPrezzoA() == 0.0D)
|
|
return AB_EMPTY_STRING;
|
|
return String.valueOf((long)getPrezzoA());
|
|
}
|
|
|
|
public double getPrezzoDa() {
|
|
return this.prezzoDa;
|
|
}
|
|
|
|
public long getFlgKit() {
|
|
return this.flgKit;
|
|
}
|
|
|
|
public void setFlgKit(long flgKit) {
|
|
this.flgKit = flgKit;
|
|
}
|
|
|
|
public double getPrezzoMax() {
|
|
return this.prezzoMax;
|
|
}
|
|
|
|
public void setPrezzoMax(double prezzoMax) {
|
|
this.prezzoMax = prezzoMax;
|
|
}
|
|
|
|
public double getPrezzoMin() {
|
|
return this.prezzoMin;
|
|
}
|
|
|
|
public void setPrezzoMin(double prezzoMin) {
|
|
this.prezzoMin = prezzoMin;
|
|
}
|
|
|
|
public long getPrezzoMaxL() {
|
|
return (long)getPrezzoMax() + 1L;
|
|
}
|
|
|
|
public long getPrezzoMinL() {
|
|
return (long)getPrezzoMin();
|
|
}
|
|
|
|
public String getTag() {
|
|
return (this.tag == null) ? AB_EMPTY_STRING : this.tag.trim();
|
|
}
|
|
|
|
public void setTag(String tag) {
|
|
this.tag = tag;
|
|
}
|
|
|
|
public long getFlgUsato() {
|
|
return this.flgUsato;
|
|
}
|
|
|
|
public void setFlgUsato(long flgUsato) {
|
|
this.flgUsato = flgUsato;
|
|
}
|
|
|
|
public static final String getUsato(long l_flgUsato) {
|
|
return Articolo.getUsato(l_flgUsato);
|
|
}
|
|
|
|
public static final String getReadyForWeb(long l_flgReadyForWeb) {
|
|
if (l_flgReadyForWeb == -1L)
|
|
return " ";
|
|
if (l_flgReadyForWeb == 1L)
|
|
return "Si";
|
|
if (l_flgReadyForWeb == 2L)
|
|
return "Si SEO Ko";
|
|
if (l_flgReadyForWeb == 0L)
|
|
return "NO";
|
|
return "??";
|
|
}
|
|
|
|
public String getReadyForWeb() {
|
|
return getReadyForWeb(getFlgReadyForWeb());
|
|
}
|
|
|
|
public String getUsato() {
|
|
return getUsato(getFlgUsato());
|
|
}
|
|
|
|
public long getFlgContoVendita() {
|
|
return this.flgContoVendita;
|
|
}
|
|
|
|
public void setFlgContoVendita(long flgContoVendita) {
|
|
this.flgContoVendita = flgContoVendita;
|
|
}
|
|
|
|
public long getFlgEbay() {
|
|
return this.flgEbay;
|
|
}
|
|
|
|
public void setFlgEbay(long flgEbay) {
|
|
this.flgEbay = flgEbay;
|
|
}
|
|
|
|
public long getFlgGoogle() {
|
|
return this.flgGoogle;
|
|
}
|
|
|
|
public void setFlgGoogle(long flgGoogle) {
|
|
this.flgGoogle = flgGoogle;
|
|
}
|
|
|
|
public String getNMatricola() {
|
|
return (this.nMatricola == null) ? AB_EMPTY_STRING : this.nMatricola;
|
|
}
|
|
|
|
public void setNMatricola(String matricola) {
|
|
this.nMatricola = matricola;
|
|
}
|
|
|
|
public String getCodiceEan() {
|
|
return (this.codiceEan == null) ? AB_EMPTY_STRING : this.codiceEan.trim();
|
|
}
|
|
|
|
public void setCodiceEan(String codiceEan) {
|
|
this.codiceEan = codiceEan;
|
|
}
|
|
|
|
public long getFlgRateale0() {
|
|
return this.flgRateale0;
|
|
}
|
|
|
|
public void setFlgRateale0(long flgRateale0) {
|
|
this.flgRateale0 = flgRateale0;
|
|
}
|
|
|
|
public String getScaffale() {
|
|
return (this.scaffale == null) ? AB_EMPTY_STRING : this.scaffale.trim();
|
|
}
|
|
|
|
public void setScaffale(String scaffale) {
|
|
this.scaffale = scaffale;
|
|
}
|
|
|
|
public long getFlgInEsaurimento() {
|
|
return this.flgInEsaurimento;
|
|
}
|
|
|
|
public void setFlgInEsaurimento(long flgInEsaurimento) {
|
|
this.flgInEsaurimento = flgInEsaurimento;
|
|
}
|
|
|
|
public String getSearchTxtQuery() {
|
|
if (getSearchTxtWeb().isEmpty())
|
|
return AB_EMPTY_STRING;
|
|
try {
|
|
return "?q=" + URLEncoder.encode(getSearchTxtWeb(), "UTF-8");
|
|
} catch (Exception e) {
|
|
return "?q=" + DBAdapter.convertStringToHtml(getSearchTxtWeb());
|
|
}
|
|
}
|
|
|
|
public Date getDataDocumentoA() {
|
|
return this.dataDocumentoA;
|
|
}
|
|
|
|
public void setDataDocumentoA(Date dataDocumentoA) {
|
|
this.dataDocumentoA = dataDocumentoA;
|
|
}
|
|
|
|
public Date getDataDocumentoDa() {
|
|
return this.dataDocumentoDa;
|
|
}
|
|
|
|
public void setDataDocumentoDa(Date dataDocumentoDa) {
|
|
this.dataDocumentoDa = dataDocumentoDa;
|
|
}
|
|
|
|
public long getFlgDisponibilitaWeb() {
|
|
return this.flgDisponibilitaWeb;
|
|
}
|
|
|
|
public void setFlgDisponibilitaWeb(long flgDisponibilitaWeb) {
|
|
this.flgDisponibilitaWeb = flgDisponibilitaWeb;
|
|
}
|
|
|
|
public long getFlgModImportazione() {
|
|
return this.flgModImportazione;
|
|
}
|
|
|
|
public void setFlgModImportazione(long flgModImportazione) {
|
|
this.flgModImportazione = flgModImportazione;
|
|
}
|
|
|
|
public long getFlgSubito() {
|
|
return this.flgSubito;
|
|
}
|
|
|
|
public void setFlgSubito(long flgSubito) {
|
|
this.flgSubito = flgSubito;
|
|
}
|
|
|
|
public String getTagArticolo() {
|
|
return (this.tagArticolo == null) ? AB_EMPTY_STRING : this.tagArticolo.trim();
|
|
}
|
|
|
|
public void setTagArticolo(String tagArticolo) {
|
|
this.tagArticolo = tagArticolo;
|
|
}
|
|
|
|
public String getCodicePromozioneA() {
|
|
return (this.codicePromozioneA == null) ? AB_EMPTY_STRING : this.codicePromozioneA.trim();
|
|
}
|
|
|
|
public void setCodicePromozioneA(String codicePromozioneA) {
|
|
this.codicePromozioneA = codicePromozioneA;
|
|
}
|
|
|
|
public long getId_fornitore() {
|
|
return this.id_fornitore;
|
|
}
|
|
|
|
public void setId_fornitore(long id_fornitore) {
|
|
this.id_fornitore = id_fornitore;
|
|
setFornitore(null);
|
|
}
|
|
|
|
public Clifor getFornitore() {
|
|
this.fornitore = (Clifor)getSecondaryObject(this.fornitore, Clifor.class, getId_fornitore());
|
|
return this.fornitore;
|
|
}
|
|
|
|
public void setFornitore(Clifor fornitore) {
|
|
this.fornitore = fornitore;
|
|
}
|
|
|
|
public static final String getEscludiWeb(long l_flgEscludiWebArt) {
|
|
if (l_flgEscludiWebArt == -1L)
|
|
return "--";
|
|
if (l_flgEscludiWebArt == 1L)
|
|
return "Non Visibile";
|
|
if (l_flgEscludiWebArt == 2L)
|
|
return "Sospeso";
|
|
if (l_flgEscludiWebArt == 0L)
|
|
return "Visibile";
|
|
return "??";
|
|
}
|
|
|
|
public static final String getPrezzoCompetitivo(long l_flgPrezzoCompetitivo) {
|
|
if (l_flgPrezzoCompetitivo == 0L)
|
|
return "Amazon";
|
|
if (l_flgPrezzoCompetitivo == 1L)
|
|
return "Sito";
|
|
if (l_flgPrezzoCompetitivo == 2L)
|
|
return "Nessuno";
|
|
if (l_flgPrezzoCompetitivo == 3L)
|
|
return "Non Rilevato";
|
|
return "";
|
|
}
|
|
|
|
public final String getPrezzoCompetitivo() {
|
|
return getPrezzoCompetitivo(getFlgPrezzoCompetitivo());
|
|
}
|
|
|
|
public static final String getAmzFeaturedPriceData(long l_flgAmzFeaturedPriceData) {
|
|
if (l_flgAmzFeaturedPriceData == 0L)
|
|
return "Tutti";
|
|
if (l_flgAmzFeaturedPriceData == 1L)
|
|
return "data < oggi";
|
|
return "";
|
|
}
|
|
|
|
public final String getAmzFeaturedPriceData() {
|
|
return getAmzFeaturedPriceData(getFlgAmzFeaturedPriceData());
|
|
}
|
|
|
|
public static final String getPriceTypeAmz(long l_flgPriceTypeAmz) {
|
|
return Articolo.getPriceTypeAmz(l_flgPriceTypeAmz);
|
|
}
|
|
|
|
public final String getPriceTypeAmz() {
|
|
return Articolo.getPriceTypeAmz(getFlgPriceTypeAmz());
|
|
}
|
|
|
|
public static final String getOfferta(long l_flgOfferta) {
|
|
if (l_flgOfferta == 12L)
|
|
return "Off. Fornitore Attiva";
|
|
if (l_flgOfferta == 11L)
|
|
return "Off. Interna Attiva";
|
|
if (l_flgOfferta == 3L)
|
|
return "Off. Scaduta o senza offerta";
|
|
if (l_flgOfferta == 4L)
|
|
return "Off. Interna Scaduta/Senza o solo Off. Forn.";
|
|
if (l_flgOfferta == 0L)
|
|
return "Off. Scaduta";
|
|
if (l_flgOfferta == 21L)
|
|
return "Off. Interna Scaduta";
|
|
if (l_flgOfferta == 22L)
|
|
return "Off. Fornitore Scaduta";
|
|
if (l_flgOfferta == 1L)
|
|
return "Off. Attiva";
|
|
if (l_flgOfferta < 0L)
|
|
return AB_EMPTY_STRING;
|
|
return "??";
|
|
}
|
|
|
|
public String getOfferta() {
|
|
return getOfferta(getFlgOfferta());
|
|
}
|
|
|
|
public String getFileNameGoogle() {
|
|
return (this.fileNameGoogle == null) ? AB_EMPTY_STRING : this.fileNameGoogle.trim();
|
|
}
|
|
|
|
public void setFileNameGoogle(String fileNameGoogle) {
|
|
this.fileNameGoogle = fileNameGoogle;
|
|
}
|
|
|
|
public String getGoogleFeedFileName() {
|
|
return (this.googleFeedFileName == null) ? AB_EMPTY_STRING : this.googleFeedFileName.trim();
|
|
}
|
|
|
|
public void setGoogleFeedFileName(String googleFeedFileName) {
|
|
this.googleFeedFileName = googleFeedFileName;
|
|
}
|
|
|
|
public String getCCPageTitle(String lang, int page) {
|
|
StringBuilder title = new StringBuilder();
|
|
if (getId_tipo() != 0L) {
|
|
if (!getTipo().getDescrizioneSeo(lang).isEmpty()) {
|
|
title.append(getTipo().getDescrizioneSeo(lang));
|
|
} else {
|
|
title.append(getTipo().getDescrizioneCompleta(lang));
|
|
}
|
|
title.append(" ");
|
|
if (getId_marca() > 0L) {
|
|
title.append(getMarca().getDescrizione());
|
|
title.append(" ");
|
|
}
|
|
} else if (getId_marca() > 0L) {
|
|
title.append(getMarca().getCCSeoTitle(lang));
|
|
title.append(" ");
|
|
}
|
|
if (!getId_marche().isEmpty()) {
|
|
StringTokenizer st = new StringTokenizer(getId_marche(), ",");
|
|
Marca marca = new Marca(getApFull());
|
|
if (getId_tipo() == 0L && st.countToken() == 1) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
title.append(marca.getCCSeoTitle(lang));
|
|
title.append(" ");
|
|
} else {
|
|
while (st.hasMoreTokens()) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
if (marca.getId_marca() > 0L) {
|
|
title.append(marca.getDescrizione());
|
|
title.append(" ");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (!getSearchTxtWeb().isEmpty()) {
|
|
title.append(getSearchTxtWeb());
|
|
title.append(" ");
|
|
}
|
|
if (getFlgNoleggio() > 0L) {
|
|
title.insert(0, "Noleggio - ");
|
|
} else if (getFlgStockOfferte() == 1L) {
|
|
title.insert(0, "Offerte - ");
|
|
} else if (getFlgStockOfferte() == 4L) {
|
|
title.insert(0, "Novità - ");
|
|
} else if (getFlgStockOfferte() == 3L) {
|
|
title.insert(0, "Usato - ");
|
|
} else if (getFlgStockOfferte() == 2L) {
|
|
title.insert(0, "Stock - ");
|
|
}
|
|
title.append(" | ");
|
|
title.append(Attivita.getDefaultInstance(getApFull()).getNomeAttivitaSeo());
|
|
if (page > 1) {
|
|
title.append(" | ");
|
|
title.append(getMarca().translate("pagina", lang));
|
|
title.append(" ");
|
|
title.append(page);
|
|
}
|
|
return title.toString();
|
|
}
|
|
|
|
public String getCCPageDescription(String lang, int page) {
|
|
String result;
|
|
StringBuilder sbMarche = new StringBuilder();
|
|
if (!getId_marche().isEmpty()) {
|
|
StringTokenizer st = new StringTokenizer(getId_marche(), ",");
|
|
Marca marca = new Marca(getApFull());
|
|
if (getId_tipo() == 0L && st.countToken() == 1) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
sbMarche.append(" ");
|
|
sbMarche.append(marca.getCCMetaDescriptionWeb(lang));
|
|
} else {
|
|
while (st.hasMoreTokens()) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
if (marca.getId_marca() > 0L) {
|
|
sbMarche.append(" ");
|
|
sbMarche.append(marca.getDescrizione());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (getId_marca() != 0L) {
|
|
sbMarche.append(" ");
|
|
sbMarche.append(getMarca().getDescrizione());
|
|
}
|
|
StringBuilder sbPage = new StringBuilder();
|
|
if (page > 1) {
|
|
sbPage.append(" ");
|
|
sbPage.append(getMarca().translate("pagina", lang));
|
|
sbPage.append(" ");
|
|
sbPage.append(page);
|
|
}
|
|
StringBuilder sbRicerca = new StringBuilder();
|
|
if (!getSearchTxtWeb().isEmpty() || getId_marca() != 0L || !getId_marche().isEmpty()) {
|
|
sbRicerca.append(" ");
|
|
sbRicerca.append(getSearchTxtWeb());
|
|
}
|
|
StringBuilder sbDisponibile = new StringBuilder();
|
|
if (getFlgDisponibile() == 1L) {
|
|
sbDisponibile.append(" ");
|
|
sbDisponibile.append(getTipoSel().translate("disponibili", lang));
|
|
}
|
|
if (getId_tipo() == 0L) {
|
|
result = AB_EMPTY_STRING;
|
|
} else if (!getTipo().getMetaDesc(lang).isEmpty()) {
|
|
result = getTipo().getMetaDesc(lang);
|
|
} else {
|
|
result = getTipo().getDescrizioneCompletaHypen(lang);
|
|
}
|
|
if (result.indexOf("#") >= 0) {
|
|
long parmSize = (long)(getTipo().getDescrizione().length() + sbMarche.length() + sbRicerca.length() + sbPage.length() + sbDisponibile.length());
|
|
result = Articolo.getCCSeoMinimalTemplate(result, 150L, parmSize);
|
|
StringBuilder stringBuilder = new StringBuilder(
|
|
result.replace("#", getTipo().getDescrizione() + getTipo().getDescrizione()));
|
|
if (sbRicerca.length() > 0)
|
|
stringBuilder.append(sbRicerca.toString());
|
|
if (sbDisponibile.length() > 0)
|
|
stringBuilder.append(sbDisponibile.toString());
|
|
if (sbPage.length() > 0)
|
|
stringBuilder.append(sbPage.toString());
|
|
return stringBuilder.toString();
|
|
}
|
|
StringBuilder sbResult = new StringBuilder(result);
|
|
if (sbMarche.length() > 0) {
|
|
sbResult.append(sbMarche.toString());
|
|
sbResult.append(" ");
|
|
}
|
|
if (sbRicerca.length() > 0) {
|
|
if (sbResult.length() == 0)
|
|
sbResult.append(getArticolo().translate("ricerca per", lang));
|
|
sbResult.append(sbRicerca.toString());
|
|
}
|
|
if (sbDisponibile.length() > 0)
|
|
sbResult.append(sbDisponibile.toString());
|
|
if (sbPage.length() > 0)
|
|
sbResult.append(sbPage.toString());
|
|
return DBAdapter.eliminaDoppioniInStringa(sbResult.toString());
|
|
}
|
|
|
|
public String getCCPageKeyword(String lang) {
|
|
StringBuilder desc = new StringBuilder();
|
|
if (!getTipo().getKeyword(lang).isEmpty()) {
|
|
desc.append(getTipo().getKeyword(lang));
|
|
} else {
|
|
desc.append(getTipo().getDescrizioneCompletaKeyword(lang));
|
|
}
|
|
if (getId_marca() > 0L) {
|
|
desc.append(", ");
|
|
desc.append(getMarca().getDescrizione());
|
|
}
|
|
if (!getId_marche().isEmpty()) {
|
|
StringTokenizer st = new StringTokenizer(getId_marche(), ",");
|
|
Marca marca = new Marca(getApFull());
|
|
while (st.hasMoreTokens()) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
if (marca.getId_marca() > 0L) {
|
|
desc.append(", ");
|
|
desc.append(marca.getDescrizione());
|
|
}
|
|
}
|
|
}
|
|
return desc.toString();
|
|
}
|
|
|
|
public ArticoloVariante getArticoloVarianteKit() {
|
|
this.articoloVarianteKit = (ArticoloVariante)getSecondaryObject(this.articoloVarianteKit, ArticoloVariante.class,
|
|
getId_articoloVarianteKit());
|
|
return this.articoloVarianteKit;
|
|
}
|
|
|
|
public long getId_articoloVarianteKit() {
|
|
return this.id_articoloVarianteKit;
|
|
}
|
|
|
|
public void setArticoloVarianteKit(ArticoloVariante articoloVarianteKit) {
|
|
this.articoloVarianteKit = articoloVarianteKit;
|
|
}
|
|
|
|
public void setId_articoloVarianteKit(long id_articoloVarianteKit) {
|
|
this.id_articoloVarianteKit = id_articoloVarianteKit;
|
|
setArticoloVarianteKit(null);
|
|
}
|
|
|
|
public ArticoloTaglia getArticoloTaglia() {
|
|
this.articoloTaglia = (ArticoloTaglia)getSecondaryObject(this.articoloTaglia, ArticoloTaglia.class, getId_articoloTaglia());
|
|
return this.articoloTaglia;
|
|
}
|
|
|
|
public long getId_articoloTaglia() {
|
|
return this.id_articoloTaglia;
|
|
}
|
|
|
|
public void setArticoloTaglia(ArticoloTaglia articoloTaglia) {
|
|
this.articoloTaglia = articoloTaglia;
|
|
}
|
|
|
|
public void setId_articoloTaglia(long id_articoloTaglia) {
|
|
this.id_articoloTaglia = id_articoloTaglia;
|
|
setArticoloTaglia(null);
|
|
}
|
|
|
|
public ArticoloVariante getArticoloVariante() {
|
|
this.articoloVariante = (ArticoloVariante)getSecondaryObject(this.articoloVariante, ArticoloVariante.class, getId_articoloVariante());
|
|
return this.articoloVariante;
|
|
}
|
|
|
|
public long getId_articoloVariante() {
|
|
return this.id_articoloVariante;
|
|
}
|
|
|
|
public void setArticoloVariante(ArticoloVariante newArticoloVariante) {
|
|
this.articoloVariante = newArticoloVariante;
|
|
}
|
|
|
|
public void setId_articoloVariante(long id_articoloVariante) {
|
|
this.id_articoloVariante = id_articoloVariante;
|
|
setArticoloVariante(null);
|
|
}
|
|
|
|
public Articolo getArticolo() {
|
|
this.articolo = (Articolo)getSecondaryObject(this.articolo, Articolo.class, getId_articolo());
|
|
return this.articolo;
|
|
}
|
|
|
|
public void setArticolo(Articolo articolo) {
|
|
this.articolo = articolo;
|
|
}
|
|
|
|
public long getId_taglia() {
|
|
return this.id_taglia;
|
|
}
|
|
|
|
public Taglia getTaglia() {
|
|
this.taglia = (Taglia)getSecondaryObject(this.taglia, Taglia.class, getId_taglia());
|
|
return this.taglia;
|
|
}
|
|
|
|
public void setId_taglia(long id_taglia) {
|
|
this.id_taglia = id_taglia;
|
|
}
|
|
|
|
public void setTaglia(Taglia taglia) {
|
|
this.taglia = taglia;
|
|
}
|
|
|
|
public String getSitemapFilename() {
|
|
return (this.sitemapFilename == null || this.sitemapFilename.isEmpty()) ? "sitemapArticoli" : this.sitemapFilename.trim();
|
|
}
|
|
|
|
public void setSitemapFilename(String sitemapFilename) {
|
|
this.sitemapFilename = sitemapFilename;
|
|
}
|
|
|
|
public Date getDataCreazioneDa() {
|
|
return this.dataCreazioneDa;
|
|
}
|
|
|
|
public void setDataCreazioneDa(Date dataCreazioneDa) {
|
|
this.dataCreazioneDa = dataCreazioneDa;
|
|
}
|
|
|
|
public Date getDataUpdateDa() {
|
|
return this.dataUpdateDa;
|
|
}
|
|
|
|
public void setDataUpdateDa(Date dataUpdateDa) {
|
|
this.dataUpdateDa = dataUpdateDa;
|
|
}
|
|
|
|
public long getFlgReadyForWeb() {
|
|
return this.flgReadyForWeb;
|
|
}
|
|
|
|
public void setFlgReadyForWeb(long flgReadyForWeb) {
|
|
this.flgReadyForWeb = flgReadyForWeb;
|
|
}
|
|
|
|
public String getLangReadyForWeb() {
|
|
return (this.langReadyForWeb == null) ? Locale.ITALY.getCountry() : this.langReadyForWeb.trim();
|
|
}
|
|
|
|
public void setLangReadyForWeb(String langReadyForWeb) {
|
|
this.langReadyForWeb = langReadyForWeb;
|
|
}
|
|
|
|
public String getLastItems() {
|
|
return (this.lastItems == null) ? AB_EMPTY_STRING : this.lastItems.trim();
|
|
}
|
|
|
|
public void setLastItems(String lastItems) {
|
|
this.lastItems = lastItems;
|
|
}
|
|
|
|
public long getCountImportNonTrovatoDa() {
|
|
return this.countImportNonTrovatoDa;
|
|
}
|
|
|
|
public void setCountImportNonTrovatoDa(long countImportNonTrovatoDa) {
|
|
this.countImportNonTrovatoDa = countImportNonTrovatoDa;
|
|
}
|
|
|
|
public long getCountImportNonTrovatoA() {
|
|
return this.countImportNonTrovatoA;
|
|
}
|
|
|
|
public void setCountImportNonTrovatoA(long countImportNonTrovatoA) {
|
|
this.countImportNonTrovatoA = countImportNonTrovatoA;
|
|
}
|
|
|
|
public long getFlgEbayPubblicato() {
|
|
return this.flgEbayPubblicato;
|
|
}
|
|
|
|
public void setFlgEbayPubblicato(long flgEbayPubblicato) {
|
|
this.flgEbayPubblicato = flgEbayPubblicato;
|
|
}
|
|
|
|
public long getId_articoloEscluso() {
|
|
return this.id_articoloEscluso;
|
|
}
|
|
|
|
public void setId_articoloEscluso(long id_articoloEscluso) {
|
|
this.id_articoloEscluso = id_articoloEscluso;
|
|
}
|
|
|
|
public long getId_fornitoreUsato() {
|
|
return this.id_fornitoreUsato;
|
|
}
|
|
|
|
public void setId_fornitoreUsato(long id_fornitoreUsato) {
|
|
this.id_fornitoreUsato = id_fornitoreUsato;
|
|
setFornitoreUsato(null);
|
|
}
|
|
|
|
public Clifor getFornitoreUsato() {
|
|
this.fornitoreUsato = (Clifor)getSecondaryObject(this.fornitoreUsato, Clifor.class, getId_fornitoreUsato());
|
|
return this.fornitoreUsato;
|
|
}
|
|
|
|
public void setFornitoreUsato(Clifor fornitoreUsato) {
|
|
this.fornitoreUsato = fornitoreUsato;
|
|
}
|
|
|
|
public String getWwwAddressParm() {
|
|
return getParm("P_WWW_ADDRESS").getTesto();
|
|
}
|
|
|
|
public long getId_statoUsato() {
|
|
return this.id_statoUsato;
|
|
}
|
|
|
|
public StatoUsato getStatoUsato() {
|
|
this.statoUsato = (StatoUsato)getSecondaryObject(this.statoUsato, StatoUsato.class, new Long(getId_statoUsato()));
|
|
return this.statoUsato;
|
|
}
|
|
|
|
public void setId_statoUsato(long id_statoUsato) {
|
|
this.id_statoUsato = id_statoUsato;
|
|
setStatoUsato(null);
|
|
}
|
|
|
|
public void setStatoUsato(StatoUsato statoUsato) {
|
|
this.statoUsato = statoUsato;
|
|
}
|
|
|
|
public Date getDataCreazioneA() {
|
|
return this.dataCreazioneA;
|
|
}
|
|
|
|
public void setDataCreazioneA(Date dataCreazioneA) {
|
|
this.dataCreazioneA = dataCreazioneA;
|
|
}
|
|
|
|
public Clifor getFornitoreCostoNuovo() {
|
|
this.fornitoreCostoNuovo = (Clifor)getSecondaryObject(this.fornitoreCostoNuovo, Clifor.class, getId_fornitoreCostoNuovo());
|
|
return this.fornitoreCostoNuovo;
|
|
}
|
|
|
|
public long getId_fornitoreCostoNuovo() {
|
|
return this.id_fornitoreCostoNuovo;
|
|
}
|
|
|
|
public void setFornitoreCostoNuovo(Clifor fornitoreCostoNuovo) {
|
|
this.fornitoreCostoNuovo = fornitoreCostoNuovo;
|
|
}
|
|
|
|
public void setId_fornitoreCostoNuovo(long id_fornitoreCostoNuovo) {
|
|
this.id_fornitoreCostoNuovo = id_fornitoreCostoNuovo;
|
|
setFornitoreCostoNuovo(null);
|
|
}
|
|
|
|
public String getTipoReport() {
|
|
return Articolo.getTipoReport(getFlgTipoReport());
|
|
}
|
|
|
|
public Date getDataDocumentoUsatoA() {
|
|
return this.dataDocumentoUsatoA;
|
|
}
|
|
|
|
public void setDataDocumentoUsatoA(Date dataDocumentoUsatoA) {
|
|
this.dataDocumentoUsatoA = dataDocumentoUsatoA;
|
|
}
|
|
|
|
public static String getTipoReport(long l_flgTipoReport) {
|
|
return Articolo.getTipoReport(l_flgTipoReport);
|
|
}
|
|
|
|
public long getFlgOfferta() {
|
|
return this.flgOfferta;
|
|
}
|
|
|
|
public void setFlgOfferta(long flgOfferta) {
|
|
this.flgOfferta = flgOfferta;
|
|
}
|
|
|
|
public String getCategoriaImport() {
|
|
return (this.categoriaImport == null) ? AB_EMPTY_STRING : this.categoriaImport.trim();
|
|
}
|
|
|
|
public void setCategoriaImport(String categoriaImport) {
|
|
this.categoriaImport = categoriaImport;
|
|
}
|
|
|
|
public long getFlgAmazon() {
|
|
return this.flgAmazon;
|
|
}
|
|
|
|
public void setFlgAmazon(long flgAmazon) {
|
|
this.flgAmazon = flgAmazon;
|
|
}
|
|
|
|
public static final String getDisponibilitaWeb(long l_flgDisponibilita) {
|
|
return Articolo.getDisponibilitaWeb(l_flgDisponibilita);
|
|
}
|
|
|
|
public final String getOrderBy() {
|
|
return getOrderBy(getFlgOrderBy());
|
|
}
|
|
|
|
public long getFlgControlloCostoAggArt() {
|
|
return this.flgControlloCostoAggArt;
|
|
}
|
|
|
|
public void setFlgControlloCostoAggArt(long flgControlloCostoAggArt) {
|
|
this.flgControlloCostoAggArt = flgControlloCostoAggArt;
|
|
}
|
|
|
|
public long getFlgTrovaprezzi() {
|
|
return this.flgTrovaprezzi;
|
|
}
|
|
|
|
public void setFlgTrovaprezzi(long flgTrovaprezzi) {
|
|
this.flgTrovaprezzi = flgTrovaprezzi;
|
|
}
|
|
|
|
public String getFileNameTrovaprezzi() {
|
|
return (this.fileNameTrovaprezzi == null || this.fileNameTrovaprezzi.isEmpty()) ? "trovaprezzi-f3.xml" : this.fileNameTrovaprezzi.trim();
|
|
}
|
|
|
|
public void setFileNameTrovaprezzi(String fileNameTrovaprezzi) {
|
|
this.fileNameTrovaprezzi = fileNameTrovaprezzi;
|
|
}
|
|
|
|
public String getFileNameIdealo() {
|
|
return (this.fileNameIdealo == null || this.fileNameIdealo.isEmpty()) ? "idealo-f3.xml" : this.fileNameIdealo.trim();
|
|
}
|
|
|
|
public void setFileNameIdealo(String fileNameIdealo) {
|
|
this.fileNameIdealo = fileNameIdealo;
|
|
}
|
|
|
|
public long getFlgIdealo() {
|
|
return this.flgIdealo;
|
|
}
|
|
|
|
public void setFlgIdealo(long flgIdealo) {
|
|
this.flgIdealo = flgIdealo;
|
|
}
|
|
|
|
public long getFlgTipoSchedaArticoloWww() {
|
|
return this.flgTipoSchedaArticoloWww;
|
|
}
|
|
|
|
public void setFlgTipoSchedaArticoloWww(long flgTipoSchedaArticoloWww) {
|
|
this.flgTipoSchedaArticoloWww = flgTipoSchedaArticoloWww;
|
|
}
|
|
|
|
public long getCountImpressionA() {
|
|
return this.countImpressionA;
|
|
}
|
|
|
|
public void setCountImpressionA(long countImpressionA) {
|
|
this.countImpressionA = countImpressionA;
|
|
}
|
|
|
|
public long getCountImpressionDa() {
|
|
return this.countImpressionDa;
|
|
}
|
|
|
|
public void setCountImpressionDa(long countImpressionDa) {
|
|
this.countImpressionDa = countImpressionDa;
|
|
}
|
|
|
|
public long getFlgSitemapType() {
|
|
return this.flgSitemapType;
|
|
}
|
|
|
|
public void setFlgSitemapType(long flgSitemapType) {
|
|
this.flgSitemapType = flgSitemapType;
|
|
}
|
|
|
|
public long getFlgIcecatAuto() {
|
|
return this.flgIcecatAuto;
|
|
}
|
|
|
|
public void setFlgIcecatAuto(long flgIcecatAuto) {
|
|
this.flgIcecatAuto = flgIcecatAuto;
|
|
}
|
|
|
|
public String getCCTagH1Web(String lang) {
|
|
StringBuilder temp = new StringBuilder();
|
|
if (!getSearchTxtWeb().isEmpty()) {
|
|
temp.append(" ");
|
|
temp.append(getTipoSel().translate("cerca per", lang));
|
|
temp.append(" ");
|
|
temp.append(getSearchTxtWeb());
|
|
}
|
|
if (getId_tipoSel() > 0L) {
|
|
temp.append(" ");
|
|
temp.append(getTipoSel().getTagH1Web(lang));
|
|
}
|
|
if (!getId_marche().isEmpty()) {
|
|
StringTokenizer st = new StringTokenizer(getId_marche(), ",");
|
|
Marca marca = new Marca(getApFull());
|
|
if (getId_tipoSel() == 0L && st.countToken() == 1) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
temp.append(" ");
|
|
temp.append(marca.getCCTagH1(lang));
|
|
} else {
|
|
while (st.hasMoreTokens()) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
if (marca.getId_marca() > 0L) {
|
|
temp.append(" ");
|
|
temp.append(marca.getDescrizione());
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (getFlgDisponibile() == 1L) {
|
|
temp.append(" ");
|
|
temp.append(getTipoSel().translate("disponibili", lang));
|
|
}
|
|
return temp.toString();
|
|
}
|
|
|
|
public String getCCTagH2Web(String lang) {
|
|
StringBuilder temp = new StringBuilder();
|
|
if (getId_tipoSel() > 0L) {
|
|
temp.append(" ");
|
|
temp.append(getTipoSel().getTagH2(lang));
|
|
} else if (!getId_marche().isEmpty()) {
|
|
StringTokenizer st = new StringTokenizer(getId_marche(), ",");
|
|
Marca marca = new Marca(getApFull());
|
|
if (getId_tipoSel() == 0L && st.countToken() == 1) {
|
|
long token = Long.parseLong(st.nextToken());
|
|
marca.findByPrimaryKey(token);
|
|
temp.append(" ");
|
|
temp.append(marca.getCCTagH2(lang));
|
|
}
|
|
}
|
|
return temp.toString();
|
|
}
|
|
|
|
public String getCountGgNoImportDaA() {
|
|
return (this.countGgNoImportDaA == null) ? "0,0" : this.countGgNoImportDaA.trim();
|
|
}
|
|
|
|
public void setCountGgNoImportDaA(String l_countGgNoImportDaA) {
|
|
if (l_countGgNoImportDaA == null) {
|
|
this.countGgNoImportDaA = "0,0";
|
|
setCountGgNoImportDa(0L);
|
|
setCountGgNoImportA(0L);
|
|
} else {
|
|
StringTokenizer st = new StringTokenizer(l_countGgNoImportDaA, ",");
|
|
if (st.hasMoreTokens()) {
|
|
String l_da = st.nextToken();
|
|
if (StringUtils.isNumeric(l_da)) {
|
|
setCountGgNoImportDa(Long.parseLong(l_da));
|
|
} else {
|
|
setCountGgNoImportDa(0L);
|
|
}
|
|
}
|
|
if (st.hasMoreTokens()) {
|
|
String l_a = st.nextToken();
|
|
if (StringUtils.isNumeric(l_a)) {
|
|
setCountGgNoImportA(Long.parseLong(l_a));
|
|
} else {
|
|
setCountGgNoImportA(0L);
|
|
}
|
|
}
|
|
this.countGgNoImportDaA = "" + getCountGgNoImportDa() + "," + getCountGgNoImportDa();
|
|
}
|
|
}
|
|
|
|
public long getCountGgNoImportDa() {
|
|
return this.countGgNoImportDa;
|
|
}
|
|
|
|
public void setCountGgNoImportDa(long countGgNoImportDa) {
|
|
this.countGgNoImportDa = countGgNoImportDa;
|
|
}
|
|
|
|
public long getCountGgNoImportA() {
|
|
return this.countGgNoImportA;
|
|
}
|
|
|
|
public void setCountGgNoImportA(long countGgNoImportA) {
|
|
this.countGgNoImportA = countGgNoImportA;
|
|
}
|
|
|
|
public String getFileNameMs() {
|
|
return (this.fileNameMs == null) ? AB_EMPTY_STRING : this.fileNameMs.trim();
|
|
}
|
|
|
|
public void setFileNameMs(String fileNameMs) {
|
|
this.fileNameMs = fileNameMs;
|
|
}
|
|
|
|
public long getFlgPriceTypeAmz() {
|
|
return this.flgPriceTypeAmz;
|
|
}
|
|
|
|
public void setFlgPriceTypeAmz(long flgPriceTypeAmz) {
|
|
this.flgPriceTypeAmz = flgPriceTypeAmz;
|
|
}
|
|
|
|
public long getFlgAmzWarn() {
|
|
return this.flgAmzWarn;
|
|
}
|
|
|
|
public void setFlgAmzWarn(long flgAmzWarn) {
|
|
this.flgAmzWarn = flgAmzWarn;
|
|
}
|
|
|
|
public long getFlgAmzFeaturedPriceData() {
|
|
return this.flgAmzFeaturedPriceData;
|
|
}
|
|
|
|
public void setFlgAmzFeaturedPriceData(long flgAmzFeaturedPrice) {
|
|
this.flgAmzFeaturedPriceData = flgAmzFeaturedPrice;
|
|
}
|
|
|
|
public long getFlgPrezzoCompetitivo() {
|
|
return this.flgPrezzoCompetitivo;
|
|
}
|
|
|
|
public void setFlgPrezzoCompetitivo(long flgPrezzoCompetitivo) {
|
|
this.flgPrezzoCompetitivo = flgPrezzoCompetitivo;
|
|
}
|
|
|
|
public long getFlgAsinAmzNull() {
|
|
return this.flgAsinAmzNull;
|
|
}
|
|
|
|
public void setFlgAsinAmzNull(long flgAsinAmzNull) {
|
|
this.flgAsinAmzNull = flgAsinAmzNull;
|
|
}
|
|
}
|