文件名称:
hibernate sprint 封装应用
开发工具:
文件大小: 3kb
下载次数: 0
上传时间: 2011-07-21
详细说明: 自己做的简单的封装程序,很方便。 IService s = this.getService(); String xm = request.getParameter("xm"); String rxsj = request.getParameter("rxsj"); String yx = request.getParameter("yx"); String zy = request.getParameter("zy"); String sf = request.getParameter("sf"); String mz = request.getParameter("mz"); String xb = request.getParameter("xb"); String pagenum = request.getParameter("pagenum"); String pxfield = request.getParameter("pxfield"); String px = request.getParameter("px"); String forward = request.getParameter("forward"); xm = (xm == null) ? "" : xm; rxsj = (rxsj == null) ? "" : rxsj; yx = (yx == null) ? "" : yx; zy = (zy == null) ? "" : zy; sf = (sf == null) ? "" : sf; mz = (mz == null) ? "" : mz; xb = (xb == null) ? "" : xb; pagenum = (pagenum == null) ? "20" : pagenum; pxfield = (pxfield == null) ? "XH" : pxfield; px = (px == null) ? "asc" : px; int pnum = Integer.parseInt(pagenum); // 翻页初始化 String curpage = request.getParameter("curpage"); if (curpage == null || curpage.trim().length() == 0) curpage = "1"; int cpage = Integer.parseInt(curpage); // 过滤条件赋值 List fls = new ArrayList(); fls.add(new QCls("XM", QCls._STRING_, QCls._F_LIKE_, xm).getThis()); fls.add(new QCls("RXSJ", QCls._INT_, QCls._F_EQUAL_, rxsj).getThis()); fls.add(new QCls("YXDM", QCls._STRING_, QCls._F_EQUAL_, yx).getThis()); fls.add(new QCls("LQZY", QCls._STRING_, QCls._F_EQUAL_, zy).getThis()); fls.add(new QCls("SF", QCls._STRING_, QCls._F_EQUAL_, sf).getThis()); fls.add(new QCls("MZDM", QCls._STRING_, QCls._F_EQUAL_, mz).getThis()); fls.add(new QCls("XBDM", QCls._STRING_, QCls._F_EQUAL_, xb).getThis()); fls.add(new QCls(null, null, null, " order by " + pxfield + " " + px)); Map m = s.getQueryList(new String[] { "from T_TDD", "select count(*) from T_TDD" }, fls, cpage, pnum); List tddls = (List) m.get(QCls._LIST_); request.setAttribute("tddls", tddls); String toolbar = QCls.getToolBarZhcn("main.do?method=getStudInfoList" + "&xm=" + URLEncoder.encode(xm, "utf-8") + "&rxsj=" + rxsj + "&yx=" + yx + "&zy=" + zy + "&sf=" + sf + "&mz=" + mz + "&xb=" + xb + "&pagenum=" + pagenum + "&pxfield=" + pxfield + "&px=" + px, "curpage", ((Integer) m.get(QCls._COUNT_)).intValue(), cpage, pnum); request.setAttribute("toolbar", toolbar); // 条件过滤数据,传送到页面 request.setAttribute("xm", xm); request.setAttribute("rxsj", rxsj); request.setAttribute("yx", yx); request.setAttribute("zy", zy); request.setAttribute("sf", sf); request.setAttribute("mz", mz); request.setAttribute("xb", xb); request.setAttribute("pagenum", pagenum); request.setAttribute("pxfield", pxfield); request.setAttribute("px", px); return mapping.findForward(""); ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.