Hidistro.UI.Web/Admin/Trade/ShipAddress.cs

(开头部分) 4KB

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

namespace Hidistro.UI.Web.Admin.Trade
{
    using Hidistro.ControlPanel.Sales;
    using Hidistro.Core;
    using Hidistro.Entities.Orders;
    using Hidistro.UI.Common.Controls;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.Web.UI.WebControls;

    public class ShipAddress : AdminPage
    {
        private string action;
        protected Button btnMondifyAddress;
        protected RegionSelector dropRegions;
        protected Literal lblOriAddress;
        private string orderId;
        protected TextBox txtAddress;
        protected TextBox txtCellPhone;
        protected TextBox txtShipTo;
        protected TextBox txtTelPhone;
        protected TextBox txtZipcode;

        protected ShipAddress() : base("m01", "00000")
        {
            this.action = "update";
        }

        private void BindUpdateSippingAddress(OrderInfo order)
        {
            this.txtShipTo.Text = order.ShipTo;
            this.dropRegions.SetSelectedRegionId(new int?(order.RegionId));
            this.txtAddress.Text = order.Address;
            this.txtZipcode.Text = order.ZipCode;
            this.txtTelPhone.Text = order.TelPhone;
            this.txtCellPhone.Text = order.CellPhone;
            string oldAddress = order.OldAddress;
            if (string.IsNullOrEmpty(oldAddress))
            {
                if (!string.IsNullOrEmpty(order.ShippingRegion))
                {
                    oldAddress = order.ShippingRegion.Replace(',',' ');//(0xff0c, ' ');
                }
                if (!string.IsNullOrEmpty(order.Address))
                {
                    oldAddress = oldAddress + order.Address;
                }
                if (!string.IsNullOrEmpty(order.ShipTo))
                {
                    oldAddress = oldAddress + "   " + order.ShipTo;
                }
                if (!string.IsNullOrEmpty(order.ZipCode))
                {
                    oldAddress = oldAddress + "   " + order.ZipCode;
                }
                if (!string.IsNullOrEmpty(order.TelPhone))
                {
                    oldAddress = oldAddress + "   " + order.TelPhone;
                }
                if (!string.IsNullOrEmpty(order.CellPhone))
后面还有 60 行代码,购买后查看完整代码

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

AI 解读 AI

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

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