323 lines
8.2 KiB
Java
323 lines
8.2 KiB
Java
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;
|
|
}
|
|
}
|