Exemplo n.º 1
0
 protected void palConfirmInfo_Load(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         if (Session["UserName"] == null)
         {
             //this.Response.Redirect("../UserRegister/Login.aspx");
         }
         else
         {
             StoreUser           User  = new StoreUser();
             StoreUserController User1 = new StoreUserController();
             string  ImageAddress      = Request.QueryString["ImageAddress"];
             ImgInfo imgInfo           = new ImgInfo();
             imgInfo.ImgAddress = ImageAddress;
             int            GoodID         = ImgInfo.ImgAddressGetGoodID(imgInfo);
             SingleGoodInfo singleGoodinfo = new SingleGoodInfo();
             singleGoodinfo.GoodID = GoodID;
             int SingleGoodID = SingleGoodInfo.mGoodIDGetSingleGoodID(singleGoodinfo);
             mSingleGoodID = SingleGoodID;
             User.UserName = Session["UserName"].ToString();
             List <StoreUser> order = new List <StoreUser>();
             order             = User1.OrderConfirm(User);
             lbUserName.Text   = order[0].UserTrueName;
             tbxUserPhone.Text = order[0].Phone;
             lbMoney.Text      = mGoodCount.ToString();
             if (tbxUserPhone.Text != "")
             {
                 if (order[0].Address1 != "")
                 {
                     tbxAddress1.Text = order[0].Address1;
                     if (order[0].IsDafult1 == "1")
                     {
                         rbtnAddress1.Checked = true;
                     }
                 }
                 if (order[0].Address2 != "")
                 {
                     tbxAddress2.Text = order[0].Address2;
                     if (order[0].IsDafult2 == "1")
                     {
                         rbtnAddress2.Checked = true;
                     }
                 }
                 if (order[0].Address3 != "")
                 {
                     tbxAddress3.Text = order[0].Address3;
                     if (order[0].IsDafult3 == "1")
                     {
                         rbtnAddress3.Checked = true;
                     }
                 }
             }
         }
     }
 }