优化数量计算时候的卡顿问题
This commit is contained in:
1 parent
9ddc4c3640
commit
c8adf98ae5
8 files changed
+382
-219
No files matched your search
@@ -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