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,74 @@
|
|||
package it.acxent.tarop.servlet;
|
||||
|
||||
import it.acxent.db.CRAdapter;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.tarop.Opzione;
|
||||
import it.acxent.tarop.OpzioneCR;
|
||||
import it.acxent.tarop.Tariffa;
|
||||
import it.acxent.tarop.TariffaCR;
|
||||
import javax.servlet.annotation.WebServlet;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
@WebServlet(urlPatterns = {"/Opzione.abl"})
|
||||
public class OpzioneSvlt extends _TaropSvlt {
|
||||
protected void fillComboAfterDetail(DBAdapter l_bean, HttpServletRequest req, HttpServletResponse res) {
|
||||
Opzione bean = (Opzione)l_bean;
|
||||
if (getCmd(req).equals("md")) {
|
||||
req.setAttribute("listaTariffaOpzioni", bean.getTariffe(0, 0));
|
||||
req.setAttribute("listaOpzioniTelefoni", bean.getOpzioniArticoli());
|
||||
}
|
||||
}
|
||||
|
||||
protected void fillComboAfterSearch(CRAdapter CR, HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected DBAdapter getBean(HttpServletRequest req) {
|
||||
return new Opzione(getApFull(req));
|
||||
}
|
||||
|
||||
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
||||
return new OpzioneCR(getApFull(req));
|
||||
}
|
||||
|
||||
protected void prepareNewRecord(HttpServletRequest req, HttpServletResponse res) {}
|
||||
|
||||
protected String getCRAttribute(HttpServletRequest req) {
|
||||
return "CRT";
|
||||
}
|
||||
|
||||
protected void otherCommands(HttpServletRequest req, HttpServletResponse res) {
|
||||
String cmd = getCmd(req);
|
||||
if (cmd.equals("main")) {
|
||||
main(req, res);
|
||||
} else if (cmd.equals("detail")) {
|
||||
dettaglio(req, res);
|
||||
} else {
|
||||
search(req, res);
|
||||
}
|
||||
}
|
||||
|
||||
protected void main(HttpServletRequest req, HttpServletResponse res) {
|
||||
forceJspPageRelative("tariffePromozioni.jsp", req);
|
||||
callJsp(req, res);
|
||||
}
|
||||
|
||||
protected void dettaglio(HttpServletRequest req, HttpServletResponse res) {
|
||||
try {
|
||||
setJspPageRelative("tariffaCR.jsp", req);
|
||||
TariffaCR CR = new TariffaCR(getApFull(req));
|
||||
fillObject(req, CR);
|
||||
req.setAttribute("CRT", CR);
|
||||
Tariffa bean = new Tariffa(getApFull(req));
|
||||
req.setAttribute("list", bean.findWebByCR(CR, 0, 0));
|
||||
Opzione opzione = new Opzione(getApFull(req));
|
||||
OpzioneCR CRO = new OpzioneCR(getApFull(req));
|
||||
fillObject(req, CRO);
|
||||
req.setAttribute("listaOpzioni", opzione.findWebByCR(CRO, 0, 0));
|
||||
callJsp(req, res);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
forceMessage(req, e.getMessage());
|
||||
}
|
||||
showBean(req, res);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue