using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using Muchinfo.MTPClient.Data.Model.Delivery;
using System.Windows;
namespace Muchinfo.MTPClient.Delivery.ViewModels
{
///
/// 申报详情
///
///
///
public class DeliveryEntructOrderDetailViewModel : ViewModelBase
{
#region "=========私有成员/Private Data Members"
private DeliveryEntrustOrder _orderItem;
#endregion "Private Data Members"
#region "=========构造函数/Constructor/Initialization"
///
/// 构造函数
///
public DeliveryEntructOrderDetailViewModel(DeliveryEntrustOrder orderItem)
{
this.CurrentDeliveryEntrustOrder = orderItem;
}
#endregion "Constructor/Initialization"
#region "=========接口重写/Interface implementation Or override"
//To do interface implementation
#endregion "Interface implementation Or override"
#region "=========公共属性/Public Properties To Get/Set "
#region 当前选中申报实体
private DeliveryEntrustOrder _currentDeliveryEntrustOrder = new DeliveryEntrustOrder();
///
/// Sets and gets the CurrentDeliveryEntrustOrder property.
///
public DeliveryEntrustOrder CurrentDeliveryEntrustOrder
{
get
{
return _currentDeliveryEntrustOrder;
}
set
{
Set(() => CurrentDeliveryEntrustOrder, ref _currentDeliveryEntrustOrder, value);
}
}
#endregion
#endregion "Public Properties To Get/Set "
#region "=========公共命令/Public Commands"
#region 窗口取消Command
///
/// 窗口取消
///
public RelayCommand CancelCommand
{
get
{
return new RelayCommand((dialog) =>
{
dialog.DialogResult = false;
});
}
}
#endregion
#endregion "Public Commands"
#region "=========私有方法/Private Methods"
//To to something
#endregion "Private Methods"
#region "=========其它方法/Other Methods"
//To to something
#endregion "Other Methods"
}
}