src/com/action/tableAction.java

(开头部分) 1KB

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

package com.action;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import com.dao.SysuserDAO;
import com.dao.TableDAO;
import com.model.Sysuser;
import com.model.Table;
import com.opensymphony.xwork2.ActionSupport;
import com.util.Info;
import com.util.Pagination;

public class tableAction extends ActionSupport
{
	private Integer id;
	private String tno;
	private int index=1;
	String no;
	String suc;
	private TableDAO tableDAO;
	
	//添加台位
	public String tableAdd(){
			Table table = new Table();
			table.setTno(tno);
			tableDAO.save(table);
			suc="";
			return "success";
	}
	//修改台位
	public String tableEdit(){
		Table table = tableDAO.findById(id);
		table.setTno(tno);
		suc="";
		tableDAO.attachDirty(table);
		return "success";
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTno() {
		return tno;
	}

	public void setTno(String tno) {
		this.tno = tno;
	}

	public int getIndex() {
		return index;
	}
后面还有 31 行代码,购买后查看完整代码

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

AI 解读 AI

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

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