Example #1
0
        /// <summary>
        /// 获取单元格的信息
        /// </summary>
        /// <param name="cell"></param>
        /// <returns></returns>
        private CellConfig GetCellInfo(string value, int row, int column, string CellComment)
        {
            CellConfig cellConfig = null;

            if (IsExp(value))
            {
                cellConfig            = new CellConfig();
                cellConfig.ColIndex   = column;
                cellConfig.RowIndex   = row;
                cellConfig.FieldName  = ParseFieldName(value);
                cellConfig.isDate     = ParseType(value, "DataType_Date");
                cellConfig.isDecimal  = ParseType(value, "DataType_Decimal");
                cellConfig.FieldClass = ParseFieldClass(value);
                if (cellConfig.FieldClass == "Enum")
                {
                    cellConfig.EnumKey = ParseFieldValue(value, true);
                    cellConfig.FieldID = string.Empty;
                }
                else
                {
                    cellConfig.EnumKey = string.Empty;
                    cellConfig.FieldID = ParseFieldValue(value, false);
                }
            }
            return(cellConfig);
        }
Example #2
0
 public ExcelCellInfo(CellConfig config)
 {
     this.Structure = config;
 }