把绑定的数据的计算移动到线程里
This commit is contained in:
1 parent
2f9c98b105
commit
b827c6e118
14 files changed
+350
-144
No files matched your search
@@ -137,11 +137,32 @@ namespace AllBase.Model.DBModel
|
||||
set { this.SetValue(x => x.ItemRefund, value); }
|
||||
}
|
||||
public string RefundAddressStr
|
||||
{
|
||||
get { return this.GetValue(x => x.RefundAddressStr); }
|
||||
set { this.SetValue(x => x.RefundAddressStr, value); }
|
||||
}
|
||||
public void SetItemRefund()
|
||||
{
|
||||
get { return this.GetValue(x => x.RefundAddressStr); }
|
||||
set
|
||||
{
|
||||
this.SetValue(x => x.RefundAddressStr, value);
|
||||
|
||||
if (value.ParseToString().Length > 26)
|
||||
RefundAddressShortStr = string.Join("", value.ParseToString().Take(26)) + "…";
|
||||
else
|
||||
RefundAddressShortStr = value.ParseToString();
|
||||
|
||||
RefundAddressShortStrVisibility = RefundAddressShortStr.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
|
||||
}
|
||||
}
|
||||
public string RefundAddressShortStr
|
||||
{
|
||||
get { return this.GetValue(x => x.RefundAddressShortStr); }
|
||||
set { this.SetValue(x => x.RefundAddressShortStr, value); }
|
||||
}
|
||||
public Visibility RefundAddressShortStrVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.RefundAddressShortStrVisibility); }
|
||||
set { this.SetValue(x => x.RefundAddressShortStrVisibility, value); }
|
||||
}
|
||||
|
||||
public void SetItemRefund()
|
||||
{
|
||||
if (ItemOrder?.refundItems?.Count == 1)
|
||||
ItemRefund = ItemOrder?.refundItems?.FirstOrDefault();
|
||||
@@ -234,7 +255,12 @@ namespace AllBase.Model.DBModel
|
||||
get { return this.GetValue(x => x.ItemTransitOrderWithVoid); }
|
||||
set { this.SetValue(x => x.ItemTransitOrderWithVoid, value); }
|
||||
}
|
||||
public List<oms_wei_external_procurement_after_sale_info> ItemTransitOrderAfterSales { get; set; } = new List<oms_wei_external_procurement_after_sale_info>();
|
||||
public Visibility ItemTransitOutOrderBuyerStrVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.ItemTransitOutOrderBuyerStrVisibility); }
|
||||
set { this.SetValue(x => x.ItemTransitOutOrderBuyerStrVisibility, value); }
|
||||
}
|
||||
public List<oms_wei_external_procurement_after_sale_info> ItemTransitOrderAfterSales { get; set; } = new List<oms_wei_external_procurement_after_sale_info>();
|
||||
public oms_wei_external_procurement_after_sale_info ItemTransitOrderAfterSale
|
||||
{
|
||||
get { return this.GetValue(x => x.ItemTransitOrderAfterSale); }
|
||||
@@ -533,9 +559,15 @@ namespace AllBase.Model.DBModel
|
||||
public string BuyerTransitWaybillStatusStr
|
||||
{
|
||||
get { return this.GetValue(x => x.BuyerTransitWaybillStatusStr); }
|
||||
set { this.SetValue(x => x.BuyerTransitWaybillStatusStr, value); }
|
||||
set { this.SetValue(x => x.BuyerTransitWaybillStatusStr, value); BuyerTransitWaybillStatusStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
}
|
||||
public void SetBuyerTransitWaybillStatusStr()
|
||||
public Visibility BuyerTransitWaybillStatusStrVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.BuyerTransitWaybillStatusStrVisibility); }
|
||||
set { this.SetValue(x => x.BuyerTransitWaybillStatusStrVisibility, value); }
|
||||
}
|
||||
|
||||
public void SetBuyerTransitWaybillStatusStr()
|
||||
{
|
||||
BuyerTransitWaybillStatusStr = "";
|
||||
|
||||
@@ -642,9 +674,15 @@ namespace AllBase.Model.DBModel
|
||||
public string WarehouseWaybillStatusStr
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusStr); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusStr, value); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusStr, value); WarehouseWaybillStatusStrVisibility = value.IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible; }
|
||||
}
|
||||
public void SetWarehouseWaybillStatusStr()
|
||||
public Visibility WarehouseWaybillStatusStrVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusStrVisibility); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusStrVisibility, value); }
|
||||
}
|
||||
|
||||
public void SetWarehouseWaybillStatusStr()
|
||||
{
|
||||
if (order_id == "3737682230178873344")
|
||||
{
|
||||
@@ -763,7 +801,12 @@ namespace AllBase.Model.DBModel
|
||||
public string TransitRefundVoidStatusStr
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitRefundVoidStatusStr); }
|
||||
set { this.SetValue(x => x.TransitRefundVoidStatusStr, value); }
|
||||
set { this.SetValue(x => x.TransitRefundVoidStatusStr, value); TransitRefundVoidStatusStrVisibility = string.IsNullOrWhiteSpace(value) ? Visibility.Collapsed : Visibility.Visible; }
|
||||
}
|
||||
public Visibility TransitRefundVoidStatusStrVisibility
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitRefundVoidStatusStrVisibility); }
|
||||
set { this.SetValue(x => x.TransitRefundVoidStatusStrVisibility, value); }
|
||||
}
|
||||
public void SetTransitRefundStatusStr()
|
||||
{
|
||||
@@ -803,6 +846,8 @@ namespace AllBase.Model.DBModel
|
||||
// return "中转作废失败";
|
||||
if (ItemTransitOrderWithVoid?.order_void_status == 1)
|
||||
TransitRefundVoidStatusStr = "中转已作废";
|
||||
else
|
||||
TransitRefundVoidStatusStr = "";
|
||||
}
|
||||
|
||||
|
||||
@@ -1531,6 +1576,15 @@ namespace AllBase.Model.DBModel
|
||||
SetOutOrderTimeQualifiedStr();
|
||||
CalcOrderPrice();
|
||||
SetOrderItemStatusAndColor();
|
||||
|
||||
if (this.ItemTransitOrders != null)
|
||||
{
|
||||
foreach (var tOrder in this.ItemTransitOrders)
|
||||
{
|
||||
tOrder.SetOutOrderBuyerStr();
|
||||
}
|
||||
ItemTransitOutOrderBuyerStrVisibility = (ItemTransitOrderWithVoid?.OutOrderBuyerStr).IsNullOrEmpty() ? Visibility.Collapsed : Visibility.Visible;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> 初始化物流明细信息 </summary>
|
||||
|
||||
Reference in new issue
Block a user