Example #1
0
    /// <summary>
    /// 数据绑定到列表
    /// </summary>
    private void DataBind()
    {
        if (DropDownListGroup.SelectedValue == "0")
        {
            //提示请选择用户组
            GroupGuid = string.Empty;
        }
        WebBean bean = WebBean.GetInstance();
        bool?   ban  = null;

        switch (DropDownListBan.SelectedValue)
        {
        case "1":
            ban = false;
            break;

        case "2":
            ban = true;
            break;

        default:
            break;
        }
        DataSet dataSet = bean.SelectGroupUsersData(GroupGuid, TextBoxAccount.Text.Trim(),
                                                    TextBoxUserName.Text.Trim(), ban,
                                                    RadioButtonIsTrue.Checked);

        //提示消息"权限组信息保存成功!"
        Repeater1.DataSource = dataSet;
        Repeater1.DataBind();
    }