querysfzyfenye.java~19~
来自「客户关系管理系统,包括数据库,类,所有运行所需的代码及文件」· JAVA~19~ 代码 · 共 44 行
JAVA~19~
44 行
package com.webtier.queryInformation;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.service.SfzyFacade;
import com.service.SfzyFacadeImpl;
import java.util.List;
import com.domain.FfzyForm;
import java.io.UnsupportedEncodingException;
public class QuerySfzyFenYe
extends Action {
private SfzyFacade facade;
public QuerySfzyFenYe() {
this.facade = new SfzyFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) throws
UnsupportedEncodingException {
httpServletRequest.setCharacterEncoding("gb2312");
Integer iCount = Integer.valueOf(httpServletRequest.getParameter("iCount"));
//iCount = new Integer( (iCount.intValue() - 1) * 5);
Integer iCount1=new Integer( (iCount.intValue() - 1) * 5);
if (iCount1.intValue() > 0) {
List list=this.facade.sfzyFenYe(iCount);
httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
httpServletRequest.setAttribute("total", String.valueOf(this.facade.toatl()));
httpServletRequest.setAttribute("sfzylist",list);
// System.out.println("iCount="+iCount);
//System.out.println("集合="+this.facade.sfzyFenYe(iCount));
return actionMapping.findForward("fenyeSuccess");
}
else {
return actionMapping.findForward("fenyeFail");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?