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")] [PrimaryKey(new string[] { "id" }, AutoIncrement = false)] public class HandOverTicket : BaseEntity { public HandOverTicket() { } /// /// 租户编码 /// [JsonProperty(PropertyName = "tenantId")] [Column("tenantId")] public string TenantId{ get; set; }// 租户ID /// /// 交班单号 /// [JsonProperty(PropertyName = "no")] [Column("no")] public string No{ get; set; }// 交班单号 /// /// 门店ID /// [JsonProperty(PropertyName = "storeId")] [Column("storeId")] public string StoreId{ get; set; }// 门店ID /// /// 门店编号 /// [JsonProperty(PropertyName = "storeNo")] [Column("storeNo")] public string StoreNo{ get; set; }// 门店编号 /// /// 门店名称 /// [JsonProperty(PropertyName = "storeName")] [Column("storeName")] public string StoreName{ get; set; }// 门店名称 /// /// 员工ID /// [JsonProperty(PropertyName = "workId")] [Column("workId")] public string WorkId{ get; set; }// 员工ID /// /// 员工编号 /// [JsonProperty(PropertyName = "workNo")] [Column("workNo")] public string WorkNo{ get; set; }// 员工编号 /// /// 员工名称 /// [JsonProperty(PropertyName = "workName")] [Column("workName")] public string WorkName{ get; set; }// 员工名称 /// /// 班次 /// [JsonProperty(PropertyName = "shiftNo")] [Column("shiftNo")] public string ShiftNo{ get; set; }// 班次 /// /// 班次名称 /// [JsonProperty(PropertyName = "shiftName")] [Column("shiftName")] public string ShiftName{ get; set; }// 班次名称 /// /// 开始时间 /// [JsonProperty(PropertyName = "datetimeBegin")] [Column("datetimeBegin")] public string DatetimeBegin{ get; set; }// 开始时间 /// /// 结束时间 /// [JsonProperty(PropertyName = "datetimeEnd")] [Column("datetimeEnd")] public string DatetimeEnd{ get; set; }// 结束时间 /// /// 交班时间 /// [JsonProperty(PropertyName = "datetimeShift")] [Column("datetimeShift")] public string DatetimeShift{ get; set; }// 交班时间 /// /// 交单工号 /// [JsonProperty(PropertyName = "acceptWorkerNo")] [Column("acceptWorkerNo")] public string AcceptWorkerNo{ get; set; }// 交单工号 /// /// 交单POS /// [JsonProperty(PropertyName = "posNo")] [Column("posNo")] public string PosNo{ get; set; }// 交单POS /// /// 备注 /// [JsonProperty(PropertyName = "memo")] [Column("memo")] public string Memo{ get; set; }// 备注 /// /// 总人数 /// [JsonProperty(PropertyName = "peopleCount")] [Column("peopleCount")] public int PeopleCount{ get; set; }// 总人数 /// /// 成交单数 /// [JsonProperty(PropertyName = "dealTicketCount")] [Column("dealTicketCount")] public int DealTicketCount{ get; set; }// 成交单数 /// /// 成交金额 /// [JsonProperty(PropertyName = "dealAmount")] [Column("dealAmount")] public decimal DealAmount{ get; set; }// 成交金额 /// /// 退单次数 /// [JsonProperty(PropertyName = "backTicketCount")] [Column("backTicketCount")] public int BackTicketCount{ get; set; }// 退单次数 /// /// 退单金额 /// [JsonProperty(PropertyName = "backAmount")] [Column("backAmount")] public decimal BackAmount{ get; set; }// 退单金额 /// /// 合计单数 /// [JsonProperty(PropertyName = "ticketCount")] [Column("ticketCount")] public int TicketCount{ get; set; }// 合计单数 /// /// 合计金额 /// [JsonProperty(PropertyName = "amount")] [Column("amount")] public decimal Amount{ get; set; } = 0.0M;// 合计金额 /// /// 优惠金额 /// [JsonProperty(PropertyName = "discountMoney")] [Column("discountMoney")] public decimal DiscountMoney{ get; set; } = 0.0M;// 优惠金额 /// /// 其他优惠 /// [JsonProperty(PropertyName = "otherDiscountMoney")] [Column("otherDiscountMoney")] public decimal OtherDiscountMoney { get; set; } = 0.0M;// 其他优惠 /// /// 卡券优惠 /// [JsonProperty(PropertyName = "couponDiscountMoney")] [Column("couponDiscountMoney")] public decimal CouponDiscountMoney { get; set; } = 0.0M;// 卡券优惠 /// /// 应收金额 /// [JsonProperty(PropertyName = "receivable")] [Column("receivable")] public decimal Receivable{ get; set; } = 0.0M;// 应收金额 /// /// 抹零金额 /// [JsonProperty(PropertyName = "maling")] [Column("maling")] public decimal Maling { get; set; } = 0.0M;// 抹零金额 /// /// 实收金额 /// [JsonProperty(PropertyName = "paid")] [Column("paid")] public decimal Paid => this.Receivable - this.Maling;// 实收金额 /// /// 充值笔数 /// [JsonProperty(PropertyName = "cardCount")] [Column("cardCount")] public int CardCount{ get; set; }// 充值笔数 /// /// 卡充值金额 /// [JsonProperty(PropertyName = "cardRealMoney")] [Column("cardRealMoney")] public decimal CardRealMoney{ get; set; } = 0.0M;// 卡充值金额 /// /// 退卡次数 /// [JsonProperty(PropertyName = "cardRefundCount")] [Column("cardRefundCount")] public int CardRefundCount { get; set; }// 退卡次数 /// /// 退卡金额 /// [JsonProperty(PropertyName = "cardRefundMoney")] [Column("cardRefundMoney")] public decimal CardRefundMoney { get; set; } = 0.0M;// 退卡金额 /// /// 支付实收金额 /// [JsonProperty(PropertyName = "realMoney")] [Column("realMoney")] public decimal RealMoney { get; set; } = 0.0M;// 支付实收金额 /// /// 支付虚收金额 /// [JsonProperty(PropertyName = "virtualMoney")] [Column("virtualMoney")] public decimal VirtualMoney { get; set; } = 0.0M;// 支付虚收金额 /// /// 营业收入金额 /// [JsonProperty(PropertyName = "sumRealMoney")] [Column("sumRealMoney")] public decimal SumRealMoney => this.Amount -this.Maling- this.DiscountMoney + this.CardRealMoney - this.CardRefundMoney;// 营业收入金额 /// /// 非营业收入 /// [JsonProperty(PropertyName = "inmoney")] [Column("inmoney")] public decimal Inmoney { get; set; } = 0.0M;// 非营业收入 /// /// 非营业支出 /// [JsonProperty(PropertyName = "outmoney")] [Column("outmoney")] public decimal Outmoney{ get; set; } = 0.0M;// 非营业支出 /// /// 配送费用(微信点餐) /// [JsonProperty(PropertyName = "distributionFee")] [Column("distributionFee")] public decimal DistributionFee { get; set; }// 配送费用(微信点餐) /// /// 班次总收入金额 /// [JsonProperty(PropertyName = "shiftAmount")] [Column("shiftAmount")] public decimal ShiftAmount => this.SumRealMoney + this.Inmoney - this.Outmoney + this.DistributionFee;// 班次总收入金额 /// /// 备用金 /// [JsonProperty(PropertyName = "imprest")] [Column("imprest")] public decimal Imprest{ get; set; }// 备用金 /// /// 设备名称 /// [JsonProperty(PropertyName = "deviceName")] [Column("deviceName")] public string DeviceName { get; set; } /// /// 设备MAC /// [JsonProperty(PropertyName = "deviceMac")] [Column("deviceMac")] public string DeviceMac { get; set; } /// /// 设备IP /// [JsonProperty(PropertyName = "deviceIp")] [Column("deviceIp")] public string DeviceIp { get; set; } /// /// 支付方式明细 /// [JsonProperty(PropertyName = "detail")] public List Detail { get; set; } /// /// 交班杯子盘点 /// [JsonProperty(PropertyName = "part")] public List Part { get; set; } /// /// 交班支付方式 /// [JsonProperty(PropertyName = "pay")] public List Pay { get; set; } /// /// 交班营业模式 /// [JsonProperty(PropertyName = "mode")] public List Mode { get; set; } /// /// 类别汇总 /// [Ignore] public List ProductType { get; set; } [Ignore] public List Product { get; set; } [Ignore] public List Info { get; set; } [Ignore] public decimal handMoney { get; set; }//手工金额 [Ignore] public decimal diffMoney { get; set; }//差异金额 [Ignore] public string PrintType { get; set; } } }