예제 #1
0
    private int GetUserGrad(string InfoID)
    {
        Tz888.BLL.Conn Conobj = new Tz888.BLL.Conn();
        DataTable      dt     = Conobj.GetList("MainInfoTab", "LoginName", "InfoID", 1, 1, 0, 0, "infoid=" + InfoID);

        if (dt != null && dt.Rows.Count > 0)
        {
            string LoginName = Convert.ToString(dt.Rows[0]["LoginName"]);
            Tz888.BLL.Login.LoginInfoBLL loginBll = new Tz888.BLL.Login.LoginInfoBLL();
            string UserGradeTypeID = loginBll.GetUserGradeTypeIDByLoginName(LoginName);
            if (UserGradeTypeID == "1001")
            {
                //普通用户模板
                return(0);
            }
            else
            {
                //VIP会员模板
                return(1);
            }
        }
        return(-1);
    }