xscjManage/src/org/action/KcAction.java

(开头部分) 2KB

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

package org.action;
import java.util.List;
import java.util.Map;
import org.model.Kcb;
import org.service.KcService;
import org.tool.Pager;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class KcAction extends ActionSupport {
	private int pageNow=1;
	private int pageSize=8;
	private Kcb kc;
	private KcService kcService;
	
	public int getPageNow() {
		return pageNow;
	}
	public void setPageNow(int pageNow) {
		this.pageNow = pageNow;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public Kcb getKc() {
		return kc;
	}
	public void setKc(Kcb kc) {
		this.kc = kc;
	}
	public String kcInfo()throws Exception{
		List list=kcService.findAll(pageNow, pageSize);
		Map request=(Map)ActionContext.getContext().get("request");
		System.out.println("totleSize:"+kcService.findKcSize());
		Pager page=new Pager(pageNow,kcService.findKcSize());
		System.out.println("totlePage:"+page.getTotalPage());
		request.put("list", list);
		request.put("page", page);
		return SUCCESS;
	}
	 public String findKc()throws Exception{
		 String kch=kc.getKch();
		 Kcb kc2=kcService.find(kch);
		 Map request=(Map)ActionContext.getContext().get("request");
		 request.put("kc", kc2);
		 if(kc2!=null){
			 return SUCCESS;
		 }else {
			 return ERROR;
		 }
	 }
	 public String deleteKc() throws Exception{
			String kch=kc.getKch();
			Map request=(Map)ActionContext.getContext().get("request");
			kcService.delete(kch);
			return SUCCESS;
		}
	 public String addKc()throws Exception{
后面还有 35 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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