/// <summary> /// 绑定表单 /// </summary> protected override void OnBind(IDatabaseContext context, UserShippingAddress bindFrom) { Region = new CountryAndRegion(bindFrom.Country, bindFrom.RegionId); ZipCode = bindFrom.ZipCode; DetailedAddress = bindFrom.DetailedAddress; ReceiverName = bindFrom.ReceiverName; ReceiverTel = bindFrom.ReceiverTel; DisplayOrder = bindFrom.DisplayOrder; Remark = bindFrom.Remark; }
/// <summary> /// 绑定表单 /// </summary> protected override void OnBind(SellerOrder bindFrom) { var address = bindFrom.OrderParameters.GetShippingAddress(); Region = new CountryAndRegion(address.Country, address.RegionId); ZipCode = address.ZipCode; DetailedAddress = address.DetailedAddress; ReceiverName = address.ReceiverName; ReceiverTel = address.ReceiverTel; }