Search in sources :

Example 6 with InterOfficeTransferActionForm

use of org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm in project head by mifos.

the class InterOfficeTransferAction method loadFromOffices.

public ActionForward loadFromOffices(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
    List<OfficeGlobalDto> fromOfficeDetailsDtos = null;
    if (actionForm.getFromOfficeHierarchy().equals("")) {
        fromOfficeDetailsDtos = null;
    } else if (actionForm.getFromOfficeHierarchy().equals("6")) {
        // to
        // recognize
        // center
        fromOfficeDetailsDtos = accountingServiceFacade.loadCustomerForLevel(new Short("3"));
    } else if (actionForm.getFromOfficeHierarchy().equals("7")) {
        // to
        // recognize
        // group
        fromOfficeDetailsDtos = accountingServiceFacade.loadCustomerForLevel(new Short("2"));
    } else {
        fromOfficeDetailsDtos = accountingServiceFacade.loadOfficesForLevel(Short.valueOf(actionForm.getFromOfficeHierarchy()));
    }
    storingSession(request, "IOFromOfficeHierarchy", fromOfficeDetailsDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : OfficeGlobalDto(org.mifos.dto.domain.OfficeGlobalDto) InterOfficeTransferActionForm(org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm)

Example 7 with InterOfficeTransferActionForm

use of org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm in project head by mifos.

the class InterOfficeTransferAction method preview.

public ActionForward preview(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
    storingSession(request, "InterOfficeTransferActionForm", actionForm);
    return mapping.findForward(ActionForwards.preview_success.toString());
}
Also used : InterOfficeTransferActionForm(org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm)

Aggregations

InterOfficeTransferActionForm (org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm)7 GLCodeDto (org.mifos.dto.domain.GLCodeDto)2 OfficeGlobalDto (org.mifos.dto.domain.OfficeGlobalDto)2