KhxxCountID.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:2k
- package com.webtier.khxxAction;
- import org.apache.struts.action.*;
- import javax.servlet.http.*;
- import com.service.KhxxFacade;
- import com.service.KhxxFacadeImpl;
- import com.service.CqyxzFacade;
- import com.service.CqyxzFacadeImpl;
- import com.service.CqylxFacade;
- import com.service.CqylxFacadeImpl;
- import com.service.CqyzxFacade;
- import com.service.CqyzxFacadeImpl;
- import com.service.CbankFacade;
- import com.service.CbankFacadeImpl;
- import com.service.CkhjbFacade;
- import com.service.CkhjbFacadeImpl;
- //#--以数据库中的记录数,查找出多少记录计算,以便做帐号存贮--
- public class KhxxCountID
- extends Action {
- private KhxxFacade facade = null;
- private CqyxzFacade qyxz = null;
- private CqylxFacade qylx = null;
- private CqyzxFacade qyzx = null;
- private CbankFacade bank = null;
- private CkhjbFacade khjb = null;
- public KhxxCountID() {
- this.facade = new KhxxFacadeImpl();
- this.qyxz = new CqyxzFacadeImpl();
- this.qylx = new CqylxFacadeImpl();
- this.qyzx = new CqyzxFacadeImpl();
- this.bank = new CbankFacadeImpl();
- this.khjb = new CkhjbFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest httpServletRequest,
- HttpServletResponse httpServletResponse) {
- String changeType = String.valueOf(this.facade.khxxCount());
- httpServletRequest.setAttribute("changeType", changeType);
- httpServletRequest.setAttribute("qylx", this.qylx.qylxSelect()); //企业类型的查询
- httpServletRequest.setAttribute("qyxz", this.qyxz.qyxzSelect()); //企业性质的查询
- httpServletRequest.setAttribute("qyzx", this.qyzx.qyzxSelect()); //企业资信的查询
- httpServletRequest.setAttribute("bank", this.bank.bankSelect()); //银行的查询
- httpServletRequest.setAttribute("khjb",this.khjb.khjgSelect()); //客户级别的查询
- return actionMapping.findForward("khxxCountID");
- }
- }