59 lines
2.1 KiB
C#
59 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using System.Text;
|
|
using System.Data;
|
|
namespace Mtxfw.VipSite
|
|
{
|
|
public partial class top : System.Web.UI.Page
|
|
{
|
|
Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info();
|
|
public int Card = 0, uLevel = 0, uLevel2 = 0, msgCount = 0, IFApp = 0, IFStores = 0, gtype = 0, Memberttype = 0;
|
|
public string MemberName = "", MemberJS = "";
|
|
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (Session["MemberId"] != null && Session["MemberName"] != null)
|
|
{
|
|
Card = int.Parse(Session["MemberId"].ToString());
|
|
MemberName = Session["MemberName"].ToString();
|
|
if (Session["MemberuLevel"] != null)
|
|
{
|
|
uLevel = int.Parse(Session["MemberuLevel"].ToString());
|
|
}
|
|
if (Session["MemberuLevel2"] != null)
|
|
{
|
|
uLevel2 = int.Parse(Session["MemberuLevel2"].ToString());
|
|
}
|
|
if (Session["MemberIFStores"] != null)
|
|
{
|
|
IFStores = int.Parse(Session["MemberIFStores"].ToString());
|
|
}
|
|
if (Session["MemberJS"] != null)
|
|
{
|
|
MemberJS = Session["MemberJS"].ToString();
|
|
}
|
|
if (Session["gtype"] != null)
|
|
{
|
|
gtype = int.Parse(Session["gtype"].ToString());
|
|
}
|
|
if (Session["Memberttype"] != null)
|
|
{
|
|
Memberttype = int.Parse(Session["Memberttype"].ToString());
|
|
}
|
|
}
|
|
if (IFStores == 0)
|
|
{
|
|
msgCount = new Mtxfw.DAL.Article().GetCount("receiverid=" + Card + " And ParentID=20 And Seef=0");
|
|
}
|
|
else
|
|
{
|
|
msgCount = new Mtxfw.DAL.Article().GetCount("receiverid=5745 And ParentID=20 And Seef=0");
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
} |