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 CalculateColumn(CalculateColumn calculatecolumn) : base(calculatecolumn) { _name = calculatecolumn.Name; _expression = calculatecolumn.Expression; _precision = calculatecolumn.Precision; _formatstring = calculatecolumn.FormatString; _sortoption = calculatecolumn.SortOption; _bshowwhenzero = calculatecolumn.bShowWhenZero; _calculateindex = calculatecolumn.CalculateIndex; _pointlength = calculatecolumn.PointLength; _mapname = calculatecolumn.GetMapName; }