using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using Newtonsoft.Json;
using SqlSugar;
namespace DM_Weight.Models
{
///
/// 处方、请领单中间表
///
[SugarTable("order_apply")]
public class CollectDrug
{
///
/// 是否选择
///
[SugarColumn(IsIgnore =true)]
public bool IsSelected { get; set; }
///
/// 主键
///
[SugarColumn(ColumnName = "Applyid")]
public int Applyid { get; set; }
///
/// 药品请领单号
///
[SugarColumn(ColumnName = "Drug_plase_id")]
public string DrugPleaseClaimId { get; set; }
/// 处方
///
[SugarColumn(ColumnName = "OrderNo")]
public string OrderNo { get; set; }
///
/// 药品ID
///
[SugarColumn(ColumnName = "Drug_Id")]
public string DrugId { get; set; }
///
/// 患者ID
///
[SugarColumn(IsIgnore =true)]
public string PatientId { get; set; }
///
/// 姓名
///
[SugarColumn(IsIgnore = true)]
public string PName { get; set; }
///
/// 性别
///
[SugarColumn(IsIgnore = true)]
public string Sex { get; set; }
///
/// 年龄
///
[SugarColumn(IsIgnore = true)]
public string Age { get; set; }
///
/// 身份证号
///
[SugarColumn(IsIgnore = true)]
public string IdNumber { get; set; }
///
///
/// 科室
///
[SugarColumn(IsIgnore = true)]
public string DeptName { 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(ColumnName = "Quantity")]
public int Quantity { get; set; }
[SugarColumn(ColumnName = "Createdate")]
public DateTime Createdate { get; set; }
///
/// 状态
///
[SugarColumn(ColumnName = "Status")]
public int Status { get; set; }
[SugarColumn(ColumnName = "Machine_id")]
public string MachineId { get; set; }
[SugarColumn(ColumnName = "Current_Machine_id")]
public string CurrentMachineId { get; set; }
[Navigate(NavigateType.OneToOne, nameof(DrugId))]
public DrugInfo drugInfo { get; set; }
///
/// 请领表
///
[Navigate(NavigateType.ManyToOne, nameof(DrugPleaseClaimId))]
public DrugPleaseClaim drugPleaseClaim { get; set; }
[SugarColumn(IsIgnore = true)]
public List ManuNoList { get; set; }
}
}