public GroupObject(GroupObject groupobject) : base(groupobject)
 {
     _datasource    = groupobject.DataSource;
     _sortoption    = groupobject.SortOption;
     _bdatetime     = groupobject.bDateTime;
     _formatstring  = groupobject.FormatString;
     _informationid = groupobject.InformationID;
     _showyear      = groupobject.ShowYear;
     _showWeekRange = groupobject.ShowWeekRange;
     _supportswitch = groupobject.SupportSwitch;
 }
        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);
            }
        }
        private Cell GroupControl(string type)
        {
            Cell cell = null;

            switch (type.ToLower())
            {
            case "groupobject":
                cell = new GroupObject();
                break;

            case "calculategroupobject":
                cell = new CalculateGroupObject();
                break;

            case "algorithmgroupobject":
                cell = new AlgorithmGroupObject();
                break;
            }
            return(cell);
        }