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,218 @@
|
|||
package it.acxent.contab;
|
||||
|
||||
import it.acxent.anag.Banca;
|
||||
import it.acxent.anag.Clifor;
|
||||
import it.acxent.anag.Iva;
|
||||
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 RigaMovContabile extends DBAdapter implements Serializable {
|
||||
private static final long serialVersionUID = -4169805255664880589L;
|
||||
|
||||
private long id_rigaMovContabile;
|
||||
|
||||
private long id_movContabile;
|
||||
|
||||
private double importo;
|
||||
|
||||
private long flgDA;
|
||||
|
||||
private long id_pianoConti;
|
||||
|
||||
private long id_clifor;
|
||||
|
||||
private long id_banca;
|
||||
|
||||
private long id_documento;
|
||||
|
||||
private long id_iva;
|
||||
|
||||
private MovContabile movContabile;
|
||||
|
||||
private PianoConti pianoConti;
|
||||
|
||||
private Clifor clifor;
|
||||
|
||||
private Banca banca;
|
||||
|
||||
private Documento documento;
|
||||
|
||||
private Iva iva;
|
||||
|
||||
public RigaMovContabile(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public RigaMovContabile() {}
|
||||
|
||||
public Vectumerator<RigaMovContabile> findByCR(RigaMovContabileCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from RIGA_MOV_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;
|
||||
}
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
protected ResParm checkDeleteCascade() throws DBAdapterException, SQLException {
|
||||
return null;
|
||||
}
|
||||
|
||||
public long getId_rigaMovContabile() {
|
||||
return this.id_rigaMovContabile;
|
||||
}
|
||||
|
||||
public void setId_rigaMovContabile(long id_rigaMovContabile) {
|
||||
this.id_rigaMovContabile = id_rigaMovContabile;
|
||||
}
|
||||
|
||||
public long getId_movContabile() {
|
||||
return this.id_movContabile;
|
||||
}
|
||||
|
||||
public void setId_movContabile(long id_incassoPagamento) {
|
||||
this.id_movContabile = id_incassoPagamento;
|
||||
setMovContabile(null);
|
||||
}
|
||||
|
||||
public double getImporto() {
|
||||
return this.importo;
|
||||
}
|
||||
|
||||
public void setImporto(double importo) {
|
||||
this.importo = importo;
|
||||
}
|
||||
|
||||
public long getFlgDA() {
|
||||
return this.flgDA;
|
||||
}
|
||||
|
||||
public void setFlgDA(long flgDA) {
|
||||
this.flgDA = flgDA;
|
||||
}
|
||||
|
||||
public long getId_pianoConti() {
|
||||
return this.id_pianoConti;
|
||||
}
|
||||
|
||||
public void setId_pianoConti(long id_pianoConti) {
|
||||
this.id_pianoConti = id_pianoConti;
|
||||
setPianoConti(null);
|
||||
}
|
||||
|
||||
public long getId_clifor() {
|
||||
return this.id_clifor;
|
||||
}
|
||||
|
||||
public void setId_clifor(long id_clifor) {
|
||||
this.id_clifor = id_clifor;
|
||||
setClifor(null);
|
||||
}
|
||||
|
||||
public long getId_banca() {
|
||||
return this.id_banca;
|
||||
}
|
||||
|
||||
public void setId_banca(long id_banca) {
|
||||
this.id_banca = id_banca;
|
||||
setBanca(null);
|
||||
}
|
||||
|
||||
public long getId_documento() {
|
||||
return this.id_documento;
|
||||
}
|
||||
|
||||
public void setId_documento(long id_documento) {
|
||||
this.id_documento = id_documento;
|
||||
setDocumento(null);
|
||||
}
|
||||
|
||||
public long getId_iva() {
|
||||
return this.id_iva;
|
||||
}
|
||||
|
||||
public void setId_iva(long id_iva) {
|
||||
this.id_iva = id_iva;
|
||||
setIva(null);
|
||||
}
|
||||
|
||||
public MovContabile getMovContabile() {
|
||||
this.movContabile = (MovContabile)getSecondaryObject(this.movContabile, MovContabile.class, getId_movContabile());
|
||||
return this.movContabile;
|
||||
}
|
||||
|
||||
public void setMovContabile(MovContabile movContabile) {
|
||||
this.movContabile = movContabile;
|
||||
}
|
||||
|
||||
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 Clifor getClifor() {
|
||||
this.clifor = (Clifor)getSecondaryObject(this.clifor, Clifor.class, getId_clifor());
|
||||
return this.clifor;
|
||||
}
|
||||
|
||||
public void setClifor(Clifor clifor) {
|
||||
this.clifor = clifor;
|
||||
}
|
||||
|
||||
public Banca getBanca() {
|
||||
this.banca = (Banca)getSecondaryObject(this.banca, Banca.class, getId_banca());
|
||||
return this.banca;
|
||||
}
|
||||
|
||||
public void setBanca(Banca banca) {
|
||||
this.banca = banca;
|
||||
}
|
||||
|
||||
public Documento getDocumento() {
|
||||
this.documento = (Documento)getSecondaryObject(this.documento, Documento.class, getId_documento());
|
||||
return this.documento;
|
||||
}
|
||||
|
||||
public void setDocumento(Documento documento) {
|
||||
this.documento = documento;
|
||||
}
|
||||
|
||||
public Iva getIva() {
|
||||
this.iva = (Iva)getSecondaryObject(this.iva, Iva.class, getId_iva());
|
||||
return this.iva;
|
||||
}
|
||||
|
||||
public void setIva(Iva iva) {
|
||||
this.iva = iva;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue