|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace POSV.OtherWaiMai
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
public class WeiXinOrderItems
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 唯一ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "id")]
|
|
|
|
|
public string Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "lineNo")]
|
|
|
|
|
public int LineNo { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 商品ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "goodsId")]
|
|
|
|
|
public string GoodsId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 商品名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "goodsName")]
|
|
|
|
|
public string GoodsName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 规格名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "specName")]
|
|
|
|
|
public string SpecName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分类ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "categoryId")]
|
|
|
|
|
public string CategoryId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 分类名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "categoryName")]
|
|
|
|
|
public string CategoryName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "productId")]
|
|
|
|
|
public string ProductId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 规格ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "specId")]
|
|
|
|
|
public string SpecId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品单位ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "productUnitId")]
|
|
|
|
|
public string ProductUnitId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品单位名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "productUnitName")]
|
|
|
|
|
public string ProductUnitName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "count")]
|
|
|
|
|
public decimal Count { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 退菜数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "rcount")]
|
|
|
|
|
public decimal Rcount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 产品原价
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "priceOrg")]
|
|
|
|
|
public decimal PriceOrg { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 销售价格
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "price")]
|
|
|
|
|
public decimal Price { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 折后价格
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "discountPrice")]
|
|
|
|
|
public decimal DiscountPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消费金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "amount")]
|
|
|
|
|
public decimal Amount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优惠金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "discountTotal")]
|
|
|
|
|
public decimal DiscountTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优惠率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "discount")]
|
|
|
|
|
public decimal Discount { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 优惠金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "receivable")]
|
|
|
|
|
public decimal Receivable { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加价金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "addPriceTotal")]
|
|
|
|
|
public decimal AddPriceTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加价优惠金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "discountAddTotal")]
|
|
|
|
|
public decimal DiscountAddTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 加价应收金额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "amountAddTotal")]
|
|
|
|
|
public decimal AmountAddTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消费总额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "amountTotal")]
|
|
|
|
|
public decimal AmountTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 应收总额
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "receivableTotal")]
|
|
|
|
|
public decimal ReceivableTotal { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否使用会员卡(0-否;1-是;)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "isMember")]
|
|
|
|
|
public int IsMember { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图片组名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "groupName")]
|
|
|
|
|
public string GroupName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 图片文件名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "picture")]
|
|
|
|
|
public string Picture { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 访问域名
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "dfsAccessDomain")]
|
|
|
|
|
public string DfsAccessDomain { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否套餐1普通菜2套餐3套餐明细
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "isSuit")]
|
|
|
|
|
public int IsSuit { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 套菜ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "suitId")]
|
|
|
|
|
public string SuitId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 父记录ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "parentId")]
|
|
|
|
|
public string ParentId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 餐盒数
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "boxNum")]
|
|
|
|
|
public decimal BoxNum { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 餐盒费
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "boxPrice")]
|
|
|
|
|
public decimal BoxPrice { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 做法列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "makes")]
|
|
|
|
|
public List<WeiXinOrderItemMake> Makes { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 做法列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "promoList")]
|
|
|
|
|
public List<WeiXinOrderPromo> PromoList { get; set; }
|
|
|
|
|
|
|
|
|
|
private String _ProductName;
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string ProductName
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
this._ProductName = string.Format("{0}{1}", this.IsSuit == 3 ? "[套]" : "", this.GoodsName);
|
|
|
|
|
return this._ProductName;
|
|
|
|
|
}
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
this._ProductName = value;
|
|
|
|
|
}
|
|
|
|
|
}//显示的商品名称
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string ProductMakes
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (this.Makes == null || this.Makes.Count == 0)
|
|
|
|
|
{
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return string.Join(",", this.Makes.ConvertAll<string>(m => m.ToString()).ToArray());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string ProductCount
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return string.Format("{0}", this.Count - this.Rcount);
|
|
|
|
|
}
|
|
|
|
|
}//显示的数量
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[JsonIgnore]
|
|
|
|
|
public string ProductFee
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return string.Format("{0}", this.IsSuit == 3 ? "" : ""+this.AmountTotal);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}//显示的金额
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|