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

企业管理

开发平台:

Java

  1. package com.webtier.khxxAction;
  2. import org.apache.struts.action.*;
  3. import javax.servlet.http.*;
  4. import com.service.KhxxFacade;
  5. import com.service.KhxxFacadeImpl;
  6. import com.service.CqyxzFacade;
  7. import com.service.CqyxzFacadeImpl;
  8. import com.service.CqylxFacade;
  9. import com.service.CqylxFacadeImpl;
  10. import com.service.CqyzxFacade;
  11. import com.service.CqyzxFacadeImpl;
  12. import com.service.CbankFacade;
  13. import com.service.CbankFacadeImpl;
  14. import com.service.CkhjbFacade;
  15. import com.service.CkhjbFacadeImpl;
  16. //#--以数据库中的记录数,查找出多少记录计算,以便做帐号存贮--
  17. public class KhxxCountID
  18.     extends Action {
  19.   private KhxxFacade facade = null;
  20.   private CqyxzFacade qyxz = null;
  21.   private CqylxFacade qylx = null;
  22.   private CqyzxFacade qyzx = null;
  23.   private CbankFacade bank = null;
  24.   private CkhjbFacade khjb = null;
  25.   public KhxxCountID() {
  26.     this.facade = new KhxxFacadeImpl();
  27.     this.qyxz = new CqyxzFacadeImpl();
  28.     this.qylx = new CqylxFacadeImpl();
  29.     this.qyzx = new CqyzxFacadeImpl();
  30.     this.bank = new CbankFacadeImpl();
  31.     this.khjb = new CkhjbFacadeImpl();
  32.   }
  33.   public ActionForward perform(ActionMapping actionMapping,
  34.                                ActionForm actionForm,
  35.                                HttpServletRequest httpServletRequest,
  36.                                HttpServletResponse httpServletResponse) {
  37.     String changeType = String.valueOf(this.facade.khxxCount());
  38.     httpServletRequest.setAttribute("changeType", changeType);
  39.     httpServletRequest.setAttribute("qylx", this.qylx.qylxSelect());   //企业类型的查询
  40.   httpServletRequest.setAttribute("qyxz", this.qyxz.qyxzSelect());  //企业性质的查询
  41.   httpServletRequest.setAttribute("qyzx", this.qyzx.qyzxSelect());  //企业资信的查询
  42.   httpServletRequest.setAttribute("bank", this.bank.bankSelect());  //银行的查询
  43.   httpServletRequest.setAttribute("khjb",this.khjb.khjgSelect());   //客户级别的查询
  44.     return actionMapping.findForward("khxxCountID");
  45.   }
  46. }