Sequence for report calculation: Difference between revisions

From OpenPetra Wiki
Jump to navigation Jump to search
(Created page with '== Sequence on the Client == What happens when the User clicks "Generate Report" *In the class TFrmPetraReportingUtils **ReadControlsWithErrorHandling **ReadControls ***In the Re…')
 
 
Line 15: Line 15:


== Sequence on the Server ==
== Sequence on the Server ==
*In the class TReportGeneratorLocigConnector
**Run()
***In the class TRptDataCalculator
****GenerateResult (Load the xml file, does some initialisation)
****Calculate (Initialises the header, footer and column captions)
****In the class TRptDataCalcLevel
*****Calculate (Calculate the main level and recursively all the other leves)

Latest revision as of 15:42, 8 October 2010

Sequence on the Client

What happens when the User clicks "Generate Report"

  • In the class TFrmPetraReportingUtils
    • ReadControlsWithErrorHandling
    • ReadControls
      • In the Reporting form class:
      • ReadControls

The ReadControls method reads the report settings and checks if they are valid. (Check for TVerificationResult)

  • In the class TrptCalculator
    • GenerateResultRemoteClient
      • The Server calculates and generates the report
      • AsyncProgressCheckThread checks if the sever has finished and enables for status bar updates. When the server calculated the result, get the results.
  • In the class TFrmPetraReportingUtils
    • PreviewReport (Displays the results of the report)

Sequence on the Server

  • In the class TReportGeneratorLocigConnector
    • Run()
      • In the class TRptDataCalculator
        • GenerateResult (Load the xml file, does some initialisation)
        • Calculate (Initialises the header, footer and column captions)
        • In the class TRptDataCalcLevel
          • Calculate (Calculate the main level and recursively all the other leves)