• 进度日报27


    protected void tuihuiliulan(HttpServletRequest req,HttpServletResponse resp)throws ServletException,IOException
        {
            req.setCharacterEncoding("utf-8");
            int status=StringUtil.StringToInt(req.getParameter("status"));
            int userid=StringUtil.StringToInt(req.getParameter("userid"));
            List<Zhengjibean>zhengjibeanlist=new Xuqiuservice().tiaojianneedlsit(status,userid);
            req.setAttribute("zhengjibeanlist", zhengjibeanlist);
            req.getRequestDispatcher("/index/tuihuiliulan.jsp").forward(req, resp);
            
        }
    public List<Zhengjibean>  tiaojianneedlsit(int status,int userid)
        {
            Session session = HibernateUtils.getCurrentSession();
            Transaction tr = session.beginTransaction();
            List<Zhengjibean> list=null;
            try
            {
                list=new Xuqiudao().tiaojianneedlsit(status, userid);
                tr.commit();
                
            }
            catch (Exception e) {
                e.printStackTrace();
                tr.rollback();
            }
            return list;
        }
    protected void tuihuineeddelete(HttpServletRequest req,HttpServletResponse resp)throws ServletException,IOException
        {
            req.setCharacterEncoding("utf-8");
            Xuqiuservice xuqiuservice=new Xuqiuservice();
            int id=StringUtil.StringToInt(req.getParameter("id"));
            int userid=StringUtil.StringToInt(req.getParameter("userid"));
            int status=3;
            xuqiuservice.needdeleta(id);
            List<Zhengjibean>zhengjibeanlist=xuqiuservice.tiaojianneedlsit(status,userid);
            req.setAttribute("zhengjibeanlist", zhengjibeanlist);
            req.getRequestDispatcher("/index/tuihuiliulan.jsp?status=1").forward(req, resp);
            
        }
  • 相关阅读:
    把Outlook与Google Calendar同步了
    (int) Int32.Parse() Convert.toInt32() (转)
    Http Context(转)
    DataReader DataSet(转)
    主键和外键(转)
    显卡参数学习
    开源抽象工厂模式,序列化,反序列化等..
    ASP.NET中App_Code,App_Data等文件夹的作用(转)
    using tianjiayinyong qubie
    xuliehua fanxuliehua xml(zhuan)
  • 原文地址:https://www.cnblogs.com/1234yyf/p/14197107.html
Copyright © 2020-2023  润新知