protected void Page_Load(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(Page.User.Identity.Name))
        {
            Response.Redirect("/login.aspx?url=" + Page.Request.Url.ToString());
        }

        if (ViewState["InfoType"] == null)
        {
            if (Page.Request.QueryString["type"] != null)
            {
                this.InfoType = Page.Request.QueryString["type"].ToString().Trim();
                if (this.InfoType != "All" && this.InfoType != "Merchant" &&
                    this.InfoType != "Capital" && this.InfoType != "Project" &&
                    this.InfoType != "Carveout" && this.InfoType != "Oppor")
                {
                    this.InfoType = "All";
                }
            }
            else
            {
                this.InfoType = "All";
            }
            ViewState["InfoType"] = this.InfoType;
        }
        else
        {
            this.InfoType = ViewState["InfoType"].ToString();
        }

        if (!IsPostBack)
        {
            Tz888.BLL.Login.MemberBLL bll = new Tz888.BLL.Login.MemberBLL();

            string LoginName = Page.User.Identity.Name;
            //string LoginName = "liyanlili";

            string   strCriteria = "LoginName='" + LoginName + "'";
            DataView dv          = bll.GetMerberInfo("LoginName,IsRefresh", strCriteria, "", ref intCurrentPage, intCurrentPageSize, ref intTotalCount);
            if (dv == null || dv.Table.Rows.Count == 0)
            {
                //Tz888.Common.MessageBox.Show(this.Page, "已经设置为:以后不再提醒!");
                Tz888.Common.MessageBox.Show(this.Page, "用户信息异常!");
                //this.Page.Response.Flush();
                //this.Page.Response.End();
                return;
            }
            int strDayMsg = Convert.ToInt32(dv.Table.Rows[0]["IsRefresh"]);
            if (strDayMsg == 0)
            {
                Tz888.Common.MessageBox.Show(this.Page, "当前设置为不提醒!");
            }
            else
            {
                ViewState["InfoType"] = InfoType;
                RefreshList();
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (string.IsNullOrEmpty(Page.User.Identity.Name))
        {
            Response.Redirect("/login.aspx?url=" + Page.Request.Url.ToString());
        }

        if (Page.User.IsInRole("GT1002") || Page.User.IsInRole("GT1003"))
        {
            this.plRefreshSet_Topfo.Visible   = true;
            this.plRefreshSet_General.Visible = false;
        }
        else
        {
            this.plRefreshSet_Topfo.Visible   = false;
            this.plRefreshSet_General.Visible = true;
        }

        if (!IsPostBack)
        {
            Tz888.BLL.Login.MemberBLL bll = new Tz888.BLL.Login.MemberBLL();
            string LoginName = Page.User.Identity.Name;
            //string LoginName = "liyanlili";
            string   strCriteria        = "LoginName='" + LoginName + "'";
            long     intCurrentPage     = 1;
            long     intCurrentPageSize = 1;
            long     intTotalCount      = 0;
            DataView dv        = bll.GetMerberInfo("LoginName,IsRefresh", strCriteria, "", ref intCurrentPage, intCurrentPageSize, ref intTotalCount);
            int      strDayMsg = 0;
            if (dv != null && dv.Count > 0)
            {
                strDayMsg = Convert.ToInt32(dv.Table.Rows[0]["IsRefresh"]);
            }

            if (strDayMsg == 0)
            {
                this.RbtnDel.Checked = true;
            }
            else
            {
                this.RbtnSet.Checked = true;
            }
        }
    }