📄 showmodulelist.java.svn-base
字号:
/**
*
* @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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -