Package org.fenixedu.academic.dto.residenceManagement

Examples of org.fenixedu.academic.dto.residenceManagement.ImportResidenceEventBean


        return mapping.findForward("missingPayments");
    }

    public ActionForward importCurrentDebts(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        ImportResidenceEventBean bean = getRenderedObject("importFile");
        if (bean == null) {
            ResidenceMonth month = getResidenceMonth(request);
            bean = month != null ? new ImportResidenceEventBean(month) : new ImportResidenceEventBean();
        } else {

            List<ResidenceEventBean> sucessful = new ArrayList<ResidenceEventBean>();
            List<ResidenceEventBean> unsucessful = new ArrayList<ResidenceEventBean>();
View Full Code Here


    }

    public ActionForward importData(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        ImportResidenceEventBean bean = getRenderedObject("importFile");
        if (bean == null) {
            ResidenceMonth month = getResidenceMonth(request);
            bean = month != null ? new ImportResidenceEventBean(month) : new ImportResidenceEventBean();
        } else {

            List<ResidenceEventBean> sucessful = new ArrayList<ResidenceEventBean>();
            List<ResidenceEventBean> unsucessful = new ArrayList<ResidenceEventBean>();
View Full Code Here

        return mapping.findForward("importData");
    }

    public ActionForward invalid(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        ImportResidenceEventBean bean = getRenderedObject("importFile");
        request.setAttribute("importFileBean", bean);
        return mapping.findForward("importData");
    }
View Full Code Here

    public ActionForward generateDebts(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        ResidentListsHolderBean listHolder = getRenderedObject("importList");
        ImportResidenceEventBean eventBean = getRenderedObject("dateBean");
        try {
            CreateResidenceEvents.run(listHolder.getSuccessfulEvents(), eventBean.getResidenceMonth());
        } catch (Exception e) {
            addActionMessage(request, e.getMessage());
            return importData(mapping, actionForm, request, response);
        }
        request.setAttribute("createdDebts", true);
View Full Code Here

    public ActionForward generatePayments(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        ResidentListsHolderBean listHolder = getRenderedObject("importList");
        ImportResidenceEventBean eventBean = getRenderedObject("dateBean");

        try {
            makePayments(listHolder.getSuccessfulEvents(), request);
        } catch (Exception e) {
            addActionMessage(request, e.getMessage());
View Full Code Here

    @EntryPoint
    public ActionForward manageResidenceEvents(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        ImportResidenceEventBean importResidenceEventBean = getRenderedObject("searchEventMonth");
        if (importResidenceEventBean == null) {
            ResidenceMonth month = getResidenceMonth(request);
            importResidenceEventBean = month != null ? new ImportResidenceEventBean(month) : new ImportResidenceEventBean();
        }

        RenderUtils.invalidateViewState();

        request.setAttribute("currentResidence", getManagementUnit(request));
View Full Code Here

        return new DomainObjectKeyConverter();
    }

    @Override
    public Object provide(Object source, Object currentValue) {
        ImportResidenceEventBean residenceEventBean = (ImportResidenceEventBean) source;
        ResidenceYear residenceYear = residenceEventBean.getResidenceYear();
        return residenceYear != null ? residenceYear.getMonthsSet() : Collections.emptyList();
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.residenceManagement.ImportResidenceEventBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.