示例#1
0
        public void LoadUserGroupInf(int groupid)
        {
            this.userGroupInfo      = UserGroup.FindByID(groupid);
            this.groupTitle.Text    = Utils.RemoveFontTag(this.userGroupInfo.GroupTitle);
            this.creditshigher.Text = this.userGroupInfo.Creditshigher.ToString();
            this.creditslower.Text  = this.userGroupInfo.Creditslower.ToString();
            DataTable dataTable = UserGroups.GetUserGroupExceptGroupid(groupid);

            if (dataTable.Rows.Count == 0)
            {
                this.creditshigher.Enabled = false;
                this.creditslower.Enabled  = false;
            }
            this.ViewState["creditshigher"] = this.userGroupInfo.Creditshigher.ToString();
            this.ViewState["creditslower"]  = this.userGroupInfo.Creditslower.ToString();
            this.stars.Text              = this.userGroupInfo.Stars.ToString();
            this.color.Text              = this.userGroupInfo.Color;
            this.groupavatar.Text        = this.userGroupInfo.Groupavatar;
            this.readaccess.Text         = this.userGroupInfo.Readaccess.ToString();
            this.maxprice.Text           = this.userGroupInfo.MaxPrice.ToString();
            this.maxpmnum.Text           = this.userGroupInfo.MaxPmNum.ToString();
            this.maxsigsize.Text         = this.userGroupInfo.MaxSigSize.ToString();
            this.maxattachsize.Text      = this.userGroupInfo.MaxAttachSize.ToString();
            this.maxsizeperday.Text      = this.userGroupInfo.MaxSizeperday.ToString();
            this.maxspaceattachsize.Text = this.userGroupInfo.MaxSpaceattachSize.ToString();
            this.maxspacephotosize.Text  = this.userGroupInfo.MaxSpacephotoSize.ToString();
            dataTable = Attachments.GetAttachmentType();
            this.attachextensions.SetSelectByID(this.userGroupInfo.AttachExtensions.Trim());
            this.usergrouppowersetting.Bind(this.userGroupInfo);
            if (this.userGroupInfo.System == 1)
            {
                this.DeleteUserGroupInf.Enabled = false;
            }
        }
        public void LoadUserGroupInf(int groupid)
        {
            #region 加载相关组信息

            userGroupInfo = AdminUserGroups.AdminGetUserGroupInfo(groupid);

            groupTitle.Text    = Utils.RemoveFontTag(userGroupInfo.Grouptitle);
            creditshigher.Text = userGroupInfo.Creditshigher.ToString();
            creditslower.Text  = userGroupInfo.Creditslower.ToString();

            DataTable dt = UserGroups.GetUserGroupExceptGroupid(groupid);
            if (dt.Rows.Count == 0)
            {
                creditshigher.Enabled = false;
                creditslower.Enabled  = false;
            }

            ViewState["creditshigher"] = userGroupInfo.Creditshigher.ToString();
            ViewState["creditslower"]  = userGroupInfo.Creditslower.ToString();

            stars.Text              = userGroupInfo.Stars.ToString();
            color.Text              = userGroupInfo.Color;
            groupavatar.Text        = userGroupInfo.Groupavatar;
            readaccess.Text         = userGroupInfo.Readaccess.ToString();
            maxprice.Text           = userGroupInfo.Maxprice.ToString();
            maxpmnum.Text           = userGroupInfo.Maxpmnum.ToString();
            maxsigsize.Text         = userGroupInfo.Maxsigsize.ToString();
            maxattachsize.Text      = userGroupInfo.Maxattachsize.ToString();
            maxsizeperday.Text      = userGroupInfo.Maxsizeperday.ToString();
            maxspaceattachsize.Text = userGroupInfo.Maxspaceattachsize.ToString();
            maxspacephotosize.Text  = userGroupInfo.Maxspacephotosize.ToString();
            //maxfriendscount.Text = userGroupInfo.MaxFriendsCount.ToString();


            dt = Attachments.GetAttachmentType();
            attachextensions.SetSelectByID(userGroupInfo.Attachextensions.Trim());
            //绑定权限信息
            usergrouppowersetting.Bind(userGroupInfo);

            if (userGroupInfo.System == 1)
            {
                DeleteUserGroupInf.Enabled = false;
            }

            #endregion
        }