Пример #1
0
 public ActionForward versions(
     ActionMapping mapping,
     ActionForm form,
     HttpServletRequest request,
     HttpServletResponse response) {
   BudgetForm budgetForm = (BudgetForm) form;
   BudgetDocument budgetDocument = budgetForm.getBudgetDocument();
   BudgetParentDocument parentDocument = budgetDocument.getParentDocument();
   //        proposal.refreshReferenceObject("budgetDocumentVersions");
   budgetForm.setFinalBudgetVersion(
       getFinalBudgetVersion(parentDocument.getBudgetDocumentVersions()));
   setBudgetStatuses(parentDocument);
   return mapping.findForward(Constants.BUDGET_VERSIONS_PAGE);
 }
Пример #2
0
  /** {@inheritDoc} */
  @Override
  public ActionForward reload(
      ActionMapping mapping,
      ActionForm form,
      HttpServletRequest request,
      HttpServletResponse response)
      throws Exception {
    final ActionForward forward = super.reload(mapping, form, request, response);
    final BudgetForm budgetForm = (BudgetForm) form;
    BudgetDocument budgetDocument = budgetForm.getBudgetDocument();
    BudgetParentDocument parentDocument = budgetDocument.getParentDocument();

    budgetForm.setFinalBudgetVersion(
        getFinalBudgetVersion(parentDocument.getBudgetDocumentVersions()));
    setBudgetStatuses(budgetDocument.getParentDocument());

    final BudgetTDCValidator tdcValidator = new BudgetTDCValidator(request);
    tdcValidator.validateGeneratingWarnings(budgetDocument.getParentDocument());

    populateBudgetPrintForms(budgetDocument.getBudget());
    return forward;
  }