终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

OrderMakeModel.cs 3.1 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using BPA.Helper;
  2. using BPA.Message.Enum;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows.Media;
  9. namespace BPASmartClient.ScreenLib
  10. {
  11. /// <summary>
  12. /// 订单制作Model
  13. /// </summary>
  14. public class OrderMakeFormModel : NotifyBase
  15. {
  16. /// <summary>
  17. /// 状态
  18. /// </summary>
  19. private ORDER_STATUS _Status;
  20. public ORDER_STATUS Status
  21. {
  22. get { return _Status; }
  23. set {
  24. _Status = value;
  25. foreground = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
  26. switch ((ORDER_STATUS)value)
  27. {
  28. case ORDER_STATUS.WAIT:
  29. MakeStatus = "等待制作";
  30. foreground = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
  31. break;
  32. case ORDER_STATUS.COOKING:
  33. MakeStatus = "制作中";
  34. foreground = new SolidColorBrush(Color.FromArgb(255, 0, 255, 127));
  35. break;
  36. case ORDER_STATUS.COMPLETED_COOK:
  37. MakeStatus = "制作完成";
  38. foreground = new SolidColorBrush(Color.FromArgb(255, 255, 215, 00));
  39. break;
  40. case ORDER_STATUS.COMPLETED_TAKE:
  41. MakeStatus = "取餐完成";
  42. foreground = new SolidColorBrush(Color.FromArgb(255, 102, 204, 153));
  43. break;
  44. case ORDER_STATUS.ERR_NOT_REPLY_WHEN_COOKING:
  45. MakeStatus = "取餐完成";
  46. foreground = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
  47. break;
  48. default:
  49. MakeStatus = "异常订单";
  50. break;
  51. }
  52. OnPropertyChanged();
  53. }
  54. }
  55. /// <summary>
  56. /// 制作状态
  57. /// </summary>
  58. private string _MakeStatus;
  59. public string MakeStatus
  60. {
  61. get { return _MakeStatus; }
  62. set
  63. {
  64. _MakeStatus = value;
  65. OnPropertyChanged();
  66. }
  67. }
  68. /// <summary>
  69. /// 商品名称
  70. /// </summary>
  71. public string GoodName { get; set; }
  72. /// <summary>
  73. /// 订单排序号
  74. /// </summary>
  75. public string SortNum { get; set; }
  76. /// <summary>
  77. /// 开始时间
  78. /// </summary>
  79. public string StartTime { get; set; }
  80. /// <summary>
  81. /// 结束时间
  82. /// </summary>
  83. public string StopTime { get; set; }
  84. private Brush _foreground;
  85. public Brush foreground
  86. {
  87. get
  88. {
  89. return _foreground;
  90. }
  91. set
  92. {
  93. if (_foreground == value)
  94. return;
  95. _foreground = value;
  96. OnPropertyChanged("foreground");
  97. }
  98. }
  99. }
  100. }