|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using NPoco;
|
|
|
|
|
using POSV.Bean;
|
|
|
|
|
|
|
|
|
|
namespace POSV.Entity
|
|
|
|
|
{
|
|
|
|
|
[Serializable]
|
|
|
|
|
[JsonObject(MemberSerialization.OptIn)]
|
|
|
|
|
[TableName("pos_kit_plan")]
|
|
|
|
|
[PrimaryKey(new string[] { "id" }, AutoIncrement = false)]
|
|
|
|
|
public class KitPlan : BaseEntity,IEquatable<KitPlan>
|
|
|
|
|
{
|
|
|
|
|
public KitPlan()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 租户ID
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "tenantId")]
|
|
|
|
|
[Column("tenantId")]
|
|
|
|
|
public string TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 编号
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "no")]
|
|
|
|
|
[Column("no")]
|
|
|
|
|
public string No { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "name")]
|
|
|
|
|
[Column("name")]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 厨打类型(0 一菜一单 ;1一小类一单;2一桌一单)
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "type")]
|
|
|
|
|
[Column("type")]
|
|
|
|
|
public string Type { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 备注
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "description")]
|
|
|
|
|
[Column("memo")]
|
|
|
|
|
public string Memo { get; set; }
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 厨打方案对应的打印机
|
|
|
|
|
///// </summary>
|
|
|
|
|
//[JsonProperty(PropertyName = "params")]
|
|
|
|
|
//[SerializedColumn("params")]
|
|
|
|
|
//public KitchenPrinterItem Params { get; set; }
|
|
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
|
///// 是否顾客自己修改过
|
|
|
|
|
///// </summary>
|
|
|
|
|
//[JsonProperty(PropertyName = "defined")]
|
|
|
|
|
//[Column("userDefined")]
|
|
|
|
|
//public int UserDefined { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 厨打方案key
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "keys")]
|
|
|
|
|
[Column("keys")]
|
|
|
|
|
public string Keys { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 扩展字段1
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "ext1")]
|
|
|
|
|
[Column("ext1")]
|
|
|
|
|
public string Ext1 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 扩展字段2
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "ext2")]
|
|
|
|
|
[Column("ext2")]
|
|
|
|
|
public string Ext2 { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 扩展字段3
|
|
|
|
|
/// </summary>
|
|
|
|
|
[JsonProperty(PropertyName = "ext3")]
|
|
|
|
|
[Column("ext3")]
|
|
|
|
|
public string Ext3 { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool Equals(KitPlan other)
|
|
|
|
|
{
|
|
|
|
|
if (other == null)
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return this.Id == other.Id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return this.Name;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|