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.radminid.Items.Add(new ListItem("请选择 ", "0")); foreach (var current in UserGroup.GetAdminUserGroup()) { if (current.ID > 0 && current.ID <= 3) { this.radminid.Items.Add(new ListItem(current.GroupTitle, current.ID.ToString())); } } var attachmentType = Attachments.GetAttachmentType(); this.attachextensions.AddTableData(attachmentType); }
private void InitializeComponent() { this.TabControl1.InitTabPage(); this.UpdateUserGroupInf.Click += new EventHandler(this.UpdateUserGroupInf_Click); this.radminid.Items.Add(new ListItem("请选择 ", "0")); foreach (var current in UserGroup.GetAdminUserGroup()) { this.radminid.Items.Add(new ListItem(current.GroupTitle, current.ID.ToString())); } DataTable attachmentType = Attachments.GetAttachmentType(); this.attachextensions.AddTableData(attachmentType); string @string = Request["groupid"]; if (@string != "") { this.LoadUserGroupInf(DNTRequest.GetInt("groupid", -1)); return; } base.Response.Redirect("sysglobal_sysadminusergroupgrid.aspx"); }