Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
/// <summary>
/// 读取信息
/// </summary>
        public AreaModel GetInfo(SqlTransaction trans, int AreaId)
        {
            return(areDAL.GetInfo(trans, AreaId));
        }