showmodulelist.java.svn-base

来自「用JSP JAVA 做的 系统 只是初来扎到还望西黄!别乱来哦!」· SVN-BASE 代码 · 共 49 行

SVN-BASE
49
字号
/** 
 *
 * @File name:  ShowModuleList.java
 * @Description:   
 * @Create on:  2008-4-10
 * @Author   :  孙韬
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 *
 */

package com.chis.model.frame;



import com.stframe.dao.DaoUtil;
import com.stframe.dao.PageUtil;
import com.stframe.form.ActionForm;
import com.stframe.servlet.ActionInstance;

public class ShowModuleList extends ActionInstance{
	
	public int execute(ActionForm af) throws Exception {		
		String page =(String)af.getHttpRequest().getParameter("currentpage");
		String name="";
		if(null!=af.getHttpRequest().getParameter("SEL_NAME")){
			name=(String)af.getHttpRequest().getParameter("SEL_NAME");
		}
		String path = af.getHttpRequest().getContextPath()+ "/Selevet.do?action=SHOW_MODULE_LIST";

		int ipage=0;
		if (page!=null&&!page.equals("")){
			ipage=Integer.valueOf(page);
		}
		
		String sql="select distinct * from VIEW_USERID_MODULE where NAME like '%"+name+"%' ";
		PageUtil pu=(PageUtil) DaoUtil.selectPage(af.getConnection(),sql, ipage, 4);
		pu.setPath(path);
		af.getHttpRequest().setAttribute("PAGE", ipage);
		af.getHttpRequest().setAttribute("MODULELIST", pu.getContext());
		af.getHttpRequest().setAttribute("pageUrl",pu.pageBar());
		af.getHttpRequest().setAttribute("SEL_NAME", name);
		return 1;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?