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,112 @@
|
|||
package it.acxent.anag;
|
||||
|
||||
import it.acxent.db.ApplParmFull;
|
||||
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 RegCassa extends _AnagAdapter implements Serializable {
|
||||
private long flgTipoCassa;
|
||||
|
||||
private String descrizione;
|
||||
|
||||
private String ipCassa;
|
||||
|
||||
private long porta;
|
||||
|
||||
private long id_regCassa;
|
||||
|
||||
public static final long TIPO_CASSA_SIEMENS = 0L;
|
||||
|
||||
public static final long TIPO_CASSA_EPSON = 1L;
|
||||
|
||||
public RegCassa(ApplParmFull newApplParmFull) {
|
||||
super(newApplParmFull);
|
||||
}
|
||||
|
||||
public RegCassa() {}
|
||||
|
||||
public void setId_regCassa(long newId_regCassa) {
|
||||
this.id_regCassa = newId_regCassa;
|
||||
}
|
||||
|
||||
public void setDescrizione(String newDescrizione) {
|
||||
this.descrizione = newDescrizione;
|
||||
}
|
||||
|
||||
public void setIpCassa(String newIpCassa) {
|
||||
this.ipCassa = newIpCassa;
|
||||
}
|
||||
|
||||
public void setPorta(long newPorta) {
|
||||
this.porta = newPorta;
|
||||
}
|
||||
|
||||
public long getId_regCassa() {
|
||||
return this.id_regCassa;
|
||||
}
|
||||
|
||||
public String getDescrizione() {
|
||||
return (this.descrizione == null) ? "" :
|
||||
this.descrizione.trim();
|
||||
}
|
||||
|
||||
public String getIpCassa() {
|
||||
return (this.ipCassa == null) ? "" : this.ipCassa.trim();
|
||||
}
|
||||
|
||||
public long getPorta() {
|
||||
return this.porta;
|
||||
}
|
||||
|
||||
protected void deleteCascade() {}
|
||||
|
||||
public Vectumerator findByCR(RegCassaCR CR, int pageNumber, int pageRows) {
|
||||
String s_Sql_Find = "select A.* from REG_CASSA 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 long getFlgTipoCassa() {
|
||||
return this.flgTipoCassa;
|
||||
}
|
||||
|
||||
public void setFlgTipoCassa(long flgTipoCassa) {
|
||||
this.flgTipoCassa = flgTipoCassa;
|
||||
}
|
||||
|
||||
public static final String getTipoCassa(long l_flgTipoCassa) {
|
||||
if (l_flgTipoCassa == 0L)
|
||||
return "Siemens";
|
||||
if (l_flgTipoCassa == 1L)
|
||||
return "Epson";
|
||||
return "??";
|
||||
}
|
||||
|
||||
public String getTipoCassa() {
|
||||
return getTipoCassa(getFlgTipoCassa());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue