📄 reptaction.java
字号:
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package crm.web.action.rept;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.actions.DispatchAction;
import crm.biz.cst.CustomerBiz;
import crm.biz.cst.LostBiz;
import crm.biz.other.BasDictBiz;
import crm.biz.other.OrderLineBiz;
import crm.dao.other.BasDictDAO;
import crm.entity.other.BasDictEntity;
import crm.web.form.rept.ReptForm;
public class ReptAction extends DispatchAction {
private CustomerBiz customerBiz;
private OrderLineBiz orderlineBiz;
private BasDictBiz basDictBiz;
private LostBiz lostBiz;
public ActionForward contr(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
List clist=customerBiz.findAll();
List olist=orderlineBiz.findAll();
request.setAttribute("clist", clist);
request.setAttribute("olist", olist);
return mapping.findForward("contr");
}
public ActionForward cons(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
List blist=basDictBiz.findbytype("客户等级");
request.setAttribute("blist", blist);
return mapping.findForward("cons");
}
public ActionForward ser(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
List blist=basDictBiz.findbytype("服务类型");
request.setAttribute("blist", blist);
return mapping.findForward("ser");
}
public ActionForward lost(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
List llist=lostBiz.findAll();
request.setAttribute("llist", llist);
return mapping.findForward("lost");
}
public void setCustomerBiz(CustomerBiz customerBiz) {
this.customerBiz = customerBiz;
}
public void setOrderlineBiz(OrderLineBiz orderlineBiz) {
this.orderlineBiz = orderlineBiz;
}
public void setBasDictBiz(BasDictBiz basDictBiz) {
this.basDictBiz = basDictBiz;
}
public void setLostBiz(LostBiz lostBiz) {
this.lostBiz = lostBiz;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -