Пример #1
0
        /// <summary>
        /// 获取分类等级
        /// </summary>
        /// <param name="pClassID">分类ID</param>
        /// <returns></returns>
        public byte GetLevel(int pClassID)
        {
            GetClassPath1 acp = new GetClassPath1();
            ClassPath     cp  = new ClassPath(List(), acp);

            cp.Exe(pClassID);
            return(acp.GetLevel);
        }
Пример #2
0
        /// <summary>
        /// 获取分类路径
        /// </summary>
        /// <param name="pClassID">分类ID</param>
        /// <returns></returns>
        public string GetPath(int pClassID)
        {
            GetClassPath1 acp = new GetClassPath1();
            ClassPath     cp  = new ClassPath(List(), acp);

            cp.Exe(pClassID);
            string sPath = acp.GetPath;

            sPath = sPath.Length == 0 ? "顶级分类" : sPath;
            return(sPath);
        }