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

📄 rwgldmswryblh.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 java.util.*;
import gov.gdlt.ssgly.taxcore.taxdao.rwgl.*;

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

    private ResponseEvent IgetDmSwry(RWGLdmswryReqEvent reqEvent) throws TaxBaseSystemException {
        RWGLdmswryResEvent resEvent = new RWGLdmswryResEvent();
        RWGLdmswryDAO dmswryDao = new RWGLdmswryDAO();
        List list = null;
        String swjg = "";
        try {
            swjg = reqEvent.getSwjg();
            dmswryDao.setSWJG_DM(swjg);
            list = dmswryDao.getDmSwry();
        } catch (Exception e) {
            throw new TaxBaseSystemException(e.getMessage());
        }
        resEvent.setSwryList(list);
        return resEvent;
    }

    private ResponseEvent IgetDmSwryBySwryDm(RWGLdmswryReqEvent reqEvent) throws TaxBaseSystemException {
        RWGLdmswryResEvent resEvent = new RWGLdmswryResEvent();
        RWGLdmswryDAO dmswryDao = new RWGLdmswryDAO();
        String swry = "";
        try {
            swry = reqEvent.getSwry();
            dmswryDao.setSWJG_DM(swry);
            dmswryDao.getDmSwryBySwryDm();
        } catch (Exception e) {
            throw new TaxBaseSystemException(e.getMessage());
        }
        resEvent.setSwryVo(dmswryDao);
        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 {
        RWGLdmswryReqEvent dmReq = (RWGLdmswryReqEvent)req;

        ResponseEvent res = new ResponseEvent();

        String dealMethod = req.getDealMethod();
        try {
            if ("IgetDmSwry".equals(dealMethod)) {
                res = this.IgetDmSwry(dmReq);
            } else if ("IgetDmSwryBySwryDm".equals(dealMethod)) {
                res = this.IgetDmSwryBySwryDm(dmReq);
            }
        } 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) {
        RWGLdmswryBLH rwgldmswryblh = new RWGLdmswryBLH();
    }
}

⌨️ 快捷键说明

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