ShopingNet/Pages/Proscenium/pay.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Bll;
public partial class Pages_pay : System.Web.UI.Page
{
shop sh = new shop();
public int roCount;//种数
public int proCount;//记录数
public double proSum;
public double RproSum;
CustomersManagement cm;
ProductClassManagment pcm;
string cName ;//客户账号
string toName ;//收货人地址
string toAdd ;//收货人地址
string zipCode;//邮政编码
string toTel;//接收人电话
protected void Page_Load(object sender, EventArgs e)
{
pcm = new ProductClassManagment();
cm = new CustomersManagement();
//判断用户是否有会员信息
if (Session["customerName"] != null)
{
this.denglu.Visible = false;
this.userInfo.Visible = true;
DataSet dsUserInfo = cm.Select("CustomerID ='" + Session["customerID"].ToString() + "'");
this.Image7.ImageUrl = @"~/Images/CustomerPhoto/" + dsUserInfo.Tables[0].Rows[0]["CustomerPhoto"].ToString();
this.cname.Text = dsUserInfo.Tables[0].Rows[0]["CustomerName"].ToString();
this.cid.Text = Session["customerID"].ToString();
this.sex.Text = dsUserInfo.Tables[0].Rows[0]["Customersex"].ToString();
}
if (!Page.IsPostBack)
{
this.Label1.Text = Session["customerName"].ToString();
//实际支付金额=总金额+1%技术服务费-预存款金额
DataTable dt = (DataTable)Session["buying"];
proSum = sh.GetSum(dt);
ViewState["price"] = RproSum = proSum + proSum * 0.01;
roCount = dt.Rows.Count;
proCount = sh.GetProCount(dt);
}
pcm = new ProductClassManagment();
DataSet ds = pcm.ProductClassSelect(" ProductParentID = 0");
this.Repeater1.DataSource = ds.Tables[0];
this.Repeater1.DataBind();
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
//参数
后面还有 38 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
