public static RefCodeTable GetRefTable(string _tanme) { if (_tanme == "") { return(null); } if (!_refTableCache.RefTables.ContainsKey(_tanme)) { //加载代码表 RefCodeTable _rtable = new RefCodeTable(); using (CommonServiceClient _csc = new CommonServiceClient()) { _rtable.Properties = _csc.GetRefCodePropertie(_tanme); } _refTableCache.RefTables.Add(_tanme, _rtable); } return(_refTableCache.RefTables[_tanme]); }