コード例 #1
0
ファイル: CatalogManager.aspx.cs プロジェクト: rongcheng/benz
        /// <summary>
        /// 绑定组
        /// </summary>
        protected void BindGroupList()
        {
            // labGroupOwn.Visible = true;


            groupDDL.Visible = true;

            QJVRMS.Business.IGroup g = QJVRMS.Business.Group.GetRootGroup();

            ListItem li = new ListItem();

            li.Text  = g.GroupName;
            li.Value = g.GroupId.ToString();

            this.groupDDL.Items.Add(li);



            //using (DataTable dt = Group.GetGroupList())
            //{
            //    this.groupDDL.DataSource = dt;
            //    this.groupDDL.DataTextField = "GroupName";
            //    this.groupDDL.DataValueField = "GroupID";
            //    this.groupDDL.DataBind();
            //}
        }
コード例 #2
0
        protected void BindGroupList()
        {
            // this.groupList.DataSource = QJVRMS.Business.Group.GetRootGroup();//QJVRMS.Business.Group.GetGroupList();
            //this.groupList.DataTextField = "groupname";
            //this.groupList.DataValueField = "groupId";
            //this.groupList.DataBind();

            QJVRMS.Business.IGroup g = QJVRMS.Business.Group.GetRootGroup();

            ListItem li = new ListItem();

            li.Text  = g.GroupName;
            li.Value = g.GroupId.ToString();

            this.groupList.Items.Add(li);
        }