Exemplo n.º 1
0
 public GridDateTime(GridDateTime griddatetime) : base(griddatetime)
 {
     _eventtype      = griddatetime.EventType;
     _bshowatreal    = griddatetime.bShowAtReal;
     _ddlevel        = griddatetime.DDLevel;
     _showyear       = griddatetime.ShowYear;
     _showWeekRange  = griddatetime.ShowWeekRange;
     _supportswitch  = griddatetime.SupportSwitch;
     _bMergeCell     = griddatetime.bMergeCell;
     _userdefineitem = griddatetime.UserDefineItem;
 }
Exemplo n.º 2
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);
            }
        }
Exemplo n.º 3
0
 public DBDateTime(GridDateTime griddatetime) : base(griddatetime)
 {
     _datasource   = griddatetime.DataSource;
     _formatstring = griddatetime.FormatString;
     _sortoption   = griddatetime.SortOption;
 }
Exemplo n.º 4
0
        protected override Cell AddALocaleCell(XmlElement xecc, Section section)
        {
            Cell   cell = null;
            string type = xecc.GetAttribute("Type");

            if (!section.CanBeParent(type))
            {
                return(null);
            }
            switch (type.ToLower())
            {
            case "commonlabel":
                cell = new CommonLabel();
                break;

            case "expression":
                cell = new Expression();
                break;

            case "image":
                cell = new Image();
                break;

            case "algorithmcalculator":
                cell = new AlgorithmCalculator();
                break;

            case "gridlabel":
                cell = new GridLabel();
                break;

            case "gridboolean":
                cell = new GridBoolean();
                break;

            case "gridimage":
                //cell=new GridImage();
                break;

            case "griddecimal":
                cell = new GridDecimal();
                break;

            case "gridcalculatecolumn":
                cell = new GridCalculateColumn();
                break;

            case "gridcolumnexpression":
                cell = new GridColumnExpression();
                break;

            case "griddecimalalgorithmcolumn":
                cell = new GridDecimalAlgorithmColumn();
                break;

            case "gridalgorithmcolumn":
                cell = new GridAlgorithmColumn();
                break;

            case "griddatetime":
                cell = new GridDateTime();
                break;

            case "gridexchangerate":
                //cell=new GridExchangeRate();
                break;

            case "superlabel":
                cell = new SuperLabel();
                break;

            case "gridproportiondecimal":
                cell = new GridProportionDecimal();
                break;
            }
            if (cell != null)
            {
                ConvertFromLocaleInfo(xecc, cell);
                section.Cells.Add(cell);
            }
            return(cell);
        }