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);
        }
Beispiel #2
0
 public DBDecimal(DBDecimal dbdecimal) : base(dbdecimal)
 {
     _datasource    = dbdecimal.DataSource;
     _precision     = dbdecimal.Precision;
     _formatstring  = dbdecimal.FormatString;
     _sortoption    = dbdecimal.SortOption;
     _bshowwhenzero = dbdecimal.bShowWhenZero;
     _pointlength   = dbdecimal.PointLength;
 }