www in docker support

This commit is contained in:
MaddoScientisto 2026-04-22 18:41:37 +02:00
commit c227fce036
2145 changed files with 399596 additions and 58 deletions

View file

@ -0,0 +1,184 @@
package it.acxent.bank.sellaPCredit;
import it.acxent.db.ApplParmFull;
import it.acxent.db.DBAdapter;
import it.acxent.db.ResParm;
import it.acxent.db.WcString;
import it.acxent.util.Vectumerator;
import java.io.Serializable;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class ConselTabfin extends DBAdapter implements Serializable {
public static final double MIN_FIN = 168.0D;
public static final double MAX_FIN = 7500.0D;
private long id_conselTabfin;
private String flgTipo;
private double valoreBene;
private long durata;
private double importoRata;
private double tan;
private double taeg;
private double interessi;
private double speseGestSingolaRata;
private double speseGestTotaleRata;
private double impostaBollo;
private double importoTotaleDovuto;
public ConselTabfin(ApplParmFull newApplParmFull) {
super(newApplParmFull);
}
public ConselTabfin() {}
public void setId_conselTabfin(long newId_conselTabfin) {
this.id_conselTabfin = newId_conselTabfin;
}
public void setFlgTipo(String newFlgTipo) {
this.flgTipo = newFlgTipo;
}
public void setValoreBene(double newValoreBene) {
this.valoreBene = newValoreBene;
}
public void setDurata(long newDurata) {
this.durata = newDurata;
}
public void setImportoRata(double newImportoRata) {
this.importoRata = newImportoRata;
}
public void setTan(double newTan) {
this.tan = newTan;
}
public void setTaeg(double newTaeg) {
this.taeg = newTaeg;
}
public void setInteressi(double newInteressi) {
this.interessi = newInteressi;
}
public void setSpeseGestSingolaRata(double newSpeseGestSingolaRata) {
this.speseGestSingolaRata = newSpeseGestSingolaRata;
}
public void setSpeseGestTotaleRata(double newSpeseGestTotaleRata) {
this.speseGestTotaleRata = newSpeseGestTotaleRata;
}
public void setImpostaBollo(double newImpostaBollo) {
this.impostaBollo = newImpostaBollo;
}
public void setImportoTotaleDovuto(double newImportoTotaleDovuto) {
this.importoTotaleDovuto = newImportoTotaleDovuto;
}
public long getId_conselTabfin() {
return this.id_conselTabfin;
}
public String getFlgTipo() {
return (this.flgTipo == null) ? "" : this.flgTipo.trim();
}
public double getValoreBene() {
return this.valoreBene;
}
public long getDurata() {
return this.durata;
}
public double getImportoRata() {
return this.importoRata;
}
public double getTan() {
return this.tan;
}
public double getTaeg() {
return this.taeg;
}
public double getInteressi() {
return this.interessi;
}
public double getSpeseGestSingolaRata() {
return this.speseGestSingolaRata;
}
public double getSpeseGestTotaleRata() {
return this.speseGestTotaleRata;
}
public double getImpostaBollo() {
return this.impostaBollo;
}
public double getImportoTotaleDovuto() {
return this.importoTotaleDovuto;
}
protected ResParm checkDeleteCascade() {
return new ResParm(true);
}
protected void deleteCascade() {}
public Vectumerator findByCR(ConselTabfinCR CR, int pageNumber, int pageRows) {
String s_Sql_Find = "select A.* from CONSEL_TABFIN AS A";
String s_Sql_Order = "";
WcString wc = new WcString();
if (CR.getValoreBene() > 0.0D)
wc.addWc("A.valoreBene=" + CR.getValoreBene());
if (!CR.getFlgTipo().isEmpty())
wc.addWc("A.flgTipo='" + CR.getFlgTipo() + "'");
if (CR.getDurata() > 0L)
wc.addWc("A.durata=" + CR.getDurata());
try {
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
return findRows(stmt, pageNumber, pageRows);
} catch (SQLException e) {
removeCPConnection();
handleDebug(e);
return AB_EMPTY_VECTUMERATOR;
}
}
public void findByTipoValoreDurata(String l_flgTipo, double l_valore, long l_durata) {
String s_Sql_Find = "select A.* from CONSEL_TABFIN AS A";
String s_Sql_Order = "";
WcString wc = new WcString();
wc.addWc("A.valoreBene=" + Math.round(l_valore));
wc.addWc("A.flgTipo='" + l_flgTipo + "'");
wc.addWc("A.durata=" + l_durata);
try {
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
findFirstRecord(stmt);
} catch (SQLException e) {
removeCPConnection();
handleDebug(e);
}
}
}

View file

@ -0,0 +1,132 @@
package it.acxent.bank.sellaPCredit;
import it.acxent.db.ApplParmFull;
import it.acxent.db.CRAdapter;
public class ConselTabfinCR extends CRAdapter {
private long id_conselTabfin;
private String flgTipo;
private double valoreBene;
private long durata;
private double importoRata;
private double tan;
private double taeg;
private double interessi;
private double speseGestSingolaRata;
private double speseGestTotaleRata;
private double impostaBollo;
private double importoTotaleDovuto;
public ConselTabfinCR(ApplParmFull newApplParmFull) {
super(newApplParmFull);
}
public ConselTabfinCR() {}
public void setId_conselTabfin(long newId_conselTabfin) {
this.id_conselTabfin = newId_conselTabfin;
}
public void setFlgTipo(String newFlgTipo) {
this.flgTipo = newFlgTipo;
}
public void setValoreBene(double newValoreBene) {
this.valoreBene = newValoreBene;
}
public void setDurata(long newDurata) {
this.durata = newDurata;
}
public void setImportoRata(double newImportoRata) {
this.importoRata = newImportoRata;
}
public void setTan(double newTan) {
this.tan = newTan;
}
public void setTaeg(double newTaeg) {
this.taeg = newTaeg;
}
public void setInteressi(double newInteressi) {
this.interessi = newInteressi;
}
public void setSpeseGestSingolaRata(double newSpeseGestSingolaRata) {
this.speseGestSingolaRata = newSpeseGestSingolaRata;
}
public void setSpeseGestTotaleRata(double newSpeseGestTotaleRata) {
this.speseGestTotaleRata = newSpeseGestTotaleRata;
}
public void setImpostaBollo(double newImpostaBollo) {
this.impostaBollo = newImpostaBollo;
}
public void setImportoTotaleDovuto(double newImportoTotaleDovuto) {
this.importoTotaleDovuto = newImportoTotaleDovuto;
}
public long getId_conselTabfin() {
return this.id_conselTabfin;
}
public String getFlgTipo() {
return (this.flgTipo == null) ? "" : this.flgTipo.trim();
}
public double getValoreBene() {
return this.valoreBene;
}
public long getDurata() {
return this.durata;
}
public double getImportoRata() {
return this.importoRata;
}
public double getTan() {
return this.tan;
}
public double getTaeg() {
return this.taeg;
}
public double getInteressi() {
return this.interessi;
}
public double getSpeseGestSingolaRata() {
return this.speseGestSingolaRata;
}
public double getSpeseGestTotaleRata() {
return this.speseGestTotaleRata;
}
public double getImpostaBollo() {
return this.impostaBollo;
}
public double getImportoTotaleDovuto() {
return this.importoTotaleDovuto;
}
}

View file

@ -0,0 +1,369 @@
package it.acxent.bank.sellaPCredit;
import it.acxent.common.Parm;
import it.acxent.common.StatusMsg;
import it.acxent.db.ApplParmFull;
import it.acxent.db.DBAdapter;
public class SellaPCreditReq {
public static final String P_COD_TIPO_PRODOTTO_SELLA_P_CREDIT = "COD_TIPO_PRODOTTO_SELLA_P_CREDIT";
private String tipoesec;
private String tabellaFinanziaria;
private String cognome;
private String nome;
private String indirizzo;
private String cellulare;
private String pref_num;
private String data_nascita;
private String indirizzo_mail;
private ApplParmFull ap;
private String ordine;
private String descrizioneBene;
private String anticipoS;
private String codiceMerce;
private String codiceProdotto;
private String codiceConvenzionato;
private String importoDaFinanziare;
public static final String SELLA_P_CREDIT_TAB_FIN_90 = "WIP";
private double anticipo;
private String impspe;
private String codiceFiscale;
private String numeroTelefono;
private String commissioni;
public static final String P_SELLA_P_CREDIT_IMPORTO_MINIMO = "SELLA_P_CREDIT_IMPORTO_MINIMO";
public static final String P_SELLA_P_CREDIT_TEST = "SELLA_P_CREDIT_TEST";
public static final String P_SELLA_P_CREDIT_OK_PAGE = "SELLA_P_CREDIT_OK_PAGE";
public static final String SELLA_P_CREDIT_TAB_FIN_TASSO_0 = "MPF";
public static final String SELLA_P_CREDIT_TAB_FIN_30 = "WIN";
public static final String REQUEST_SERVER = "https://secure.sellapersonalcredit.it/econsel/public/entry/pf";
public static final String REQUEST_SERVER_TEST = "https://sandbox.sellapersonalcredit.it/econsel/public/entry/pf";
public static final String P_COD_TIPO_MERCE_SELLA_P_CREDIT = "COD_TIPO_MERCE_SELLA_P_CREDIT";
public static final String P_COD_CONVENZIONE_SELLA_P_CREDIT = "COD_CONVENZIONE_SELLA_P_CREDIT";
public static final String P_SELLA_P_CREDIT_ERROR_PAGE = "SELLA_P_CREDIT_ERROR_PAGE";
public static final String P_SELLA_P_CREDIT_RATA0 = "SELLA_P_CREDIT_RATA0";
public SellaPCreditReq(ApplParmFull l_ap) {
setAp(l_ap);
}
public SellaPCreditReq() {}
public String getTipoesec() {
return "T";
}
public void setTipoesec(String tipoesec) {
this.tipoesec = tipoesec;
}
public String getTabellaFinanziaria() {
if (isTest())
return "WIN";
return (this.tabellaFinanziaria == null) ? "" : this.tabellaFinanziaria.trim();
}
public void setTabellaFinanziaria(String tabfin) {
this.tabellaFinanziaria = tabfin;
}
public String getCognome() {
return (this.cognome == null) ? "" : this.cognome.trim();
}
public void setCognome(String cognome) {
this.cognome = cognome;
}
public String getNome() {
return (this.nome == null) ? "" : this.nome.trim();
}
public void setNome(String nome) {
this.nome = nome;
}
public String getIndirizzo() {
return (this.indirizzo == null) ? "" : this.indirizzo.trim();
}
public void setIndirizzo(String indirizzo) {
this.indirizzo = indirizzo;
}
public String getNumeroTelefono() {
return (this.numeroTelefono == null) ? "" : this.numeroTelefono.trim();
}
public void setNumeroTelefono(String tel_num) {
this.numeroTelefono = tel_num;
}
public String getPref_num() {
return (this.pref_num == null) ? "" : this.pref_num.trim();
}
public void setPref_num(String pref_num) {
this.pref_num = pref_num;
}
public String getData_nascita() {
return (this.data_nascita == null) ? "" : this.data_nascita.trim();
}
public void setData_nascita(String data_nascita) {
this.data_nascita = data_nascita;
}
public String getIndirizzo_mail() {
return (this.indirizzo_mail == null) ? "" : this.indirizzo_mail.trim();
}
public void setIndirizzo_mail(String testomail) {
this.indirizzo_mail = testomail;
}
public String getCodiceFiscale() {
return (this.codiceFiscale == null) ? "" : this.codiceFiscale.trim();
}
public void setCodiceFiscale(String codfisc) {
this.codiceFiscale = codfisc;
}
public String getOrdine() {
return (this.ordine == null) ? "" : this.ordine.trim();
}
public void setOrdine(String ordine) {
this.ordine = ordine;
}
public String getDescrizioneBene() {
return (this.descrizioneBene == null) ? "" : this.descrizioneBene.trim();
}
public void setDescrizioneBene(String descri1) {
this.descrizioneBene = descri1;
}
public String getAnticipoS() {
return (this.anticipoS == null) ? "" : this.anticipoS;
}
public void setAnticipoS(String parz1) {
this.anticipoS = parz1;
}
public String getCodiceMerce() {
if (isTest())
return "HT";
if (this.codiceMerce == null)
this.codiceMerce = getApFull().getParm("COD_TIPO_MERCE_SELLA_P_CREDIT").getTesto();
return this.codiceMerce;
}
public boolean isTest() {
return getApFull().getParm("SELLA_P_CREDIT_TEST").isTrue();
}
public void setCodiceMerce(String h_merce) {
this.codiceMerce = h_merce;
}
public String getCodiceProdotto() {
if (isTest())
return "50";
if (this.codiceProdotto == null)
this.codiceProdotto = getApFull().getParm("COD_TIPO_PRODOTTO_SELLA_P_CREDIT").getTesto();
return this.codiceProdotto;
}
public void setCodiceProdotto(String h_prod) {
this.codiceProdotto = h_prod;
}
public String getCodiceConvenzionato() {
if (isTest())
return "0049613";
if (this.codiceConvenzionato == null)
this.codiceConvenzionato = getApFull().getParm("COD_CONVENZIONE_SELLA_P_CREDIT").getTesto().trim();
return this.codiceConvenzionato;
}
public void setCodiceConvenzionato(String convenz) {
this.codiceConvenzionato = convenz;
}
public String getImportoDaFinanziare() {
return (this.importoDaFinanziare == null) ? "" : this.importoDaFinanziare;
}
public void setImportoDaFinanziare(String impdafin) {
this.importoDaFinanziare = impdafin;
}
public double getAnticipo() {
return this.anticipo;
}
public String getRequestServer() {
if (isTest())
return "https://sandbox.sellapersonalcredit.it/econsel/public/entry/pf";
return "https://secure.sellapersonalcredit.it/econsel/public/entry/pf";
}
public void setAnticipo(double anticipo) {
this.anticipo = anticipo;
}
public static void initApplicationParms(ApplParmFull ap) {
if (ap != null) {
DBAdapter.logDebug(true, "SELLA_P_CREDIT chechout initParms: start");
String l_tipoParm = "";
Parm bean = new Parm(ap);
l_tipoParm = "SELLA_P_CREDIT";
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
bean.findByCodice("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setDescrizione("COD_CONVENZIONE_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("0026321");
bean.setNota("CODICE CONVENZIONE SELLA_P_CREDIT");
bean.save();
bean.findByCodice("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setDescrizione("COD_TIPO_MERCE_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("HT");
bean.setNota("CODICE INDICATIVO MERCE FINANZIATA ");
bean.save();
bean.findByCodice("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setDescrizione("COD_TIPO_PRODOTTO_SELLA_P_CREDIT");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("50");
bean.setNota("CODICE INDICATIVO PRODOTTO FINANZIATO");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_ERROR_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_ERROR_PAGE");
bean.setDescrizione("SELLA_P_CREDIT_ERROR_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("sellaPCreditRes.jsp");
bean.setNota("SELLA_P_CREDIT_ERROR_PAGE");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_OK_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_OK_PAGE");
bean.setDescrizione("SELLA_P_CREDIT_OK_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("sellaPCreditRes.jsp");
bean.setNota("SELLA_P_CREDIT_OK_PAGE");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_TEST");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_TEST");
bean.setDescrizione("SELLA_P_CREDIT_TEST");
bean.setFlgTipo(5L);
bean.setNota("0-->NO 1-->SI");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setDescrizione("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.setFlgTipo(1L);
bean.setNota("SELLA_P_CREDIT_IMPORTO_MINIMO");
bean.save();
bean.findByCodice("SELLA_P_CREDIT_RATA0");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("SELLA_P_CREDIT_RATA0");
bean.setDescrizione("SELLA_P_CREDIT_RATA0");
bean.setFlgTipo(5L);
bean.setNota(" ATTIVA ANCHE RATA 0 SOPRA L'IMPORTO DEFINITO DA SELLA_P_CREDIT_IMPORTO_MINIMO<BR>0: RATA 0 NON ATTIVA<br>1: RATA 0 ATTIVA");
bean.save();
DBAdapter.logDebug(true, "SELLA_P_CREDIT chechout initParms: stop");
}
}
public String getImpspe() {
return (this.impspe == null) ? "" : this.impspe;
}
public void setImpspe(String impspe) {
this.impspe = impspe;
}
public ApplParmFull getApFull() {
return this.ap;
}
public void setAp(ApplParmFull ap) {
this.ap = ap;
}
public String getCellulare() {
return (this.cellulare == null) ? "" : this.cellulare.trim();
}
public void setCellulare(String cellulare) {
this.cellulare = cellulare;
}
public String getCommissioni() {
return (this.commissioni == null) ? "" : this.commissioni.trim();
}
public void setCommissioni(String commissioni) {
this.commissioni = commissioni;
}
}

View file

@ -0,0 +1,67 @@
package it.acxent.bank.sellaPCredit;
import it.acxent.db.ApplParmFull;
public class SellaPCreditResp {
private String pratica;
private ApplParmFull ap;
private String ordine;
private String praticabis;
private String stato;
public static final String SELLA_P_CREDIT_VALUTAZIONE = "WW";
public static final String SELLA_P_CREDIT_KO = "KO";
public static final String SELLA_P_CREDIT_OK = "OK";
public SellaPCreditResp(ApplParmFull l_ap) {
setAp(l_ap);
}
public SellaPCreditResp() {}
public String getOrdine() {
return (this.ordine == null) ? "" : this.ordine.trim();
}
public void setOrdine(String ordine) {
this.ordine = ordine;
}
public ApplParmFull getApFull() {
return this.ap;
}
public void setAp(ApplParmFull ap) {
this.ap = ap;
}
public String getPratica() {
return (this.pratica == null) ? "" : this.pratica.trim();
}
public void setPratica(String pratica) {
this.pratica = pratica;
}
public String getPraticabis() {
return (this.praticabis == null) ? "" : this.praticabis.trim();
}
public void setPraticabis(String praticabis) {
this.praticabis = praticabis;
}
public String getStato() {
return (this.stato == null) ? "" : this.stato.trim();
}
public void setStato(String stato) {
this.stato = stato;
}
}

View file

@ -0,0 +1 @@
package it.acxent.bank.sellaPCredit;