/// <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(); //} }
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); }