private void LoadMenuTreeNode(bjf_articletype item, ProductCategoryTreeNode treeNode)
        {
            if (item == null)
            {
                return;
            }
            var currentNode = new ProductCategoryTreeNode();

            currentNode.Id       = item.id;
            currentNode.key      = item.id.ToString();
            currentNode.expanded = true;
            currentNode.folder   = false;
            currentNode.title    = item.title;
            currentNode.ParentId = item.parentid;
            if (item.parentid == 0)
            {
                currentNode.IsAddButtonForNextLevel = true;
            }
            currentNode.SortCode = item.id;
            treeNode.children.Add(currentNode);
            List <bjf_articletype> groupmentList = ArticleTypeManager.GetInstance().SelectList(m => m.isdelete == false && m.parentid == item.id);

            if (groupmentList.Count > 0)
            {
                foreach (var childItem in groupmentList)
                {
                    this.LoadMenuTreeNode(childItem, currentNode);
                }
            }
        }
        public JsonResult Tree()
        {
            var treeNode = new ProductCategoryTreeNode();
            //最底层的分类
            var rootList = ArticleTypeManager.GetInstance().GetRootList(0);

            foreach (var item in rootList)
            {
                this.LoadMenuTreeNode(item, treeNode);
            }
            return(Json(treeNode, JsonRequestBehavior.AllowGet));
        }