com.huiyou.Web/courier/order_detail.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using com.huiyou.Web.tools;
using com.huiyou.Bll;
using System.Data;
using com.huiyou.Common;
using System.Web.UI.HtmlControls;

namespace com.huiyou.Web.courier
{
    public partial class order_detail : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CourierLoginHelper.CourierEnter()) return;

            if (!Page.IsPostBack)
            {
                BindData();
            }
        }

        private void BindData()
        {
            string courierId = Session[CourierLoginHelper.CourierIdSession].ToString();
            string orderId = Request["orderId"];

            var order = OrderHeadService.GetById(Convert.ToInt32(orderId));
            var user = UserService.GetById(order.UserId);
            var factory = FactoryService.GetById(order.FactoryId);
            var courier = CourierService.GetById(order.CourierId);

            if (courierId != order.CourierId.ToString())
            {
                Response.Redirect("orderlist.aspx");
            }

            txtOrderNo.Text = order.OrderNo;
            txtCreateTime.Text = order.CreateTime.ToString("yyyy-MM-dd HH:mm");
            txtUser.Text = user.TrueName + " " + user.Phone;
            txtTotalAmount.Text = order.TotalAmount.ToString();
            //txtDiscount.Text = order.Discount.ToString();
            txtFreight.Text = order.Freight.ToString();
            txtRealPay.Text = order.RealPay.ToString();
            txtPayType.Text = HtmlHelper.FormatPayType(order.PayType);
            txtFactory.Text = factory.FactoryName;
            txtCourier.Text = courier.TrueName + "(" + courier.Phone + ")";
            txtMemo.Text = order.Memo;
            txtAddress.Text = AreaService.GetProvinceName(order.ProvinceId)
                + AreaService.GetCityName(order.CityId) + AreaService.GetRegionName(order.RegionId) + order.Address;
            txtOrderStatus.Text = HtmlHelper.FormatOrderStatus(order.CurStatus);
            txtReceiver.Text = order.ReceiverName + " " + order.ReceiverPhone;

            string sql = "select T1.*,T2.ProductNo,T2.ProductName,T3.CategoryName Cat1Name,T4.CategoryName Cat2Name," + Environment.NewLine;
            sql += "T5.CategoryName Cat3Name,dbo.FormatProductSpec(T1.SpecId) SpecName" + Environment.NewLine;
后面还有 13 行代码,购买后查看完整代码

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

AI 解读

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

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