예제 #1
0
        /// <summary>
        /// 向treeList中加载出售中的商品的淘宝类目
        /// </summary>
        /// <param name="node1">父节点</param>
        /// <param name="treeListCat">被加载的控件treeListCat</param>
        public void LoadAllItemCat()
        {
            //获取所有Item的Cid
            List <string> listItemCid = ItemService.GetItemCids();
            //获取所有Item的淘宝类目及其父类目
            List <Alading.Entity.ItemCat> listItemCat = ItemCatService.GetAllItemCat(listItemCid);

            TreeListNode rootNode = treeListItemCat.AppendNode(new object[] { "所有类目" }, null);

            rootNode.Tag = "0";
            AddNodes("0", listItemCat, rootNode, treeListItemCat);
            rootNode.ExpandAll();
        }
예제 #2
0
 public DownloadPropValue()
 {
     InitializeComponent();
     itemcatlist = ItemCatService.GetAllItemCat();
 }