Java Doc for VoucherAction.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » module » financial » web » struts » action » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » Kuali Financial System » org.kuali.module.financial.web.struts.action 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.kuali.kfs.web.struts.action.KualiAccountingDocumentActionBase
   org.kuali.module.financial.web.struts.action.VoucherAction

All known Subclasses:   org.kuali.module.financial.web.struts.action.JournalVoucherAction,  org.kuali.module.financial.web.struts.action.AuxiliaryVoucherAction,
VoucherAction
public class VoucherAction extends KualiAccountingDocumentActionBase (Code)
This class piggy backs on all of the functionality in the KualiTransactionalDocumentActionBase but is necessary for this document type. Vouchers are unique in that they define several fields that aren't typically used by the other financial transaction processing eDocs (i.e. external system fields, object type override, credit and debit amounts).




Method Summary
public  ActionForwardcorrect(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Overrides to call super, and then to repopulate the credit/debit amounts b/c the credit/debit code might change during a voucher error correction.
public  ActionForwarddeleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Overrides parent to remove the associated helper line also, and then it call the parent's implementation.
public  ActionForwardinsertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Overrides parent to first populate the new source line with the correct debit or credit value, then it calls the parent's implementation.
protected  voidloadDocument(KualiDocumentFormBase kualiDocumentFormBase)
     Overrides the parent to make sure that the AV specific accounting line helper forms are properly populated when the document is first loaded.
protected  voidpopulateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)
     This method builds the corresponding list of voucher acounting line helper objects so that a user can differentiate between credit and debit fields.
protected  VoucherAccountingLineHelperpopulateNewVoucherAccountingLineHelper(VoucherForm voucherForm)
     This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.
protected  voidpopulateSelectedAccountingPeriod(VoucherDocument voucherDocument, VoucherForm voucherForm)
     This method parses the accounting period value from the bo and builds the right string to pass to the form object as the selected value.
protected  VoucherAccountingLineHelperpopulateVoucherAccountingLineHelper(VoucherForm voucherForm)
     This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.
protected  ActionForwardprocessRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
protected  booleanrevertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine brokenLine)
     We want to keep the bad data for the voucher.
protected  voiduploadAccountingLines(boolean isSource, ActionForm form)
     This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the document object.
public  ActionForwarduploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document.



Method Detail
correct
public ActionForward correct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Overrides to call super, and then to repopulate the credit/debit amounts b/c the credit/debit code might change during a voucher error correction.
See Also:   org.kuali.core.web.struts.action.KualiTransactionalDocumentActionBase.correct(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



deleteSourceLine
public ActionForward deleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Overrides parent to remove the associated helper line also, and then it call the parent's implementation.
See Also:   org.kuali.module.financial.web.struts.action.KualiFinancialDocumentActionBase.deleteSourceLine(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



insertSourceLine
public ActionForward insertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Overrides parent to first populate the new source line with the correct debit or credit value, then it calls the parent's implementation.
See Also:   org.kuali.module.financial.web.struts.action.KualiFinancialDocumentActionBase.insertSourceLine(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



loadDocument
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)
Overrides the parent to make sure that the AV specific accounting line helper forms are properly populated when the document is first loaded. This first calls super, then populates the helper objects.
See Also:   org.kuali.core.web.struts.action.KualiDocumentActionBase.loadDocument(org.kuali.core.web.struts.form.KualiDocumentFormBase)



populateAllVoucherAccountingLineHelpers
protected void populateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)(Code)
This method builds the corresponding list of voucher acounting line helper objects so that a user can differentiate between credit and debit fields. It does this by iterating over each source accounting line (what the voucher uses) looking at the debit/credit code and then populateingLineHelpers a corresponding helper form instance with the amount in the appropriate amount field - credit or debit.
Parameters:
  voucherForm -



populateNewVoucherAccountingLineHelper
protected VoucherAccountingLineHelper populateNewVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)
This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.
Parameters:
  voucherForm - voucherAccountingLineHelper



populateSelectedAccountingPeriod
protected void populateSelectedAccountingPeriod(VoucherDocument voucherDocument, VoucherForm voucherForm)(Code)
This method parses the accounting period value from the bo and builds the right string to pass to the form object as the selected value.
Parameters:
  voucherDocument -
Parameters:
  voucherForm -



populateVoucherAccountingLineHelper
protected VoucherAccountingLineHelper populateVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)
This populates a new helperLine instance with the one that was just added so that the new instance can be added to the helperLines list.
Parameters:
  voucherForm - VoucherAccountingLineHelper



processRouteOutOfBalanceDocumentConfirmationQuestion
protected ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
This helper method determines from the request object instance whether or not the user has been prompted about the journal being out of balance. If they haven't, then the method will build the appropriate message given the state of the document and return control to the question component so that the user receives the "yes"/"no" prompt. If the question has been asked, the we evaluate the user's answer and direct the flow appropriately. If they answer with a "No", then we build out a message stating that they chose that value and return an ActionForward of a MAPPING_BASIC which keeps them at the same page that they were on. If they choose "Yes", then we return a null ActionForward, which the calling action method recognizes as a "Yes" and continues on processing the "Route."
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



revertAccountingLine
protected boolean revertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine brokenLine)(Code)
We want to keep the bad data for the voucher.



uploadAccountingLines
protected void uploadAccountingLines(boolean isSource, ActionForm form) throws FileNotFoundException, IOException(Code)
This method determines whether we are uploading source or target lines, and then calls uploadAccountingLines directly on the document object. This method handles retrieving the actual upload file as an input stream into the document.
Parameters:
  isSource -
Parameters:
  form -
throws:
  FileNotFoundException -
throws:
  IOException -



uploadSourceLines
public ActionForward uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException(Code)
This action executes a call to upload CSV accounting line values as SourceAccountingLines for a given transactional document. The "uploadAccountingLines()" method handles the multi-part request.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  FileNotFoundException -
throws:
  IOException -



Fields inherited from org.kuali.kfs.web.struts.action.KualiAccountingDocumentActionBase
final protected static Set UPDATE_EVENT_ACTIONS(Code)(Java Doc)

Methods inherited from org.kuali.kfs.web.struts.action.KualiAccountingDocumentActionBase
protected void clearOverridesThatBecameUnneeded(AccountingLine formLine)(Code)(Java Doc)
public ActionForward copy(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected void createDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)(Java Doc)
protected void deleteAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, int deleteIndex)(Code)(Java Doc)
public ActionForward deleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward deleteTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected SourceAccountingLine getSourceAccountingLine(ActionForm form, HttpServletRequest request)(Code)(Java Doc)
public ActionForward hideDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected void insertAccountingLine(boolean isSource, KualiAccountingDocumentFormBase financialDocumentForm, AccountingLine line)(Code)(Java Doc)
public ActionForward insertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward insertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected boolean isSalesTaxRequired(AccountingDocument financialDocument, AccountingLine accountingLine)(Code)(Java Doc)
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)(Java Doc)
protected ActionForward performBalanceInquiryForAccountingLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, AccountingLine line)(Code)(Java Doc)
public ActionForward performBalanceInquiryForSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward performBalanceInquiryForTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected void processAccountingLineOverrides(KualiAccountingDocumentFormBase transForm)(Code)(Java Doc)
protected void processAccountingLineOverrides(AccountingLine line)(Code)(Java Doc)
protected void processAccountingLineOverrides(List accountingLines)(Code)(Java Doc)
public ActionForward refresh(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected boolean revertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine newerLine)(Code)(Java Doc)
public ActionForward revertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward revertTargetLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward route(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward save(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward showDetails(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward toggleTab(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected void uploadAccountingLines(boolean isSource, ActionForm form) throws FileNotFoundException, IOException(Code)(Java Doc)
public ActionForward uploadSourceLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FileNotFoundException, IOException(Code)(Java Doc)
public ActionForward uploadTargetLines(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)

www___.j_a__v_a2s__.__c___o_m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.