using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
namespace DM_Weight.Models
{
///
/// 盘点后药品库存数
///
[SugarTable("check_stock")]
public class CheckRecordStockSqlSugar
{
[SugarColumn(ColumnName ="id",IsPrimaryKey = true)]
public int ID { get; set; }
///
/// 抽屉号
///
[SugarColumn(ColumnName = "drawer_no")]
public int rowNo { get; set; }
///
/// 列号
///
[SugarColumn(ColumnName = "col_no")]
public int colNo { get; set; }
///
/// 数量
///
[SugarColumn(ColumnName = "quantity")]
public int quantity { get; set; }
///
/// 批次
///
[SugarColumn(ColumnName = "manu_no")]
public string manuNo { get; set; }
///
/// 效期
///
[SugarColumn(ColumnName = "eff_date")]
public string effDate { get; set; }
///
/// 药品名称
///
[SugarColumn(IsIgnore =true)]
public string drugName { get; set; }
///
/// 规格
///
[SugarColumn(IsIgnore = true)]
public string drugSpec { get; set; }
//
[SugarColumn(IsIgnore = true)]
public string packUnit { get; set; }
///
/// 厂商
///
[SugarColumn(IsIgnore = true)]
public string manufactory { get; set; }
[SugarColumn(IsIgnore = true)]
public int maxStock { get; set; }
[SugarColumn(ColumnName = "drug_id")]
public string drugId { get; set; }
[SugarColumn(ColumnName = "machine_id")]
public string MachineId { get; set; }
///
/// 批次总库存
///
[SugarColumn(ColumnName = "check_quantity")]
public int ManuQuantity { get; set; }
///
/// 操作时间
///
[SugarColumn(ColumnName = "check_time")]
public string optdate { get; set; }
///
/// 操作人
///
[SugarColumn(ColumnName = "operator")]
public string operatorUser { get; set; }
///
/// 审核人
///
[SugarColumn(ColumnName = "reviewer")]
public string reviewerUser { get; set; }
public List manuNoDetails { get;set; }
[Navigate(NavigateType.OneToOne, nameof(drugId))]
public DrugInfo DrugInfo { get; set; }
}
}