Search in sources :

Example 11 with GLCodeDto

use of org.mifos.dto.domain.GLCodeDto in project head by mifos.

the class InterOfficeTransferAction method loadCreditAccount.

public ActionForward loadCreditAccount(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    InterOfficeTransferActionForm actionForm = (InterOfficeTransferActionForm) form;
    List<GLCodeDto> accountingDtos = null;
    /*
		 * if( (actionForm.getFromOfficeHierarchy().equals(actionForm.
		 * getToOfficeHierarchy())) &&
		 * (actionForm.getFromOffice().equals(actionForm.getToOffice()))){

		 * accountingDtos =
		 * accountingServiceFacade.loadCreditAccounts(actionForm
		 * .getDebitAccountHead());
		 *
		 * }else{ accountingDtos =
		 * accountingServiceFacade.loadCreditAccounts(actionForm
		 * .getDebitAccountHead()); }
		 */
    accountingDtos = accountingServiceFacade.loadCreditAccounts(actionForm.getDebitAccountHead());
    storingSession(request, "CreditAccounts", accountingDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : GLCodeDto(org.mifos.dto.domain.GLCodeDto) InterOfficeTransferActionForm(org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm)

Example 12 with GLCodeDto

use of org.mifos.dto.domain.GLCodeDto in project head by mifos.

the class JournalVoucherAction method loadCreditAccount.

public ActionForward loadCreditAccount(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    JournalVoucherActionForm actionForm = (JournalVoucherActionForm) form;
    List<GLCodeDto> accountingDtos = null;
    accountingDtos = accountingServiceFacade.loadCreditAccounts(actionForm.getDebitAccountHead());
    storingSession(request, "CreditAccounts", accountingDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : GLCodeDto(org.mifos.dto.domain.GLCodeDto) JournalVoucherActionForm(org.mifos.accounting.struts.actionform.JournalVoucherActionForm)

Example 13 with GLCodeDto

use of org.mifos.dto.domain.GLCodeDto in project head by mifos.

the class JournalVoucherAction method load.

public ActionForward load(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    JournalVoucherActionForm actionForm = (JournalVoucherActionForm) form;
    List<GLCodeDto> accountingDtos = null;
    List<RolesActivityDto> rolesactivitydto = null;
    accountingDtos = accountingServiceFacade.loadDebitAccounts();
    java.util.Date voucherDate = DateUtils.getCurrentDateWithoutTimeStamp();
    actionForm.setVoucherDate(voucherDate);
    rolesactivitydto = accountingServiceFacade.jvloadRolesActivity();
    UserContext context = getUserContext(request);
    actionForm.setOfficeLevelId(String.valueOf(context.getOfficeLevelId()));
    List listOfOfficeHierarchyObject = getOfficeLevels(actionForm);
    boolean journalVoucherSave = rolesactivitydto.isEmpty();
    storingSession(request, "listOfOffices", listOfOfficeHierarchyObject);
    storingSession(request, "jvsave", journalVoucherSave);
    storingSession(request, "DebitAccountGlCodes", accountingDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : GLCodeDto(org.mifos.dto.domain.GLCodeDto) UserContext(org.mifos.security.util.UserContext) JournalVoucherActionForm(org.mifos.accounting.struts.actionform.JournalVoucherActionForm) ArrayList(java.util.ArrayList) OfficesList(org.mifos.dto.domain.OfficesList) List(java.util.List) RolesActivityDto(org.mifos.dto.domain.RolesActivityDto)

Example 14 with GLCodeDto

use of org.mifos.dto.domain.GLCodeDto in project head by mifos.

the class MultipleGeneralLedgerAction method loadMainAccounts.

public ActionForward loadMainAccounts(ActionMapping mapping, ActionForm form, HttpServletRequest request, @SuppressWarnings("unused") HttpServletResponse response) throws Exception {
    MultipleGeneralLedgerActionForm actionForm = (MultipleGeneralLedgerActionForm) form;
    List<GLCodeDto> accountingDtos = null;
    if (actionForm.getTrxnType().equals("CR") || actionForm.getTrxnType().equals("CP")) {
        accountingDtos = accountingServiceFacade.mainAccountForCash();
    } else if (actionForm.getTrxnType().equals("BR") || actionForm.getTrxnType().equals("BP")) {
        accountingDtos = accountingServiceFacade.mainAccountForBank();
    }
    storingSession(request, "MainAccountGlCodes", accountingDtos);
    return mapping.findForward(ActionForwards.load_success.toString());
}
Also used : GLCodeDto(org.mifos.dto.domain.GLCodeDto) MultipleGeneralLedgerActionForm(org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)

Example 15 with GLCodeDto

use of org.mifos.dto.domain.GLCodeDto in project head by mifos.

the class SingleGeneralLedgerAction method loadAccountHeads.

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

Aggregations

GLCodeDto (org.mifos.dto.domain.GLCodeDto)37 ViewStageTransactionActionForm (org.mifos.accounting.struts.actionform.ViewStageTransactionActionForm)9 OfficeGlobalDto (org.mifos.dto.domain.OfficeGlobalDto)9 ArrayList (java.util.ArrayList)7 VoucherBranchMappingActionForm (org.mifos.accounting.struts.actionform.VoucherBranchMappingActionForm)5 GlDetailDto (org.mifos.dto.domain.GlDetailDto)5 ViewStageTransactionsDto (org.mifos.dto.domain.ViewStageTransactionsDto)5 MultipleGeneralLedgerActionForm (org.mifos.accounting.struts.actionform.MultipleGeneralLedgerActionForm)4 OfficesList (org.mifos.dto.domain.OfficesList)4 BigDecimal (java.math.BigDecimal)3 ParseException (java.text.ParseException)3 Date (java.util.Date)3 CoaBranchMappingActionForm (org.mifos.accounting.struts.actionform.CoaBranchMappingActionForm)3 GlDetailBO (org.mifos.application.accounting.business.GlDetailBO)3 UserContext (org.mifos.security.util.UserContext)3 LinkedHashMap (java.util.LinkedHashMap)2 List (java.util.List)2 InterOfficeTransferActionForm (org.mifos.accounting.struts.actionform.InterOfficeTransferActionForm)2 JournalVoucherActionForm (org.mifos.accounting.struts.actionform.JournalVoucherActionForm)2 SingleGeneralLedgerActionForm (org.mifos.accounting.struts.actionform.SingleGeneralLedgerActionForm)2