KhcpxzID.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
源码类别:

企业管理

开发平台:

Java

  1. package com.webtier.KhcpxzAction;
  2. import org.apache.struts.action.ActionMapping;
  3. import org.apache.struts.action.ActionForm;
  4. import javax.servlet.http.HttpServletRequest;
  5. import javax.servlet.http.HttpServletResponse;
  6. import org.apache.struts.action.ActionForward;
  7. import org.apache.struts.action.Action;
  8. import com.service.KhxxFacade;
  9. import com.service.KhcpxzFacade;
  10. import com.service.KhcpxzFacadeImpl;
  11. import com.service.KhxxFacadeImpl;
  12. public class KhcpxzID
  13.     extends Action {
  14.   private KhcpxzFacade khcpxzFacade = null;
  15.   private KhxxFacade khxxFacade = null;
  16.   public KhcpxzID() {
  17.     this.khcpxzFacade = new KhcpxzFacadeImpl();
  18.     this.khxxFacade = new KhxxFacadeImpl();
  19.   }
  20.   public ActionForward perform(ActionMapping actionMapping,
  21.                                ActionForm actionForm,
  22.                                HttpServletRequest servletRequest,
  23.                                HttpServletResponse servletResponse) {
  24.     servletRequest.setAttribute("list", this.khxxFacade.khxxSelect());
  25.     String countID = String.valueOf(this.khcpxzFacade.countID());
  26.     if (countID == null) {
  27.       countID = "1";
  28.     }
  29.     servletRequest.setAttribute("countID", countID);
  30.     return actionMapping.findForward("khcpxzID");
  31.   }
  32. }