63 lines
1.5 KiB
C#
63 lines
1.5 KiB
C#
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;
|
|
}
|
|
}
|