📄 payplanalllistoutaction.jsp
字号:
<!--ACTION 动作控制JSP--><%@ page contentType="text/html; charset=GBK"%><%@ page import="cn.com.juneng.system.common.BaseForm" %><%@ page import="cn.com.juneng.system.common.COMMON" %><%@ page import="cn.com.juneng.system.common.util.ValueObjectHelper" %><%@ page import="cn.com.juneng.payplan.service.PayplanService" %><%@ page import="cn.com.juneng.contract.service.ContractService" %><%@ page import="cn.com.juneng.payplan.vo.PayplanVOImpl" %><%@ page import="cn.com.juneng.contract.vo.ContractVOImpl" %><%@ page import="cn.com.juneng.system.common.SpringBeanFactory" %><%@ page import="java.util.List" %><%@ page import="cn.com.juneng.receivedetail.service.ReceivedetailService" %><%@ include file="/common/inc/CommonAction.jsp"%><%! private ReceivedetailService receivedetailService = (ReceivedetailService)SpringBeanFactory.getBean("receivedetailService"); private ContractService contractService = (ContractService)SpringBeanFactory.getBean("contractService"); private PayplanService payplanService = (PayplanService)SpringBeanFactory.getBean("payplanService"); private String jspPath = "/planToReceive/"; private String actionJsp = jspPath+"PayplanAllListOutAction.jsp"; private String listJsp = jspPath+"List.jsp"; private String listJsp2 = jspPath+"List2.jsp"; private String editJsp = jspPath+"ShowAll.jsp"; private String innereditJsp = jspPath+"Edit.jsp"; //列表 public void list(HttpServletRequest request,HttpServletResponse response,BaseForm bForm) throws Exception { //根据传入参数构造查询条件语句 String querySql1 = COMMON.getQuerySql(request); String orderSql = null; //排序 if(!COMMON.isEmpty(bForm.getOrderCol())){ orderSql = "order by "+bForm.getOrderCol()+" "+bForm.getOrder(); } if(COMMON.isEmpty(orderSql)){ orderSql=" order by contractno,plandate "; }else{ orderSql+=" contractno,plandate"; } if(!COMMON.isEmpty(querySql1)){ querySql1+= " and tmp1=2"; }else querySql1+= " tmp1=2"; List list = payplanService.getList(querySql1,orderSql,0,Integer.MAX_VALUE); List list2 = receivedetailService.getList(querySql1,orderSql,0,Integer.MAX_VALUE); request.setAttribute("BaseForm",bForm); request.setAttribute("List",list); request.setAttribute("List2",list2); pageForward(listJsp2,request,response); } //查看 public void view(HttpServletRequest request,HttpServletResponse response,BaseForm bForm) throws Exception { PayplanVOImpl vo = (PayplanVOImpl)bForm; ContractVOImpl contracVO=contractService.findByPrimaryKey(vo.getRid()); List list = payplanService.getList(" contractid='"+vo.getRid()+"'"," order by plandate",0,Integer.MAX_VALUE); List list2 = receivedetailService.getList(" contractid='"+vo.getRid()+"'"," order by plandate",0,Integer.MAX_VALUE); if(!COMMON.isEmpty(list)) vo=(PayplanVOImpl)list.get(0); else vo=new PayplanVOImpl(); vo.setCurrentPage(bForm.getCurrentPage()); vo.setActionType("save"); request.setAttribute("BaseForm",bForm); request.setAttribute("List",list); request.setAttribute("List2",list2); pageForward(listJsp,request,response); } //查看 public void view2(HttpServletRequest request,HttpServletResponse response,BaseForm bForm) throws Exception { PayplanVOImpl vo = (PayplanVOImpl)bForm; ContractVOImpl contracVO=contractService.findByPrimaryKey(vo.getRid()); List list = payplanService.getList(" contractid='"+vo.getRid()+"'"," order by plandate",0,Integer.MAX_VALUE); List list2 = receivedetailService.getList(" contractid='"+vo.getRid()+"'"," order by plandate",0,Integer.MAX_VALUE); if(!COMMON.isEmpty(list)) vo=(PayplanVOImpl)list.get(0); else vo=new PayplanVOImpl(); vo.setCurrentPage(bForm.getCurrentPage()); vo.setActionType("save"); request.setAttribute("BaseForm",bForm); request.setAttribute("List",list); request.setAttribute("List2",list2); pageForward(listJsp2,request,response); }%><% request.setAttribute("ActionUrl",request.getContextPath()+actionJsp); PayplanVOImpl vo = new PayplanVOImpl(); ValueObjectHelper.fillObjectBean(vo, request); this.processRequest(request, response,vo);%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -