DistributeBallotDetailViewModel.cs 2.3 KB

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