CheckOut.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using BLL.ShoppingCart;
using Com;

public partial class CheckOut : System.Web.UI.Page
{
    public DataTable dtPay = new DataTable();
    public DataTable dtDeliver = new DataTable();
    public Bs_User user = new Bs_User();
    protected Bs_Orders orderCsgInfo = new Bs_Orders();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (CurInfo.CurUser == null)
        {
            CSA.HC.Common.AlertAndRedirect("你没有登录或者登录已经过期,请重新登录", "login.aspx?from=Shopcart.aspx");
        }
        orderCsgInfo = (Bs_Orders)CSA.HC.SessionHelper.get(Const.sessionNames[3]);
        this.txtNotes.Value = orderCsgInfo == null ? "" : orderCsgInfo.Message;
        if (orderCsgInfo == null)
        {
            orderCsgInfo = new Bs_Orders();
            orderCsgInfo.csgProvince = "广东省";
            orderCsgInfo.csgCity = "广州市";
            orderCsgInfo.csgCounty = "越秀区";
        }
        dtPay = Factory.getOrderBllInstance().getPayList();
        dtDeliver = Factory.getOrderBllInstance().getDeliverList();

        string action = Request.QueryString["do"];
        if (CurInfo.CurUser != null)
        {
            user = CurInfo.CurUser;
        }
        if (Shopping.getCart().Values.Count > 0)
        {
            switch (action)
            {
                case "submit":

                    string name = user.RealName;
                    string province = user.Province;
                    string city = user.City;
                    string country = user.County;
                    string address = user.Address;
                    string postcode = user.PostCode;
                    string mobile = user.Mobile;
                    string phone = user.Phone;
                    string email = user.EMail;
                    string note = Request.Form["txtNotes"];
                    string deliverNo = Request.Form["deliverType"];

                    Bs_Orders order = new Bs_Orders();
                    order.csgName = name;
                    order.csgProvince = province;
                    order.csgCity = city;
后面还有 23 行代码,购买后查看完整代码

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

AI 解读 AI

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

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