package com.kingdee.eas.custom.dormitorysystem.application.handler;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.shr.base.syssetting.context.SHRContext;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.base.syssetting.web.handler.ListHandler;
import org.apache.log4j.Logger;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @Description 申请单通用Handler
 * @Date 2025/4/29 9:32
 * @Created by Heyuan
 */
public class DormitoryApplicationListHandler extends ListHandler {
    private static Logger logger = Logger.getLogger(DormitoryApplicationListHandler.class);
    private Context ctx = SHRContext.getInstance().getContext();

    /**
     * 提交生效批量
     *
     * @param request
     * @param response
     * @param modelMap
     * @throws SHRWebException
     * @throws BOSException
     */
    public void submitEffectAction(
            HttpServletRequest request,
            HttpServletResponse response,
            ModelMap modelMap
    ) throws SHRWebException, BOSException {
        this.handleEnableWithTips(request, "submitEffect");
    }


    /**
     * 反审批批量
     *
     * @param request
     * @param response
     * @param modelMap
     * @throws SHRWebException
     * @throws BOSException
     */
    public void againstApproveAction(
            HttpServletRequest request,
            HttpServletResponse response,
            ModelMap modelMap
    ) throws SHRWebException, BOSException {
        this.handleEnableWithTips(request, "untiCheckBizBill");
    }

    /**
     * 撤回
     *
     * @param request
     * @param response
     * @param modelMap
     * @throws SHRWebException
     * @throws EASBizException
     * @throws BOSException
     */
    public void abortBizBillAction(
            HttpServletRequest request,
            HttpServletResponse response,
            ModelMap modelMap
    ) throws SHRWebException {
        this.handleEnableWithTips(request, "abortBizBill");
    }
}
