46 lines
1.4 KiB
Java
46 lines
1.4 KiB
Java
package it.acxent.cc.servlet;
|
|
|
|
import it.acxent.art.Articolo;
|
|
import it.acxent.art.ArticoloCR;
|
|
import it.acxent.common.Access;
|
|
import it.acxent.db.CRAdapter;
|
|
import it.acxent.db.DBAdapter;
|
|
import it.acxent.servlet.AblServletSvlt;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
public class ArticoloSvlt extends AblServletSvlt {
|
|
private static final long serialVersionUID = 8449640401787842418L;
|
|
|
|
protected CRAdapter getBeanCR(HttpServletRequest req) {
|
|
return new ArticoloCR(getApFull(req));
|
|
}
|
|
|
|
protected void search(HttpServletRequest req, HttpServletResponse res) {
|
|
super.search(req, res);
|
|
}
|
|
|
|
protected void fillComboAfterDetail(DBAdapter beanA, HttpServletRequest req, HttpServletResponse res) {}
|
|
|
|
protected void fillComboAfterSearch(CRAdapter CRA, HttpServletRequest req, HttpServletResponse res) {}
|
|
|
|
protected DBAdapter getBean(HttpServletRequest req) {
|
|
return new Articolo(getApFull(req));
|
|
}
|
|
|
|
protected boolean isSecureServlet(HttpServletRequest req) {
|
|
return false;
|
|
}
|
|
|
|
protected String getBeanPageName(HttpServletRequest req) {
|
|
String temp = getBeanName(req);
|
|
Access access = new Access(getApFull(req));
|
|
access.findByPrimaryKey(Access.convertFieldToTableName(temp));
|
|
if (getRequestParameter(req, "sw").equals("1")) {
|
|
if (!access.getSuffissoE().isEmpty())
|
|
return temp + temp + "E";
|
|
return temp + "E";
|
|
}
|
|
return temp;
|
|
}
|
|
}
|