public class JournalVoucherAction extends VoucherAction
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CREDIT_DEBIT_TO_SINGLE_AMT_MODE |
protected static int |
EXT_ENCUMB_TO_NON_EXT_ENCUMB |
protected static int |
NO_MODE_CHANGE |
protected static int |
NON_EXT_ENCUMB_TO_EXT_ENCUMB |
protected static int |
SINGLE_AMT_TO_CREDIT_DEBIT_MODE |
LOG, UPDATE_EVENT_ACTIONSMODULE_LOCKED_MESSAGE, MODULE_LOCKED_URL_SUFFIXDOCUMENT_LOAD_COMMANDS| Constructor and Description |
|---|
JournalVoucherAction() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildBalanceTypeChangeConfirmationMessage(JournalVoucherForm jvForm,
org.kuali.rice.core.api.config.property.ConfigurationService kualiConfiguration)
This method will setup the message that will get displayed to the user when they are asked to confirm the balance type
change.
|
org.apache.struts.action.ActionForward |
changeBalanceType(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method processes a change in the balance type for a Journal Voucher document - from either a offset generation balance
type to a non-offset generation balance type or visa-versa.
|
org.apache.struts.action.ActionForward |
correct(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides to call super, and then to repopulate the credit/debit amounts b/c the credit/debit code might change during a JV
error correction.
|
protected int |
determineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm)
This method will determine which balance type amount mode to switch to.
|
protected int |
determineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm)
This method will determine which balance type encumbrance mode to switch to.
|
org.apache.struts.action.ActionForward |
execute(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides the parent and then calls the super method after building the array lists for valid accounting periods and balance
types.
|
protected BalanceType |
getPopulatedBalanceTypeInstance(String balanceTypeCode)
This method will fully populate a balance type given the passed in code, by calling the business object service that
retrieves the rest of the instances' information.
|
protected void |
loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase)
Overrides the parent to make sure that the JV specific accounting line helper forms are properly populated when the document
is first loaded.
|
protected void |
populateBalanceTypeOneDocument(JournalVoucherForm journalVoucherForm)
This method handles grabbing the values from the form and pushing them into the document appropriately.
|
protected void |
populateSelectedJournalBalanceType(JournalVoucherDocument journalVoucherDocument,
JournalVoucherForm journalVoucherForm)
This method grabs the value from the document bo and sets the selected balance type appropriately.
|
protected org.apache.struts.action.ActionForward |
processChangeBalanceTypeConfirmationQuestion(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method takes control from the changeBalanceType action method in order to present a question prompt to the user so that
they can confirm the change in balance type.
|
protected org.apache.struts.action.ActionForward |
processRouteOutOfBalanceDocumentConfirmationQuestion(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This helper method determines from the request object instance whether or not the user has been prompted about the journal
being out of balance.
|
org.apache.struts.action.ActionForward |
route(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Overrides the parent to first prompt the user appropriately to make sure that they want to submit and out of balance
document, then calls super's route method.
|
protected void |
switchFromCreditDebitModeToSingleAmountMode(JournalVoucherForm journalVoucherForm)
This method will clear out the source line values that aren't needed for the "Credit/Debit" mode.
|
protected void |
switchFromExternalEncumbranceModeToNonExternalEncumbrance(JournalVoucherForm journalVoucherForm)
This method will clear out the extra "reference" fields that the external encumbrance balance type uses, but will leave the
amounts since we aren't changing the offset generation code stuff.
|
protected void |
switchFromSingleAmountModeToCreditDebitMode(JournalVoucherForm journalVoucherForm)
This method will clear out the source line values that aren't needed for the "Single Amount" mode.
|
protected void |
uploadAccountingLines(boolean isSource,
org.apache.struts.action.ActionForm form)
This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the
document object.
|
org.apache.struts.action.ActionForward |
uploadSourceLines(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document.
|
copy, deleteSourceLine, insertSourceLine, populateAllVoucherAccountingLineHelpers, populateNewVoucherAccountingLineHelper, populateSelectedAccountingPeriod, populateVoucherAccountingLineHelperapprove, blanketApprove, checkSalesTax, checkSalesTaxRequiredAllLines, checkUploadFile, deepCopyAccountingLinesList, deleteAccountingLine, deleteTargetLine, getObjectTypeCodeFromLine, getSourceAccountingLine, getTargetAccountingLine, handleSalesTaxRequired, handleSalesTaxRequiredAllLines, hasSalesTaxBeenEntered, hideDetails, insertAccountingLine, insertTargetLine, isSalesTaxRequired, isValidSalesTaxEntered, performBalanceInquiryForAccountingLine, performBalanceInquiryForSourceLine, performBalanceInquiryForTargetLine, performLookup, populateSalesTax, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLineOverrides, processAccountingLines, refresh, refreshSalesTaxInfo, removeSalesTax, save, showDetails, toggleTab, uploadTargetLinesisDocumentLockedpopulateAuthorizationFieldsacknowledge, attemptLockRelease, buildAuthorizationException, cancel, cancelBOAttachment, canSave, checkAndWarnAboutSensitiveData, checkAuthorization, close, combineAdHocRecipients, complete, convertSetToMap, createDocument, delete, deleteAdHocRoutePerson, deleteAdHocRouteWorkgroup, deleteBONote, determineNoteWorkflowNotificationAction, disapprove, docHandler, doProcessingAfterPost, downloadBOAttachment, exitingDocument, fyi, generatePessimisticLockMessage, getAttachmentService, getBusinessObjectAuthorizationService, getBusinessObjectMetaDataService, getBusinessObjectService, getDataDictionaryService, getDocumentHelperService, getDocumentService, getEntityManagerFactory, getGroupService, getKualiConfigurationService, getKualiRuleService, getNoteService, getParameterService, getPessimisticLockService, getQuestion, hasPendingAdhocForCompletion, hideAllTabs, insertAdHocRoutePerson, insertAdHocRouteWorkgroup, insertBONote, isFormRepresentingLockObject, performRouteReport, populateAdHocActionRequestCodes, promptBeforeValidation, promptBeforeValidation, recall, refreshAdHocRoutingWorkgroupLookups, releaseLocks, reload, returnToSender, selectedAttachmentIndex, sendAdHocRequests, sendNoteWorkflowNotification, setupDocumentExit, setupPessimisticLockMessages, showAllTabs, streamToResponse, superUserApprove, superUserDisapprove, supervisorFunctions, takeSuperUserActionsaddMethodToCallToUncheckedList, defaultDispatch, dispatchMethod, findMethodToCall, getApplicationBaseUrl, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getLineToEdit, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, isModuleLocked, performInquiry, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, retrieveLookupParameterValue, updateTextArea, validateLookupInquiryFullParametercancelled, getMethod, getMethodName, getParameter, unspecifiedaddErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServletprotected static final int CREDIT_DEBIT_TO_SINGLE_AMT_MODE
protected static final int SINGLE_AMT_TO_CREDIT_DEBIT_MODE
protected static final int EXT_ENCUMB_TO_NON_EXT_ENCUMB
protected static final int NON_EXT_ENCUMB_TO_EXT_ENCUMB
protected static final int NO_MODE_CHANGE
public JournalVoucherAction()
public org.apache.struts.action.ActionForward execute(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
execute in class KualiAccountingDocumentActionBaseExceptionKualiAction.execute(ActionMapping mapping, ActionForm form, HttpServletRequest
request, HttpServletResponse response)public org.apache.struts.action.ActionForward route(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
route in class KualiAccountingDocumentActionBaseExceptionKualiDocumentActionBase.route(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)protected void populateBalanceTypeOneDocument(JournalVoucherForm journalVoucherForm)
journalVoucherForm - public org.apache.struts.action.ActionForward correct(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
correct in class VoucherActionException - KRAD Conversion: Customizing the extra buttons on the formVoucherAction.correct(org.apache.struts.action.ActionMapping,
org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)public org.apache.struts.action.ActionForward changeBalanceType(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping - form - request - response - Exceptionprotected int determineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm) throws Exception
journalVoucherForm - Exceptionprotected int determineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm) throws Exception
journalVoucherForm - Exceptionprotected org.apache.struts.action.ActionForward processChangeBalanceTypeConfirmationQuestion(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
mapping - form - request - response - Exceptionprotected String buildBalanceTypeChangeConfirmationMessage(JournalVoucherForm jvForm, org.kuali.rice.core.api.config.property.ConfigurationService kualiConfiguration) throws Exception
jvForm - kualiConfiguration - Exceptionprotected BalanceType getPopulatedBalanceTypeInstance(String balanceTypeCode)
balanceTypeCode - protected void switchFromSingleAmountModeToCreditDebitMode(JournalVoucherForm journalVoucherForm)
journalVoucherForm - protected void switchFromExternalEncumbranceModeToNonExternalEncumbrance(JournalVoucherForm journalVoucherForm)
journalVoucherForm - protected void switchFromCreditDebitModeToSingleAmountMode(JournalVoucherForm journalVoucherForm)
journalVoucherForm - protected void loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase kualiDocumentFormBase) throws org.kuali.rice.kew.api.exception.WorkflowException
loadDocument in class VoucherActionorg.kuali.rice.kew.api.exception.WorkflowExceptionKualiDocumentActionBase.loadDocument(org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase)protected void populateSelectedJournalBalanceType(JournalVoucherDocument journalVoucherDocument, JournalVoucherForm journalVoucherForm)
journalVoucherDocument - journalVoucherForm - protected org.apache.struts.action.ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
processRouteOutOfBalanceDocumentConfirmationQuestion in class VoucherActionmapping - form - request - response - Exceptionpublic org.apache.struts.action.ActionForward uploadSourceLines(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws FileNotFoundException, IOException
uploadSourceLines in class VoucherActionmapping - form - request - response - FileNotFoundExceptionIOExceptionprotected void uploadAccountingLines(boolean isSource, org.apache.struts.action.ActionForm form) throws FileNotFoundException, IOException
uploadAccountingLines in class VoucherActionisSource - form - FileNotFoundExceptionIOExceptionCopyright © 2004–2015 The Kuali Foundation. All rights reserved.