亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? userlist.aspx.cs

?? BugNET is an issue tracking and project issue management solution built using the ASP.NET web applic
?? CS
字號:
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using BugNET.BusinessLogicLayer;
using System.Collections.Generic;
using BugNET.Providers.MembershipProviders;
using BugNET.UserInterfaceLayer;

namespace BugNET.Administration.Users
{
	/// <summary>
	/// Summary description for UserList.
	/// </summary>
	public partial class UserList : System.Web.UI.Page
	{

        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
		protected void Page_Load(object sender, System.EventArgs e)
		{
            if (!ITUser.IsInRole(Globals.SuperUserRole) && !ITUser.IsInRole("Project Administrators"))
                Response.Redirect("~/Errors/AccessDenied.aspx");

            if (!IsPostBack)
            {
                CreateLetterSearch();
                BindData(string.Empty);
            }
		}


        /// <summary>
        /// Creates the letter search.
        /// </summary>
        private void CreateLetterSearch()
        {
            string[] Alphabet = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "All", "Unauthorized" };
            LetterSearch.DataSource = Alphabet;
            LetterSearch.DataBind();
        }

        /// <summary>
        /// Handles the RowCommand event of the gvUsers control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.GridViewCommandEventArgs"/> instance containing the event data.</param>
        protected void gvUsers_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            switch (e.CommandName)
            {
                case "Edit":
                    Response.Redirect(string.Format("~/Administration/Users/ManageUser.aspx?user={0}", e.CommandArgument.ToString()));
                    break;
                case "ManageRoles":
                    Response.Redirect(string.Format("~/Administration/Users/ManageUser.aspx?user={0}&tabid=2", e.CommandArgument.ToString()));
                    break;
                case "Delete":
                    Response.Redirect(string.Format("~/Administration/Users/ManageUser.aspx?user={0}&tabid=4", e.CommandArgument.ToString()));
                    break;
            }

        }

        /// <summary>
        /// Gets or sets the search filter.
        /// </summary>
        /// <value>The search filter.</value>
        protected string SearchFilter
        {
            get { return (string)ViewState["SearchFilter"]; }
            set { ViewState["SearchFilter"] = value; }
        }

        /// <summary>
        /// Binds the data.
        /// </summary>
        /// <param name="filter">The filter.</param>
        private void BindData(string filter)
        {
            SearchFilter = filter;
            string SearchText = SearchFilter;
            switch (filter)
            {
                case "All":
                    SearchText = string.Empty;
                    break;
                case "Unauthorized":
                    SearchText = string.Empty;
                    break;
                default:
                    SearchText = filter + "%";
                    break;
            }
            List<CustomMembershipUser> users;
            if (String.IsNullOrEmpty(SearchText))
            {
                users = ITUser.GetAllUsers();
            }
            else
            {
                users = ITUser.FindUsersByName(SearchText);
            }

            if (filter == "Unauthorized")
            {
                List<CustomMembershipUser> UnauthenticatedUsers = new List<CustomMembershipUser>();
                foreach (CustomMembershipUser user in users)
                {
                    if (!user.IsApproved || user.LastLoginDate == DateTime.MinValue)
                        UnauthenticatedUsers.Add(user);
                }
                users = UnauthenticatedUsers;
            }

            users.Sort(new UserComparer(SortField, SortAscending));
            gvUsers.DataSource = users;
            gvUsers.DataBind();

        }
        /// <summary>
        /// Filters the URL.
        /// </summary>
        /// <param name="filter">The filter.</param>
        /// <param name="currentPage">The current page.</param>
        protected string FilterUrl(object filter, string currentPage)
        {
            string f = (string)filter;
            string url = Page.TemplateControl.AppRelativeVirtualPath;
            if (!String.IsNullOrEmpty(f))
            {
                url = string.Format("{0}?Filter={1}", url, f);
            }
            return this.ResolveUrl(url);
        }

        /// <summary>
        /// Handles the Click event of the FilterButton control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        protected void FilterButton_Click(object sender, EventArgs e)
        {
            LinkButton lb = (LinkButton)sender;
            BindData(lb.CommandArgument.ToString());
        }

        /// <summary>
        /// Handles the RowCreated event of the gvUsers control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewRowEventArgs"/> instance containing the event data.</param>
        protected void gvUsers_RowCreated(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.Header)
            {
                PresentationUtils.SetSortImageStates(gvUsers, e.Row, 1, SortField, SortAscending);
            }
        }
        /// <summary>
        /// Handles the RowDataBound event of the gvUsers control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.GridViewRowEventArgs"/> instance containing the event data.</param>
        protected void gvUsers_RowDataBound(object sender, GridViewRowEventArgs e)
        {

            if (e.Row.RowType == DataControlRowType.Pager)
            {
                //e.Row.Cells.AddAt(0, new TableCell());
                //e.Row.Cells[0].Text = "Total Issues: " + _DataSource.Count;
                //e.Row.Cells[0].ColumnSpan = 3;
                //e.Row.Cells[0].Font.Bold = true;
                //e.Row.Cells[0].HorizontalAlign = HorizontalAlign.Left;
                //e.Row.Cells[1].ColumnSpan -= 3;

                PresentationUtils.SetPagerButtonStates(gvUsers, e.Row, this.Page);

            }
            if (e.Row.RowType == DataControlRowType.DataRow)
            {

            }
        }

        /// <summary>
        /// Gets or sets the sort field.
        /// </summary>
        /// <value>The sort field.</value>
        string SortField
        {
            get
            {
                object o = ViewState["SortField"];
                if (o == null)
                {
                    return String.Empty;
                }
                return (string)o;
            }

            set
            {
                if (value == SortField)
                {
                    // same as current sort file, toggle sort direction
                    SortAscending = !SortAscending;
                }
                ViewState["SortField"] = value;
            }
        }

        /// <summary>
        /// Gets or sets a value indicating whether [sort ascending].
        /// </summary>
        /// <value><c>true</c> if [sort ascending]; otherwise, <c>false</c>.</value>
        bool SortAscending
        {
            get
            {
                object o = ViewState["SortAscending"];
                if (o == null)
                {
                    return true;
                }
                return (bool)o;
            }

            set
            {
                ViewState["SortAscending"] = value;
            }
        }


        /// <summary>
        /// Handles the Sorting event of the gvUsers control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.Web.UI.WebControls.GridViewSortEventArgs"/> instance containing the event data.</param>
        protected void gvUsers_Sorting(object sender, GridViewSortEventArgs e)
        {
            SortField = e.SortExpression;
            BindData(SearchFilter);
        }

        /// <summary>
        /// Handles the Click event of the AddUser control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        protected void AddUser_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Administration/Users/AddUser.aspx");
        }

        /// <summary>
        /// Handles the Click event of the ibSearch control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.EventArgs"/> instance containing the event data.</param>
        protected void ibSearch_Click(object sender, EventArgs e)
        {
            List<CustomMembershipUser> users;
            if (SearchField.SelectedValue == "Email")
            {
                users = ITUser.FindUsersByEmail(txtSearch.Text + "%");
            }
            else
            {
                users = ITUser.FindUsersByName(txtSearch.Text + "%");
            }
            gvUsers.DataSource = users;
            gvUsers.DataBind();
        }

        /// <summary>
        /// Handles the PageIndexChanging event of the gvUsers control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="T:System.Web.UI.WebControls.GridViewPageEventArgs"/> instance containing the event data.</param>
        protected void gvUsers_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvUsers.PageIndex = e.NewPageIndex;
            BindData(SearchFilter);
        }

        /// <summary>
        /// Handles the SelectedIndexChanged event of the ddlPages control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void ddlPages_SelectedIndexChanged(Object sender, EventArgs e)
        {
            GridViewRow gvrPager = gvUsers.BottomPagerRow;
            if (gvrPager == null)
                return;
            DropDownList ddlPages = (DropDownList)gvrPager.Cells[0].FindControl("ddlPages");
            gvUsers.PageIndex = ddlPages.SelectedIndex;
            BindData(SearchFilter);
        }

	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文欧美字幕免费| 欧美一区二区观看视频| 国产精品久久久久久久裸模| 国内偷窥港台综合视频在线播放| 欧美视频完全免费看| 亚洲成年人影院| 欧美电影影音先锋| 免费在线欧美视频| 2014亚洲片线观看视频免费| 成人激情黄色小说| 一区二区成人在线观看| 7777精品伊人久久久大香线蕉的 | 国产米奇在线777精品观看| 久久伊人中文字幕| 色综合天天在线| 91丨九色丨黑人外教| 亚洲视频一区在线| 欧美一区日本一区韩国一区| 国产麻豆精品一区二区| 中文字幕亚洲成人| 91精品国产乱码| 国产成人av资源| 一区二区在线观看视频| 欧美一级高清大全免费观看| 国产大陆精品国产| 亚洲免费高清视频在线| 日韩欧美的一区二区| www.亚洲色图| 奇米888四色在线精品| 久久久精品免费免费| 成人免费观看男女羞羞视频| 亚洲国产毛片aaaaa无费看| 2024国产精品| 精品视频一区二区三区免费| 国内久久婷婷综合| 亚洲一区二区三区美女| 国产日韩欧美精品一区| 欧美日本一区二区| 成人精品电影在线观看| 日韩av网站免费在线| 国产精品久久久久影院亚瑟| 日韩欧美第一区| 欧美亚洲综合网| 懂色av中文一区二区三区| 日韩高清欧美激情| 亚洲欧美日本在线| 国产校园另类小说区| 日韩一级黄色大片| 欧美三级欧美一级| 99re在线视频这里只有精品| 国产一区激情在线| 秋霞电影一区二区| 亚洲午夜一区二区| 一区二区三区在线视频观看 | 国产精品国产三级国产a| 精品国免费一区二区三区| 欧美色老头old∨ideo| 成人av动漫在线| 国产精品一区二区久激情瑜伽| 午夜精品视频在线观看| 夜夜嗨av一区二区三区中文字幕 | 91麻豆蜜桃一区二区三区| 国产成人免费av在线| 久久99最新地址| 免费成人av资源网| 视频一区欧美精品| 26uuu久久天堂性欧美| 欧美一区二区三区白人| 欧美三级午夜理伦三级中视频| 日本大香伊一区二区三区| 色综合中文字幕国产 | 精品少妇一区二区三区视频免付费| 91成人在线精品| 91成人在线观看喷潮| 91浏览器入口在线观看| 91视视频在线直接观看在线看网页在线看| 国产成人综合自拍| 国产成人自拍高清视频在线免费播放| 国产又黄又大久久| 久久99国产精品久久| 国产精品卡一卡二| 中文字幕国产一区| 国产精品成人免费| 亚洲精品欧美二区三区中文字幕| 国产精品久久久久久福利一牛影视| 国产欧美日韩亚州综合| 国产精品欧美极品| 亚洲欧美在线视频| 一区二区三区精品在线观看| 亚洲在线观看免费| 免费久久精品视频| 国产麻豆91精品| 成人一二三区视频| 一本色道综合亚洲| 91麻豆精品国产综合久久久久久 | 国产欧美一区二区精品久导航| 久久人人爽人人爽| 国产精品国产馆在线真实露脸| 亚洲精品伦理在线| 日日骚欧美日韩| 激情图片小说一区| 色婷婷激情综合| 日韩视频永久免费| 国产精品乱码一区二三区小蝌蚪| 亚洲欧美日韩一区| 老司机精品视频在线| 成人av网站免费| 91精品婷婷国产综合久久| 国产网站一区二区| 麻豆精品精品国产自在97香蕉| 国产成人亚洲综合a∨猫咪 | 91成人在线免费观看| 91精品婷婷国产综合久久性色| 精品国产免费人成电影在线观看四季| 国产精品福利一区二区三区| 亚洲444eee在线观看| 国产福利不卡视频| 欧美日韩一区久久| 中文字幕av不卡| 蜜桃av一区二区三区电影| 成人aaaa免费全部观看| 欧美日本视频在线| 国产精品久久久久久户外露出| 午夜欧美2019年伦理| 成人免费视频一区| 日韩三级视频中文字幕| 亚洲欧美国产高清| 国产麻豆成人精品| 91精品视频网| 一区二区三区四区不卡在线| 国产高清在线精品| 欧美一区二区三区小说| 亚洲女同女同女同女同女同69| 玖玖九九国产精品| 欧美性欧美巨大黑白大战| 国产欧美日韩综合精品一区二区| 日韩精品福利网| 在线视频你懂得一区二区三区| 久久久久久久国产精品影院| 日韩和欧美的一区| 日本久久电影网| 亚洲手机成人高清视频| 国产成人免费在线| 精品日韩在线观看| 日韩中文欧美在线| 欧美在线免费视屏| 综合久久久久久| 丰满岳乱妇一区二区三区| 欧美成人三级在线| 日韩av一区二| 91精品国产日韩91久久久久久| 亚洲午夜精品一区二区三区他趣| 一本久久精品一区二区 | 亚洲视频网在线直播| 成人激情校园春色| 日本一区二区三区国色天香 | 午夜欧美在线一二页| 欧洲一区在线观看| 亚洲色图欧美激情| 91日韩在线专区| 1000部国产精品成人观看| 成人精品国产免费网站| 国产精品色噜噜| av成人动漫在线观看| 亚洲天堂免费看| 99re免费视频精品全部| 亚洲丝袜另类动漫二区| 色综合视频在线观看| 一区二区三区四区不卡视频 | 精品影视av免费| 精品久久久久久久久久久久包黑料 | 日韩美女视频19| 色综合久久中文综合久久牛| 亚洲日韩欧美一区二区在线| 色综合久久中文字幕| 亚洲精选一二三| 欧美日韩亚洲综合一区二区三区| 亚洲国产精品影院| 7777女厕盗摄久久久| 狠狠色丁香婷综合久久| 国产亚洲一本大道中文在线| 成人教育av在线| 亚洲国产精品久久人人爱蜜臀 | 久久先锋影音av| 成人av网站在线观看免费| 亚洲六月丁香色婷婷综合久久| 色噜噜夜夜夜综合网| 轻轻草成人在线| 国产三级欧美三级| 99精品视频一区| 日韩在线卡一卡二| 久久久亚洲国产美女国产盗摄 | 欧美日韩大陆在线| 久久精品国产99久久6| 中文字幕国产精品一区二区| 在线观看免费成人| 六月婷婷色综合| 亚洲欧美另类图片小说| 欧美一区二区三区影视| 粉嫩aⅴ一区二区三区四区五区|