Esempio n. 1
0
 void IHierarchyObj.NextRow(IHierarchyObj owner)
 {
     if (this.m_dataRowHolder != null)
     {
         this.m_dataRowHolder.NextRow(owner.OdpContext, owner.Depth);
     }
     else
     {
         IDataRowSortOwner dataRowSortOwner = (IDataRowSortOwner)this.m_hierarchyRoot.Value();
         object            keyValue         = dataRowSortOwner.EvaluateDataRowSortExpression(this.m_sortExpression);
         this.m_sortTree.NextRow(keyValue, this);
     }
 }
Esempio n. 2
0
        public RuntimeDataRowSortHierarchyObj(IHierarchyObj outerHierarchy, int depth)
        {
            this.m_hierarchyRoot = outerHierarchy.HierarchyRoot;
            int num = outerHierarchy.ExpressionIndex + 1;
            IDataRowSortOwner dataRowSortOwner = (IDataRowSortOwner)this.m_hierarchyRoot.Value();

            AspNetCore.ReportingServices.ReportIntermediateFormat.Sorting sortingDef = dataRowSortOwner.SortingDef;
            if (sortingDef.SortExpressions == null || num >= sortingDef.SortExpressions.Count)
            {
                this.m_dataRowHolder = new RuntimeSortDataHolder();
            }
            else
            {
                this.m_sortExpression = new RuntimeExpressionInfo(sortingDef.SortExpressions, sortingDef.ExprHost, sortingDef.SortDirections, num);
                this.m_sortTree       = new BTree(this, this.OdpContext, depth);
            }
        }
 public DataRowSortOwnerTraversalContext(IDataRowSortOwner sortOwner)
 {
     this.m_sortOwner = sortOwner;
 }
 internal DataRowSortOwnerTraversalContext(IDataRowSortOwner sortOwner)
 {
     m_sortOwner = sortOwner;
 }