/// <summary>
    /// 用户帐户信息
    /// </summary>
    /// <param name="LoginName">用户名</param>
    /// <param name="param">查询的项</param>
    /// <returns></returns>
    public static string account(string LoginName, string param)
    {
        Tz888.BLL.AccountInfo dal = new Tz888.BLL.AccountInfo();
        DataTable             dt  = dal.GetAccountInfo(LoginName);

        DataRow[] drs        = null;
        string    paramvalue = "0";

        if (dt != null)
        {
            drs = dt.Select("param='" + param + "'");
            if (drs.GetLength(0) > 0)
            {
                paramvalue = drs[0]["value"].ToString() == "" ? "0" : drs[0]["value"].ToString();
            }
        }
        return(paramvalue);
    }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Page.User.Identity.Name == null || Page.User.Identity.Name.Trim() == "")
     {
         Response.Redirect("../Login.aspx");
     }
     if (!Page.IsPostBack)
     {
         lblLoginName.Text = Page.User.Identity.Name;
         Tz888.BLL.AccountInfo info = new Tz888.BLL.AccountInfo();
         lblJifenCount.Text    = info.account(lblLoginName.Text.Trim(), "convertjifen"); //累计兑换积分
         lblVoucherNum.Text    = info.account(lblLoginName.Text.Trim(), "covertcount");  //累计兑换次数
         lblBalanceNum.Text    = info.account(lblLoginName.Text.Trim(), "convertvouch"); //累计兑换金额
         lblUseNum.Text        = info.account(lblLoginName.Text.Trim(), "vouchxf");      //已消费额购物券金额
         ViewState["CurrPage"] = 1;
         bind();
     }
 }