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

import com.kingdee.bos.BOSException;
import com.kingdee.bos.Context;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;
import com.kingdee.bos.metadata.data.SortType;
import com.kingdee.bos.metadata.entity.*;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.bos.util.BOSUuid;
import com.kingdee.eas.basedata.org.AdminOrgUnitInfo;
import com.kingdee.eas.basedata.org.PositionInfo;
import com.kingdee.eas.basedata.person.PersonInfo;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.eas.custom.certification.utils.DateUtil;
import com.kingdee.eas.custom.compensation.startingsalary.SalaryConfirmationCollection;
import com.kingdee.eas.custom.compensation.startingsalary.SalaryConfirmationFactory;
import com.kingdee.eas.custom.compensation.startingsalary.SalaryConfirmationInfo;
import com.kingdee.eas.custom.compensation.startingsalary.backgroundtransaction.ConfirmationSalaryFacadeFactory;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.hr.affair.*;
import com.kingdee.eas.hr.base.HRBillStateEnum;
import com.kingdee.eas.hr.emp.SalaryItemFactory;
import com.kingdee.eas.hr.emp.SalaryItemInfo;
import com.kingdee.shr.affair.web.handler.hrman.EmpEnrollBizBillHrManListHandler;
import com.kingdee.shr.base.syssetting.context.SHRContext;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.recuritment.*;
import org.springframework.ui.ModelMap;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public class EmpEnrollBizBillHrManListHandlerEx extends EmpEnrollBizBillHrManListHandler {
    public String generateConfirmBillAction(HttpServletRequest request, HttpServletResponse response, ModelMap modelMap) throws SHRWebException {
        String ids = this.getBillId(request);
        Context ctx = SHRContext.getInstance().getContext();
        try {
           ConfirmationSalaryFacadeFactory.getLocalInstance(ctx).createBill(ids,0,null,null);
        } catch (BOSException e) {
            throw new RuntimeException(e);
        }
        return null;
    }

}
