コード例 #1
0
 public void BindData()
 {
     DataGrid1.AllowCustomPaging = false;
     DataGrid1.TableHeaderName   = "管理组列表";
     DataGrid1.Attributes.Add("borderStyle", "2");
     DataGrid1.BindData(UserGroups.GetAdminUserGroup());
 }
コード例 #2
0
        private void InitializeComponent()
        {
            this.TabControl1.InitTabPage();
            this.radminid.SelectedIndexChanged += new EventHandler(this.radminid_SelectedIndexChanged);
            this.UpdateUserGroupInf.Click      += new EventHandler(this.UpdateUserGroupInf_Click);
            this.DeleteUserGroupInf.Click      += new EventHandler(this.DeleteUserGroupInf_Click);
            //this.Load += new EventHandler(this.Page_Load);

            radminid.Items.Add(new ListItem("请选择     ", "0"));
            foreach (UserGroupInfo userGroupInfo in UserGroups.GetAdminUserGroup())
            {
                radminid.Items.Add(new ListItem(userGroupInfo.Grouptitle, userGroupInfo.Groupid.ToString()));
            }
            DataTable dt = Attachments.GetAttachmentType();

            attachextensions.AddTableData(dt);
        }
コード例 #3
0
        private void InitializeComponent()
        {
            this.TabControl1.InitTabPage();
            this.AddUserGroupInf.Click         += new EventHandler(this.AddUserGroupInf_Click);
            this.radminid.SelectedIndexChanged += new EventHandler(this.radminid_SelectedIndexChanged);

            DataTable dt = Attachments.GetAttachmentType();

            attachextensions.AddTableData(dt);
            radminid.Items.Add(new System.Web.UI.WebControls.ListItem("请选择", "0"));
            List <UserGroupInfo> list = UserGroups.GetAdminUserGroup();

            foreach (UserGroupInfo userGroupInfo in list)
            {
                radminid.Items.Add(new System.Web.UI.WebControls.ListItem(userGroupInfo.Grouptitle, userGroupInfo.Groupid.ToString()));
            }
            if (DNTRequest.GetString("groupid") != "")
            {
                SetGroupRights(DNTRequest.GetString("groupid"));
            }
        }
コード例 #4
0
        private void InitializeComponent()
        {
            this.TabControl1.InitTabPage();
            this.UpdateUserGroupInf.Click += new EventHandler(this.UpdateUserGroupInf_Click);
            radminid.Items.Add(new ListItem("请选择     ", "0"));
            foreach (UserGroupInfo userGroupInfo in UserGroups.GetAdminUserGroup())
            {
                radminid.Items.Add(new ListItem(userGroupInfo.Grouptitle, userGroupInfo.Groupid.ToString()));
            }
            DataTable dt = Attachments.GetAttachmentType();

            attachextensions.AddTableData(dt);

            string groupid = DNTRequest.GetString("groupid");

            if (groupid != "")
            {
                LoadUserGroupInf(DNTRequest.GetInt("groupid", -1));
            }
            else
            {
                Response.Redirect("sysglobal_sysadminusergroupgrid.aspx");
            }
        }