package com.kingdee.eas.custom.compensation.handler;

import com.kingdee.bos.Context;
import com.kingdee.shr.base.syssetting.app.osf.OSFAppUtil;
import com.kingdee.shr.base.syssetting.context.SHRContext;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.compensation.request.ParseRequestHelper;
import com.kingdee.shr.compensation.web.handler.CmpWorkFlowMainListHandler;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;

public class CmpWorkFlowMainListHandlerEx extends CmpWorkFlowMainListHandler {

    @Override
    public void reApprovalAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException {
        super.reApprovalAction(request, response, modelMap);
        String result=null;
        try {
            Context ctx = SHRContext.getInstance().getContext();
            String cmpschemeid = (String) ParseRequestHelper.getParameterByRequest(request, "cmpschemeid");
            Map<String, Object> map = new HashMap<String, Object>();
            //先处理
            Object obj = null;
            obj = OSFAppUtil.callService(ctx, "handMacDepositOSFService", map);
            result = (null != obj) ? obj.toString() : null;
        } catch (Exception e) {
            e.printStackTrace();
            result = e.getMessage();
        }
    }
}
