Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Login(Request.Url.ToString());
                WebForMain.Master.Qin m_master = (WebForMain.Master.Qin)Master;
                m_master.SetTab(3);
                if (Request.QueryString["tab"] != null)
                {
                    try
                    {
                        tab = int.Parse(Request.QueryString["tab"]);
                    }
                    catch
                    {
                        tab = 0;
                    }
                }
                else
                {
                    tab = 0;
                }

                if (Request.QueryString["pn"] != null)
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch
                    { }
                }
                if (Request.QueryString["order"] != null)
                {
                    try
                    {
                        sysno = int.Parse(Request.QueryString["order"]);
                    }
                    catch
                    { }
                }
                if (tab == 0 && sysno == 0)
                {
                    ShowError("");
                }
                RightPannel1.SetTab(tab);
                BindList();
                MultiView1.ActiveViewIndex = tab;
            }
        }
Ejemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Login(Request.Url.ToString());
            WebForMain.Master.Qin m_master = (WebForMain.Master.Qin)Master;
            m_master.SetTab(4);
            if (Request.QueryString["id"] != null)
            {
                try
                {
                    SysNo = int.Parse(Request.QueryString["id"]);
                }
                catch
                {
                    ShowError("");
                }
            }
            else if (Request.QueryString["UserSysNo"] != null)
            {
                try
                {
                    TargetID   = int.Parse(Request.QueryString["UserSysNo"]);
                    TargetName = USR_CustomerBll.GetInstance().GetModel(TargetID).NickName;
                }
                catch
                {
                    ShowError("");
                }
            }
            else
            {
                ShowError("");
            }
            if (!IsPostBack)
            {
                if (SysNo != 0)
                {
                    BindList();
                }

                imgPhoto.ImageUrl   = "~/ControlLibrary/ShowPhoto.aspx?type=t&id=" + GetSession().CustomerEntity.Photo;
                RightPannel1.m_user = GetSession().CustomerEntity;
            }
        }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         Login(Request.Url.ToString());
         WebForMain.Master.Qin m_master = (WebForMain.Master.Qin)Master;
         m_master.SetTab(4);
         if (Request.QueryString["pn"] != null)
         {
             try
             {
                 pageindex = int.Parse(Request.QueryString["pn"]);
             }
             catch
             { }
         }
         BindList();
         RightPannel1.m_user = GetSession().CustomerEntity;
     }
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["type"] != null)
            {
                try
                {
                    type = int.Parse(Request.QueryString["type"]);
                }
                catch
                {
                    type = (int)AppCmn.AppEnum.CollectionType.chart;
                }
            }
            else
            {
                type = (int)AppCmn.AppEnum.CollectionType.chart;
            }
            for (int i = 0; i < tabs.Length; i++)
            {
                if (i == type - 1)
                {
                    tabs[i] = "now";
                }
                else
                {
                    tabs[i] = "";
                }
            }
            if (!IsPostBack)
            {
                Login(Request.Url.ToString());
                WebForMain.Master.Qin m_master = (WebForMain.Master.Qin)Master;
                m_master.SetTab(1);

                #region 添加收藏 显示弹出层完善信息
                if (Request.QueryString["add"] != null && Request.QueryString["add"] == "1" && ltrInfo.Text == "")
                {
                    switch (type)
                    {
                    case (int)AppCmn.AppEnum.CollectionType.chart:
                        ltrInfo.Text = "收藏命盘:<br/>请完善以下收藏信息";
                        if (Request.QueryString["minitype"].ToUpper() == "ASTRO")
                        {
                            Literal1.Visible = true;
                            //drpGender.Visible = true;
                        }
                        ModalPopupExtender1.Show();
                        break;

                    case (int)AppCmn.AppEnum.CollectionType.url:
                        ltrInfo.Text  = "收藏站外资源:<br/>请完善以下收藏信息";
                        urlli.Visible = true;
                        ModalPopupExtender1.Show();
                        break;

                    default:
                        AddCollection(sender, e);
                        break;
                    }

                    //return;
                }
                #endregion
                if (Request.QueryString["pn"] != null)
                {
                    try
                    {
                        pageindex = int.Parse(Request.QueryString["pn"]);
                    }
                    catch
                    { }
                }
                BindList();
            }
            RightPannel1.m_user   = GetSession().CustomerEntity;
            imgPhoto.ImageUrl     = "~/ControlLibrary/ShowPhoto.aspx?type=o&id=" + RightPannel1.m_user.Photo;
            ImageButton1.ImageUrl = AppCmn.AppConfig.WebResourcesPath() + "img/page/button4.jpg";
            ImageButton2.ImageUrl = AppCmn.AppConfig.WebResourcesPath() + "img/page/button5.jpg";
        }