private Cell NormalControl(string type)
        {
            Cell cell = null;

            switch (type.ToLower())
            {
            case "commonlabel":
                cell = new CommonLabel();
                break;

            case "dbboolean":
                cell = new DBBoolean();
                break;

            case "dbimage":
                cell = new DBImage();
                break;

            case "dbdecimal":
                cell = new DBDecimal();
                break;

            case "calculatecolumn":
                cell = new CalculateColumn();
                break;

            case "columnexpression":
                cell = new ColumnExpression();
                break;

            case "decimalalgorithmcolumn":
                cell = new DecimalAlgorithmColumn();
                break;

            case "algorithmcolumn":
                cell = new AlgorithmColumn();
                break;

            case "dbdatetime":
                cell = new DBDateTime();
                break;

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

            case "dbtext":
                cell = new DBText();
                break;

            case "barcode":
                cell = new BarCode();
                break;

            case "gridproportiondecimal":
                cell = new GridProportionDecimal();
                break;
            }
            return(cell);
        }
 public GridProportionDecimal(GridProportionDecimal GridProportionDecimal)
     : base(GridProportionDecimal)
 {
     _bsummary        = GridProportionDecimal.bSummary;
     _bcolumnsummary  = GridProportionDecimal.bColumnSummary;
     _bclue           = GridProportionDecimal.bClue;
     _operator        = GridProportionDecimal.Operator;
     _unit            = GridProportionDecimal.Unit;
     _calculateindex  = GridProportionDecimal.CalculateIndex;
     _eventtype       = GridProportionDecimal.EventType;
     _bshowatreal     = GridProportionDecimal.bShowAtReal;
     _bcalcaftercross = GridProportionDecimal.bCalcAfterCross;
     _bMergeCell      = GridProportionDecimal.bMergeCell;
 }
        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);
        }