using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DM_Weight.Models
{
    /// 
    /// 盘点后药品库存数
    /// 
    [SugarTable("check_stock")]
    public class CheckRecordStock
    {
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int ID { get; set; }
        /// 
        /// 抽屉号
        /// 
        [SugarColumn(ColumnName = "row_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(ColumnName = "drug_name")]
        public string drugName { get; set; }
        /// 
        /// 规格
        /// 
        [SugarColumn(ColumnName = "drug_spec")]
        public string drugSpec { get; set; }
        //
        [SugarColumn(ColumnName = "pack_unit")]
        public string packUnit { get; set; }
        /// 
        /// 厂商
        /// 
        [SugarColumn(ColumnName = "manufactory")]
        public string manufactory { get; set; }
        [SugarColumn(ColumnName = "max_stock")]
        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 = "manuQuantity")]
        public int ManuQuantity { get; set; }
        /// 
        /// 操作时间
        /// 
        [SugarColumn(ColumnName = "optdate")]
        public string optdate { get; set; }
        /// 
        /// 操作人
        /// 
        [SugarColumn(ColumnName = "operator")]
        public string operatorUser { get; set; }
        /// 
        /// 审核人
        /// 
        [SugarColumn(ColumnName = "reviewer")]
        public string reviewerUser { get; set; }
        [SugarColumn(IsIgnore =true)]
        public List manuNoDetails { get;set; }
        [Navigate(NavigateType.ManyToOne, nameof(drugId))]
        public DrugInfo DrugInfo { get; set; }
    }
}