EasyShop/Pay/zfbjust/PayByZfb.aspx.cs

(开头部分) 9KB

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

using System;
using System.Data;
using System.Configuration;
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 System.Collections.Generic;
using Com.Alipay;
using System.Linq;
using System.Security.Policy;
using EasyShop;
using MyModels;

namespace EasyShop.Pay.zfbjust
{
    public partial class PayByZfb : Base_Page
    {
        protected decimal sumAllPrice = 0M;
        protected decimal YhPrice = 0M;//调整价格
        protected decimal KdPrice = 0M;//快递
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TB_MC_Order tmo = new TB_MC_Order();
                string OrderID = Common.GetMes.GetRequestQuery(Request, "order_id");
                lb_Subject.Text = "易游商城购买商品" + DateTime.Now.ToString("yyyy-MM-dd") + "付款";
                string uid = MyModels.Global.DeCryStr(Login_UserId);
                MyModels.TB_MC_Order to = new MyModels.TB_MC_Order();
                MyModels.Db.TB_MC_Order order = to.IsMyOrder(uid, int.Parse(OrderID.ToString().Trim()));
                to.Id = int.Parse(OrderID);
                YhPrice = to.GetYhPrice();
                KdPrice = to.GetKdPrice();
                if (order == null) return;
                if (to.My_Order_More != null && to.My_Order_More.Count > 0)
                    sumAllPrice = to.My_Order_More.Sum(i => (int)i.tp == 3 ? 0 : ((decimal)i.Price * (int)i.Count));
                if (order.UseTicketEndPrice.HasValue && !string.IsNullOrWhiteSpace(order.ST_ID))
                {
                    sumAllPrice = order.UseTicketEndPrice.Value +
                                  (order.TransportPrice.HasValue ? order.TransportPrice.Value : 0M);
                }
                sumAllPrice = sumAllPrice + KdPrice + YhPrice;
                lb_fee.Text = sumAllPrice.ToString();
            }
            //TxtTotal_fee.Text = "0.01";
            //if(!string.IsNullOrEmpty(OrderID))
            //{
            //     tmo.Id=int.Parse(OrderID);
            //     DataSet ds = tmo.GetListByID();
            //     int num = ds.Tables[0].Rows.Count;
            //     for (int i = 0; i < num; i++)
            //     {
            //         //Id,OrderNum,ProNum,Price
            //         string Id = ds.Tables[0].Rows[i][0].ToString();
            //         string OrderNum = ds.Tables[0].Rows[i][1].ToString();
            //         string ProNum = ds.Tables[0].Rows[i][2].ToString();
            //         string Price=ds.Tables[0].Rows[i][3].ToString();
后面还有 130 行代码,购买后查看完整代码

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

AI 解读 AI

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

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