public void EvaluateGeneratedReportItemInstance() { Global.Tracer.Assert(this.m_generatedReportItem.CriGenerationPhase == CriGenerationPhases.None); this.m_generatedReportItem.CriGenerationPhase = CriGenerationPhases.Instance; try { if (!this.LoadGeneratedReportItemInstance()) { try { ICustomReportItem controlInstance = base.RenderingContext.OdpContext.CriProcessingControls.GetControlInstance(this.CriDef.Type, base.RenderingContext.OdpContext.ExtFactory); Global.Tracer.Assert(null != controlInstance, "(null != control)"); controlInstance.EvaluateReportItemInstance(this); this.m_generatedReportItem.CompleteCriGeneratedInstanceEvaluation(); } catch (Exception innerException) { throw new RenderingObjectModelException(ErrorCode.rsCRIProcessingError, innerException, this.Name, this.Type); } goto end_IL_0024; } return; end_IL_0024 :; } finally { this.m_generatedReportItem.CriGenerationPhase = CriGenerationPhases.None; } this.SaveGeneratedReportItemInstance(); }
internal void EvaluateGeneratedReportItemInstance() { Global.Tracer.Assert(m_generatedReportItem.CriGenerationPhase == CriGenerationPhases.None); m_generatedReportItem.CriGenerationPhase = CriGenerationPhases.Instance; try { if (LoadGeneratedReportItemInstance()) { return; } try { ICustomReportItem controlInstance = base.RenderingContext.OdpContext.CriProcessingControls.GetControlInstance(CriDef.Type, base.RenderingContext.OdpContext.ExtFactory); Global.Tracer.Assert(controlInstance != null, "(null != control)"); controlInstance.EvaluateReportItemInstance(this); m_generatedReportItem.CompleteCriGeneratedInstanceEvaluation(); } catch (Exception innerException) { throw new RenderingObjectModelException(ErrorCode.rsCRIProcessingError, innerException, Name, Type); } } finally { m_generatedReportItem.CriGenerationPhase = CriGenerationPhases.None; } SaveGeneratedReportItemInstance(); }