public class KualiAccountingDocumentFormBase extends FinancialSystemTransactionalDocumentFormBase
Modifier and Type | Field and Description |
---|---|
protected Map |
editableAccounts |
protected Map |
forcedLookupOptionalFields |
protected boolean |
hideDetails |
protected SourceAccountingLine |
newSourceLine |
protected TargetAccountingLine |
newTargetLine |
protected org.apache.struts.upload.FormFile |
sourceFile |
protected org.apache.struts.upload.FormFile |
targetFile |
forcedReadOnlyFields
adHocActionRequestCodes, attachmentFile, documentActions, editingMode, suppressAllButtons
Constructor and Description |
---|
KualiAccountingDocumentFormBase()
This constructor sets up empty instances for the dependent objects...
|
Modifier and Type | Method and Description |
---|---|
protected SourceAccountingLine |
createNewSourceAccountingLine(AccountingDocument financialDocument) |
protected TargetAccountingLine |
createNewTargetAccountingLine(AccountingDocument financialDocument) |
protected void |
customInitMaxUploadSizes()
Adds the accounting line file size to the list of max file sizes.
|
String |
getAccountingLineImportInstructionsUrl() |
String |
getCurrencyFormattedSourceTotal()
Retrieves the source accounting lines total in a currency format with commas.
|
String |
getCurrencyFormattedTargetTotal()
Retrieves the source accounting lines total in a currency format with commas.
|
Map |
getEditableAccounts() |
protected List<String> |
getExcludedmethodToCall()
get the names of the methods to call that can be excluded from the "be used" check.
|
AccountingDocument |
getFinancialDocument()
This method retrieves an instance of the form.
|
Map |
getForcedLookupOptionalFields()
A
of names of optional accounting line fields that require a quickfinder. |
boolean |
getHideDetails() |
SourceAccountingLine |
getNewSourceLine() |
TargetAccountingLine |
getNewTargetLine() |
org.apache.struts.upload.FormFile |
getSourceFile() |
org.apache.struts.upload.FormFile |
getTargetFile() |
protected List<AccountingLine> |
harvestAccountingLines(List lines)
This method takes a generic list, hopefully with some AccountingLine objects in it, and returns a list of AccountingLine
objects, because Java generics are just so wonderful.
|
boolean |
isHideDetails() |
void |
populate(javax.servlet.http.HttpServletRequest request)
Overrides the parent to call super.populate and then to call the accounting lines populate method that is specific to loading
the two select lists on the page.
|
protected void |
populateAccountingLine(AccountingLine line,
String accountingLinePropertyName,
Map parameterMap)
Populates the dependent fields of objects contained within the given accountingLine
|
protected void |
populateAccountingLines(Map parameterMap)
This method iterates over all of the source lines and all of the target lines in a transactional document, and calls
prepareAccountingLineForValidationAndPersistence on each one.
|
protected void |
populateAccountingLinesForResponse(String methodToCall,
Map parameterMap)
Populates the accounting lines which need to be updated to successfully complete a response to the request
|
void |
populateSourceAccountingLine(SourceAccountingLine sourceLine,
String accountingLinePropertyName,
Map parameterMap)
Populates a source accounting line bo using values from the struts form.
|
void |
populateTargetAccountingLine(TargetAccountingLine targetLine,
String accountingLinePropertyName,
Map parameterMap)
Populates a target accounting line bo using values from the struts form.
|
protected void |
repopulateOverrides(AccountingLine line,
String accountingLinePropertyName,
Map parameterMap)
This repopulates the override values from the request
|
void |
setEditableAccounts(Map editableAccounts) |
void |
setForcedLookupOptionalFields(Map fieldMap)
A
of names of optional accounting line fields that require a quickfinder. |
void |
setHideDetails(boolean hideDetails) |
void |
setNewSourceLine(SourceAccountingLine newIncomeLine) |
void |
setNewTargetLine(TargetAccountingLine newExpenseLine) |
void |
setSourceFile(org.apache.struts.upload.FormFile sourceFile) |
void |
setTargetFile(org.apache.struts.upload.FormFile targetFile) |
boolean |
shouldMethodToCallParameterBeUsed(String methodToCallParameterName,
String methodToCallParameterValue,
javax.servlet.http.HttpServletRequest request) |
extendDocInfoToThreeColumns, generateErrorCorrectionButton, getExtraButtons, populateHeaderFields
discoverDocumentTypeName, formatReversalDate, getForcedReadOnlyFields, getTransactionalDocument, instantiateTransactionalDocumentByDocumentTypeName, populateEmptyMultiSelect, populateFalseCheckboxes, populationSpecialEmptyFields, setForcedReadOnlyFields
addRequiredNonEditableProperties, buildHtmlLink, getActionRequests, getActionRequestsRequiringApproval, getAdditionalScriptFile, getAdditionalScriptFiles, getAdHocActionRequestCodes, getAdHocRoutePerson, getAdHocRoutePersons, getAdHocRouteWorkgroup, getAdHocRouteWorkgroups, getAnnotation, getAttachmentFile, getBoNotes, getCommand, getDefaultDocumentTypeName, getDocId, getDocNum, getDocTypeName, getDocument, getDocumentActions, getDocumentHandlerUrl, getEditingMode, getFormKey, getInitiator, getInitiatorNetworkId, getMessageMapFromPreviousRequest, getNewAdHocRoutePerson, getNewAdHocRouteWorkgroup, getNewNote, getPersonInquiryUrlLink, getSelectedActionRequests, getStandardHeaderFields, getSuperUserAnnotation, getWorkflowDocument, hasDocumentId, initializeHeaderNavigationTabs, instantiateDocument, isDocumentEnRoute, isFormDocumentInitialized, isHasWorkflowDocument, isReturnToActionList, isStateAllowsApproveOrDisapprove, isStateAllowsApproveSingleActionRequest, isStateInitiatedFinalCancelled, isStateProcessedOrDisapproved, isSuperUserActionAvaliable, isSuperUserApproveDocumentAuthorized, isSuperUserApproveSingleActionRequestAuthorized, isSuperUserAuthorized, isSuperUserDisapproveDocumentAuthorized, isSuppressAllButtons, isUserDocumentInitiator, reset, setActionRequests, setAdditionalScriptFile, setAdditionalScriptFiles, setAdHocActionRequestCodes, setAdHocRoutePersons, setAdHocRouteWorkgroups, setAnnotation, setAttachmentFile, setBoNotes, setCommand, setDerivedValuesOnForm, setDocId, setDocNum, setDocTypeName, setDocument, setDocumentActions, setEditingMode, setFormKey, setMessageMapFromPreviousRequest, setNewAdHocRoutePerson, setNewAdHocRouteWorkgroup, setNewNote, setReturnToActionList, setSelectedActionRequests, setSuperUserAnnotation, setSuppressAllButtons, shouldPropertyBePopulatedInForm, validate
clearEditablePropertyInformation, getActionFormUtilMap, getAnchor, getBackLocation, getCurrentTabIndex, getDisplayedErrors, getDisplayedInfo, getDisplayedWarnings, getDocInfo, getExtraButton, getFieldNameToFocusOnAfterSubmit, getHeaderNavigationTabs, getMethodToCall, getNavigationCss, getNextArbitrarilyHighIndex, getNumColumns, getRefreshCaller, getTabState, getTabStates, incrementTabIndex, isFieldLevelHelpEnabled, populateBackLocation, populateFieldLevelHelpEnabled, reset, retrieveFormValueForLookupInquiryParameters, setActionFormUtilMap, setAnchor, setBackLocation, setCurrentTabIndex, setDocInfo, setExtraButton, setExtraButtons, setFieldLevelHelpEnabled, setFieldNameToFocusOnAfterSubmit, setHeaderNavigationTabs, setMethodToCall, setNavigationCss, setNumColumns, setRefreshCaller, setTabStates
addMaxUploadSize, cacheUnconvertedValue, copyPopulateEditablePropertiesToActionEditableProperties, formatterClassForKeypath, formatValue, getActionEditablePropertiesGuid, getEditableProperties, getFormatter, getFormatterTypes, getIsNewForm, getMaxUploadSizes, getMethodToCallsToBypassSessionRetrievalForGETRequests, getParameter, getParameterValues, getPopulateEditableProperties, getPopulateEditablePropertiesGuid, getPropertyType, getRequiredNonEditableProperties, getStrutsActionMappingScope, getUnconvertedValues, getUnknownKeys, initMaxUploadSizes, isPropertyEditable, isPropertyNonEditableButRequired, populateForProperty, postprocessRequestParameters, processValidationFail, registerEditableProperty, registerIsNewForm, registerRequiredNonEditableProperty, registerStrutsActionMappingScope, setActionEditablePropertiesGuid, setFormatterType, setFormatterTypes, setPopulateEditablePropertiesGuid, setUnconvertedValues
protected SourceAccountingLine newSourceLine
protected TargetAccountingLine newTargetLine
protected Map editableAccounts
protected Map forcedLookupOptionalFields
protected org.apache.struts.upload.FormFile sourceFile
protected org.apache.struts.upload.FormFile targetFile
protected boolean hideDetails
public KualiAccountingDocumentFormBase()
public void populate(javax.servlet.http.HttpServletRequest request)
populate
in interface org.kuali.rice.kns.web.struts.form.pojo.PojoForm
populate
in class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
org.kuali.rice.kns.web.struts.pojo.PojoForm#populate(javax.servlet.http.HttpServletRequest)
protected void populateAccountingLinesForResponse(String methodToCall, Map parameterMap)
methodToCall
- the method to call in the action to complete this request transactionparameterMap
- the map of parameters which came in with the transactionprotected void populateAccountingLines(Map parameterMap)
parameterMap
- the map of parameters that were sent in with the requestpublic void populateSourceAccountingLine(SourceAccountingLine sourceLine, String accountingLinePropertyName, Map parameterMap)
sourceLine
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestpublic void populateTargetAccountingLine(TargetAccountingLine targetLine, String accountingLinePropertyName, Map parameterMap)
targetLine
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestprotected void populateAccountingLine(AccountingLine line, String accountingLinePropertyName, Map parameterMap)
line
- accountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestprotected void repopulateOverrides(AccountingLine line, String accountingLinePropertyName, Map parameterMap)
line
- the line to repopulate override values foraccountingLinePropertyName
- the property path from the form to the accounting lineparameterMap
- the map of parameters that were sent in with the requestpublic AccountingDocument getFinancialDocument()
public TargetAccountingLine getNewTargetLine()
public void setNewTargetLine(TargetAccountingLine newExpenseLine)
newExpenseLine
- The newTargetLine to set.public SourceAccountingLine getNewSourceLine()
public void setNewSourceLine(SourceAccountingLine newIncomeLine)
newIncomeLine
- The newSourceLine to set.public org.apache.struts.upload.FormFile getSourceFile()
public void setSourceFile(org.apache.struts.upload.FormFile sourceFile)
sourceFile
- The sourceFile to set.public org.apache.struts.upload.FormFile getTargetFile()
public void setTargetFile(org.apache.struts.upload.FormFile targetFile)
targetFile
- The targetFile to set.public Map getEditableAccounts()
public void setEditableAccounts(Map editableAccounts)
editableAccounts
- the account Map to setpublic boolean isHideDetails()
public boolean getHideDetails()
isHideDetails()
public void setHideDetails(boolean hideDetails)
hideDetails
- public String getCurrencyFormattedSourceTotal()
public String getCurrencyFormattedTargetTotal()
public String getAccountingLineImportInstructionsUrl()
protected SourceAccountingLine createNewSourceAccountingLine(AccountingDocument financialDocument)
financialDocument
- protected TargetAccountingLine createNewTargetAccountingLine(AccountingDocument financialDocument)
financialDocument
- protected List<AccountingLine> harvestAccountingLines(List lines)
lines
- a list of objectspublic void setForcedLookupOptionalFields(Map fieldMap)
Map
of names of optional accounting line fields that require a quickfinder.public Map getForcedLookupOptionalFields()
Map
of names of optional accounting line fields that require a quickfinder.protected void customInitMaxUploadSizes()
customInitMaxUploadSizes
in class org.kuali.rice.kns.web.struts.form.KualiDocumentFormBase
PojoFormBase.customInitMaxUploadSizes()
public boolean shouldMethodToCallParameterBeUsed(String methodToCallParameterName, String methodToCallParameterValue, javax.servlet.http.HttpServletRequest request)
shouldMethodToCallParameterBeUsed
in class org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase
KualiDocumentFormBase.shouldMethodToCallParameterBeUsed(java.lang.String, java.lang.String, javax.servlet.http.HttpServletRequest)
protected List<String> getExcludedmethodToCall()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.