예제 #1
0
 public DecimalAlgorithmColumn(GridDecimalAlgorithmColumn GridDecimalAlgorithmColumn) : base(GridDecimalAlgorithmColumn)
 {
     _precision     = GridDecimalAlgorithmColumn.Precision;
     _formatstring  = GridDecimalAlgorithmColumn.FormatString;
     _bshowwhenzero = GridDecimalAlgorithmColumn.bShowWhenZero;
     _pointlength   = GridDecimalAlgorithmColumn.PointLength;
 }
 public GridDecimalAlgorithmColumn(GridDecimalAlgorithmColumn gridalgorithmcalculator) : base(gridalgorithmcalculator)
 {
     _eventtype       = gridalgorithmcalculator.EventType;
     _bsummary        = gridalgorithmcalculator.bSummary;
     _bcolumnsummary  = gridalgorithmcalculator.bColumnSummary;
     _bclue           = gridalgorithmcalculator.bClue;
     _operator        = gridalgorithmcalculator.Operator;
     _unit            = gridalgorithmcalculator.Unit;
     _bshowatreal     = gridalgorithmcalculator.bShowAtReal;
     _bcalcaftercross = gridalgorithmcalculator.bCalcAfterCross;
     _bMergeCell      = gridalgorithmcalculator.bMergeCell;
 }
예제 #3
0
 public Calculator(GridDecimalAlgorithmColumn gridcalculatecolumn)
     : base(gridcalculatecolumn)
 {
     _expression     = gridcalculatecolumn.Name;
     _calculateindex = gridcalculatecolumn.CalculateIndex;
     _operator       = gridcalculatecolumn.Operator;
     _unit           = gridcalculatecolumn.Unit;
     _precision      = gridcalculatecolumn.Precision;
     _formatstring   = gridcalculatecolumn.FormatString;
     _bshowwhenzero  = gridcalculatecolumn.bShowWhenZero;
     _caption        = gridcalculatecolumn.Caption;
     _pointlength    = gridcalculatecolumn.PointLength;
 }
예제 #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);
        }