src/com/action/renyuanAction.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.action;
import java.util.ArrayList;
import java.util.List;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
import com.bean.renyuan;
import com.dao.renyuanDao;
import com.bean.bumen;
import com.dao.bumenDao;

/*
对人员功能进行维护
*/
@SuppressWarnings("serial")

public class renyuanAction extends ActionSupport {
private static final long serialVersionUID = 1L;
	private renyuanDao dao=null;
	private	renyuan renyuan=new renyuan();////对人员进行管理bean
	private List<renyuan> renyuans=new ArrayList<renyuan>();//对人员进行管理获得结果集返回list
	private bumenDao bumendao=null;
public void setBumendao(bumenDao bumendao){
this.bumendao = bumendao;
}
private List<bumen> bumens=new ArrayList<bumen>();

	private String key="";
	private int pageNum=1;
	private int pageCount=0;
	public renyuan getRenyuan() {
		return renyuan;
	}
	public void setDao(renyuanDao dao) {
		this.dao = dao;
	}
	public List<bumen> getBumens() {
return bumens;
}

	public void setRenyuan(renyuan renyuan) {
		this.renyuan = renyuan;
	}
	public List<renyuan> getRenyuans() {
		return renyuans;
	}
	
	public String execute()
	{//默认人员功能 添加 暂时留空
	return "";
	}
	public String addPage(){
	//人员添加页面
		String yhm=(String)ServletActionContext.getRequest().getSession().getAttribute("yhm");
	try{
		
		String sql="from bumen where 1=1";
		if(yhm!=null){
		sql+=" and qy in (select qyid from clqy where  fzr='"+yhm+"')";	
			
		}
后面还有 92 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。