Package org.fenixedu.academic.domain.mobility.outbound

Examples of org.fenixedu.academic.domain.mobility.outbound.OutboundMobilityCandidacyContestGroup


    }

    public ActionForward editGrade(final ActionMapping mapping, final ActionForm actionForm, final HttpServletRequest request,
            final HttpServletResponse response) {
        final OutboundMobilityCandidacySubmission submission = getDomainObject(request, "candidacySubmissionOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");
        final String grade = (String) getFromRequest(request, "grade");
        submission.setGrade(mobilityGroup, new BigDecimal(grade));
        return null;
    }
View Full Code Here


    }

    public ActionForward downloadCandidatesInformation(final ActionMapping mapping, final ActionForm actionForm,
            final HttpServletRequest request, final HttpServletResponse response) throws IOException {
        final OutboundMobilityCandidacyPeriod period = getDomainObject(request, "candidacyPeriodOid");
        final OutboundMobilityCandidacyContestGroup mobilityGroup = getDomainObject(request, "mobilityGroupOid");

        final String filename = BundleUtil.getString(Bundle.ACADEMIC, "label.mobility.candidates.information.filename");

        response.setHeader("Content-disposition", "attachment; filename=" + filename + ".xls");
        response.setContentType("application/vnd.ms-excel");

        final ServletOutputStream outputStream = response.getOutputStream();
        final Spreadsheet spreadsheet = mobilityGroup.getCandidatesInformationSpreadSheet(period);
        spreadsheet.exportToXLSSheet(outputStream);
        outputStream.close();

        return null;
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.mobility.outbound.OutboundMobilityCandidacyContestGroup

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.