Beispiel #1
0
 private void IsLogin()
 {
     PageBase m_base = new PageBase();
     if(m_base.GetSession().CustomerEntity!= null&& m_base.GetSession().CustomerEntity.SysNo != AppConst.IntNull)
     {
         ltrLinks.Text = "<a href='/Passport/Login.aspx?type=logout' title='注销'>退出</a> | <a href='/Qin/View/" + m_base.GetSession().CustomerEntity.SysNo + "' title='我的首页'>我的首页</a>";
         ltrTips.Text =  m_base.GetSession().CustomerEntity.NickName + ",欢迎回到上上签";
         int sms = USR_CustomerBll.GetInstance().GetUnReadInfoNum(m_base.GetSession().CustomerEntity.SysNo);
         if (sms > 0)
         {
             ltrLinks.Text += @"<div class=""msg_tip_box""><a href=""/Qin/MyNotice.aspx"">您有"+sms+"条新消息</a></div>";
         }
     }
 }
Beispiel #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     PageBase m_base = new PageBase();
     if (m_user.SysNo != m_base.GetSession().CustomerEntity.SysNo)
     {
         ltr_me = "TA";
     }
     m_grade = USR_GradeBll.GetInstance().GetModel(m_user.GradeSysNo);
 }
Beispiel #3
0
 private void IsLogin()
 {
     PageBase m_base = new PageBase();
     if (m_base.GetSession().CustomerEntity != null && m_base.GetSession().CustomerEntity.SysNo != AppConst.IntNull)
     {
         ltrLinks.Text = "<a href='/Passport/Login.aspx?type=logout' title='注销'>退出</a>|<a href='/Qin/View/" + m_base.GetSession().CustomerEntity.SysNo + "' title='我的首页'>我的首页</a>";
         ltrTips.Text = m_base.GetSession().CustomerEntity.NickName + ",欢迎回到上上签";
     }
 }
Beispiel #4
0
 protected void rptCombo_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     PageBase m_pb = new PageBase();
     DataRowView rowv = (DataRowView)e.Item.DataItem;
     int fatesysno = Convert.ToInt32(rowv["refsysno"]);
     FATE_ChartMod m_chart = FATE_ChartBll.GetInstance().GetModel(fatesysno);
     try
     {
         switch (m_pb.GetSession().CustomerEntity.FateType)
         {
             case (int)AppEnum.FateType.astro:
                 AstroForQuest Astro1 = (AstroForQuest)e.Item.FindControl("Astro1");
                 Astro1.input = m_chart;
                 Astro1.Visible = true;
                 break;
             case (int)AppEnum.FateType.ziwei:
                 ZiWeiForQuest Ziwei1 = (ZiWeiForQuest)e.Item.FindControl("Ziwei1");
                 Ziwei1.input = m_chart;
                 Ziwei1.Visible = true;
                 break;
             case (int)AppEnum.FateType.bazi:
                 BaZiForQuest Bazi1 = (BaZiForQuest)e.Item.FindControl("Bazi1");
                 Bazi1.input = m_chart;
                 Bazi1.Visible = true;
                 break;
         }
     }
     catch (Exception ex)
     { }
 }