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,88 @@
|
|||
package it.acxent.contab.servlet;
|
||||
|
||||
import it.acxent.anag.Banca;
|
||||
import it.acxent.anag.BancaCR;
|
||||
import it.acxent.contab.DistintaRiba;
|
||||
import it.acxent.contab.DistintaRibaCR;
|
||||
import it.acxent.contab.DocumentoScadenza;
|
||||
import it.acxent.contab.DocumentoScadenzaCR;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.CRAdapter;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.db.ResParm;
|
||||
import it.acxent.servlet.AblServletSvlt;
|
||||
import it.acxent.util.StringTokenizer;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/admin/contab/DocumentoScadenza.abl"})
|
||||
public class DocumentoScadenzaSvlt extends AblServletSvlt {
|
||||
private static final long serialVersionUID = -7830020471332013441L;
|
||||
|
||||
protected void fillComboAfterDetail(DBAdapter beanA, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {
|
||||
req.setAttribute("listaBanche", new Banca(getApFull(req)).findByCR(new BancaCR(), 0, 0));
|
||||
}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new DocumentoScadenza(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new DocumentoScadenzaCR(getApFull(req));
|
||||
}
|
||||
|
||||
public void _creaDistinta(HttpServletRequest req, HttpServletResponse res) {
|
||||
String scadenzeSelezionate = req.getParameter("scadenzeSelezionate");
|
||||
StringTokenizer st = new StringTokenizer(scadenzeSelezionate, ";");
|
||||
DocumentoScadenza documentoScadenza = new DocumentoScadenza(getApFull(req));
|
||||
DistintaRibaCR CR = new DistintaRibaCR();
|
||||
fillObject(req, CR);
|
||||
DistintaRiba distinta = new DistintaRiba(getApFull(req));
|
||||
fillObject(req, distinta);
|
||||
distinta.setFlgStatoDistinta(0L);
|
||||
ResParm rp = distinta.save();
|
||||
if (rp.getStatus())
|
||||
while (st.hasMoreTokens()) {
|
||||
String s = st.nextToken();
|
||||
if (!s.isEmpty()) {
|
||||
documentoScadenza = new DocumentoScadenza(getApFull(req));
|
||||
documentoScadenza.findByPrimaryKey(Long.valueOf(s));
|
||||
documentoScadenza.setFlgScadenzaSelezionata(0L);
|
||||
documentoScadenza.setId_distintaRiba(distinta.getId_distintaRiba());
|
||||
documentoScadenza.save();
|
||||
}
|
||||
}
|
||||
search(req, res);
|
||||
}
|
||||
|
||||
public void _selezionaScadenza(HttpServletRequest req, HttpServletResponse res) {
|
||||
long id_documentoScadenza = getRequestLongParameter(req, "id_documentoScadenza");
|
||||
DocumentoScadenza documentoScadenza = new DocumentoScadenza(getApFull(req));
|
||||
documentoScadenza.findByPrimaryKey(id_documentoScadenza);
|
||||
documentoScadenza.setFlgScadenzaSelezionata(1L);
|
||||
documentoScadenza.save();
|
||||
}
|
||||
|
||||
public void _deselezionaScadenza(HttpServletRequest req, HttpServletResponse res) {
|
||||
long id_documentoScadenza = getRequestLongParameter(req, "id_documentoScadenza");
|
||||
DocumentoScadenza documentoScadenza = new DocumentoScadenza(getApFull(req));
|
||||
documentoScadenza.findByPrimaryKey(id_documentoScadenza);
|
||||
documentoScadenza.setFlgScadenzaSelezionata(0L);
|
||||
documentoScadenza.save();
|
||||
}
|
||||
|
||||
protected void print(HttpServletRequest req, HttpServletResponse res) {
|
||||
ApplParmFull apFull = getApFull(req);
|
||||
DocumentoScadenza bean = new DocumentoScadenza(apFull);
|
||||
try {
|
||||
DocumentoScadenzaCR CR = new DocumentoScadenzaCR();
|
||||
fillObject(req, CR);
|
||||
sendPdf(res, bean.creaListaScadenzePdf(CR), "Report_Documenti_Scadenza " + DBAdapter.getDayTimeTimestamp());
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue