Examples of TbBackSection


Examples of com.backsectionmodule.bean.TbBackSection

        int backSectionSequence=Integer.parseInt(request.getParameter("backSectionSequence"));
        double backSectionAmount=Double.valueOf(request.getParameter("backSectionAmount"));
        String backSectionCompanyName=request.getParameter("backSectionCompanyName");
        String backSectionTime=request.getParameter("backSectionTime");

            if(new TbBackSectionDAO().add(new TbBackSection(backSectionCode,projectCode,backSectionType,backSectionSequence,backSectionAmount,backSectionCompanyName,backSectionTime))){
            request.getSession().setAttribute("result", "添加成功");
            }else{           
            request.getSession().setAttribute("result", "添加失败");
            }
             request.getSession(true).setAttribute("tbBackSectionList",new TbBackSectionDAO().getTbBackSectionAll());
            response.sendRedirect("BackSectionModule/TbBackSectionList.jsp");
        }
        if("del".equals(method)){
            if(UtilDAO.delin("Tb_BackSection", "BackSectionId", request.getParameter("delIds"))){           
            request.getSession().setAttribute("result", "删除成功");
            }else{           
            request.getSession().setAttribute("result", "删除失败");
            }
             request.getSession(true).setAttribute("tbBackSectionList",new TbBackSectionDAO().getTbBackSectionAll());
            response.sendRedirect("BackSectionModule/TbBackSectionList.jsp");
        }
        if("edit".equals(method)){
        int backSectionId=Integer.parseInt(request.getParameter("backSectionId"));
        String backSectionCode=request.getParameter("backSectionCode");
        String projectCode=request.getParameter("projectCode");
        int backSectionType=Integer.parseInt(request.getParameter("backSectionType"));
        int backSectionSequence=Integer.parseInt(request.getParameter("backSectionSequence"));
        double backSectionAmount=Double.valueOf(request.getParameter("backSectionAmount"));
        String backSectionCompanyName=request.getParameter("backSectionCompanyName");
        String backSectionTime=request.getParameter("backSectionTime");

            if(new TbBackSectionDAO().edit(new TbBackSection(backSectionId,backSectionCode,projectCode,backSectionType,backSectionSequence,backSectionAmount,backSectionCompanyName,backSectionTime))){
            request.getSession().setAttribute("result", "修改成功");
            }else{           
            request.getSession().setAttribute("result", "修改失败");
            }
             request.getSession(true).setAttribute("tbBackSectionList",new TbBackSectionDAO().getTbBackSectionAll());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.