Java Doc for JournalVoucherAction.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.module.financial.web.struts.action.VoucherAction
   org.kuali.module.financial.web.struts.action.JournalVoucherAction

All known Subclasses:   org.kuali.module.labor.web.struts.action.JournalVoucherAction,
JournalVoucherAction
public class JournalVoucherAction extends VoucherAction (Code)
This class piggy backs on all of the functionality in the KualiTransactionalDocumentActionBase but is necessary for this document type. The Journal Voucher is unique in that it defines 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).


Field Summary
final protected static  intCREDIT_DEBIT_TO_SINGLE_AMT_MODE
    
final protected static  intEXT_ENCUMB_TO_NON_EXT_ENCUMB
    
final protected static  intNON_EXT_ENCUMB_TO_EXT_ENCUMB
    
final protected static  intNO_MODE_CHANGE
    
final protected static  intSINGLE_AMT_TO_CREDIT_DEBIT_MODE
    


Method Summary
public  ActionForwardchangeBalanceType(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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.
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 JV error correction.
protected  intdetermineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm)
     This method will determine which balance type amount mode to switch to.
protected  intdetermineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm)
     This method will determine which balance type encumbrance mode to switch to.
public  ActionForwardexecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
     Overrides the parent and then calls the super method after building the array lists for valid accounting periods and balance types.
protected  BalanceTypgetPopulatedBalanceTypeInstance(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  voidloadDocument(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  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.
public  ActionForwardroute(ActionMapping mapping, ActionForm form, HttpServletRequest request, 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  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.

Field Detail
CREDIT_DEBIT_TO_SINGLE_AMT_MODE
final protected static int CREDIT_DEBIT_TO_SINGLE_AMT_MODE(Code)



EXT_ENCUMB_TO_NON_EXT_ENCUMB
final protected static int EXT_ENCUMB_TO_NON_EXT_ENCUMB(Code)



NON_EXT_ENCUMB_TO_EXT_ENCUMB
final protected static int NON_EXT_ENCUMB_TO_EXT_ENCUMB(Code)



NO_MODE_CHANGE
final protected static int NO_MODE_CHANGE(Code)



SINGLE_AMT_TO_CREDIT_DEBIT_MODE
final protected static int SINGLE_AMT_TO_CREDIT_DEBIT_MODE(Code)





Method Detail
changeBalanceType
public ActionForward changeBalanceType(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
Parameters:
  mapping -
Parameters:
  form -
Parameters:
  request -
Parameters:
  response - ActionForward
throws:
  Exception -



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 JV 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)



determineBalanceTypeAmountChangeMode
protected int determineBalanceTypeAmountChangeMode(JournalVoucherForm journalVoucherForm) throws Exception(Code)
This method will determine which balance type amount mode to switch to. A change in the balance type selection will eventually invoke this mechanism, which looks at the old balance type value, and the new balance type value to determine what the next mode is.
Parameters:
  journalVoucherForm -
throws:
  Exception -



determineBalanceTypeEncumbranceChangeMode
protected int determineBalanceTypeEncumbranceChangeMode(JournalVoucherForm journalVoucherForm) throws Exception(Code)
This method will determine which balance type encumbrance mode to switch to. A change in the balance type selection will eventually invoke this mechanism, which looks at the old balance type value, and the new balance type value to determine what the next mode is.
Parameters:
  journalVoucherForm -
throws:
  Exception -



execute
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
Overrides the parent and then calls the super method after building the array lists for valid accounting periods and balance types.
See Also:   org.kuali.core.web.struts.action.KualiAction.execute(ActionMapping mappingActionForm formHttpServletRequest requestHttpServletResponse response)



getPopulatedBalanceTypeInstance
protected BalanceTyp getPopulatedBalanceTypeInstance(String balanceTypeCode)(Code)
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.
Parameters:
  balanceTypeCode - BalanceTyp



loadDocument
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)
Overrides the parent to make sure that the JV 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)



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 -



route
public ActionForward route(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)
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.
See Also:   org.kuali.core.web.struts.action.KualiDocumentActionBase.route(org.apache.struts.action.ActionMappingorg.apache.struts.action.ActionFormjavax.servlet.http.HttpServletRequestjavax.servlet.http.HttpServletResponse)



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 -



Methods inherited from org.kuali.module.financial.web.struts.action.VoucherAction
public ActionForward correct(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward deleteSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
public ActionForward insertSourceLine(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected void loadDocument(KualiDocumentFormBase kualiDocumentFormBase) throws WorkflowException(Code)(Java Doc)
protected void populateAllVoucherAccountingLineHelpers(VoucherForm voucherForm)(Code)(Java Doc)
protected VoucherAccountingLineHelper populateNewVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)(Java Doc)
protected void populateSelectedAccountingPeriod(VoucherDocument voucherDocument, VoucherForm voucherForm)(Code)(Java Doc)
protected VoucherAccountingLineHelper populateVoucherAccountingLineHelper(VoucherForm voucherForm)(Code)(Java Doc)
protected ActionForward processRouteOutOfBalanceDocumentConfirmationQuestion(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception(Code)(Java Doc)
protected boolean revertAccountingLine(KualiAccountingDocumentFormBase transForm, int revertIndex, AccountingLine originalLine, AccountingLine brokenLine)(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)

w_w__w_._j___av___a__2_s_._c_o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.