/// <summary> /// 取得欄位資料 /// </summary> /// <param name="FieldName"></param> /// <returns></returns> public DataCellEntity GetDataCellEntity(string FieldName) { DataCellEntity dce = new DataCellEntity(); if (_DataCellEntityDic.ContainsKey(FieldName)) { dce = _DataCellEntityDic[FieldName]; } return(dce); }
/// <summary> /// 設定欄位資料 /// </summary> /// <param name="FieldName"></param> /// <param name="FieldLenght"></param> /// <param name="Value"></param> public void SetDataCellEntity(string FieldName, int FieldLenght, string Value) { if (_DataCellEntityDic.ContainsKey(FieldName)) { _DataCellEntityDic[FieldName].FieldLenght = FieldLenght; _DataCellEntityDic[FieldName].Value = Value; } else { DataCellEntity dec = new DataCellEntity(); dec.FieldName = FieldName; dec.FieldLenght = FieldLenght; dec.Value = Value; _DataCellEntityDic.Add(FieldName, dec); } }