Search in sources :

Example 6 with MultipleGeneralLedgerActionForm

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

the class MultipleGeneralLedgerAction method submit.

public ActionForward submit(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
    int stage = 1;
    insertionSaveAndStage(actionForm, request, stage);
    return mapping.findForward("submit_success");
}
Also used : MultipleGeneralLedgerActionForm(org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)

Example 7 with MultipleGeneralLedgerActionForm

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

the class MultipleGeneralLedgerAction method saveStageSubmit.

public ActionForward saveStageSubmit(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
    int stage = 0;
    //
    insertionSaveAndStage(actionForm, request, stage);
    return mapping.findForward("submit_success");
}
Also used : MultipleGeneralLedgerActionForm(org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)

Example 8 with MultipleGeneralLedgerActionForm

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

the class MultipleGeneralLedgerAction method previous.

public ActionForward previous(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
    /*String [] accounthead=actionForm.getAccountHead1();
		String [] amounts=actionForm.getAmount1();
		String [] trannotes=actionForm.getNotes1();
		int total=0;
		List<GLCodeDto> glcodelist=new ArrayList<GLCodeDto>();
		for(int i=0;i<amounts.length;i++)
		{
			total =total+ Integer.parseInt(amounts[i]);
			GLCodeDto gLcodeDto= new GLCodeDto();
			gLcodeDto.setAccountHead(accounthead[i]);
			gLcodeDto.setAmounts(amounts[i]);
			gLcodeDto.setTrannotes(trannotes[i]);
			glcodelist.add(gLcodeDto);
		}
		*/
    storingSession(request, "accounHeadValues", glcodelist);
    storingSession(request, "GeneralLedgerActionForm", actionForm);
    return mapping.findForward(ActionForwards.previous_success.toString());
}
Also used : MultipleGeneralLedgerActionForm(org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)

Example 9 with MultipleGeneralLedgerActionForm

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

the class MultipleGeneralLedgerAction method loadAccountHeads.

public ActionForward loadAccountHeads(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
    List<GLCodeDto> accountingDtos = null;
    accountingDtos = accountingServiceFacade.accountHead(actionForm.getMainAccount());
    List<GLCodeDto> snolist = null;
    snolist = new ArrayList<GLCodeDto>();
    int sno = 1;
    GLCodeDto gLcodeDto = new GLCodeDto();
    gLcodeDto.setSno(sno);
    snolist.add(gLcodeDto);
    storingSession(request, "SNoList", snolist);
    storingSession(request, "AccountHeadGlCodes", accountingDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : GLCodeDto(org.mifos.dto.domain.GLCodeDto) MultipleGeneralLedgerActionForm(org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)

Aggregations

MultipleGeneralLedgerActionForm (org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)9 GLCodeDto (org.mifos.dto.domain.GLCodeDto)4 ArrayList (java.util.ArrayList)3 OfficesList (org.mifos.dto.domain.OfficesList)3 List (java.util.List)2 UserContext (org.mifos.security.util.UserContext)2 DynamicOfficeDto (org.mifos.dto.domain.DynamicOfficeDto)1 OfficeGlobalDto (org.mifos.dto.domain.OfficeGlobalDto)1 RolesActivityDto (org.mifos.dto.domain.RolesActivityDto)1