|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- using BPA.Helper;
- using BPA.Message.Enum;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Media;
-
- namespace BPASmartClient.ScreenLib
- {
- /// <summary>
- /// 订单制作Model
- /// </summary>
- public class OrderMakeFormModel : NotifyBase
- {
- /// <summary>
- /// 状态
- /// </summary>
- private ORDER_STATUS _Status;
- public ORDER_STATUS Status
- {
- get { return _Status; }
- set {
- _Status = value;
- foreground = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
- switch ((ORDER_STATUS)value)
- {
- case ORDER_STATUS.WAIT:
- MakeStatus = "等待制作";
-
- foreground = new SolidColorBrush(Color.FromArgb(255, 0, 204, 255));
- break;
- case ORDER_STATUS.COOKING:
- MakeStatus = "制作中";
- foreground = new SolidColorBrush(Color.FromArgb(255, 0, 255, 127));
- break;
- case ORDER_STATUS.COMPLETED_COOK:
- MakeStatus = "制作完成";
- foreground = new SolidColorBrush(Color.FromArgb(255, 255, 215, 00));
- break;
- case ORDER_STATUS.COMPLETED_TAKE:
- MakeStatus = "取餐完成";
- foreground = new SolidColorBrush(Color.FromArgb(255, 102, 204, 153));
- break;
- case ORDER_STATUS.ERR_NOT_REPLY_WHEN_COOKING:
- MakeStatus = "取餐完成";
- foreground = new SolidColorBrush(Color.FromArgb(255, 255, 0, 0));
- break;
- default:
- MakeStatus = "异常订单";
- break;
- }
- OnPropertyChanged();
- }
- }
- /// <summary>
- /// 制作状态
- /// </summary>
- private string _MakeStatus;
- public string MakeStatus
- {
- get { return _MakeStatus; }
- set
- {
- _MakeStatus = value;
- OnPropertyChanged();
- }
- }
- /// <summary>
- /// 商品名称
- /// </summary>
- public string GoodName { get; set; }
-
- /// <summary>
- /// 订单排序号
- /// </summary>
- public string SortNum { get; set; }
-
- /// <summary>
- /// 开始时间
- /// </summary>
- public string StartTime { get; set; }
-
- /// <summary>
- /// 结束时间
- /// </summary>
- public string StopTime { get; set; }
-
- private Brush _foreground;
- public Brush foreground
- {
- get
- {
- return _foreground;
- }
- set
- {
- if (_foreground == value)
- return;
- _foreground = value;
- OnPropertyChanged("foreground");
- }
- }
- }
-
- }
|