⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listsysdept.java

📁 用JSP JAVA 做的 系统 只是初来扎到还望西黄!别乱来哦!
💻 JAVA
字号:
package com.chis.model.user;
import java.util.List;

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

/**
 * 获取部门列表
 * 
 * @author zxh
 * 
 */
public class ListSysDept extends ActionInstance {
	public int execute(ActionForm af) throws Exception {
		String shbdwbh = af.getHttpSession().getAttribute("HBDWBH").toString();

		DataForm deptdf = new DataForm("T_BM", "ID");
		StringBuffer sbsql = new StringBuffer();
		sbsql.append("SELECT * FROM T_BM where HBDWBH='"+shbdwbh+"'");
		List list = DaoUtil
				.select(af.getConnection(), sbsql.toString(), deptdf);

		af.getHttpRequest().setAttribute("deptlist", list);
		return 1;
	}

}

⌨️ 快捷键说明

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