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
{
///
/// 订单制作Model
///
public class OrderMakeFormModel : NotifyBase
{
///
/// 状态
///
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();
}
}
///
/// 制作状态
///
private string _MakeStatus;
public string MakeStatus
{
get { return _MakeStatus; }
set
{
_MakeStatus = value;
OnPropertyChanged();
}
}
///
/// 商品名称
///
public string GoodName { get; set; }
///
/// 订单排序号
///
public string SortNum { get; set; }
///
/// 开始时间
///
public string StartTime { get; set; }
///
/// 结束时间
///
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
{
///
/// 档口
///
[JsonProperty("gateList")]
public List Stalls { get; set; }
///
/// 设备
///
[JsonProperty("payCardList")]
public List Devices { get; set; }
}
public class StallModelResponse
{
public string Id { get; set; }
///
/// 档口名称
///
public string Name { get; set; }
///
/// 归属门店
///
public string StoreId { get; set; }
///
/// 收费方式(1,固定金额2,自由设定)
///
public int Mode { get; set; }
///
/// 收款金额
///
public decimal Price { get; set; }
///
/// 广告
///
public string Remaek { get; set; }
///
///状态0正常,1停用
///
public int Status { get; set; }
}
public class DeviceModelResponse
{
public string Id { get; set; }
///
/// 刷卡设备名称
///
public string Name { get; set; }
///
/// 档口id
///
public string GateId { get; set; }
///
/// 地址
///
public string Address { get; set; }
///
/// 刷卡间隔时间
///
public int SleepTime { get; set; }
///
/// 状态0正常,1停用
///
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; }
}
}