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