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); } }
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); } }
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); } }
public static void SetDateDimensionLevel(IDateTimeDimensionLevel cell, int datedimension) { cell.DDLevel = GetDateDimensionLevel(datedimension); cell.ShowYear = ShowYearOrNot(datedimension); cell.ShowWeekRange = ShowWeekRangeOrNot(datedimension); }
public CalculateCrossDimension(IDateTimeDimensionLevel groupobject, string accid) : base(groupobject, accid) { _name = (groupobject as Rect).Name; }