www in docker support
This commit is contained in:
parent
539a848e95
commit
c227fce036
2145 changed files with 399596 additions and 58 deletions
|
|
@ -0,0 +1,149 @@
|
|||
package it.acxent.contab;
|
||||
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.db.DBAdapterException;
|
||||
import it.acxent.db.ResParm;
|
||||
import it.acxent.db.WcString;
|
||||
import it.acxent.util.StringTokenizer;
|
||||
import it.acxent.util.Vectumerator;
|
||||
import java.io.Serializable;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class RigaCausaleContabile extends DBAdapter implements Serializable {
|
||||
private static final long serialVersionUID = 3474479017832499327L;
|
||||
|
||||
private long id_rigaCausaleContabile;
|
||||
|
||||
private long id_causaleContabile;
|
||||
|
||||
private long id_pianoConti;
|
||||
|
||||
private long flgDA;
|
||||
|
||||
private CausaleContabile causaleContabile;
|
||||
|
||||
private PianoConti pianoConti;
|
||||
|
||||
public static final long DARE = 0L;
|
||||
|
||||
public static final long AVERE = 1L;
|
||||
|
||||
public RigaCausaleContabile(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public RigaCausaleContabile() {}
|
||||
|
||||
public long getId_causaleContabile() {
|
||||
return this.id_causaleContabile;
|
||||
}
|
||||
|
||||
public void setId_causaleContabile(long id_incassoPagamento) {
|
||||
this.id_causaleContabile = id_incassoPagamento;
|
||||
setCausaleContabile(null);
|
||||
}
|
||||
|
||||
public Vectumerator<RigaCausaleContabile> findByCR(RigaCausaleContabileCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from RIGA_CAUSALE_CONTABILE 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(s_Sql_Find + s_Sql_Find + wc.toString());
|
||||
return findRows(stmt, pageNumber, pageRows);
|
||||
} catch (SQLException e) {
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public Vectumerator<RigaCausaleContabile> findByCausaleContabile(long id_causaleContabile) {
|
||||
String s_Sql_Find = "select A.* from RIGA_CAUSALE_CONTABILE AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("A.id_causaleContabile = " + id_causaleContabile);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
||||
return findRows(stmt);
|
||||
} catch (SQLException e) {
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
protected ResParm checkDeleteCascade() throws DBAdapterException, SQLException {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
public long getId_rigaCausaleContabile() {
|
||||
return this.id_rigaCausaleContabile;
|
||||
}
|
||||
|
||||
public void setId_rigaCausaleContabile(long id_rigaCausaleContabile) {
|
||||
this.id_rigaCausaleContabile = id_rigaCausaleContabile;
|
||||
}
|
||||
|
||||
public long getId_pianoConti() {
|
||||
return this.id_pianoConti;
|
||||
}
|
||||
|
||||
public void setId_pianoConti(long id_pianoConti) {
|
||||
this.id_pianoConti = id_pianoConti;
|
||||
setPianoConti(null);
|
||||
}
|
||||
|
||||
public long getFlgDA() {
|
||||
return this.flgDA;
|
||||
}
|
||||
|
||||
public void setFlgDA(long flgDA) {
|
||||
this.flgDA = flgDA;
|
||||
}
|
||||
|
||||
public CausaleContabile getCausaleContabile() {
|
||||
this.causaleContabile = (CausaleContabile)getSecondaryObject(this.causaleContabile, CausaleContabile.class, getId_causaleContabile());
|
||||
return this.causaleContabile;
|
||||
}
|
||||
|
||||
public void setCausaleContabile(CausaleContabile causaleContabile) {
|
||||
this.causaleContabile = causaleContabile;
|
||||
}
|
||||
|
||||
public PianoConti getPianoConti() {
|
||||
this.pianoConti = (PianoConti)getSecondaryObject(this.pianoConti, PianoConti.class, getId_pianoConti());
|
||||
return this.pianoConti;
|
||||
}
|
||||
|
||||
public void setPianoConti(PianoConti pianoConti) {
|
||||
this.pianoConti = pianoConti;
|
||||
}
|
||||
|
||||
public String getDescrizioneDA() {
|
||||
return getDescrizioneDA(getFlgDA());
|
||||
}
|
||||
|
||||
public String getDescrizioneDA(long flgDA) {
|
||||
String ret = "";
|
||||
if (flgDA == 0L) {
|
||||
ret = "Dare";
|
||||
} else if (flgDA == 1L) {
|
||||
ret = "Avere";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue