|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.Action
org.apache.struts.actions.DispatchAction
org.kuali.rice.kns.web.struts.action.KualiAction
org.kuali.kfs.module.cab.document.web.struts.CabActionBase
org.kuali.kfs.module.cab.document.web.struts.PurApLineAction
public class PurApLineAction
Field Summary |
---|
Fields inherited from class org.kuali.rice.kns.web.struts.action.KualiAction |
---|
FORM_ACTION, FORWARD_NEXT, FORWARD_TEXT_AREA_UPDATE, METHOD_TO_CALL, POST_TEXT_AREA_TO_PARENT, TEXT_AREA_FIELD_ANCHOR, TEXT_AREA_FIELD_LABEL, TEXT_AREA_FIELD_NAME, TEXT_AREA_MAX_LENGTH, TEXT_AREA_READ_ONLY |
Fields inherited from class org.apache.struts.actions.DispatchAction |
---|
clazz, log, messages, methods, types |
Fields inherited from class org.apache.struts.action.Action |
---|
defaultLocale, servlet |
Constructor Summary | |
---|---|
PurApLineAction()
|
Method Summary | |
---|---|
org.apache.struts.action.ActionForward |
allocate(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Allocate line items including allocate additional charges functionality. |
org.apache.struts.action.ActionForward |
applyPayment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle apply payment action. |
protected void |
buildPurApDocList(PurApLineForm purApLineForm)
Build PurchasingAccountsPayableDocument list in which all documents have the same PO_ID. |
org.apache.struts.action.ActionForward |
cancel(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Cancels the action and returns to portal main page |
protected void |
checkMergeAllValid(boolean tradeInAllowanceInAllLines,
boolean tradeInIndicatorInSelectedLines)
For merge all, check if exists Trade-in allowance pending for allocate. |
protected void |
checkMergeLinesValid(List<PurchasingAccountsPayableItemAsset> mergeLines,
boolean tradeInAllowanceInAllLines,
boolean tradeInIndicatorInSelectedLines)
Check if merge lines selected are allowed to continue this action. |
protected void |
checkMergeRequiredFields(PurApLineForm purApForm)
Check the required fields entered for merge. |
protected void |
checkPreTagValidForMerge(List<PurchasingAccountsPayableItemAsset> mergeLines,
Integer purchaseOrderIdentifier)
If to be merged items have: (1) No Pretag data: No problem; (2) 1 Pretag data entry: Associate this one with the new item created after merge;(3) 1+ Pretag data entries: Display error, user has to manually fix data |
protected void |
checkSplitQty(PurchasingAccountsPayableItemAsset itemAsset,
String errorPath)
Check user input splitQty. |
protected void |
clearForMerge(PurApLineForm purApForm)
Clear user input after merge. |
protected void |
clearPurApLineSession(Integer purchaseOrderIdentifier)
|
org.apache.struts.action.ActionForward |
close(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handling for screen close. |
org.apache.struts.action.ActionForward |
createAsset(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle create asset action. |
protected void |
createPurApLineSession(Integer purchaseOrderIdentifier)
|
protected String |
generateObjectSubTypeQuestion()
Generate the question string for different object sub type codes. |
protected Map |
getItemLineNumberMap(List<PurchasingAccountsPayableItemAsset> itemLines)
Build a Hashmap for itemLineNumber since itemLines could exist duplicate itemLineNumber |
protected org.kuali.rice.kns.service.KualiConfigurationService |
getKualiConfigurationService()
|
protected org.kuali.rice.kns.service.ParameterService |
getParameterService()
|
org.apache.struts.action.ActionForward |
merge(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Merge Action includes merge all functionality. |
org.apache.struts.action.ActionForward |
percentPayment(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Update the item quantity value from a decimal(less than 1) to 1. |
protected void |
performAllocate(PurApLineForm purApForm,
PurchasingAccountsPayableItemAsset allocateSourceLine,
List<PurchasingAccountsPayableItemAsset> allocateTargetLines)
Allocate with service help. |
protected void |
performMerge(PurApLineForm purApForm,
List<PurchasingAccountsPayableItemAsset> mergeLines,
boolean isMergeAll)
Merge with service help. |
org.apache.struts.action.ActionForward |
reload(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
protected void |
retrieveUserInputForMerge(PurchasingAccountsPayableItemAsset firstItem,
PurApLineForm purApForm)
Retrieve user input merge quantity and merge description. |
org.apache.struts.action.ActionForward |
save(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
save the information in the current form into underlying data store |
protected void |
setupObjectRelationship(List<PurchasingAccountsPayableDocument> purApDocs)
Setup relationship from account to item and item to doc. |
org.apache.struts.action.ActionForward |
split(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
This method handles split action. |
org.apache.struts.action.ActionForward |
start(org.apache.struts.action.ActionMapping mapping,
org.apache.struts.action.ActionForm form,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handle start action. |
protected void |
validateAllocateAction(PurchasingAccountsPayableItemAsset allocateSourceLine,
List<PurchasingAccountsPayableItemAsset> allocateTargetLines,
boolean targetLineHasTradeIn,
boolean hasTradeInAllowance,
List<PurchasingAccountsPayableDocument> purApDocs)
Check if the line items are allowed to allocate. |
protected void |
validateCreateAssetAction(PurchasingAccountsPayableItemAsset selectedLine)
Validate selected line item for asset global creation. |
protected void |
validateMergeAction(PurApLineForm purApForm,
List<PurchasingAccountsPayableItemAsset> mergeLines,
boolean isMergeAll,
boolean tradeInAllowanceInAllLines,
boolean tradeInIndicatorInSelectedLines)
Check if the merge action is valid or not. |
Methods inherited from class org.kuali.kfs.module.cab.document.web.struts.CabActionBase |
---|
execute, viewDoc |
Methods inherited from class org.kuali.rice.kns.web.struts.action.KualiAction |
---|
addMethodToCallToUncheckedList, checkAuthorization, defaultDispatch, dispatchMethod, doProcessingAfterPost, findMethodToCall, getApplicationBaseUrl, getBasePath, getBusinessObjectAuthorizationService, getEncryptionService, getHeaderTabDispatch, getHeaderTabNavigateTo, getImageContext, getKualiModuleService, getLineToDelete, getReturnLocation, getRoleQualification, getSelectedLine, getTabToToggle, headerTab, hideAllTabs, performInquiry, performLookup, performQuestionWithInput, performQuestionWithInputAgainBecauseOfErrors, performQuestionWithoutInput, performWorkgroupLookup, postTextAreaToParent, refresh, retrieveLookupParameterValue, showAllTabs, toggleTab, updateTextArea, validateLookupInquiryFullParameter |
Methods inherited from class org.apache.struts.actions.DispatchAction |
---|
cancelled, getMethod, getMethodName, getParameter, unspecified |
Methods inherited from class org.apache.struts.action.Action |
---|
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PurApLineAction()
Method Detail |
---|
public org.apache.struts.action.ActionForward start(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
-
Exception
protected void createPurApLineSession(Integer purchaseOrderIdentifier)
protected void clearPurApLineSession(Integer purchaseOrderIdentifier)
public org.apache.struts.action.ActionForward reload(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
protected void buildPurApDocList(PurApLineForm purApLineForm)
purApLineForm
- protected void setupObjectRelationship(List<PurchasingAccountsPayableDocument> purApDocs)
purApDocs
- public org.apache.struts.action.ActionForward cancel(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
- ActionMapping
form
- ActionForm
request
- HttpServletRequest
response
- HttpServletResponse
ActionForward
Exception
public org.apache.struts.action.ActionForward save(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward close(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
Exception
public org.apache.struts.action.ActionForward split(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
-
Exception
protected void checkSplitQty(PurchasingAccountsPayableItemAsset itemAsset, String errorPath)
itemAsset
- errorPath
- public org.apache.struts.action.ActionForward merge(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
-
Exception
protected String generateObjectSubTypeQuestion()
protected void performMerge(PurApLineForm purApForm, List<PurchasingAccountsPayableItemAsset> mergeLines, boolean isMergeAll)
purApForm
- mergeLines
- protected void retrieveUserInputForMerge(PurchasingAccountsPayableItemAsset firstItem, PurApLineForm purApForm)
firstItem
- purApForm
- protected void clearForMerge(PurApLineForm purApForm)
purApForm
- protected void validateMergeAction(PurApLineForm purApForm, List<PurchasingAccountsPayableItemAsset> mergeLines, boolean isMergeAll, boolean tradeInAllowanceInAllLines, boolean tradeInIndicatorInSelectedLines)
purApForm
- mergeLines
- protected void checkPreTagValidForMerge(List<PurchasingAccountsPayableItemAsset> mergeLines, Integer purchaseOrderIdentifier)
mergeLines
- protected Map getItemLineNumberMap(List<PurchasingAccountsPayableItemAsset> itemLines)
itemLines
-
protected void checkMergeAllValid(boolean tradeInAllowanceInAllLines, boolean tradeInIndicatorInSelectedLines)
mergeLines
- purApForm
- protected void checkMergeLinesValid(List<PurchasingAccountsPayableItemAsset> mergeLines, boolean tradeInAllowanceInAllLines, boolean tradeInIndicatorInSelectedLines)
mergeLines
- purApForm
- protected void checkMergeRequiredFields(PurApLineForm purApForm)
public org.apache.struts.action.ActionForward percentPayment(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
-
Exception
public org.apache.struts.action.ActionForward allocate(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
-
Exception
protected void performAllocate(PurApLineForm purApForm, PurchasingAccountsPayableItemAsset allocateSourceLine, List<PurchasingAccountsPayableItemAsset> allocateTargetLines)
purApForm
- allocateSourceLine
- allocateTargetLines
- protected void validateAllocateAction(PurchasingAccountsPayableItemAsset allocateSourceLine, List<PurchasingAccountsPayableItemAsset> allocateTargetLines, boolean targetLineHasTradeIn, boolean hasTradeInAllowance, List<PurchasingAccountsPayableDocument> purApDocs)
selectedLine
- allocateTargetLines
- purApForm
- public org.apache.struts.action.ActionForward applyPayment(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
-
Exception
public org.apache.struts.action.ActionForward createAsset(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
-
Exception
protected void validateCreateAssetAction(PurchasingAccountsPayableItemAsset selectedLine)
selectedLine
- protected org.kuali.rice.kns.service.ParameterService getParameterService()
protected org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |