Esempio n. 1
0
        private void GetGroupList()
        {
            SysGroup group  = new SysGroup();
            string   strSql = " 1=1 ";

            strSql += string.Format(" and GroupType=2  and (IsPublic = '1' or CreateUserID in (select UserID from sysUser where UserShopID={0}))", this._UserShopID);
            DataTable dt     = group.GetList(strSql).Tables[0];
            DataTable dtTree = dt.Clone();

            group.BuildGroupTree(dt, 0, 0, ref dtTree);
            this.gvGroupList.DataSource = dtTree;
            this.gvGroupList.DataBind();
            PageBase.BindSerialRepeater(this.gvGroupList, 0);
        }