Backup/Web/Client/CheckOut.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
namespace MrZeng.Web.Client
{
public partial class CheckOut : System.Web.UI.Page
{
DataTable dt;
Hashtable hashCar;
private static Object obje = new Object();//空对象
private static string info;//流水号
//private static Int64 Sequence;//序列号
private static Int64 Sequencenum = 0;//序列基数
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataBinder();
ShipTypeBind();
}
}
/// <summary>
/// 为GridView提供数据源
/// </summary>
private void DataBinder()
{
if (Session["Cart"] == null)
{
litMessage.Text = "您还没有开始购物或者清空了购物车!您可以<a href=\"#\" style=\"color:#ff0000;\" onclick=\"OpenFirstPage()\">去商城首页</a>进行购物或者返回<a href=\"javascript:window.history.back()\" style=\"color:#f00;\">上一页</a>。<br />";
}
else
{
hashCar = (Hashtable)Session["Cart"];//得到购物车信息
if (hashCar.Count != 0)
{
dt = MrZeng.BLL.Common.CreateCartTable();//创建临时表以便存储商品信息列表信息
DataRow row;
foreach (object key in hashCar.Keys)
{
row = dt.NewRow();
row["ID"] = key.ToString();
row["GoodsSum"] = hashCar[key].ToString();
dt.Rows.Add(row);
}
int i = 1;//序列号
int count = 1;//商品数量
float totalPrice = 0;//商品总和
int totalCount = 0;//商品数量总和
foreach (DataRow r in dt.Rows)
{
后面还有 136 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
