Ejemplo n.º 1
0
 public GridCalculateColumn(GridCalculateColumn gridcalculatecolumn)
     : base(gridcalculatecolumn)
 {
     _bsummary        = gridcalculatecolumn.bSummary;
     _bcolumnsummary  = gridcalculatecolumn.bColumnSummary;
     _bclue           = gridcalculatecolumn.bClue;
     _operator        = gridcalculatecolumn.Operator;
     _unit            = gridcalculatecolumn.Unit;
     _eventtype       = gridcalculatecolumn.EventType;
     _bshowatreal     = gridcalculatecolumn.bShowAtReal;
     _bcalcaftercross = gridcalculatecolumn.bCalcAfterCross;
 }
Ejemplo n.º 2
0
 public CalculateColumn(GridCalculateColumn gridcalculatecolumn)
     : base(gridcalculatecolumn)
 {
     _name           = gridcalculatecolumn.Name;
     _expression     = gridcalculatecolumn.Expression;
     _precision      = gridcalculatecolumn.Precision;
     _formatstring   = gridcalculatecolumn.FormatString;
     _sortoption     = gridcalculatecolumn.SortOption;
     _bshowwhenzero  = gridcalculatecolumn.bShowWhenZero;
     _calculateindex = gridcalculatecolumn.CalculateIndex;
     _pointlength    = gridcalculatecolumn.PointLength;
     _mapname        = gridcalculatecolumn.GetMapName;
 }
Ejemplo n.º 3
0
 public Calculator(GridCalculateColumn gridcalculatecolumn) : base(gridcalculatecolumn)
 {
     _expression     = gridcalculatecolumn.Expression;
     _calculateindex = gridcalculatecolumn.CalculateIndex;
     _operator       = gridcalculatecolumn.Operator;
     _unit           = gridcalculatecolumn.Unit;
     _precision      = gridcalculatecolumn.Precision;
     _formatstring   = gridcalculatecolumn.FormatString;
     _bshowwhenzero  = gridcalculatecolumn.bShowWhenZero;
     _caption        = gridcalculatecolumn.Caption;
     _pointlength    = gridcalculatecolumn.PointLength;
     _mapname        = gridcalculatecolumn.GetMapName;
 }
Ejemplo n.º 4
0
 public CalculateGroupObject(GridCalculateColumn gridcolumnexpression)
     : base(gridcolumnexpression)
 {
     _expression = gridcolumnexpression.Expression;
     _sortoption = gridcolumnexpression.SortOption;
 }
Ejemplo n.º 5
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);
        }