|
- 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 OrderMakeModel : 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");
- }
- }
- }
-
- /// <summary>
- /// 告警数据
- /// </summary>
- public class AlarmMsModel : NotifyBase
- {
- private string _AlarmTime;
- public string AlarmTime
- {
- get { return _AlarmTime; }
- set
- {
- _AlarmTime = value;
- OnPropertyChanged();
- }
- }
-
-
- private string _AlarmMs;
- public string AlarmMs
- {
- get { return _AlarmMs; }
- set
- {
- _AlarmMs = value;
- OnPropertyChanged();
- }
- }
- }
-
- /// <summary>
- /// 菜品类型
- /// </summary>
- public class CookType : NotifyBase
- {
- private string _Name;
- public string Name
- {
- get { return _Name; }
- set
- {
- _Name = value;
- OnPropertyChanged();
- }
- }
-
- private string _Name1;
- public string Name1
- {
- get { return _Name1; }
- set
- {
- _Name1 = value;
- OnPropertyChanged();
- }
- }
- }
- }
|