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,144 @@
|
|||
package it.acxent.tex.conf;
|
||||
|
||||
import it.acxent.contab.RigaDocumento;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.DBAdapter;
|
||||
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 NumeroTeliRiga extends DBAdapter implements Serializable {
|
||||
private static final long serialVersionUID = 1562752687604L;
|
||||
|
||||
private long id_numeroTeliRiga;
|
||||
|
||||
private double mtTessutoRiga;
|
||||
|
||||
private long id_rigaDocumentoArticolo;
|
||||
|
||||
private long id_rigaDocumentoTessuto;
|
||||
|
||||
private RigaDocumento rigaDocumentoArticolo;
|
||||
|
||||
private RigaDocumento rigaDocumentoTessuto;
|
||||
|
||||
private long numTeliRiga;
|
||||
|
||||
public NumeroTeliRiga(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public NumeroTeliRiga() {}
|
||||
|
||||
public void setId_numeroTeliRiga(long newId_numeroTeliRiga) {
|
||||
this.id_numeroTeliRiga = newId_numeroTeliRiga;
|
||||
}
|
||||
|
||||
public void setNumTeliRiga(long newNumTeliRiga) {
|
||||
this.numTeliRiga = newNumTeliRiga;
|
||||
}
|
||||
|
||||
public void setId_rigaDocumentoArticolo(long newId_rigaDocumentoArticolo) {
|
||||
this.id_rigaDocumentoArticolo = newId_rigaDocumentoArticolo;
|
||||
setRigaDocumentoArticolo(null);
|
||||
}
|
||||
|
||||
public void setId_rigaDocumentoTessuto(long newId_rigaDocumentoTessuto) {
|
||||
this.id_rigaDocumentoTessuto = newId_rigaDocumentoTessuto;
|
||||
setRigaDocumentoTessuto(null);
|
||||
}
|
||||
|
||||
public long getId_numeroTeliRiga() {
|
||||
return this.id_numeroTeliRiga;
|
||||
}
|
||||
|
||||
public long getNumTeliRiga() {
|
||||
return this.numTeliRiga;
|
||||
}
|
||||
|
||||
public long getId_rigaDocumentoArticolo() {
|
||||
return this.id_rigaDocumentoArticolo;
|
||||
}
|
||||
|
||||
public long getId_rigaDocumentoTessuto() {
|
||||
return this.id_rigaDocumentoTessuto;
|
||||
}
|
||||
|
||||
public void setRigaDocumentoArticolo(RigaDocumento newRigaDocumentoArticolo) {
|
||||
this.rigaDocumentoArticolo = newRigaDocumentoArticolo;
|
||||
}
|
||||
|
||||
public RigaDocumento getRigaDocumentoArticolo() {
|
||||
this.rigaDocumentoArticolo = (RigaDocumento)getSecondaryObject(this.rigaDocumentoArticolo, RigaDocumento.class,
|
||||
getId_rigaDocumentoArticolo());
|
||||
return this.rigaDocumentoArticolo;
|
||||
}
|
||||
|
||||
public void setRigaDocumentoTessuto(RigaDocumento newRigaDocumentoTessuto) {
|
||||
this.rigaDocumentoTessuto = newRigaDocumentoTessuto;
|
||||
}
|
||||
|
||||
public RigaDocumento getRigaDocumentoTessuto() {
|
||||
this.rigaDocumentoTessuto = (RigaDocumento)getSecondaryObject(this.rigaDocumentoTessuto, RigaDocumento.class, getId_rigaDocumentoTessuto());
|
||||
return this.rigaDocumentoTessuto;
|
||||
}
|
||||
|
||||
protected ResParm checkDeleteCascade() {
|
||||
return new ResParm(true);
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator<NumeroTeliRiga> findByCR(NumeroTeliRigaCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from NUMERO_TELI_RIGA 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) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
return AB_EMPTY_VECTUMERATOR;
|
||||
}
|
||||
}
|
||||
|
||||
public void findByRDArticoloRDTessuto(long l_id_rigaDocumentoArticolo, long l_id_rigaDocumentoTessuto) {
|
||||
String s_Sql_Find = "select A.* from NUMERO_TELI_RIGA AS A";
|
||||
String s_Sql_Order = "";
|
||||
WcString wc = new WcString();
|
||||
wc.addWc("id_rigaDocumentoArticolo=" + l_id_rigaDocumentoArticolo);
|
||||
wc.addWc("id_rigaDocumentoTessuto=" + l_id_rigaDocumentoTessuto);
|
||||
try {
|
||||
PreparedStatement stmt = getConn().prepareStatement(s_Sql_Find + s_Sql_Find + wc.toString());
|
||||
findFirstRecord(stmt);
|
||||
} catch (SQLException e) {
|
||||
removeCPConnection();
|
||||
handleDebug(e);
|
||||
}
|
||||
}
|
||||
|
||||
public double getMtTessutoRiga() {
|
||||
return this.mtTessutoRiga;
|
||||
}
|
||||
|
||||
public void setMtTessutoRiga(double mtTessutoRiga) {
|
||||
this.mtTessutoRiga = mtTessutoRiga;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue