优化读单卡顿问题
This commit is contained in:
1 parent
8e88e0f5d7
commit
bcc934c1ba
14 files changed
+586
-31
No files matched your search
@@ -0,0 +1,62 @@
|
||||
using AllBase.Model.DBModel;
|
||||
using AllBase.Model.MvvmBaseClasses;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace _29WxOrderWpf.Ctrls.OrderCtrls;
|
||||
|
||||
public class OrderTransitListCtrlViewModel : PropertyNotifyObject
|
||||
{
|
||||
private volatile bool _isWindowLoaded = false;
|
||||
|
||||
public oms_wei_order_item_transit_info TransitInfo
|
||||
{
|
||||
get { return this.GetValue(x => x.TransitInfo); }
|
||||
set { this.SetValue(x => x.TransitInfo, value); }
|
||||
}
|
||||
public oms_wei_order_item_info OrderItem
|
||||
{
|
||||
get { return this.GetValue(x => x.OrderItem); }
|
||||
set { this.SetValue(x => x.OrderItem, value); }
|
||||
}
|
||||
public string OrderIdStr
|
||||
{
|
||||
get { return this.GetValue(x => x.OrderIdStr); }
|
||||
set { this.SetValue(x => x.OrderIdStr, value); }
|
||||
}
|
||||
public string ShopNameStr
|
||||
{
|
||||
get { return this.GetValue(x => x.ShopNameStr); }
|
||||
set { this.SetValue(x => x.ShopNameStr, value); }
|
||||
}
|
||||
|
||||
|
||||
/// <summary>请求关闭窗口</summary>
|
||||
public event Action RequestClose;
|
||||
|
||||
public OrderTransitListCtrlViewModel(oms_wei_order_item_transit_info transitInfo)
|
||||
{
|
||||
TransitInfo = transitInfo;
|
||||
OrderItem = transitInfo?.OrderItem;
|
||||
OrderIdStr = OrderItem?.order_id;
|
||||
ShopNameStr = OrderItem?.ItemOrder?.Shop?.ShopAccount;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 窗口加载完成时调用
|
||||
/// </summary>
|
||||
public void Start()
|
||||
{
|
||||
_isWindowLoaded = true;
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口关闭时调用,停止后台任务
|
||||
/// </summary>
|
||||
public void Stop()
|
||||
{
|
||||
_isWindowLoaded = false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user