Sequence for report calculation

From OpenPetra Wiki
Revision as of 15:42, 8 October 2010 by Berndrehberger (talk | contribs) (→‎Sequence on the Server)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)