| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using GalaSoft.MvvmLight;
- using GalaSoft.MvvmLight.Command;
- using Muchinfo.MTPClient.Data.Model.Delivery;
- using System.Windows;
- namespace Muchinfo.MTPClient.Delivery.ViewModels
- {
- /// <summary>
- /// 申报详情
- /// <para>
- /// </para>
- /// </summary>
- public class DeliveryEntructOrderDetailViewModel : ViewModelBase
- {
- #region "=========私有成员/Private Data Members"
- private DeliveryEntrustOrder _orderItem;
- #endregion "Private Data Members"
- #region "=========构造函数/Constructor/Initialization"
- /// <summary>
- /// 构造函数
- /// </summary>
- 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();
- /// <summary>
- /// Sets and gets the CurrentDeliveryEntrustOrder property.
- /// </summary>
- public DeliveryEntrustOrder CurrentDeliveryEntrustOrder
- {
- get
- {
- return _currentDeliveryEntrustOrder;
- }
- set
- {
- Set(() => CurrentDeliveryEntrustOrder, ref _currentDeliveryEntrustOrder, value);
- }
- }
- #endregion
- #endregion "Public Properties To Get/Set "
- #region "=========公共命令/Public Commands"
- #region 窗口取消Command
- /// <summary>
- /// 窗口取消
- /// </summary>
- public RelayCommand<Window> CancelCommand
- {
- get
- {
- return new RelayCommand<Window>((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"
- }
- }
|