public CalculateGroupObject(IDateTimeDimensionLevel groupobject, string accid)
            : base(groupobject as Rect)
        {
            GroupObject ch = groupobject as GroupObject;

            _name       = ch.Name + "_Dimension";
            _scriptid   = ch.ScriptID;
            _sortoption = ch.SortOption;
            if (string.IsNullOrEmpty(_prepaintevent))
            {
                Expression = DateTimeDimensionHelper.GetExpressionAll(groupobject.DDLevel, groupobject.ShowYear, groupobject.ShowWeekRange, ch.DataSource.Name, accid);
            }
            else
            {
                Expression = DateTimeDimensionHelper.GetExpressionOnly(groupobject.DDLevel, groupobject.ShowYear, ch.DataSource.Name, accid);
            }
        }
Esempio n. 2
0
        public CalculateColumnHeader(IDateTimeDimensionLevel groupobject, string accid)
            : base(groupobject as Rect)
        {
            ColumnHeader ch = groupobject as ColumnHeader;

            _name         = ch.Name + "_Dimension";
            _scriptid     = ch.ScriptID;
            _sortoption   = ch.SortOption;
            _sortsource   = ch.SortSource;
            _formatstring = ch.FormatString;
            if (string.IsNullOrEmpty(_prepaintevent))
            {
                Expression = DateTimeDimensionHelper.GetExpressionAll(groupobject.DDLevel, groupobject.ShowYear, groupobject.ShowWeekRange, ch.DataSource.Name, accid);
            }
            else
            {
                Expression = DateTimeDimensionHelper.GetExpressionOnly(groupobject.DDLevel, groupobject.ShowYear, ch.DataSource.Name, accid);
            }
        }
Esempio n. 3
0
        public GridColumnExpression(IDateTimeDimensionLevel groupobject, string accid)
            : base(groupobject as Rect)
        {
            GridDateTime ch = groupobject as GridDateTime;

            _name        = ch.Name + "_Dimension";
            _scriptid    = ch.ScriptID;
            _sortoption  = ch.SortOption;
            _eventtype   = ch.EventType;
            _bshowatreal = ch.bShowAtReal;
            if (string.IsNullOrEmpty(_prepaintevent) || _eventtype == ReportElements.EventType.OnTitle)
            {
                Expression = DateTimeDimensionHelper.GetExpressionAll(groupobject.DDLevel, groupobject.ShowYear, groupobject.ShowWeekRange, ch.DataSource.Name, accid);
            }
            else
            {
                Expression = DateTimeDimensionHelper.GetExpressionOnly(groupobject.DDLevel, groupobject.ShowYear, ch.DataSource.Name, accid);
            }
        }
Esempio n. 4
0
 public static void SetDateDimensionLevel(IDateTimeDimensionLevel cell, int datedimension)
 {
     cell.DDLevel       = GetDateDimensionLevel(datedimension);
     cell.ShowYear      = ShowYearOrNot(datedimension);
     cell.ShowWeekRange = ShowWeekRangeOrNot(datedimension);
 }
Esempio n. 5
0
 public CalculateCrossDimension(IDateTimeDimensionLevel groupobject, string accid)
     : base(groupobject, accid)
 {
     _name = (groupobject as Rect).Name;
 }