first commit
This commit is contained in:
commit
4d332ef662
27586 changed files with 3281783 additions and 0 deletions
|
|
@ -0,0 +1,71 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.db.WcString;
|
||||
import com.ablia.util.StringTokenizer;
|
||||
import com.ablia.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class CategoriaOpzione extends DBAdapter implements Serializable {
|
||||
private long id_categoriaOpzione;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
public CategoriaOpzione(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public CategoriaOpzione() {}
|
||||
|
||||
public void setId_categoriaOpzione(long newId_categoriaOpzione) {
|
||||
this.id_categoriaOpzione = newId_categoriaOpzione;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public long getId_categoriaOpzione() {
|
||||
return this.id_categoriaOpzione;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
||||
}
|
||||
|
||||
protected ResParm checkDeleteCascade() {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator findByCR(CategoriaOpzioneCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from CATEGORIA_OPZIONE AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(), " ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.Cognome like '%" + token + "%' or A.Nome like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.CRAdapter;
|
||||
|
||||
public class CategoriaOpzioneCR extends CRAdapter {
|
||||
private long id_categoriaOpzione;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
public CategoriaOpzioneCR(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public CategoriaOpzioneCR() {}
|
||||
|
||||
public void setId_categoriaOpzione(long newId_categoriaOpzione) {
|
||||
this.id_categoriaOpzione = newId_categoriaOpzione;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public long getId_categoriaOpzione() {
|
||||
return this.id_categoriaOpzione;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
||||
}
|
||||
}
|
||||
373
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/Opzione.java
Normal file
373
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/Opzione.java
Normal file
|
|
@ -0,0 +1,373 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.db.WcString;
|
||||
import com.ablia.util.StringTokenizer;
|
||||
import com.ablia.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.net.URLEncoder;
|
||||
import java.sql.Date;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Opzione extends DBAdapter implements Serializable {
|
||||
private long id_opzione;
|
||||
|
||||
private long flgTipoOpzione;
|
||||
|
||||
private long flgFM = -1L;
|
||||
|
||||
private long flgPA = -1L;
|
||||
|
||||
private long flgAR = -1L;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String titolo;
|
||||
|
||||
private String sottotitolo;
|
||||
|
||||
private String costo;
|
||||
|
||||
private String costoScontato;
|
||||
|
||||
private String descrizioneSconto;
|
||||
|
||||
private Date dataScadenza;
|
||||
|
||||
private String descrizioneCompatibilita;
|
||||
|
||||
private long id_categoriaOpzione;
|
||||
|
||||
private CategoriaOpzione categoriaOpzione;
|
||||
|
||||
public Opzione(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public Opzione() {}
|
||||
|
||||
public void setId_opzione(long newId_opzione) {
|
||||
this.id_opzione = newId_opzione;
|
||||
}
|
||||
|
||||
public void setFlgTipoOpzione(long newFlgTipoOpzione) {
|
||||
this.flgTipoOpzione = newFlgTipoOpzione;
|
||||
}
|
||||
|
||||
public void setFlgFM(long newFlgFM) {
|
||||
this.flgFM = newFlgFM;
|
||||
}
|
||||
|
||||
public void setFlgPA(long newFlgPA) {
|
||||
this.flgPA = newFlgPA;
|
||||
}
|
||||
|
||||
public void setFlgAR(long newFlgAR) {
|
||||
this.flgAR = newFlgAR;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public void setTitolo(String newTitlo) {
|
||||
this.titolo = newTitlo;
|
||||
}
|
||||
|
||||
public void setSottotitolo(String newSottotitolo) {
|
||||
this.sottotitolo = newSottotitolo;
|
||||
}
|
||||
|
||||
public void setCosto(String newCosto) {
|
||||
this.costo = newCosto;
|
||||
}
|
||||
|
||||
public void setCostoScontato(String newCostoScontato) {
|
||||
this.costoScontato = newCostoScontato;
|
||||
}
|
||||
|
||||
public void setDescrizioneSconto(String newDescrizioneSconto) {
|
||||
this.descrizioneSconto = newDescrizioneSconto;
|
||||
}
|
||||
|
||||
public void setDataScadenza(Date newDataScadenza) {
|
||||
this.dataScadenza = newDataScadenza;
|
||||
}
|
||||
|
||||
public void setDescrizioneCompatibilita(String newDescrizioneCompatibilita) {
|
||||
this.descrizioneCompatibilita = newDescrizioneCompatibilita;
|
||||
}
|
||||
|
||||
public void setId_categoriaOpzione(long newId_categoriaOpzione) {
|
||||
this.id_categoriaOpzione = newId_categoriaOpzione;
|
||||
setCategoriaOpzione(null);
|
||||
}
|
||||
|
||||
public long getId_opzione() {
|
||||
return this.id_opzione;
|
||||
}
|
||||
|
||||
public long getFlgTipoOpzione() {
|
||||
return this.flgTipoOpzione;
|
||||
}
|
||||
|
||||
public long getFlgFM() {
|
||||
return this.flgFM;
|
||||
}
|
||||
|
||||
public long getFlgPA() {
|
||||
return this.flgPA;
|
||||
}
|
||||
|
||||
public long getFlgAR() {
|
||||
return this.flgAR;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" :
|
||||
this.descrizione.trim();
|
||||
}
|
||||
|
||||
public String getTitolo() {
|
||||
return (this.titolo == null) ? "" : this.titolo.trim();
|
||||
}
|
||||
|
||||
public String getSottotitolo() {
|
||||
return (this.sottotitolo == null) ? "" :
|
||||
this.sottotitolo.trim();
|
||||
}
|
||||
|
||||
public String getCosto() {
|
||||
return (this.costo == null) ? "" : this.costo.trim();
|
||||
}
|
||||
|
||||
public String getCostoScontato() {
|
||||
return (this.costoScontato == null) ? "" :
|
||||
this.costoScontato.trim();
|
||||
}
|
||||
|
||||
public String getDescrizioneSconto() {
|
||||
return (this.descrizioneSconto == null) ? "" :
|
||||
this.descrizioneSconto.trim();
|
||||
}
|
||||
|
||||
public Date getDataScadenza() {
|
||||
return this.dataScadenza;
|
||||
}
|
||||
|
||||
public String getDescrizioneCompatibilita() {
|
||||
return (this.descrizioneCompatibilita == null) ? "" :
|
||||
this.descrizioneCompatibilita.trim();
|
||||
}
|
||||
|
||||
public long getId_categoriaOpzione() {
|
||||
return this.id_categoriaOpzione;
|
||||
}
|
||||
|
||||
public void setCategoriaOpzione(CategoriaOpzione newCategoriaOpzione) {
|
||||
this.categoriaOpzione = newCategoriaOpzione;
|
||||
}
|
||||
|
||||
public CategoriaOpzione getCategoriaOpzione() {
|
||||
this.categoriaOpzione = (CategoriaOpzione)getSecondaryObject(
|
||||
this.categoriaOpzione, CategoriaOpzione.class,
|
||||
getId_categoriaOpzione());
|
||||
return this.categoriaOpzione;
|
||||
}
|
||||
|
||||
protected ResParm checkDeleteCascade() {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator findByCR(OpzioneCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE AS A, CATEGORIA_OPZIONE AS B";
|
||||
String s_Sql_Order = " ORDER BY B.descrizione";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_categoriaOpzione=B.id_categoriaOpzione");
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(),
|
||||
" ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.titolo like '%" + token +
|
||||
"%' or A.sottoTitolo like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
if (CR.getFlgAR() == 0L) {
|
||||
wc.addWc("(A.flgAR is null or A.flgAR=0)");
|
||||
} else if (CR.getFlgAR() > 0L) {
|
||||
wc.addWc("A.flgAR =" + CR.getFlgAR());
|
||||
}
|
||||
if (CR.getFlgFM() == 0L) {
|
||||
wc.addWc("(A.flgFM is null or A.flgFM=0)");
|
||||
} else if (CR.getFlgFM() > 0L) {
|
||||
wc.addWc("A.flgFM =" + CR.getFlgFM());
|
||||
}
|
||||
if (CR.getFlgPA() == 0L) {
|
||||
wc.addWc("(A.flgPA is null or A.flgPA=0)");
|
||||
} else if (CR.getFlgPA() > 0L) {
|
||||
wc.addWc("A.flgPA =" + CR.getFlgPA());
|
||||
}
|
||||
if (CR.getFlgTipoOpzione() == 0L) {
|
||||
wc.addWc("(A.flgTipoOpzione is null or A.flgTipoOpzione=0)");
|
||||
} else if (CR.getFlgTipoOpzione() > 0L) {
|
||||
wc.addWc("A.flgTipoOpzione =" + CR.getFlgTipoOpzione());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public ResParm addOpzioneArticolo(OpzioneArticolo row) {
|
||||
OpzioneArticolo bean = new OpzioneArticolo(getApFull());
|
||||
if (row.getId_opzioneArticolo() != 0L) {
|
||||
bean.findByPrimaryKey(row.getId_opzioneArticolo());
|
||||
} else {
|
||||
bean.findById_articoloId_opzione(row.getId_articolo(),
|
||||
row.getId_opzione());
|
||||
}
|
||||
if (bean.getDBState() == 1) {
|
||||
row.setDBState(bean.getDBState());
|
||||
row.setId_opzioneArticolo(bean.getId_opzioneArticolo());
|
||||
}
|
||||
ResParm rp = row.save();
|
||||
return rp;
|
||||
}
|
||||
|
||||
public ResParm delOpzioneArticolo(OpzioneArticolo row) {
|
||||
OpzioneArticolo bean = new OpzioneArticolo(getApFull());
|
||||
bean.findByPrimaryKey(row.getId_opzioneArticolo());
|
||||
return bean.delete();
|
||||
}
|
||||
|
||||
public Vectumerator getOpzioniArticoli() {
|
||||
return new OpzioneArticolo(getApFull()).findById_opzione(getId_opzione());
|
||||
}
|
||||
|
||||
public String getAR() {
|
||||
return Tariffa.getAR(getFlgAR());
|
||||
}
|
||||
|
||||
public String getFM() {
|
||||
return Tariffa.getFM(getFlgFM());
|
||||
}
|
||||
|
||||
public String getPA() {
|
||||
return Tariffa.getPA(getFlgPA());
|
||||
}
|
||||
|
||||
public static String getTipoOpzione(long l_flgTipoOpzione) {
|
||||
if (l_flgTipoOpzione == 0L)
|
||||
return "Tariffa";
|
||||
if (l_flgTipoOpzione == 1L)
|
||||
return "Tel. Associati";
|
||||
return "??";
|
||||
}
|
||||
|
||||
public String getTipoOpzione() {
|
||||
return getTipoOpzione(getFlgTipoOpzione());
|
||||
}
|
||||
|
||||
public Vectumerator findWebByCR(OpzioneCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE AS A , CATEGORIA_OPZIONE AS B";
|
||||
String s_Sql_Order = " ORDER BY B.descrizione";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_categoriaOpzione=B.id_categoriaOpzione");
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(),
|
||||
" ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.titolo like '%" + token +
|
||||
"%' or A.sottoTitolo like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
if (CR.getFlgAR() == 0L) {
|
||||
wc.addWc("(A.flgAR is null or A.flgAR=0 or A.flgAR=2)");
|
||||
} else if (CR.getFlgAR() == 1L) {
|
||||
wc.addWc("(A.flgAR =1 or A.flgAR=2)");
|
||||
}
|
||||
if (CR.getFlgFM() == 0L) {
|
||||
wc.addWc("(A.flgFM is null or A.flgFM=0)");
|
||||
} else if (CR.getFlgFM() > 0L) {
|
||||
wc.addWc("A.flgFM =" + CR.getFlgFM());
|
||||
}
|
||||
if (CR.getFlgPA() == 0L) {
|
||||
wc.addWc("(A.flgPA is null or A.flgPA=0)");
|
||||
} else if (CR.getFlgPA() > 0L) {
|
||||
wc.addWc("A.flgPA =" + CR.getFlgPA());
|
||||
}
|
||||
if (CR.getFlgTipoOpzione() == 0L) {
|
||||
wc.addWc("(A.flgTipoOpzione is null or A.flgTipoOpzione=0)");
|
||||
} else if (CR.getFlgTipoOpzione() > 0L) {
|
||||
wc.addWc("A.flgTipoOpzione =" + CR.getFlgTipoOpzione());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public Vectumerator findByTariffa(long l_id_tariffa, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE AS A , CATEGORIA_OPZIONE AS B";
|
||||
String s_Sql_Order = " ORDER BY B.descrizione";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_categoriaOpzione=B.id_categoriaOpzione");
|
||||
wc.addWc("A.id_tariffa =" + l_id_tariffa);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public Vectumerator getTariffe(int pageNumber, int pageRows) {
|
||||
TariffaCR CR = new TariffaCR();
|
||||
CR.setFlgAR(getFlgAR());
|
||||
CR.setFlgFM(getFlgFM());
|
||||
CR.setFlgPA(getFlgPA());
|
||||
return new Tariffa(getApFull()).findWebByCR(CR, 0, 0);
|
||||
}
|
||||
|
||||
public String getTitoloUrl() {
|
||||
try {
|
||||
return URLEncoder.encode(getTitolo().replace("/", "-"), "utf-8");
|
||||
} catch (Exception e) {
|
||||
return getTitolo();
|
||||
}
|
||||
}
|
||||
|
||||
protected int getStringValueCase(String l_columnName) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,170 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.art.Articolo;
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.db.WcString;
|
||||
import com.ablia.util.StringTokenizer;
|
||||
import com.ablia.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class OpzioneArticolo extends DBAdapter implements Serializable {
|
||||
private long id_opzioneArticolo;
|
||||
|
||||
private long id_opzione;
|
||||
|
||||
private String descrizioneOA;
|
||||
|
||||
private long id_articolo;
|
||||
|
||||
private Opzione opzione;
|
||||
|
||||
private Articolo articolo;
|
||||
|
||||
public OpzioneArticolo(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public OpzioneArticolo() {}
|
||||
|
||||
public void setId_opzioneArticolo(long newId_opzioneArticolo) {
|
||||
this.id_opzioneArticolo = newId_opzioneArticolo;
|
||||
}
|
||||
|
||||
public void setId_opzione(long newId_opzione) {
|
||||
this.id_opzione = newId_opzione;
|
||||
setOpzione(null);
|
||||
}
|
||||
|
||||
public void setDescrizioneOA(String newDescrizioneTO) {
|
||||
this.descrizioneOA = newDescrizioneTO;
|
||||
}
|
||||
|
||||
public long getId_opzioneArticolo() {
|
||||
return this.id_opzioneArticolo;
|
||||
}
|
||||
|
||||
public long getId_opzione() {
|
||||
return this.id_opzione;
|
||||
}
|
||||
|
||||
public String getDescrizioneOA() {
|
||||
return (this.descrizioneOA == null) ? "" :
|
||||
this.descrizioneOA.trim();
|
||||
}
|
||||
|
||||
public void setOpzione(Opzione newOpzione) {
|
||||
this.opzione = newOpzione;
|
||||
}
|
||||
|
||||
public Opzione getOpzione() {
|
||||
this.opzione = (Opzione)getSecondaryObject(this.opzione, Opzione.class,
|
||||
getId_opzione());
|
||||
return this.opzione;
|
||||
}
|
||||
|
||||
public void setArticolo(Articolo newArticolo) {
|
||||
this.articolo = newArticolo;
|
||||
}
|
||||
|
||||
public Articolo getArticolo() {
|
||||
this.articolo = (Articolo)getSecondaryObject(this.articolo, Articolo.class,
|
||||
getId_articolo());
|
||||
return this.articolo;
|
||||
}
|
||||
|
||||
protected ResParm checkDeleteCascade() {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator findByCR(OpzioneArticoloCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE_ARTICOLO AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(),
|
||||
" ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.Cognome like '%" + token +
|
||||
"%' or A.Nome like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public void findById_articoloId_opzione(long l_id_articolo, long l_id_opzione) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE_ARTICOLO AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_articolo=" + l_id_articolo);
|
||||
wc.addWc("A.id_opzione=" + l_id_opzione);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
findFirstRecord(stmt);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
}
|
||||
}
|
||||
|
||||
public long getId_articolo() {
|
||||
return this.id_articolo;
|
||||
}
|
||||
|
||||
public void setId_articolo(long id_articolo) {
|
||||
this.id_articolo = id_articolo;
|
||||
setArticolo(null);
|
||||
}
|
||||
|
||||
public Vectumerator findById_opzione(long l_id_opzione) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE_ARTICOLO AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_opzione=" + l_id_opzione);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public Vectumerator findById_articolo(long l_id_articolo) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from OPZIONE_ARTICOLO AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_articolo=" + l_id_articolo);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,81 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.art.Articolo;
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.CRAdapter;
|
||||
|
||||
public class OpzioneArticoloCR extends CRAdapter {
|
||||
private long id_opzioneArticolo;
|
||||
|
||||
private long id_opzione;
|
||||
|
||||
private String descrizioneOA;
|
||||
|
||||
private Opzione opzione;
|
||||
|
||||
private Articolo articolo;
|
||||
|
||||
private long id_articolo;
|
||||
|
||||
public OpzioneArticoloCR(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public OpzioneArticoloCR() {}
|
||||
|
||||
public void setId_opzioneArticolo(long newId_opzioneArticolo) {
|
||||
this.id_opzioneArticolo = newId_opzioneArticolo;
|
||||
}
|
||||
|
||||
public void setId_opzione(long newId_opzione) {
|
||||
this.id_opzione = newId_opzione;
|
||||
setOpzione(null);
|
||||
}
|
||||
|
||||
public void setDescrizioneOA(String newDescrizioneTO) {
|
||||
this.descrizioneOA = newDescrizioneTO;
|
||||
}
|
||||
|
||||
public long getId_opzioneArticolo() {
|
||||
return this.id_opzioneArticolo;
|
||||
}
|
||||
|
||||
public long getId_opzione() {
|
||||
return this.id_opzione;
|
||||
}
|
||||
|
||||
public String getDescrizioneOA() {
|
||||
return (this.descrizioneOA == null) ? "" : this.descrizioneOA.trim();
|
||||
}
|
||||
|
||||
public void setOpzione(Opzione newOpzione) {
|
||||
this.opzione = newOpzione;
|
||||
}
|
||||
|
||||
public Opzione getOpzione() {
|
||||
this.opzione = (Opzione)getSecondaryObject(
|
||||
this.opzione,
|
||||
Opzione.class, getId_opzione());
|
||||
return this.opzione;
|
||||
}
|
||||
|
||||
public void setArticolo(Articolo newArticolo) {
|
||||
this.articolo = newArticolo;
|
||||
}
|
||||
|
||||
public Articolo getArticolo() {
|
||||
this.articolo = (Articolo)getSecondaryObject(
|
||||
this.articolo,
|
||||
Articolo.class, getId_articolo());
|
||||
return this.articolo;
|
||||
}
|
||||
|
||||
public long getId_articolo() {
|
||||
return this.id_articolo;
|
||||
}
|
||||
|
||||
public void setId_articolo(long id_articolo) {
|
||||
this.id_articolo = id_articolo;
|
||||
setArticolo(null);
|
||||
}
|
||||
}
|
||||
187
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/OpzioneCR.java
Normal file
187
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/OpzioneCR.java
Normal file
|
|
@ -0,0 +1,187 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.CRAdapter;
|
||||
import java.sql.Date;
|
||||
|
||||
public class OpzioneCR extends CRAdapter {
|
||||
private long id_opzione;
|
||||
|
||||
private long flgTipoOpzione = -1L;
|
||||
|
||||
private long flgFM = -1L;
|
||||
|
||||
private long flgPA = -1L;
|
||||
|
||||
private long flgAR = -1L;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String titlo;
|
||||
|
||||
private String sottotitolo;
|
||||
|
||||
private String costo;
|
||||
|
||||
private String costoScontato;
|
||||
|
||||
private String descrizioneSconto;
|
||||
|
||||
private Date dataScadenza;
|
||||
|
||||
private String descrizioneCompatibilita;
|
||||
|
||||
private long id_categoriaOpzione;
|
||||
|
||||
private CategoriaOpzione categoriaOpzione;
|
||||
|
||||
private Date dataScadenzaDa;
|
||||
|
||||
private Date dataScadenzaA;
|
||||
|
||||
public OpzioneCR(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public OpzioneCR() {}
|
||||
|
||||
public void setId_opzione(long newId_opzione) {
|
||||
this.id_opzione = newId_opzione;
|
||||
}
|
||||
|
||||
public void setFlgTipoOpzione(long newFlgTipoOpzione) {
|
||||
this.flgTipoOpzione = newFlgTipoOpzione;
|
||||
}
|
||||
|
||||
public void setFlgFM(long newFlgFM) {
|
||||
this.flgFM = newFlgFM;
|
||||
}
|
||||
|
||||
public void setFlgPA(long newFlgPA) {
|
||||
this.flgPA = newFlgPA;
|
||||
}
|
||||
|
||||
public void setFlgAR(long newFlgAR) {
|
||||
this.flgAR = newFlgAR;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public void setTitlo(String newTitlo) {
|
||||
this.titlo = newTitlo;
|
||||
}
|
||||
|
||||
public void setSottotitolo(String newSottotitolo) {
|
||||
this.sottotitolo = newSottotitolo;
|
||||
}
|
||||
|
||||
public void setCosto(String newCosto) {
|
||||
this.costo = newCosto;
|
||||
}
|
||||
|
||||
public void setCostoScontato(String newCostoScontato) {
|
||||
this.costoScontato = newCostoScontato;
|
||||
}
|
||||
|
||||
public void setDescrizioneSconto(String newDescrizioneSconto) {
|
||||
this.descrizioneSconto = newDescrizioneSconto;
|
||||
}
|
||||
|
||||
public void setDataScadenza(Date newDataScadenza) {
|
||||
this.dataScadenza = newDataScadenza;
|
||||
}
|
||||
|
||||
public void setDescrizioneCompatibilita(String newDescrizioneCompatibilita) {
|
||||
this.descrizioneCompatibilita = newDescrizioneCompatibilita;
|
||||
}
|
||||
|
||||
public void setId_categoriaOpzione(long newId_categoriaOpzione) {
|
||||
this.id_categoriaOpzione = newId_categoriaOpzione;
|
||||
setCategoriaOpzione(null);
|
||||
}
|
||||
|
||||
public long getId_opzione() {
|
||||
return this.id_opzione;
|
||||
}
|
||||
|
||||
public long getFlgTipoOpzione() {
|
||||
return this.flgTipoOpzione;
|
||||
}
|
||||
|
||||
public long getFlgFM() {
|
||||
return this.flgFM;
|
||||
}
|
||||
|
||||
public long getFlgPA() {
|
||||
return this.flgPA;
|
||||
}
|
||||
|
||||
public long getFlgAR() {
|
||||
return this.flgAR;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" : this.descrizione.trim();
|
||||
}
|
||||
|
||||
public String getTitlo() {
|
||||
return (this.titlo == null) ? "" : this.titlo.trim();
|
||||
}
|
||||
|
||||
public String getSottotitolo() {
|
||||
return (this.sottotitolo == null) ? "" : this.sottotitolo.trim();
|
||||
}
|
||||
|
||||
public String getCosto() {
|
||||
return (this.costo == null) ? "" : this.costo.trim();
|
||||
}
|
||||
|
||||
public String getCostoScontato() {
|
||||
return (this.costoScontato == null) ? "" : this.costoScontato.trim();
|
||||
}
|
||||
|
||||
public String getDescrizioneSconto() {
|
||||
return (this.descrizioneSconto == null) ? "" : this.descrizioneSconto.trim();
|
||||
}
|
||||
|
||||
public Date getDataScadenza() {
|
||||
return this.dataScadenza;
|
||||
}
|
||||
|
||||
public String getDescrizioneCompatibilita() {
|
||||
return (this.descrizioneCompatibilita == null) ? "" : this.descrizioneCompatibilita.trim();
|
||||
}
|
||||
|
||||
public long getId_categoriaOpzione() {
|
||||
return this.id_categoriaOpzione;
|
||||
}
|
||||
|
||||
public void setCategoriaOpzione(CategoriaOpzione newCategoriaOpzione) {
|
||||
this.categoriaOpzione = newCategoriaOpzione;
|
||||
}
|
||||
|
||||
public CategoriaOpzione getCategoriaOpzione() {
|
||||
this.categoriaOpzione = (CategoriaOpzione)getSecondaryObject(
|
||||
this.categoriaOpzione,
|
||||
CategoriaOpzione.class, getId_categoriaOpzione());
|
||||
return this.categoriaOpzione;
|
||||
}
|
||||
|
||||
public Date getDataScadenzaDa() {
|
||||
return this.dataScadenzaDa;
|
||||
}
|
||||
|
||||
public void setDataScadenzaDa(Date dataScadenzaDa) {
|
||||
this.dataScadenzaDa = dataScadenzaDa;
|
||||
}
|
||||
|
||||
public Date getDataScadenzaA() {
|
||||
return this.dataScadenzaA;
|
||||
}
|
||||
|
||||
public void setDataScadenzaA(Date dataScadenzaA) {
|
||||
this.dataScadenzaA = dataScadenzaA;
|
||||
}
|
||||
}
|
||||
296
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/Tariffa.java
Normal file
296
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/Tariffa.java
Normal file
|
|
@ -0,0 +1,296 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.db.WcString;
|
||||
import com.ablia.util.StringTokenizer;
|
||||
import com.ablia.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.net.URLEncoder;
|
||||
import java.sql.Date;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class Tariffa extends DBAdapter implements Serializable {
|
||||
private long id_tariffa;
|
||||
|
||||
private long flgFM;
|
||||
|
||||
private long flgPA;
|
||||
|
||||
private long flgAR;
|
||||
|
||||
private long flgTablet;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String titolo;
|
||||
|
||||
private String sottotitolo;
|
||||
|
||||
private String costo;
|
||||
|
||||
private String costoScontato;
|
||||
|
||||
private String descrizioneSconto;
|
||||
|
||||
private Date dataScadenza;
|
||||
|
||||
public Tariffa(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public Tariffa() {}
|
||||
|
||||
public void setId_tariffa(long newId_tipoTariffa) {
|
||||
this.id_tariffa = newId_tipoTariffa;
|
||||
}
|
||||
|
||||
public void setFlgFM(long newFlgFM) {
|
||||
this.flgFM = newFlgFM;
|
||||
}
|
||||
|
||||
public void setFlgPA(long newFlgPA) {
|
||||
this.flgPA = newFlgPA;
|
||||
}
|
||||
|
||||
public void setFlgAR(long newFlgAR) {
|
||||
this.flgAR = newFlgAR;
|
||||
}
|
||||
|
||||
public void setFlgTablet(long newFlgTablet) {
|
||||
this.flgTablet = newFlgTablet;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public void setTitolo(String newTitolo) {
|
||||
this.titolo = newTitolo;
|
||||
}
|
||||
|
||||
public void setSottotitolo(String newSottotitolo) {
|
||||
this.sottotitolo = newSottotitolo;
|
||||
}
|
||||
|
||||
public void setCosto(String newCosto) {
|
||||
this.costo = newCosto;
|
||||
}
|
||||
|
||||
public void setCostoScontato(String newCostoScontato) {
|
||||
this.costoScontato = newCostoScontato;
|
||||
}
|
||||
|
||||
public void setDescrizioneSconto(String newDescrizioneSconto) {
|
||||
this.descrizioneSconto = newDescrizioneSconto;
|
||||
}
|
||||
|
||||
public void setDataScadenza(Date newDataScadenza) {
|
||||
this.dataScadenza = newDataScadenza;
|
||||
}
|
||||
|
||||
public long getId_tariffa() {
|
||||
return this.id_tariffa;
|
||||
}
|
||||
|
||||
public long getFlgFM() {
|
||||
return this.flgFM;
|
||||
}
|
||||
|
||||
public long getFlgPA() {
|
||||
return this.flgPA;
|
||||
}
|
||||
|
||||
public long getFlgAR() {
|
||||
return this.flgAR;
|
||||
}
|
||||
|
||||
public long getFlgTablet() {
|
||||
return this.flgTablet;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" :
|
||||
this.descrizione.trim();
|
||||
}
|
||||
|
||||
public String getTitolo() {
|
||||
return (this.titolo == null) ? "" : this.titolo.trim();
|
||||
}
|
||||
|
||||
public String getSottotitolo() {
|
||||
return (this.sottotitolo == null) ? "" :
|
||||
this.sottotitolo.trim();
|
||||
}
|
||||
|
||||
public String getCosto() {
|
||||
return (this.costo == null) ? "" : this.costo.trim();
|
||||
}
|
||||
|
||||
public String getCostoScontato() {
|
||||
return (this.costoScontato == null) ? "" :
|
||||
this.costoScontato.trim();
|
||||
}
|
||||
|
||||
public String getDescrizioneSconto() {
|
||||
return (this.descrizioneSconto == null) ? "" :
|
||||
this.descrizioneSconto.trim();
|
||||
}
|
||||
|
||||
public Date getDataScadenza() {
|
||||
return this.dataScadenza;
|
||||
}
|
||||
|
||||
protected ResParm checkDeleteCascade() {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator getOpzioni(int pageNumber, int pageRows) {
|
||||
OpzioneCR CR = new OpzioneCR();
|
||||
CR.setFlgAR(getFlgAR());
|
||||
CR.setFlgFM(getFlgFM());
|
||||
CR.setFlgPA(getFlgPA());
|
||||
return new Opzione(getApFull()).findWebByCR(CR, 0, 0);
|
||||
}
|
||||
|
||||
public static String getAR(long l_flgAR) {
|
||||
if (l_flgAR == 0L)
|
||||
return "Abbonamento";
|
||||
if (l_flgAR == 1L)
|
||||
return "Ricaricabile";
|
||||
if (l_flgAR == 2L)
|
||||
return "Abb. e Ric.";
|
||||
return "??";
|
||||
}
|
||||
|
||||
public static String getPA(long l_flgPA) {
|
||||
if (l_flgPA == 0L)
|
||||
return "Privati";
|
||||
if (l_flgPA == 1L)
|
||||
return "Aziende";
|
||||
return "??";
|
||||
}
|
||||
|
||||
public String getAR() {
|
||||
return getAR(getFlgAR());
|
||||
}
|
||||
|
||||
public String getFM() {
|
||||
return getFM(getFlgFM());
|
||||
}
|
||||
|
||||
public String getPA() {
|
||||
return getPA(getFlgPA());
|
||||
}
|
||||
|
||||
public Vectumerator findWebByCR(TariffaCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from TARIFFA AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
if (!CR.getSearchTxt().trim().isEmpty()) {
|
||||
StringTokenizer st = new StringTokenizer(CR.getSearchTxt().trim(),
|
||||
" ");
|
||||
StringBuffer txt = new StringBuffer("(");
|
||||
while (st.hasMoreTokens()) {
|
||||
String token = st.nextToken();
|
||||
txt.append("(A.titolo like '%" + token +
|
||||
"%' or A.sottoTitolo like '%" + token + "%')");
|
||||
if (st.hasMoreTokens())
|
||||
txt.append(" and ");
|
||||
}
|
||||
txt.append(")");
|
||||
wc.addWc(txt.toString());
|
||||
}
|
||||
if (CR.getFlgAR() == 0L) {
|
||||
wc.addWc("(A.flgAR is null or A.flgAR=0 or A.flgAR=2)");
|
||||
} else if (CR.getFlgAR() == 1L) {
|
||||
wc.addWc("(A.flgAR =1 or A.flgAR=2)");
|
||||
}
|
||||
if (CR.getFlgFM() == 0L) {
|
||||
wc.addWc("(A.flgFM is null or A.flgFM=0)");
|
||||
} else if (CR.getFlgFM() > 0L) {
|
||||
wc.addWc("A.flgFM =" + CR.getFlgFM());
|
||||
}
|
||||
if (CR.getFlgPA() == 0L) {
|
||||
wc.addWc("(A.flgPA is null or A.flgPA=0)");
|
||||
} else if (CR.getFlgPA() > 0L) {
|
||||
wc.addWc("A.flgPA =" + CR.getFlgPA());
|
||||
}
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public String getTitoloUrl() {
|
||||
try {
|
||||
return URLEncoder.encode(getTitolo().replace("/", "-"), "utf-8");
|
||||
} catch (Exception e) {
|
||||
return getTitolo();
|
||||
}
|
||||
}
|
||||
|
||||
public Vectumerator findByCR(TariffaCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select DISTINCT A.* from TARIFFA AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
if (CR.getFlgAR() == 0L) {
|
||||
wc.addWc("(A.flgAR is null or A.flgAR=0)");
|
||||
} else if (CR.getFlgAR() > 0L) {
|
||||
wc.addWc("A.flgAR =" + CR.getFlgAR());
|
||||
}
|
||||
if (CR.getFlgFM() == 0L) {
|
||||
wc.addWc("(A.flgFM is null or A.flgFM=0)");
|
||||
} else if (CR.getFlgFM() > 0L) {
|
||||
wc.addWc("A.flgFM =" + CR.getFlgFM());
|
||||
}
|
||||
if (CR.getFlgPA() == 0L) {
|
||||
wc.addWc("(A.flgPA is null or A.flgPA=0)");
|
||||
} else if (CR.getFlgPA() > 0L) {
|
||||
wc.addWc("A.flgPA =" + CR.getFlgPA());
|
||||
}
|
||||
if (CR.getDataScadenzaDa() != null)
|
||||
wc.addWc("A.dataScadenza>=?");
|
||||
if (CR.getDataScadenzaA() != null)
|
||||
wc.addWc("A.dataScadenza<=?");
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(
|
||||
String.valueOf(s_Sql_Find) + wc.toString() + s_Sql_Order);
|
||||
int dataCount = 0;
|
||||
if (CR.getDataScadenzaDa() != null) {
|
||||
dataCount++;
|
||||
stmt.setDate(dataCount, CR.getDataScadenzaDa());
|
||||
}
|
||||
if (CR.getDataScadenzaA() != null) {
|
||||
dataCount++;
|
||||
stmt.setDate(dataCount, CR.getDataScadenzaA());
|
||||
}
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public static String getFM(long l_flgFM) {
|
||||
if (l_flgFM == 0L)
|
||||
return "Mobile";
|
||||
if (l_flgFM == 1L)
|
||||
return "Fisso solo tel.";
|
||||
if (l_flgFM == 2L)
|
||||
return "Fisso tel+internet";
|
||||
if (l_flgFM == 3L)
|
||||
return "Internet e Tablet";
|
||||
return "??";
|
||||
}
|
||||
}
|
||||
169
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/TariffaCR.java
Normal file
169
rus/WEB-INF/lib/abliaDbCom_src/com/ablia/tarop/TariffaCR.java
Normal file
|
|
@ -0,0 +1,169 @@
|
|||
package com.ablia.tarop;
|
||||
|
||||
import com.ablia.db.ApplParmFull;
|
||||
import com.ablia.db.CRAdapter;
|
||||
import java.sql.Date;
|
||||
|
||||
public class TariffaCR extends CRAdapter {
|
||||
private long id_tariffa;
|
||||
|
||||
private long flgFM = -1L;
|
||||
|
||||
private long flgPA = -1L;
|
||||
|
||||
private long flgAR = -1L;
|
||||
|
||||
private long flgTablet = -1L;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String titolo;
|
||||
|
||||
private String sottotitolo;
|
||||
|
||||
private String costo;
|
||||
|
||||
private String costoScontato;
|
||||
|
||||
private String descrizioneSconto;
|
||||
|
||||
private Date dataScadenza;
|
||||
|
||||
private Date dataScadenzaA;
|
||||
|
||||
private Date dataScadenzaDa;
|
||||
|
||||
public TariffaCR(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public TariffaCR() {}
|
||||
|
||||
public void setId_tariffa(long newId_tipoTariffa) {
|
||||
this.id_tariffa = newId_tipoTariffa;
|
||||
}
|
||||
|
||||
public void setFlgFM(long newFlgFM) {
|
||||
this.flgFM = newFlgFM;
|
||||
}
|
||||
|
||||
public void setFlgPA(long newFlgPA) {
|
||||
this.flgPA = newFlgPA;
|
||||
}
|
||||
|
||||
public void setFlgAR(long newFlgAR) {
|
||||
this.flgAR = newFlgAR;
|
||||
}
|
||||
|
||||
public void setFlgTablet(long newFlgTablet) {
|
||||
this.flgTablet = newFlgTablet;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public void setTitolo(String newTitolo) {
|
||||
this.titolo = newTitolo;
|
||||
}
|
||||
|
||||
public void setSottotitolo(String newSottotitolo) {
|
||||
this.sottotitolo = newSottotitolo;
|
||||
}
|
||||
|
||||
public void setCosto(String newCosto) {
|
||||
this.costo = newCosto;
|
||||
}
|
||||
|
||||
public void setCostoScontato(String newCostoScontato) {
|
||||
this.costoScontato = newCostoScontato;
|
||||
}
|
||||
|
||||
public void setDescrizioneSconto(String newDescrizioneSconto) {
|
||||
this.descrizioneSconto = newDescrizioneSconto;
|
||||
}
|
||||
|
||||
public void setDataScadenza(Date newDataScadenza) {
|
||||
this.dataScadenza = newDataScadenza;
|
||||
}
|
||||
|
||||
public long getId_tariffa() {
|
||||
return this.id_tariffa;
|
||||
}
|
||||
|
||||
public long getFlgFM() {
|
||||
return this.flgFM;
|
||||
}
|
||||
|
||||
public long getFlgPA() {
|
||||
return this.flgPA;
|
||||
}
|
||||
|
||||
public long getFlgAR() {
|
||||
return this.flgAR;
|
||||
}
|
||||
|
||||
public long getFlgTablet() {
|
||||
return this.flgTablet;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" :
|
||||
this.descrizione.trim();
|
||||
}
|
||||
|
||||
public String getTitolo() {
|
||||
return (this.titolo == null) ? "" : this.titolo.trim();
|
||||
}
|
||||
|
||||
public String getSottotitolo() {
|
||||
return (this.sottotitolo == null) ? "" :
|
||||
this.sottotitolo.trim();
|
||||
}
|
||||
|
||||
public String getCosto() {
|
||||
return (this.costo == null) ? "" : this.costo.trim();
|
||||
}
|
||||
|
||||
public String getCostoScontato() {
|
||||
return (this.costoScontato == null) ? "" :
|
||||
this.costoScontato.trim();
|
||||
}
|
||||
|
||||
public String getDescrizioneSconto() {
|
||||
return (this.descrizioneSconto == null) ? "" :
|
||||
this.descrizioneSconto.trim();
|
||||
}
|
||||
|
||||
public Date getDataScadenza() {
|
||||
return this.dataScadenza;
|
||||
}
|
||||
|
||||
public Date getDataScadenzaA() {
|
||||
return this.dataScadenzaA;
|
||||
}
|
||||
|
||||
public void setDataScadenzaA(Date dataScadenzaA) {
|
||||
this.dataScadenzaA = dataScadenzaA;
|
||||
}
|
||||
|
||||
public Date getDataScadenzaDa() {
|
||||
return this.dataScadenzaDa;
|
||||
}
|
||||
|
||||
public void setDataScadenzaDa(Date dataScadenzaDa) {
|
||||
this.dataScadenzaDa = dataScadenzaDa;
|
||||
}
|
||||
|
||||
public String getAR() {
|
||||
return Tariffa.getAR(getFlgAR());
|
||||
}
|
||||
|
||||
public String getFM() {
|
||||
return Tariffa.getFM(getFlgFM());
|
||||
}
|
||||
|
||||
public String getPA() {
|
||||
return Tariffa.getPA(getFlgPA());
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,74 @@
|
|||
package com.ablia.tarop.servlet;
|
||||
|
||||
import com.ablia.db.CRAdapter;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.tarop.Opzione;
|
||||
import com.ablia.tarop.OpzioneCR;
|
||||
import com.ablia.tarop.Tariffa;
|
||||
import com.ablia.tarop.TariffaCR;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/Opzione.abl"})
|
||||
public class OpzioneSvlt extends _TaropSvlt {
|
||||
protected void fillComboAfterDetail(DBAdapter l_bean, HttpServletRequest req, HttpServletResponse res) {
|
||||
Opzione bean = (Opzione)l_bean;
|
||||
if (getCmd(req).equals("md")) {
|
||||
req.setAttribute("listaTariffaOpzioni", bean.getTariffe(0, 0));
|
||||
req.setAttribute("listaOpzioniTelefoni", bean.getOpzioniArticoli());
|
||||
}
|
||||
}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Opzione(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new OpzioneCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected String getCRAttribute(HttpServletRequest req) {
|
||||
return "CRT";
|
||||
}
|
||||
|
||||
protected void otherCommands(HttpServletRequest req, HttpServletResponse res) {
|
||||
String cmd = getCmd(req);
|
||||
if (cmd.equals("main")) {
|
||||
main(req, res);
|
||||
} else if (cmd.equals("detail")) {
|
||||
dettaglio(req, res);
|
||||
} else {
|
||||
search(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
protected void main(HttpServletRequest req, HttpServletResponse res) {
|
||||
forceJspPageRelative("tariffePromozioni.jsp", req);
|
||||
callJsp(req, res);
|
||||
}
|
||||
|
||||
protected void dettaglio(HttpServletRequest req, HttpServletResponse res) {
|
||||
try {
|
||||
setJspPageRelative("tariffaCR.jsp", req);
|
||||
TariffaCR CR = new TariffaCR(getApFull(req));
|
||||
fillObject(req, CR);
|
||||
req.setAttribute("CRT", CR);
|
||||
Tariffa bean = new Tariffa(getApFull(req));
|
||||
req.setAttribute("list", bean.findWebByCR(CR, 0, 0));
|
||||
Opzione opzione = new Opzione(getApFull(req));
|
||||
OpzioneCR CRO = new OpzioneCR(getApFull(req));
|
||||
fillObject(req, CRO);
|
||||
req.setAttribute("listaOpzioni", opzione.findWebByCR(CRO, 0, 0));
|
||||
callJsp(req, res);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
forceMessage(req, e.getMessage());
|
||||
}
|
||||
showBean(req, res);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,94 @@
|
|||
package com.ablia.tarop.servlet;
|
||||
|
||||
import com.ablia.contab.Documento;
|
||||
import com.ablia.db.CRAdapter;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.tarop.Opzione;
|
||||
import com.ablia.tarop.OpzioneCR;
|
||||
import com.ablia.tarop.Tariffa;
|
||||
import com.ablia.tarop.TariffaCR;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/Tariffa.abl"})
|
||||
public class TariffaSvlt extends _TaropSvlt {
|
||||
protected void fillComboAfterDetail(DBAdapter l_bean, HttpServletRequest req, HttpServletResponse res) {
|
||||
Tariffa bean = (Tariffa)l_bean;
|
||||
if (getCmd(req).equals("md"))
|
||||
req.setAttribute("listaOpzioniTariffa", bean.getOpzioni(0, 0));
|
||||
}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Tariffa(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new TariffaCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void refreshPayment(HttpServletRequest req, HttpServletResponse res) {
|
||||
try {
|
||||
long l_id_documento = getRequestLongParameter(req, "id_documento");
|
||||
Documento bean = new Documento(getApFull(req));
|
||||
bean.findByPrimaryKey(l_id_documento);
|
||||
long l_id_tipoPagamento = getRequestLongParameter(req,
|
||||
"id_tipoPagamento");
|
||||
bean.setId_tipoPagamento(l_id_tipoPagamento);
|
||||
ResParm rp = bean.save();
|
||||
String theMsg = "";
|
||||
req.setAttribute("bean", bean);
|
||||
forceJspPageRelative("Documento.jsp", req);
|
||||
callJsp(req, res);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
forceMessage(req, e.getMessage());
|
||||
showBean(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
protected String getCRAttribute(HttpServletRequest req) {
|
||||
return "CRT";
|
||||
}
|
||||
|
||||
protected void otherCommands(HttpServletRequest req, HttpServletResponse res) {
|
||||
String cmd = getCmd(req);
|
||||
if (cmd.equals("main")) {
|
||||
main(req, res);
|
||||
} else if (cmd.equals("detail")) {
|
||||
dettaglio(req, res);
|
||||
} else {
|
||||
search(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
protected void main(HttpServletRequest req, HttpServletResponse res) {
|
||||
forceJspPageRelative("tariffePromozioni.jsp", req);
|
||||
callJsp(req, res);
|
||||
}
|
||||
|
||||
protected void dettaglio(HttpServletRequest req, HttpServletResponse res) {
|
||||
try {
|
||||
setJspPageRelative("tariffaCR.jsp", req);
|
||||
TariffaCR CR = new TariffaCR(getApFull(req));
|
||||
fillObject(req, CR);
|
||||
req.setAttribute("CRT", CR);
|
||||
Tariffa bean = new Tariffa(getApFull(req));
|
||||
req.setAttribute("list", bean.findWebByCR(CR, 0, 0));
|
||||
Opzione opzione = new Opzione(getApFull(req));
|
||||
OpzioneCR CRO = new OpzioneCR(getApFull(req));
|
||||
fillObject(req, CRO);
|
||||
req.setAttribute("listaOpzioni", opzione.findWebByCR(CRO, 0, 0));
|
||||
callJsp(req, res);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
forceMessage(req, e.getMessage());
|
||||
}
|
||||
showBean(req, res);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
package com.ablia.tarop.servlet;
|
||||
|
||||
import com.ablia.common.Users;
|
||||
import com.ablia.servlet.AblServletSvlt;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public abstract class _TaropSvlt extends AblServletSvlt {
|
||||
protected boolean checkLoginProfile(HttpServletRequest req) {
|
||||
try {
|
||||
if (getLoginUser(req) == null) {
|
||||
forceJspPage(getLoginPage(null, null), req);
|
||||
return true;
|
||||
}
|
||||
if (getLoginUser(req).getFlgValido().equals("N")) {
|
||||
forceJspPage(super.getLoginPage(null, null), req);
|
||||
req.getSession().removeAttribute("loginUser_id");
|
||||
req.getSession().removeAttribute("utenteLogon");
|
||||
return false;
|
||||
}
|
||||
if (getLoginUser(req).getId_userProfile() > 0L)
|
||||
return true;
|
||||
forceJspPage(super.getLoginPage(null, null), req);
|
||||
req.getSession().removeAttribute("loginUser_id");
|
||||
req.getSession().removeAttribute("utenteLogon");
|
||||
return true;
|
||||
} catch (Exception e) {
|
||||
handleDebug(e);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
protected long checkProfile(HttpServletRequest req, String l_permesso) {
|
||||
return 3L;
|
||||
}
|
||||
|
||||
protected String getLoginPage(HttpServletRequest req, HttpServletResponse res) {
|
||||
return "Registra.abl";
|
||||
}
|
||||
|
||||
protected Users getUser(HttpServletRequest req) {
|
||||
return new com.ablia.anag.Users(getApFull(req));
|
||||
}
|
||||
|
||||
protected boolean useAlwaysSendRedirect() {
|
||||
return true;
|
||||
}
|
||||
|
||||
protected boolean isSecureServlet(HttpServletRequest req) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public String getPathImgArticoli() {
|
||||
return String.valueOf(getDocBase()) + "/" + getParm("PATH_IMG_ART").getTesto();
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.ablia.tarop.servlet.admin;
|
||||
|
||||
import com.ablia.db.CRAdapter;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.servlet.AblServletSvlt;
|
||||
import com.ablia.tarop.CategoriaOpzione;
|
||||
import com.ablia.tarop.CategoriaOpzioneCR;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/admin/www/CategoriaOpzione.abl"})
|
||||
public class CategoriaOpzioneSvlt extends AblServletSvlt {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected void addRows(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterDetail(DBAdapter bean, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new CategoriaOpzione(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new CategoriaOpzioneCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected boolean isSimpleServlet(HttpServletRequest req) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,105 @@
|
|||
package com.ablia.tarop.servlet.admin;
|
||||
|
||||
import com.ablia.db.CRAdapter;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.db.ResParm;
|
||||
import com.ablia.servlet.AblServletSvlt;
|
||||
import com.ablia.tarop.CategoriaOpzione;
|
||||
import com.ablia.tarop.Opzione;
|
||||
import com.ablia.tarop.OpzioneArticolo;
|
||||
import com.ablia.tarop.OpzioneCR;
|
||||
import com.ablia.util.AbMessages;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/admin/www/Opzione.abl"})
|
||||
public class OpzioneSvlt extends AblServletSvlt {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected void addRows(HttpServletRequest req, HttpServletResponse res) {
|
||||
Opzione bean = null;
|
||||
ResParm rp = new ResParm(true, "");
|
||||
long l_id = getRequestLongParameter(req, "id_opzione");
|
||||
bean = new Opzione(getApFull(req));
|
||||
try {
|
||||
bean.findByPrimaryKey(l_id);
|
||||
fillObject(req, bean);
|
||||
rp = bean.save();
|
||||
req.setAttribute("id_opzione", String.valueOf(bean.getId_opzione()));
|
||||
if (rp.getStatus()) {
|
||||
if (getAct(req).equals("addTelefono")) {
|
||||
OpzioneArticolo row = new OpzioneArticolo(getApFull(req));
|
||||
long l_id_opzioneArticolo = getRequestLongParameter(req,
|
||||
"id_opzioneArticolo");
|
||||
fillObject(req, row);
|
||||
rp = bean.addOpzioneArticolo(row);
|
||||
sendMessage(req, rp.getMsg());
|
||||
showBean(req, res);
|
||||
} else if (getAct(req).equals("delTelefono")) {
|
||||
OpzioneArticolo row = new OpzioneArticolo(getApFull(req));
|
||||
long l_id_opzioneArticolo = getRequestLongParameter(req,
|
||||
"id_opzioneArticolo");
|
||||
if (l_id_opzioneArticolo != 0L) {
|
||||
fillObject(req, row);
|
||||
bean.delOpzioneArticolo(row);
|
||||
sendMessage(req, "Cancellazione Effettuata");
|
||||
} else {
|
||||
sendMessage(req, AbMessages.getMessage(getLocale(req),
|
||||
"READ_FAIL"));
|
||||
}
|
||||
showBean(req, res);
|
||||
} else if (getAct(req).equals("modTelefono")) {
|
||||
OpzioneArticolo row = new OpzioneArticolo(getApFull(req));
|
||||
long l_id_opzioneArticolo = getRequestLongParameter(req,
|
||||
"id_opzioneArticolo");
|
||||
if (l_id_opzioneArticolo != 0L) {
|
||||
fillObject(req, row);
|
||||
row.findByPrimaryKey(l_id_opzioneArticolo);
|
||||
req.setAttribute("bean2", row);
|
||||
sendMessage(req, AbMessages.getMessage(getLocale(req),
|
||||
"READ_OK"));
|
||||
} else {
|
||||
sendMessage(req, AbMessages.getMessage(getLocale(req),
|
||||
"READ_FAIL"));
|
||||
}
|
||||
showBean(req, res);
|
||||
}
|
||||
} else {
|
||||
req.setAttribute("bean", bean);
|
||||
sendMessage(req, rp.getMsg());
|
||||
showBean(req, res);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
forceMessage(req,
|
||||
AbMessages.getMessage(getLocale(req), "SAVE_FAIL"));
|
||||
showBean(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
protected void fillComboAfterDetail(DBAdapter beanA, HttpServletRequest req, HttpServletResponse res) {
|
||||
Opzione bean = (Opzione)beanA;
|
||||
req.setAttribute("listaCategorieOpzioni",
|
||||
new CategoriaOpzione(getApFull(req)).findAll());
|
||||
req.setAttribute("listaTelefoni", bean.getOpzioniArticoli());
|
||||
}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Opzione(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new OpzioneCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {
|
||||
req.setAttribute("listaCategorieOpzioni",
|
||||
new CategoriaOpzione(getApFull(req)).findAll());
|
||||
}
|
||||
|
||||
protected boolean isSimpleServlet(HttpServletRequest req) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package com.ablia.tarop.servlet.admin;
|
||||
|
||||
import com.ablia.db.CRAdapter;
|
||||
import com.ablia.db.DBAdapter;
|
||||
import com.ablia.servlet.AblServletSvlt;
|
||||
import com.ablia.tarop.Tariffa;
|
||||
import com.ablia.tarop.TariffaCR;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/admin/www/Tariffa.abl"})
|
||||
public class TariffaSvlt extends AblServletSvlt {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
protected void addRows(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterDetail(DBAdapter bean, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Tariffa(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new TariffaCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected boolean isSimpleServlet(HttpServletRequest req) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Tariffe_0.0.02.291112
|
||||
15-11-2012 prima versione
|
||||
che roba è????? credo tariffe opzioni tim .....
|
||||
Loading…
Add table
Add a link
Reference in a new issue