DeliveryEntructOrderDetailViewModel.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. using GalaSoft.MvvmLight;
  2. using GalaSoft.MvvmLight.Command;
  3. using Muchinfo.MTPClient.Data.Model.Delivery;
  4. using System.Windows;
  5. namespace Muchinfo.MTPClient.Delivery.ViewModels
  6. {
  7. /// <summary>
  8. /// 申报详情
  9. /// <para>
  10. /// </para>
  11. /// </summary>
  12. public class DeliveryEntructOrderDetailViewModel : ViewModelBase
  13. {
  14. #region "=========私有成员/Private Data Members"
  15. private DeliveryEntrustOrder _orderItem;
  16. #endregion "Private Data Members"
  17. #region "=========构造函数/Constructor/Initialization"
  18. /// <summary>
  19. /// 构造函数
  20. /// </summary>
  21. public DeliveryEntructOrderDetailViewModel(DeliveryEntrustOrder orderItem)
  22. {
  23. this.CurrentDeliveryEntrustOrder = orderItem;
  24. }
  25. #endregion "Constructor/Initialization"
  26. #region "=========接口重写/Interface implementation Or override"
  27. //To do interface implementation
  28. #endregion "Interface implementation Or override"
  29. #region "=========公共属性/Public Properties To Get/Set "
  30. #region 当前选中申报实体
  31. private DeliveryEntrustOrder _currentDeliveryEntrustOrder = new DeliveryEntrustOrder();
  32. /// <summary>
  33. /// Sets and gets the CurrentDeliveryEntrustOrder property.
  34. /// </summary>
  35. public DeliveryEntrustOrder CurrentDeliveryEntrustOrder
  36. {
  37. get
  38. {
  39. return _currentDeliveryEntrustOrder;
  40. }
  41. set
  42. {
  43. Set(() => CurrentDeliveryEntrustOrder, ref _currentDeliveryEntrustOrder, value);
  44. }
  45. }
  46. #endregion
  47. #endregion "Public Properties To Get/Set "
  48. #region "=========公共命令/Public Commands"
  49. #region 窗口取消Command
  50. /// <summary>
  51. /// 窗口取消
  52. /// </summary>
  53. public RelayCommand<Window> CancelCommand
  54. {
  55. get
  56. {
  57. return new RelayCommand<Window>((dialog) =>
  58. {
  59. dialog.DialogResult = false;
  60. });
  61. }
  62. }
  63. #endregion
  64. #endregion "Public Commands"
  65. #region "=========私有方法/Private Methods"
  66. //To to something
  67. #endregion "Private Methods"
  68. #region "=========其它方法/Other Methods"
  69. //To to something
  70. #endregion "Other Methods"
  71. }
  72. }