Example #1
0
        private void getType()
        {
            IList <ComType> com = ComTypeManager.getComTypeAll();

            this.type.DataSource = com;
            this.type.DataBind();
        }
Example #2
0
        public string LoadZtreeData()
        {
            result += "[{id:1, pId: 0, name:'全部分类" + "', icon:'../../Images/public/bfolder.gif', open: true },";

            IList <ComType> typelist = ComTypeManager.getComTypeAll();

            foreach (ComType ct in typelist)
            {
                result += "{id:" + ct.Id + ", pId: 1, name: '" + ct.TypeName + "',icon:'../../Images/public/folder.gif'},";
            }
            result = result.TrimEnd(',') + "]";
            return(result);
        }