public bool set_val_by_pmid(string v_pmkey, string v_col_name, object v_val) { if (pm_index.ContainsKey(v_pmkey)) { _PmLoc point = pm_index[v_pmkey]; ExcelSheetObject theSheet = _sheets[point.sheetIdx]; ExcelHeader theHeader = theSheet.Header; int col = theHeader.get_col(v_col_name); if (col < 0) { ZFDebug.Error(string.Format("{0}中没找到名为{1}的列", theSheet, v_col_name)); return(false); } int row = pm_index[v_pmkey].row; theSheet.Sheet.Cells[row, col].Value = v_val; return(true); } return(false); }
//private Dictionary<CellPoint, List<object>> m_src_infos; public void addSheet(ExcelSheetObject v_esobj) { _sheets.Add(v_esobj); }