csxxfenye.java~17~
来自「客户关系管理系统,包括数据库,类,所有运行所需的代码及文件」· JAVA~17~ 代码 · 共 47 行
JAVA~17~
47 行
package com.webtier.queryInformation;
import com.tool.Chinese;
import com.domain.*;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.service.SfzyFacadeImpl;
import com.service.SfzyFacade;
import java.util.List;
public class CsxxFenYe
extends Action {
private SfzyFacade facade;
public CsxxFenYe() {
this.facade = new SfzyFacadeImpl();
}
public ActionForward perform(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest httpServletRequest,
HttpServletResponse httpServletResponse) {
/**@todo: complete the business logic here, this is just a skeleton.*/
CsxxForm csxxForm = (CsxxForm) actionForm;
csxxForm.setCsxx_sfmc(Chinese.str(httpServletRequest.getParameter(
"province")));
httpServletRequest.setAttribute("totalCity",
String.valueOf(this.facade.
totalCity(csxxForm)));
Integer iCount = Integer.valueOf(httpServletRequest.getParameter("iCount"));
httpServletRequest.setAttribute("iCount", String.valueOf(iCount));
Integer iCount1 = new Integer( (iCount.intValue() - 1) * 5);
if (iCount1.intValue() > 0) {
List list = this.facade.fenyeCity(iCount1, csxxForm);
httpServletRequest.setAttribute("form", list);
return actionMapping.findForward("csxxFenYe");
}
else {
return actionMapping.findForward("fail");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?