Example #1
0
        protected void BindFuncode()
        {
            FishBll.Bll.FunCodeBll          bll  = new FishBll.Bll.FunCodeBll();
            List <FishEntity.FunCodeEntity> data = bll.GetModelList(" 1=1 ");

            treeViewFunCode.Nodes.Clear();
            if (data == null || data.Count < 1)
            {
                return;
            }

            BindTreeView(0, data, null);


            BindHasFunCode();
        }
Example #2
0
        private void BindFuncode()
        {
            List <FishEntity.FunCodeEntity> data = _bll.GetModelList("pid=0 order by sortid asc");

            if (data == null)
            {
                data = new List <FishEntity.FunCodeEntity>();
            }

            FishEntity.FunCodeEntity empty = new FishEntity.FunCodeEntity();
            empty.funid   = 0;
            empty.funname = "请选择父节点";
            data.Insert(0, empty);

            cmbMenus.DataSource    = data;
            cmbMenus.DisplayMember = "funCodeAndName";
            cmbMenus.ValueMember   = "funid";
        }