/// <summary> /// 显示路径 /// </summary> public StringBuilder ShowPath(SqlTransaction trans, int intAreaId) { StringBuilder tempStr = new StringBuilder("根结点"); AreaModel areModel = new AreaModel(); areModel = areDAL.GetInfo(trans, intAreaId); if (areModel == null) { return(tempStr); } else { string strPath = areDAL.GetPath(trans, intAreaId).ToString(); string[] arrPath = strPath.Split(','); foreach (var item in arrPath) { AreaModel areModel_2 = new AreaModel(); areModel_2 = areDAL.GetInfo(trans, Convert.ToInt32(item)); if (areModel_2 != null) { tempStr.Append(" > " + areModel_2.AreaName); } } return(tempStr); } }