/// <summary> /// 取得基药分类 /// </summary> /// <param name="obj"></param> /// <returns></returns> public string fullPath(string obj) { var dt = new SOSOshop.BLL.Db().ExecuteTableForCache("SELECT id,name FROM dbo.Tag_PharmAttribute WHERE tag_id=69"); List <string> li = new List <string>(); foreach (var item in obj.Trim('/').Split('/')) { li.Add(dt.AsEnumerable().Where(x => x.Field <int>("id") == int.Parse(item)).Select(x => x.Field <string>("name")).First()); } return(string.Join("/", li.ToArray())); }