예제 #1
0
        /// <summary>
        /// 返回子分类
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public List <Lebi_Pro_Type> Cateporys(int id)
        {
            List <Lebi_Pro_Type> models = EX_Product.ShowTypes(id, CurrentSite.id);

            if (models.Count == 0)
            {
                Lebi_Pro_Type m = B_Lebi_Pro_Type.GetModel(id);
                if (m.Parentid > 0)
                {
                    return(Cateporys(m.Parentid));
                }
            }
            return(models);
        }