using LinqToDB.Mapping; using MasaBlazorApp3.Pojo; using System; using System.Collections.Generic; using System.Linq; using System.Security.Principal; using System.Text; using System.Threading.Tasks; namespace MasaBlazorApp3.Pojo { [Table("account_book")] public class AccountBook { /// /// 主键 /// [Column("id", IsPrimaryKey = true, IsIdentity = true)] public int Id { get; set; } /// /// 设备id /// [Column("machine_id")] public string MachineId { get; set; } /// /// 药品id /// [Column("drug_id")] public string DrugId { get; set; } [Association(ThisKey = nameof(DrugId), OtherKey = nameof(DrugInfo.DrugId))] public DrugInfo Drug { get; set; } /// /// 数量 /// [Column("add_quantity")] public int AddQuantity { get; set; } [Column("out_quantity")] public int OutQuantity { get; set; } /// /// 批号 /// [Column("manu_no")] public string ManuNo { get; set; } /// /// 操作人id /// [Column("operator")] public int? Operator { get; set; } [Association(ThisKey = nameof(Operator), OtherKey = nameof(User.Id))] public User OperatorUser { get; set; } /// /// 审核人id /// [Column("reviewer")] public int? Reviewer { get; set; } [Association(ThisKey = nameof(Reviewer), OtherKey = nameof(User.Id))] public User ReviewerUser { get; set; } /// /// 操作时间 /// 默认值: CURRENT_TIMESTAMP /// [Column("create_time")] public DateTime OperationTime { get; set; } /// /// 效期 /// [Column("eff_date")] public DateTime? EffDate { get; set; } /// /// 出库入库类型(1领入2发出3盘点4日结5日总结6转结) /// [Column("type")] public int Type { get; set; } /// /// 出入库调拨单id /// [Column("invoice_id")] public string InvoiceId { get; set; } /// /// 列号 /// [Column("yesterday_quantity")] public int YesterdayQuantity { get; set; } /// /// 抽屉号 /// [Column("manu_stock")] public int ManuStock { get; set; } [Column("total_stock")] public int TotalStock { get; set; } /// /// 取药科室 /// [Column("department")] public string department { get; set; } /// /// 退药量 /// 默认值: 0 /// [Column("create_date")] public string CreateDate { get; set; } } }