Esempio n. 1
0
 internal Sorting(ConstructionPhase phase)
 {
     if (phase == ConstructionPhase.Publishing)
     {
         m_sortExpressions = new ExpressionInfoList();
         m_sortDirections  = new BoolList();
     }
 }
Esempio n. 2
0
 internal void Add(MatrixHeadingInstance matrixHeadingInstance, ReportProcessing.ProcessingContext pc)
 {
     if (m_lastHeadingInstance != null)
     {
         m_lastHeadingInstance.InstanceInfo.HeadingSpan = matrixHeadingInstance.InstanceInfo.HeadingCellIndex - m_lastHeadingInstance.InstanceInfo.HeadingCellIndex;
         bool          flag             = true;
         MatrixHeading matrixHeadingDef = m_lastHeadingInstance.MatrixHeadingDef;
         if (pc.ReportItemsReferenced)
         {
             Matrix matrix = (Matrix)matrixHeadingDef.DataRegionDef;
             if (matrixHeadingDef.IsColumn)
             {
                 if (matrix.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Column)
                 {
                     flag = false;
                 }
             }
             else if (matrix.ProcessingInnerGrouping == Pivot.ProcessingInnerGroupings.Row)
             {
                 flag = false;
             }
         }
         if (flag)
         {
             bool flag2;
             if (m_lastHeadingInstance.IsSubtotal)
             {
                 flag2 = m_lastHeadingInstance.MatrixHeadingDef.Subtotal.FirstInstance;
                 m_lastHeadingInstance.MatrixHeadingDef.Subtotal.FirstInstance = false;
             }
             else
             {
                 BoolList firstHeadingInstances = m_lastHeadingInstance.MatrixHeadingDef.FirstHeadingInstances;
                 flag2 = firstHeadingInstances[m_lastHeadingInstance.HeadingIndex];
                 firstHeadingInstances[m_lastHeadingInstance.HeadingIndex] = false;
             }
             pc.ChunkManager.AddInstance(m_lastHeadingInstance.InstanceInfo, m_lastHeadingInstance, flag2 || matrixHeadingDef.InFirstPage, pc.InPageSection);
         }
     }
     base.Add(matrixHeadingInstance);
     m_lastHeadingInstance = matrixHeadingInstance;
     matrixHeadingInstance.MatrixHeadingDef.InFirstPage = pc.ChunkManager.InFirstPage;
 }
        internal ActionItemInstance(ReportProcessing.ProcessingContext pc, ActionItem actionItemDef)
        {
            ParameterValueList drillthroughParameters = actionItemDef.DrillthroughParameters;

            if (drillthroughParameters == null)
            {
                return;
            }
            m_drillthroughParametersValues = new object[drillthroughParameters.Count];
            m_drillthroughParametersOmits  = new BoolList(drillthroughParameters.Count);
            m_dataSetTokenIDs = new IntList(drillthroughParameters.Count);
            for (int i = 0; i < drillthroughParameters.Count; i++)
            {
                if (drillthroughParameters[i].Value != null && drillthroughParameters[i].Value.Type == ExpressionInfo.Types.Token)
                {
                    m_dataSetTokenIDs.Add(drillthroughParameters[i].Value.IntValue);
                }
                else
                {
                    m_dataSetTokenIDs.Add(-1);
                }
            }
        }