BookShop.Web/ConfirmOrder.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CTL.Common;
namespace BookShop.Web
{
public partial class ConfirmOrder : System.Web.UI.Page
{
/// <summary>
/// 页面加载事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
Model.User userInfo = BookShopUtils.GetUserInfoByCookie();
if (userInfo != null)
{
havePoint.Text = userInfo.Point.ToString();
Literal1.Text = "0.00";
decimal totalprice = 0.0M;
BookShop.ShoppingCart shoppingCartInfo = new BookShop.ShoppingCart(userInfo);
#region 绑定数据
if (!IsPostBack)
{
txtshippeople.Value = userInfo.UserName;
txtshipaddress.Value = userInfo.Address;
txtshipmobile.Value = userInfo.Phone;
totalprice = shoppingCartInfo.TotalPrice;
repeater.DataSource = shoppingCartInfo.UsableCartItemList;
repeater.DataBind();
txtQuantity.Text = shoppingCartInfo.Total.ToString();
txtTotalPrice.Text = totalprice.ToString();
List<Model.Delivery> deliveryList = DeliveryBLL.GetDeliveryList("UserID=" + userInfo.UserID);
if (deliveryList.Count <= 0)
{
delivery_0.Checked = true;
}
else
{
txtDeliveryList.DataSource = deliveryList;
txtDeliveryList.DataBind();
}
}
#endregion
#region 提交订单
后面还有 57 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。