/// <summary> /// if report has no calculation with this name, /// a calculation from any report is selected, and the calculation is returned /// </summary> /// <returns>void</returns> public TRptCalculation GetCalculation(TRptReport report, string name) { TRptCalculation ReturnValue; TReportDefinition element; ReturnValue = null; if (report != null) { ReturnValue = report.GetCalculation(name); } if (ReturnValue == null) { for (int counter = 0; counter < reports.Count; counter++) { element = (TReportDefinition)reports[counter]; ReturnValue = element.rptReport.GetCalculation(name); if (ReturnValue != null) { return(ReturnValue); } } } return(ReturnValue); }
/// <summary> /// constructor /// </summary> /// <param name="situation"></param> /// <param name="depth"></param> /// <param name="column"></param> /// <param name="lineId"></param> /// <param name="parentRowId"></param> public TRptSituation(TRptSituation situation, int depth, int column, int lineId, int parentRowId) { this.Parameters = situation.Parameters; this.Results = situation.Results; this.ReportStore = situation.ReportStore; this.CurrentReport = situation.CurrentReport; this.DatabaseConnection = situation.DatabaseConnection; this.Depth = depth; this.column = column; this.LineId = lineId; this.ParentRowId = parentRowId; }
/// <summary> /// constructor /// </summary> /// <param name="parameters"></param> /// <param name="results"></param> /// <param name="reportStore"></param> /// <param name="report"></param> /// <param name="dataDB"></param> /// <param name="depth"></param> /// <param name="column"></param> /// <param name="lineId"></param> /// <param name="parentRowId"></param> public TRptEvaluator(TParameterList parameters, TResultList results, TReportStore reportStore, TRptReport report, TDataBase dataDB, int depth, int column, int lineId, int parentRowId) : base(parameters, results, reportStore, report, dataDB, depth, column, lineId, parentRowId) { }
/// <summary> /// constructor /// </summary> /// <param name="situation"></param> public TRptSituation(TRptSituation situation) { this.Parameters = situation.Parameters; this.Results = situation.Results; this.ReportStore = situation.ReportStore; this.CurrentReport = situation.CurrentReport; this.DatabaseConnection = situation.DatabaseConnection; this.Depth = situation.Depth; this.column = situation.column; this.LineId = situation.LineId; this.ParentRowId = situation.ParentRowId; }
/// <summary> /// this function is used for calculations that are based on a function, e.g. variance /// it returns true, if the calcution returns "functionresult", OR IF IT'S NOT FOUND /// </summary> /// <returns>void</returns> public Boolean IsFunctionCalculation(TRptReport report, string name) { if (name.Length == 0) { return(false); } Boolean ReturnValue = true; TRptCalculation rptCalculation = GetCalculation(report, name); if (rptCalculation != null) { ReturnValue = (rptCalculation.strReturns == "functionresult"); } return(ReturnValue); }
/// <summary> /// constructor /// </summary> /// <param name="parameters"></param> /// <param name="results"></param> /// <param name="reportStore"></param> /// <param name="report"></param> /// <param name="dataDB"></param> /// <param name="depth"></param> /// <param name="column"></param> /// <param name="lineId"></param> /// <param name="parentRowId"></param> public TRptSituation(TParameterList parameters, TResultList results, TReportStore reportStore, TRptReport report, TDataBase dataDB, int depth, int column, int lineId, int parentRowId) { TRptSituation.RunningCode = 0; this.Parameters = parameters; this.Results = results; this.ReportStore = reportStore; this.CurrentReport = report; this.DatabaseConnection = dataDB; this.Depth = depth; this.column = column; this.LineId = lineId; this.ParentRowId = parentRowId; }
/// <summary> /// constructor /// </summary> public TReportDefinition(string reportId) : base() { id = reportId; rptReport = new TRptReport(reportId); }
/// <summary> /// this function is used for calculations that are based on a function, e.g. variance /// it returns true, if the calcution returns "functionresult", OR IF IT'S NOT FOUND /// </summary> /// <returns>void</returns> public Boolean IsFunctionCalculation(TRptReport report, string name) { if (name.Length == 0) { return false; } Boolean ReturnValue = true; TRptCalculation rptCalculation = GetCalculation(report, name); if (rptCalculation != null) { ReturnValue = (rptCalculation.strReturns == "functionresult"); } return ReturnValue; }
/// <summary> /// if report has no calculation with this name, /// a calculation from any report is selected, and the calculation is returned /// </summary> /// <returns>void</returns> public TRptCalculation GetCalculation(TRptReport report, string name) { TRptCalculation ReturnValue; TReportDefinition element; ReturnValue = null; if (report != null) { ReturnValue = report.GetCalculation(name); } if (ReturnValue == null) { for (int counter = 0; counter < reports.Count; counter++) { element = (TReportDefinition)reports[counter]; ReturnValue = element.rptReport.GetCalculation(name); if (ReturnValue != null) { return ReturnValue; } } } return ReturnValue; }