public GroupObject(GroupDimension griddatetime) : base(griddatetime) { _datasource = griddatetime.DataSource; _sortoption = griddatetime.SortOption; _bdatetime = griddatetime.bDateTime; _formatstring = griddatetime.FormatString; _informationid = griddatetime.InformationID; _showyear = griddatetime.ShowYear; _showWeekRange = griddatetime.ShowWeekRange; _supportswitch = griddatetime.SupportSwitch; }
public GridDateTime(GroupDimension griddatetime) : base(griddatetime as Rect) { _eventtype = griddatetime.EventType; _bshowatreal = griddatetime.bShowAtReal; _sortoption = griddatetime.SortOption; _datasource = griddatetime.DataSource; _formatstring = griddatetime.FormatString; _ddlevel = griddatetime.DDLevel; _showyear = griddatetime.ShowYear; _showWeekRange = griddatetime.ShowWeekRange; _supportswitch = griddatetime.SupportSwitch; }
public CalculateGroupDimension(IDateTimeDimensionLevel groupobject, string accid) : base(groupobject as Rect) { GroupDimension ch = groupobject as GroupDimension; _name = ch.Name; _scriptid = ch.ScriptID; _sortoption = ch.SortOption; _informationid = ch.InformationID; _usecolumnstyle = ch.UseColumnStyle; _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); } }
private Cell IndicatorControl(string type) { Cell cell = null; switch (type.ToLower()) { case "commonlabel": cell = new CommonLabel(); break; case "image": cell = new Image(); break; case "expression": cell = new Expression(); break; case "groupdimension": cell = new GroupDimension(); break; case "calculategroupdimension": cell = new CalculateGroupDimension(); break; case "crossdimension": cell = new CrossDimension(); break; case "calculatecrossdimension": cell = new CalculateCrossDimension(); break; case "indicator": cell = new Indicator(); break; case "calculateindicator": cell = new CalculateIndicator(); break; case "chart": cell = new Chart(); break; case "gauge": cell = new Gauge(); break; case "indicatormetrix": cell = new IndicatorMetrix(); break; case "dbtext": cell = new DBText(); break; case "calculatorindicator": cell = new CalculatorIndicator(); break; case "gridproportiondecimalindicator": cell = new GridProportionDecimalIndicator(); break; } return(cell); }