using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM_Weight.Models
{
[SugarTable("account_book_g2")]
public class AccountBookG2
{
///
/// 主键
///
[SugarColumn(ColumnName = "id",IsPrimaryKey =true)]
public int Id { get; set; }
///
/// 药品id
///
[SugarColumn(ColumnName = "drug_id")]
public string DrugId { get; set; }
///
/// 1领入2发出3日结4总结5转结
///
[SugarColumn(ColumnName = "type")]
public int Type { get; set; }
///
/// 科室
///
[SugarColumn(ColumnName = "department")]
public string Department { get; set; }
///
/// 设备内记录凭证
///
[SugarColumn(ColumnName = "invoice_no")]
public string InvoiceNo { get; set; }
///
/// 处方号或凭证号
///
[SugarColumn(ColumnName = "order_no")]
public string OrderNo { get; set; }
///
/// 批次
///
[SugarColumn(ColumnName = "manu_no")]
public string ManuNo { get; set; }
///
/// 效期
///
[SugarColumn(ColumnName = "eff_date")]
public string EffDate { get; set; }
///
/// 上日结存
///
[SugarColumn(ColumnName = "yesterday_quantity")]
public int YQuantity { get; set; }
///
/// 收入
///
[SugarColumn(ColumnName = "add_quantity")]
public int AddQuantity { get; set; }
///
/// 发出
///
[SugarColumn(ColumnName = "out_quantity")]
public int OutQuantity { get; set; }
///
/// 批次结存
///
[SugarColumn(ColumnName = "manu_stock")]
public int ManuStock { get; set; }
///
/// 总结存
///
[SugarColumn(ColumnName = "total_stock")]
public int TotalStock { get; set; }
///
/// 发药领药人id
///
[SugarColumn(ColumnName = "user_id1")]
public int? UserId1 { get; set; }
///
/// 复核人id
///
[SugarColumn(ColumnName = "user_id2")]
public int? UserId2 { get; set; }
///
/// 设备id
///
[SugarColumn(ColumnName = "machine_id")]
public string MachineId { get; set; }
///
/// 日期
///
[SugarColumn(ColumnName = "create_date")]
public string CreateDate { get; set; }
///
/// 插入更新时间(当前时间戳)
///
[SugarColumn(ColumnName = "create_time")]
public DateTime CreateTime { get; set; }
///
/// 药品名称
///
[SugarColumn(IsIgnore = true)]
public string DrugName { get; set; }
///
/// 规格
///
[SugarColumn(IsIgnore =true)]
public string DrugSpec { get; set; }
///
/// 厂家
///
[SugarColumn(IsIgnore =true)]
public string Manufactory { get; set; }
///
/// 发药人
///
[SugarColumn(IsIgnore =true)]
public string OperatorName { get; set; }
///
/// 复核人
///
[SugarColumn(IsIgnore =true)]
public string ReviewerName { get;set; }
}
}