You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.9 KiB
C#

using Newtonsoft.Json;
using NPoco;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace POSV.Entity.Report
{
[Serializable]
public class SalesSummaryDish
{
public SalesSummaryDish()
{
}
[JsonProperty(PropertyName = "typeId")]
[Column("typeId")]
public string TypeId { get; set; }
[JsonProperty(PropertyName = "typeName")]
[Column("typeName")]
public string TypeName { get; set; }
[JsonProperty(PropertyName = "productName")]
[Column("productName")]
public string ProductName { get; set; }
[JsonProperty(PropertyName = "productNo")]
[Column("productNo")]
public string ProductNo { get; set; }
[JsonProperty(PropertyName = "specName")]
[Column("specName")]
public string SpecName { get; set; }
[JsonProperty(PropertyName = "productUnitName")]
[Column("productUnitName")]
public string ProductUnitName { get; set; }
[JsonProperty(PropertyName = "sumCount")]
[Column("sumCount")]
public decimal SumCount { get; set; }
private string _sumCountStr = "未设置";
public string SumCountStr
{
get
{
if(_sumCountStr == "未设置")
{
return SumCount.ToString();
}
return _sumCountStr;
}
set
{
_sumCountStr = value;
}
}
[Ignore]
public string CountScale { get; set; }
[JsonProperty(PropertyName = "sumMoney")]
[Column("sumMoney")]
public decimal SumMoney { get; set; }
private string _sumMoneyStr = "未设置";
public string SumMoneyStr
{
get
{
if (_sumMoneyStr == "未设置")
{
return SumMoney.ToString();
}
return _sumMoneyStr;
}
set
{
_sumMoneyStr = value;
}
}
[Ignore]
public string MoneyScale { get; set; }
[JsonProperty(PropertyName = "sumRealMoney")]
[Column("sumRealMoney")]
public decimal SumRealMoney
{
get;
set;
}
private string _sumRealMoneyStr = "未设置";
public string SumRealMoneyStr
{
get
{
if (_sumRealMoneyStr == "未设置")
{
return SumRealMoney.ToString();
}
return _sumRealMoneyStr;
}
set
{
_sumRealMoneyStr = value;
}
}
[Ignore]
public string SumRealMoneyScale { get; set; }
}
}