Web/MyCenterAddress.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Seven.Common;
using System;
using System.Collections.Generic;
using System.Data;
using System.Net;
using System.Text;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web
{
    public partial class MyCenterAddress : ShopBasePage
    {
        BLL.user userbll = new BLL.user();
      
        BLL.address addressbll = new BLL.address();
        BLL.idcards idcardsbll = new BLL.idcards();
        BLL.orders ordersbll = new BLL.orders();
        BLL.orders_detail detailsbll = new BLL.orders_detail();
        BLL.groupbuy_order_detail groupbuyorderdetailbll = new BLL.groupbuy_order_detail();
        BLL.groupbuy_order groupbuyorderbll = new BLL.groupbuy_order();
        public MODEL.Session_user usersessionmodel = new MODEL.Session_user();
        public string strUserScore = "0";
        public string strDefultAddress = "暂未设置默认地址";
        public string strFrontImg = "";
        public string strOppositeImg = "";
        public string myhaitaostate = "";
        protected void Page_Load(object sender, EventArgs e)
        {

                if (System.Web.HttpContext.Current.Session[ShopBasePage.Session_User] != null)
                {
                    usersessionmodel = System.Web.HttpContext.Current.Session[ShopBasePage.Session_User] as MODEL.Session_user;
                }
                else
                    Response.Redirect("SignIn.aspx");

                if (!IsPostBack)
                {
                    if (usersessionmodel != null)
                    {
                        SetSeo("", false);

                      
                        BLL.score scorebll = new BLL.score();
                        strUserScore = scorebll.SumUserScore(usersessionmodel.id.ToString(), "").ToString();
                        


                       ReadDefultAddress(usersessionmodel.id);

                        //当前登录用户的所有收货地址
                            RepeaterUserAddress.DataSource = addressbll.GetList(" user=" + usersessionmodel.id);
                            RepeaterUserAddress.DataBind();
                    }
                    else
                        Response.Redirect("SignIn.aspx");
                }
后面还有 66 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。