Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        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);
        }