using LinqToDB.Mapping; using System; using System.Collections.Generic; using System.Linq; namespace MasaBlazorApp3.Pojo { /// /// /// [Table("order_info")] public class OrderInfo { /// /// /// /// [PrimaryKey, Identity] [Column("order_id")] public int OrderId { get; set; } /// /// /// 默认值: NULL /// [Column("pharmacy")] public string Pharmacy { get; set; } /// /// /// [Column("order_no")] public string OrderNo { get; set; } /// /// /// [Column("patient_id")] public string PatientId { get; set; } /// /// /// [Column("p_name")] public string PatientName { get; set; } /// /// /// 默认值: NULL /// [Column("sex")] public string Sex { get; set; } /// /// /// 默认值: NULL /// [Column("age")] public string Age { get; set; } /// /// /// 默认值: NULL /// [Column("id_number")] public string IdNumber { get; set; } /// /// /// 默认值: NULL /// [Column("invoice_no")] public string InvoiceNo { get; set; } /// /// /// 默认值: NULL /// [Column("patient_no")] public string PatientNo { get; set; } /// /// /// 默认值: NULL /// [Column("doctor_name")] public string DoctorName { get; set; } /// /// /// 默认值: NULL /// [Column("order_date")] public DateTime OrderDate { get; set; } /// /// /// [Column("charge_date")] public DateTime ChargeDate { get; set; } = DateTime.Now; /// /// /// 默认值: NULL /// [Column("recv_date")] public DateTime RecvDate { get; set; } /// /// /// 默认值: NULL /// [Column("dept_name")] public string DeptName { get; set; } /// /// /// 默认值: NULL /// [Column("disease")] public string Disease { get; set; } /// /// /// 默认值: NULL /// [Column("order_type")] public string OrderType { get; set; } /// /// /// 默认值: NULL /// [Column("charge_type")] public string ChargeType { get; set; } /// /// /// [Column("dm_status")] public int Status { get; set; } /// /// /// 默认值: 0 /// [Column("his_disp_flag")] public int? HisDispFlag { get; set; } /// /// /// 默认值: 0 /// [Column("cancel_flag")] public int? CancelFlag { get; set; } /// /// /// 默认值: 0 /// [Column("win_no")] public int WinNo { get; set; } = 0; ///// ///// ///// 默认值: 0 ///// //[Column("state")] //public int state { get; set; } = 0; [Association(ThisKey = nameof(OrderNo), OtherKey = nameof(OrderDetail.OrderNo))] public List DetailList { get; set; } = new(); /// /// 是否选中 /// [Column(IsColumn =false)] public bool ItemIsChecked { get; set; } } }