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);
            }
        }
Exemplo 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);
            }
        }
Exemplo 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);
            }
        }