Hidistro.UI.Web/Admin/Order_ChargesList.cs

(开头部分) 4KB

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

namespace Hidistro.UI.Web.Admin
{
    using Hidistro.Core;
    using Hidistro.Entities.Orders;
    using System;
    using System.Globalization;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class Order_ChargesList : UserControl
    {
        protected HyperLink hlkFreightFreePromotion;
        protected HyperLink hlkSentTimesPointPromotion;
        protected Literal litCoupon;
        protected Literal litCouponValue;
        protected Literal litDiscount;
        protected Literal litExmition;
        protected Literal litFreight;
        protected Literal litInvoiceTitle;
        protected Literal litPayCharge;
        protected Literal litPayMode;
        protected Literal litPoints;
        protected Literal litRedPager;
        protected Literal litShippingMode;
        protected Literal litTax;
        protected Literal litTotalPrice;
        protected LinkButton lkBtnEditPayMode;
        protected Label lkBtnEditshipingMode;
        private OrderInfo order;

        public void LoadControls()
        {
            if ((this.order.OrderStatus == OrderStatus.WaitBuyerPay) || (this.order.OrderStatus == OrderStatus.BuyerAlreadyPaid))
            {
                this.lkBtnEditshipingMode.Visible = true;
            }
            if (this.order.OrderStatus == OrderStatus.WaitBuyerPay)
            {
                this.lkBtnEditPayMode.Visible = true;
            }
            this.litFreight.Text = Globals.FormatMoney(this.order.AdjustedFreight);
            if ((this.order.OrderStatus == OrderStatus.Finished) || (this.order.OrderStatus == OrderStatus.SellerAlreadySent))
            {
                this.litShippingMode.Text = this.order.RealModeName;
            }
            else
            {
                this.litShippingMode.Text = this.order.ModeName;
            }
            this.litPayMode.Text = this.order.PaymentType;
            if (this.order.IsFreightFree)
            {
                this.hlkFreightFreePromotion.Text = this.order.FreightFreePromotionName;
                this.hlkFreightFreePromotion.NavigateUrl = Globals.GetSiteUrls().UrlData.FormatUrl("FavourableDetails", new object[] { this.order.FreightFreePromotionId });
            }
            this.litPayCharge.Text = Globals.FormatMoney(this.order.PayCharge);
            if (!string.IsNullOrEmpty(this.order.CouponName))
            {
                this.litCoupon.Text = "[" + this.order.CouponName + "]-" + Globals.FormatMoney(this.order.CouponValue);
            }
后面还有 53 行代码,购买后查看完整代码

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

AI 解读 AI

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

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