Esempio n. 1
0
 public static List <RefCodeData> GetLevelDownChildRecords(RefCodeTable _rct, string _fatherCode)
 {
     if (_rct.LevelCodeData.ContainsKey(_fatherCode))
     {
         return(_rct.LevelCodeData[_fatherCode]);
     }
     else
     {
         using (CommonServiceClient _csc = new CommonServiceClient())
         {
             List <RefCodeData> _getChildData = _csc.GetChildRefCodeData(_rct.Name, _fatherCode).ToList <RefCodeData>();
             _rct.LevelCodeData.Add(_fatherCode, _getChildData);
             return(_getChildData);
         }
     }
 }