优化数量计算时候的卡顿问题
This commit is contained in:
1 parent
9ddc4c3640
commit
c8adf98ae5
8 files changed
+382
-219
No files matched your search
@@ -567,62 +567,58 @@ namespace AllBase.Model.DBModel
|
||||
// WarehouseWaybillStatusStr = "中转已作废";
|
||||
else if (ItemTransitOrderWithVoid?.pre_allocated_order_no == 0)
|
||||
WarehouseWaybillStatusStr = "中转待取号";
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusStrColor
|
||||
{
|
||||
get
|
||||
{
|
||||
var warehouseWaybillStatusStr = WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库") || warehouseWaybillStatusStr.StartsWith("中转拦截到仓"))
|
||||
return GlobalConfig.GreenBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush;
|
||||
return GlobalConfig.RedBrush;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
public void SetWarehouseWaybillStatusStrColor()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
var warehouseWaybillStatusStr = WarehouseWaybillStatusStr.ParseToString();
|
||||
// 状态文字颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusStrColor = PurpleBrush;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库") || warehouseWaybillStatusStr.StartsWith("中转拦截到仓"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.GreenBrush;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.YellowBrush;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.RedBrush;
|
||||
else
|
||||
WarehouseWaybillStatusStrColor = GlobalConfig.RedBrush;
|
||||
// 状态边框颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusBorderColor = PurpleBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.GreenBrush75;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.YellowBrush75;
|
||||
else if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.RedBrush75;
|
||||
else
|
||||
WarehouseWaybillStatusBorderColor = GlobalConfig.RedBrush75;
|
||||
// 状态背景颜色
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// WarehouseWaybillStatusBackColor = PurpleBrush35
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已出库"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.GreenBrush35;
|
||||
else if(warehouseWaybillStatusStr.ParseToString().StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.YellowBrush35;
|
||||
else if(warehouseWaybillStatusStr.ParseToString().StartsWith("中转待取号"))
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.RedBrush35;
|
||||
else
|
||||
WarehouseWaybillStatusBackColor = GlobalConfig.RedBrush35;
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusStrColor
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusStrColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusStrColor, value); }
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusBorderColor
|
||||
{
|
||||
get
|
||||
{
|
||||
string warehouseWaybillStatusStr = this.WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已出库"))
|
||||
return GlobalConfig.GreenBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush75;
|
||||
if (warehouseWaybillStatusStr.StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush75;
|
||||
return GlobalConfig.RedBrush75;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusBorderColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusBorderColor, value); }
|
||||
}
|
||||
public SolidColorBrush WarehouseWaybillStatusBackColor
|
||||
{
|
||||
get
|
||||
{
|
||||
string warehouseWaybillStatusStr = this.WarehouseWaybillStatusStr.ParseToString();
|
||||
//if (warehouseWaybillStatusStr.StartsWith("中转已作废"))
|
||||
// return PurpleBrush35
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已出库"))
|
||||
return GlobalConfig.GreenBrush35;
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转已入库") || warehouseWaybillStatusStr.StartsWith("中转已取号") || warehouseWaybillStatusStr.StartsWith("中转提前取号"))
|
||||
return GlobalConfig.YellowBrush35;
|
||||
if (warehouseWaybillStatusStr.ParseToString().StartsWith("中转待取号"))
|
||||
return GlobalConfig.RedBrush35;
|
||||
return GlobalConfig.RedBrush35;
|
||||
}
|
||||
set { }
|
||||
}
|
||||
{
|
||||
get { return this.GetValue(x => x.WarehouseWaybillStatusBackColor); }
|
||||
set { this.SetValue(x => x.WarehouseWaybillStatusBackColor, value); }
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using AllBase.Model.MvvmBaseClasses;
|
||||
using AllBase.Helper;
|
||||
using AllBase.Model.MvvmBaseClasses;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -24,20 +25,10 @@ namespace AllBase.Model.DBModel
|
||||
/// 退款状态颜色
|
||||
/// </summary>
|
||||
public SolidColorBrush RefundStatusColor
|
||||
{
|
||||
get
|
||||
{
|
||||
if (status == "MERCHANT_PROCESSING" || status == "PLATFORM_REFUNDING" || status == "USER_WAIT_RETURN" || status == "MERCHANT_WAIT_RECEIPT" ||
|
||||
status == "USER_WAIT_CONFIRM" || status == "USER_WAIT_CONFIRM_UPDATE" || status == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE" ||
|
||||
status == "WAIT_PACKAGE_INTERCEPT")
|
||||
return new SolidColorBrush(Color.FromRgb(230, 162, 60));
|
||||
if (status == "MERCHANT_REFUND_SUCCESS" || status == "MERCHANT_RETURN_SUCCESS" ||
|
||||
status == "USER_CANCELD" /*|| status == "MERCHANT_REJECT_REFUND" || status == "MERCHANT_REJECT_RETURN" || status == "RETURN_CLOSED" || status == "PLATFORM_REFUND_FAIL" || status == "MERCHANT_FAIL"*/)
|
||||
return new SolidColorBrush(Color.FromRgb(103, 194, 58));
|
||||
return new SolidColorBrush(Color.FromRgb(245, 108, 108));
|
||||
}
|
||||
set { }
|
||||
}
|
||||
{
|
||||
get { return this.GetValue(x => x.RefundStatusColor); }
|
||||
set { this.SetValue(x => x.RefundStatusColor, value); }
|
||||
}
|
||||
/// <summary>
|
||||
/// 售后原因文字
|
||||
/// </summary>
|
||||
@@ -116,6 +107,17 @@ namespace AllBase.Model.DBModel
|
||||
this.IsRefund = true;
|
||||
if (RefundStatusStr == "售后状态读取失败")
|
||||
this.IsRefund = true;
|
||||
|
||||
// 设置售后状态颜色
|
||||
if (status == "MERCHANT_PROCESSING" || status == "PLATFORM_REFUNDING" || status == "USER_WAIT_RETURN" || status == "MERCHANT_WAIT_RECEIPT" ||
|
||||
status == "USER_WAIT_CONFIRM" || status == "USER_WAIT_CONFIRM_UPDATE" || status == "USER_WAIT_HANDLE_MERCHANT_AFTER_SALE" ||
|
||||
status == "WAIT_PACKAGE_INTERCEPT")
|
||||
RefundStatusColor = GlobalConfig.LightOrangeTextBrush;
|
||||
else if (status == "MERCHANT_REFUND_SUCCESS" || status == "MERCHANT_RETURN_SUCCESS" ||
|
||||
status == "USER_CANCELD" /*|| status == "MERCHANT_REJECT_REFUND" || status == "MERCHANT_REJECT_RETURN" || status == "RETURN_CLOSED" || status == "PLATFORM_REFUND_FAIL" || status == "MERCHANT_FAIL"*/)
|
||||
RefundStatusColor = GlobalConfig.GreenTextBrush;
|
||||
else
|
||||
RefundStatusColor = GlobalConfig.LightRedTextBrush;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user