|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- using BPA.Helper;
- using BPA.Message.Enum;
- using Newtonsoft.Json;
- 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");
- }
- }
- }
-
- public class HttpReturn
- {
- public bool isSuccess { get; set; }
-
- public StoreInfoResponse data { get; set; }
- }
-
- public class StoreInfoResponse
- {
- /// <summary>
- /// 档口
- /// </summary>
- [JsonProperty("gateList")]
- public List<StallModelResponse> Stalls { get; set; }
- /// <summary>
- /// 设备
- /// </summary>
- [JsonProperty("payCardList")]
- public List<DeviceModelResponse> Devices { get; set; }
- }
- public class StallModelResponse
- {
-
- public string Id { get; set; }
- /// <summary>
- /// 档口名称
- /// </summary>
- public string Name { get; set; }
- /// <summary>
- /// 归属门店
- /// </summary>
- public string StoreId { get; set; }
- /// <summary>
- /// 收费方式(1,固定金额2,自由设定)
- /// </summary>
- public int Mode { get; set; }
- /// <summary>
- /// 收款金额
- /// </summary>
- public decimal Price { get; set; }
- /// <summary>
- /// 广告
- /// </summary>
- public string Remaek { get; set; }
- /// <summary>
- ///状态0正常,1停用
- /// </summary>
- public int Status { get; set; }
- }
- public class DeviceModelResponse
- {
- public string Id { get; set; }
- /// <summary>
- /// 刷卡设备名称
- /// </summary>
- public string Name { get; set; }
- /// <summary>
- /// 档口id
- /// </summary>
- public string GateId { get; set; }
- /// <summary>
- /// 地址
- /// </summary>
- public string Address { get; set; }
- /// <summary>
- /// 刷卡间隔时间
- /// </summary>
- public int SleepTime { get; set; }
- /// <summary>
- /// 状态0正常,1停用
- /// </summary>
- public int Status { get; set; }
- }
- public class AdDTO
- {
- public string Device { get; set; }
- public string Ad { get; set; }
- public string Stalls { get; set; }
- public string Address { get; set; }
- }
- }
|