예제 #1
0
 internal void RefreshRowDataset()
 {
     for (int i = 1; i <= this._rep.Rows.RowCount; i++)
     {
         RdRow row  = this._rep.Rows[i];
         bool  flag = string.IsNullOrEmpty(row.DataSet);
         if (flag)
         {
             row.Data = null;
         }
         else
         {
             RmDataSet dataset = this.FindDataset(row.DataSet);
             row.Data = dataset;
             bool flag2 = dataset != null;
             if (flag2)
             {
                 RdRowType rowType = row.RowType;
                 if (rowType != RdRowType.rtColumnHeader)
                 {
                     if (rowType == RdRowType.rtColumnFooter)
                     {
                         dataset.ColumnFooter.Add(dataset.ColumnFooter.Count, row);
                     }
                 }
                 else
                 {
                     dataset.ColumnHeader.Add(dataset.ColumnHeader.Count, row);
                 }
             }
         }
     }
 }
예제 #2
0
        internal int GetHeight(int rowIndex)
        {
            RdRow _row = this[rowIndex];
            bool  flag = _row != null;
            int   result;

            if (flag)
            {
                result = _row.Height;
            }
            else
            {
                result = this.Document.DefaultRowHeight;
            }
            return(result);
        }
예제 #3
0
        public void Refresh()
        {
            RmGroup group = null;
            RdRow   row   = null;

            this.Clear();
            this._rep = base.Builder.Template;
            for (int i = 1; i <= this._rep.Rows.RowCount; i++)
            {
                row = this._rep.Rows[i];
                bool flag = row.RowType == RdRowType.rtGroupHeader || row.RowType == RdRowType.rtGroupFooter;
                if (flag)
                {
                    group = null;
                    foreach (KeyValuePair <int, RmGroup> obj in this.m_items)
                    {
                        bool flag2 = obj.Value.SameGroup(row.DataSet, row.GroupBy);
                        if (flag2)
                        {
                            group = obj.Value;
                            break;
                        }
                    }
                    bool flag3 = group == null;
                    if (flag3)
                    {
                        group = new RmGroup(this);
                        group.SetGroupBy(row.DataSet, row.GroupBy);
                        this.m_items.Add(this.m_items.Count, group);
                    }
                    bool flag4 = row.RowType == RdRowType.rtGroupHeader;
                    if (flag4)
                    {
                        group.Header.Add(group.Header.Count, row);
                    }
                    else
                    {
                        bool flag5 = row.RowType == RdRowType.rtGroupFooter;
                        if (flag5)
                        {
                            group.Footer.Add(group.Footer.Count, row);
                        }
                    }
                }
            }
        }