⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rwglstatisicblh.java

📁 以前做的一个j2ee的项目
💻 JAVA
字号:
package gov.gdlt.ssgly.taxcore.taxblh.rwgl;

import gov.gdlt.ssgly.taxcore.comm.blh.*;
import gov.gdlt.ssgly.taxcore.comm.event.*;
import gov.gdlt.ssgly.taxcore.comm.exception.*;
import gov.gdlt.ssgly.taxcore.taxevent.rwgl.*;
import gov.gdlt.ssgly.taxcore.taxdao.rwgl.*;
import java.util.*;
import gov.gdlt.ssgly.taxcore.taxdao.wdsc.WDSCyhsxxDAO;

/**
 * <p>Title: </p>
 *
 * <p>Description: 广东地税税收管理员工作平台</p>
 *
 * <p>Copyright: Copyright (c) 2005 广东省地方税务局,广州市地方税务局</p>
 *
 * <p>Company: 广州地税</p>
 *
 * @author 张承华
 * @version 1.0
 */
public class RWGLstatisicBLH extends BaseBizLogicHandler {
    public RWGLstatisicBLH() {
    }

    private ResponseEvent IgetStatisicCollect(RWGLstatisicReqEvent reqEvent) throws TaxBaseSystemException {
        RWGLstatisicResEvent resEvent = new RWGLstatisicResEvent();
        RWGLstatisicDAO rwDao = new RWGLstatisicDAO();

        try {
            rwDao.setSWJG_DM(reqEvent.getBlbm());
            rwDao.setBLRY_DM(reqEvent.getBlry());
            rwDao.setSQQ(reqEvent.getSqq());
            rwDao.setSQZ(reqEvent.getSqz());
            rwDao.setNSRBM(reqEvent.getNsrbm());

            WDSCyhsxxDAO yhs = new WDSCyhsxxDAO();
            HashMap map = yhs.nsrbm2Nsrnbm(reqEvent.getNsrbm());
            String nsrnbm = (String)map.get("nsrnbm");
            rwDao.setNSRNBM(nsrnbm);

            rwDao.getStatisicCollect();
        } catch (Exception e) {
            e.printStackTrace();
            throw new TaxBaseSystemException(e.getMessage());
        }
        resEvent.setRwHz(rwDao);
        return resEvent;
    }


    private ResponseEvent IgetStatisicList(RWGLstatisicReqEvent reqEvent) throws TaxBaseSystemException {
        RWGLstatisicResEvent resEvent = new RWGLstatisicResEvent();
        RWGLstatisicDAO rwDao = new RWGLstatisicDAO();
        List list = null;
        try {
            rwDao.setSWJG_DM(reqEvent.getBlbm());
            rwDao.setBLRY_DM(reqEvent.getBlry());
            rwDao.setSQQ(reqEvent.getSqq());
            rwDao.setSQZ(reqEvent.getSqz());
            rwDao.setNSRBM(reqEvent.getNsrbm());

            WDSCyhsxxDAO yhs = new WDSCyhsxxDAO();
            HashMap map = yhs.nsrbm2Nsrnbm(reqEvent.getNsrbm());
            String nsrnbm = (String)map.get("nsrnbm");
            rwDao.setNSRNBM(nsrnbm);

            list = rwDao.getStatisicList();
        } catch (Exception e) {
            e.printStackTrace();
            throw new TaxBaseSystemException(e.getMessage());
        }
        resEvent.setRwMx(list);
        return resEvent;
    }


    /**
     * performTask
     *
     * @param req RequestEvent
     * @return ResponseEvent
     * @throws TaxBaseBizException
     * @throws TaxBaseSystemException
     * @todo Implement this
     *   gov.gdlt.ssgly.taxcore.comm.blh.BaseBizLogicHandler method
     */
    protected ResponseEvent performTask(RequestEvent req) throws
            TaxBaseBizException, TaxBaseSystemException {

        RWGLstatisicReqEvent rwReq = (RWGLstatisicReqEvent)req;

        ResponseEvent res = new ResponseEvent();

        String dealMethod = req.getDealMethod();
        try {
            if ("IgetStatisicCollect".equals(dealMethod)) {
                //汇总
                res = this.IgetStatisicCollect(rwReq);
            } else if ("IgetStatisicList".equals(dealMethod)) {
                //明细
                res = this.IgetStatisicList(rwReq);
            }
        } catch (Exception e) {
            e.printStackTrace();
            throw new TaxBaseSystemException(e.getMessage());
        }
        return res;
    }

    /**
     * validateData
     *
     * @param req RequestEvent
     * @return ResponseEvent
     * @throws Exception
     * @todo Implement this
     *   gov.gdlt.ssgly.taxcore.comm.blh.BaseBizLogicHandler method
     */
    protected ResponseEvent validateData(RequestEvent req) throws Exception {
        return null;
    }

    public static void main(String[] args) {
        RWGLstatisicBLH rwglstatisicblh = new RWGLstatisicBLH();
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -