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,62 @@
|
|||
package it.acxent.pg.servlet;
|
||||
|
||||
import it.acxent.bank.sella.SellaResp;
|
||||
import it.acxent.bank.servlet.sella.GetSellaResponseSvlt;
|
||||
import it.acxent.cart.Cart;
|
||||
import it.acxent.contab.Documento;
|
||||
import it.acxent.db.ApplParm;
|
||||
import it.acxent.db.ApplParmFull;
|
||||
import it.acxent.db.DBAdapter;
|
||||
import it.acxent.db.ResParm;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
public class RicevutaSellaSvlt extends GetSellaResponseSvlt {
|
||||
protected static ApplParmFull ap2;
|
||||
|
||||
protected void recordOrder(HttpServletRequest req, HttpServletResponse res, SellaResp sellaRes) {
|
||||
ApplParmFull apFull = getApFull(req);
|
||||
if (sellaRes != null && sellaRes.getMyerrorcode().equals("0")) {
|
||||
long l_id_ordine = sellaRes.getId_ordine();
|
||||
Documento bean = new Documento(apFull);
|
||||
bean.findByPrimaryKey(l_id_ordine);
|
||||
bean.setDataPagamento(DBAdapter.getToday());
|
||||
bean.setDataTransaction(DBAdapter.getToday());
|
||||
bean.setDescTransaction(sellaRes.getMyauthcode());
|
||||
bean.setFlgPagata(1L);
|
||||
bean.setFlgStatoOrdineWww(1L);
|
||||
ResParm rp = bean.save();
|
||||
if (rp.getStatus()) {
|
||||
if (bean.getFlgWwwRichiedeFattura() == 1L) {
|
||||
long l_id_tipodocFatturaDifferita = 22L;
|
||||
bean.creaDocumentoFiglio(bean.getId_clifor(), l_id_tipodocFatturaDifferita, null, false, 0L);
|
||||
} else {
|
||||
long l_id_tipodocRicevuta = 23L;
|
||||
bean.creaDocumentoFiglio(bean.getId_clifor(), l_id_tipodocRicevuta, null, false, 0L);
|
||||
}
|
||||
rp = bean.sendOrderMailMessageRavinale(getLang(req), true, true, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void preparePaymenResPage(HttpServletRequest req, HttpServletResponse res, SellaResp sellaRes) {
|
||||
long l_id_ordine = 0L;
|
||||
if (sellaRes != null)
|
||||
l_id_ordine = sellaRes.getId_ordine();
|
||||
Documento bean = new Documento(getApFull());
|
||||
bean.findByPrimaryKey(l_id_ordine);
|
||||
req.setAttribute("bean", bean);
|
||||
}
|
||||
|
||||
protected String getCheckOutMailMessage() {
|
||||
return getParm(Cart.P_CHECKOUTMSG).getTesto();
|
||||
}
|
||||
|
||||
protected ApplParmFull getAp2() {
|
||||
if (ap2 == null)
|
||||
ap2 = new ApplParmFull(new ApplParm(getApFull().getParm("DBDRIVER2").getNumeroInt(), getApFull().getParm("DBNAME2").getTesto(), getApFull().getParm("USER2").getTesto(), getApFull().getParm("PASSWORD2").getTesto()));
|
||||
return ap2;
|
||||
}
|
||||
|
||||
public void _test(HttpServletRequest req, HttpServletResponse res) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue