using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.OtherWaiMai
{
[Serializable]
[JsonObject(MemberSerialization.OptIn)]
public class WeiXinOrderItemMake
{
///
/// 订单明细ID
///
[JsonProperty(PropertyName = "orderItemId")]
public string OrderItemId { get; set; }
///
/// 做法ID
///
[JsonProperty(PropertyName = "makeId")]
public string MakeId { get; set; }
///
/// 商品ID
///
[JsonProperty(PropertyName = "makeName")]
public string MakeName { get; set; }
///
/// 商品名称
///
[JsonProperty(PropertyName = "addPrice")]
public decimal AddPrice { get; set; }
///
/// 做法折后加价
///
[JsonProperty(PropertyName = "discountPrice")]
public decimal DiscountPrice { get; set; }
///
/// 做法数量
///
[JsonProperty(PropertyName = "count")]
public decimal Count { get; set; }
///
/// 做法退数量
///
[JsonProperty(PropertyName = "rcount")]
public decimal Rcount { get; set; }
///
/// 加价总额
///
[JsonProperty(PropertyName = "addTotal")]
public decimal AddTotal { get; set; }
///
/// 折后总额
///
[JsonProperty(PropertyName = "discountAddTotal")]
public decimal DiscountAddTotal { get; set; }
///
/// 折扣率
///
[JsonProperty(PropertyName = "discount")]
public decimal Discount { get; set; }
///
/// 是否管理数量(0-否;1-是;)
///
[JsonProperty(PropertyName = "mngNu")]
public int MngNu { get; set; }
public override string ToString()
{
if (this.AddTotal > 0)
{
if (this.Count > 1)
{
return string.Format("{0}*{1}{2}*{3}", this.MakeName, Constant.CNY, this.AddPrice, this.Count);
}
return string.Format("{0}*{1}{2}", this.MakeName, Constant.CNY, this.AddPrice);
}
return string.Format("{0}", this.MakeName);
}
}
}