using Newtonsoft.Json; using NPoco; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace POSV.Entity { /// /// 交班注册表 /// [Serializable] [JsonObject(MemberSerialization.OptIn)] [TableName("pos_store_handover_detail")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class HandOverDetail : BaseEntity { public HandOverDetail() { } [Ignore] public int Index { get; set; }//查询序号 /// /// 租户编码 /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId{ get; set; }// 租户ID /// /// 门店ID /// [JsonProperty(PropertyName = "storeId")] [Column("storeId")] public string StoreId{ get; set; }// 门店ID /// /// 单据ID /// [JsonProperty(PropertyName = "ticketId")] [Column("ticketId")] public string TicketId{ get; set; }// 单据ID /// /// 单据编号 /// [JsonProperty(PropertyName = "busNo")] [Column("busNo")] public string BusNo{ get; set; }// 单据编号 /// /// 收银方式编号 /// [JsonProperty(PropertyName = "payModeNo")] [Column("payModeNo")] public string PayModeNo{ get; set; }// 收银方式编号 /// /// 收银方式名称 /// [JsonProperty(PropertyName = "payModeName")] [Column("payModeName")] public string PayModeName{ get; set; }// 收银方式名称 /// /// 数量 /// [JsonProperty(PropertyName = "count")] [Column("count")] public int Count { get; set; } = 0;// 数量 /// /// 金额 /// [JsonProperty(PropertyName = "money")] [Column("money")] public decimal Money { get; set; } = 0.00M;// 金额 /// /// 手工金额 /// [JsonProperty(PropertyName = "handsMoney")] [Column("handsMoney")] public decimal HandsMoney{ get; set; } = 0.00M;// 手工金额 /// /// 卡务次数 /// [JsonProperty(PropertyName = "cardCount")] [Column("cardCount")] public int CardCount{ get; set; } = 0;// 卡务次数 /// /// 卡务金额 /// [JsonProperty(PropertyName = "cardMoney")] [Column("cardMoney")] public decimal CardMoney{ get; set; } = 0.00M;// 卡务金额 /// /// 总金额 /// [JsonProperty(PropertyName = "sumMoney")] [Column("sumMoney")] public decimal SumMoney => this.Money + this.CardMoney;// 总金额 /// /// 设备名称 /// [JsonProperty(PropertyName = "deviceName")] [Column("deviceName")] public string DeviceName{ get; set; }//设备名称 /// /// 设备MAC /// [JsonProperty(PropertyName = "deviceMac")] [Column("deviceMac")] public string DeviceMac{ get; set; }// 设备MAC /// /// 设备IP /// [JsonProperty(PropertyName = "deviceIp")] [Column("deviceIp")] public string DeviceIp{ get; set; }//设备IP /// /// 交单POS /// [JsonProperty(PropertyName = "posNo")] [Column("posNo")] public string PosNo{ get; set; }// 交单POS /// /// 营业模式 0-堂食1-外带2-电话外卖3-餐桌4-美团外卖5-饿了么6-百度外卖7-微信点餐 /// [JsonProperty(PropertyName = "busMode")] [Column("busMode")] public int BusMode { get; set; } = 0;// 营业模式 /// /// 支付来源 /// [JsonProperty(PropertyName = "paySource")] [ResultColumn] public string PaySource { get; set; } = "POS"; } }