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,323 @@
package it.acxent.bank.consel;
import it.acxent.common.Parm;
import it.acxent.common.StatusMsg;
import it.acxent.db.ApplParmFull;
import it.acxent.db.DBAdapter;
public class ConselReq {
public static final String P_COD_TIPO_PRODOTTO_CONSEL = "COD_TIPO_PRODOTTO_CONSEL";
private String tipoesec;
private String tabfin;
private String cognome;
private String nome;
private String indirizzo;
private String tel_num;
private String pref_num;
private String data_nascita;
private String testomail;
private ApplParmFull ap;
private String ordine;
private String descri1;
private String parz1;
private String h_merce;
private String h_prod;
private String convenz;
private String impdafin;
public static final String CONSEL_TAB_FIN_90 = "WIP";
private double anticipo;
private String impspe;
private String codfisc;
public static final String P_CONSEL_IMPORTO_MINIMO = "CONSEL_IMPORTO_MINIMO";
public static final String P_CONSEL_TEST = "CONSEL_TEST";
public static final String P_CONSEL_OK_PAGE = "CONSEL_OK_PAGE";
public static final String CONSEL_TAB_FIN_TASSO_0 = "MPF";
public static final String CONSEL_TAB_FIN_30 = "WIN";
public static final String CONSEL_REQUEST_SERVER = "https://reserved.e-consel.it/DOL/faces/frmECProntoTuo.jsp";
public static final String P_COD_TIPO_MERCE_CONSEL = "COD_TIPO_MERCE_CONSEL";
public static final String P_COD_CONVENZIONE_CONSEL = "COD_CONVENZIONE_CONSEL";
public static final String P_CONSEL_ERROR_PAGE = "CONSEL_ERROR_PAGE";
public static final String P_CONSEL_RATA0 = "CONSEL_RATA0";
public ConselReq(ApplParmFull l_ap) {
setAp(l_ap);
}
public ConselReq() {}
public String getTipoesec() {
return "T";
}
public void setTipoesec(String tipoesec) {
this.tipoesec = tipoesec;
}
public String getTabfin() {
return (this.tabfin == null) ? "" : this.tabfin.trim();
}
public void setTabfin(String tabfin) {
this.tabfin = 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 getTel_num() {
return (this.tel_num == null) ? "" : this.tel_num.trim();
}
public void setTel_num(String tel_num) {
this.tel_num = 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 getTestomail() {
return (this.testomail == null) ? "" : this.testomail.trim();
}
public void setTestomail(String testomail) {
this.testomail = testomail;
}
public String getCodfisc() {
return (this.codfisc == null) ? "" : this.codfisc.trim();
}
public void setCodfisc(String codfisc) {
this.codfisc = codfisc;
}
public String getOrdine() {
return (this.ordine == null) ? "" : this.ordine.trim();
}
public void setOrdine(String ordine) {
this.ordine = ordine;
}
public String getDescri1() {
return (this.descri1 == null) ? "" : this.descri1.trim();
}
public void setDescri1(String descri1) {
this.descri1 = descri1;
}
public String getParz1() {
return (this.parz1 == null) ? "" : this.parz1;
}
public void setParz1(String parz1) {
this.parz1 = parz1;
}
public String getH_merce() {
if (this.h_merce == null)
this.h_merce = getApFull().getParm("COD_TIPO_MERCE_CONSEL").getTesto();
return this.h_merce;
}
public void setH_merce(String h_merce) {
this.h_merce = h_merce;
}
public String getH_prod() {
if (this.h_prod == null)
this.h_prod = getApFull().getParm("COD_TIPO_PRODOTTO_CONSEL").getTesto();
return this.h_prod;
}
public void setH_prod(String h_prod) {
this.h_prod = h_prod;
}
public String getConvenz() {
if (this.convenz == null)
this.convenz = getApFull().getParm("COD_CONVENZIONE_CONSEL").getTesto().trim();
return this.convenz;
}
public void setConvenz(String convenz) {
this.convenz = convenz;
}
public String getImpdafin() {
return (this.impdafin == null) ? "" : this.impdafin;
}
public void setImpdafin(String impdafin) {
this.impdafin = impdafin;
}
public double getAnticipo() {
return this.anticipo;
}
public void setAnticipo(double anticipo) {
this.anticipo = anticipo;
}
public static void initApplicationParms(ApplParmFull ap) {
if (ap != null) {
DBAdapter.logDebug(true, "CONSEL chechout initParms: start");
String l_tipoParm = "";
Parm bean = new Parm(ap);
l_tipoParm = "CONSEL";
StatusMsg.updateMsgByTag(ap, "INIT", l_tipoParm);
bean.findByCodice("COD_CONVENZIONE_CONSEL");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_CONVENZIONE_CONSEL");
bean.setDescrizione("COD_CONVENZIONE_CONSEL");
bean.setFlgTipo(0L);
bean.setNota("CODICE CONVENZIONE CONSEL");
bean.save();
bean.findByCodice("COD_TIPO_MERCE_CONSEL");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_MERCE_CONSEL");
bean.setDescrizione("COD_TIPO_MERCE_CONSEL");
bean.setFlgTipo(0L);
bean.setNota("CODICE INDICATIVO MERCE FINANZIATA ");
bean.save();
bean.findByCodice("COD_TIPO_PRODOTTO_CONSEL");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("COD_TIPO_PRODOTTO_CONSEL");
bean.setDescrizione("COD_TIPO_PRODOTTO_CONSEL");
bean.setFlgTipo(0L);
bean.setNota("CODICE INDICATIVO PRODOTTO FINANZIATO");
bean.save();
bean.findByCodice("CONSEL_ERROR_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("CONSEL_ERROR_PAGE");
bean.setDescrizione("CONSEL_ERROR_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("conselRes.jsp");
bean.setNota("CONSEL_ERROR_PAGE");
bean.save();
bean.findByCodice("CONSEL_OK_PAGE");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("CONSEL_OK_PAGE");
bean.setDescrizione("CONSEL_OK_PAGE");
bean.setFlgTipo(0L);
if (bean.getTesto().equals(""))
bean.setTesto("conselRes.jsp");
bean.setNota("CONSEL_OK_PAGE");
bean.save();
bean.findByCodice("CONSEL_TEST");
bean.setFlgAdmin(1L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("CONSEL_TEST");
bean.setDescrizione("CONSEL_TEST");
bean.setFlgTipo(1L);
bean.setNota("0-->NO 1-->SI");
bean.save();
bean.findByCodice("CONSEL_IMPORTO_MINIMO");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("CONSEL_IMPORTO_MINIMO");
bean.setDescrizione("CONSEL_IMPORTO_MINIMO");
bean.setFlgTipo(1L);
bean.setNota("CONSEL_IMPORTO_MINIMO");
bean.save();
bean.findByCodice("CONSEL_RATA0");
bean.setFlgAdmin(0L);
bean.setTipoParm(l_tipoParm);
bean.setCodice("CONSEL_RATA0");
bean.setDescrizione("CONSEL_RATA0");
bean.setFlgTipo(1L);
bean.setNota(" ATTIVA ANCHE RATA 0 SOPRA L'IMPORTO DEFINITO DA CONSEL_IMPORTO_MINIMO<BR>0: RATA 0 NON ATTIVA<br>1: RATA 0 ATTIVA");
bean.save();
DBAdapter.logDebug(true, "CONSEL 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;
}
}

View file

@ -0,0 +1,67 @@
package it.acxent.bank.consel;
import it.acxent.db.ApplParmFull;
public class ConselResp {
private String pratica;
private ApplParmFull ap;
private String ordine;
private String praticabis;
private String stato;
public static final String CONSEL_VALUTAZIONE = "WW";
public static final String CONSEL_KO = "KO";
public static final String CONSEL_OK = "OK";
public ConselResp(ApplParmFull l_ap) {
setAp(l_ap);
}
public ConselResp() {}
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,184 @@
package it.acxent.bank.consel;
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.consel;
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;
}
}