using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using SqlSugar;
namespace DM_Weight.Models
{
///
/// 请领申请表
///
[SugarTable("drug_please_claim")]
public class DrugPleaseClaim
{
[SugarColumn(ColumnName = "id")]
public int Id { get; set; }
[SugarColumn(ColumnName = "drug_id")]
public string DrugId { get; set; }
///
/// 请领数量
///
[SugarColumn(ColumnName = "get_quantity")]
public int GetQuantity { get; set; }
///
/// 交处方张数
///
[SugarColumn(ColumnName = "return_prescription_quantity")]
public int ReturnPrQuantity { get; set; }
///
/// 处方用量
///
[SugarColumn(ColumnName = "prescription_quantity")]
public int PrescriptionQuantity { get; set; }
///
/// 空瓶数量
///
[SugarColumn(ColumnName = "empties_quantity")]
public int EmptiesQuantity { get; set; }
///
/// 实发数
///
[SugarColumn(ColumnName = "issue_quantity")]
public int IssueQuantity { get; set; }
///
/// 批次(多条)
///
[SugarColumn(ColumnName = "drug_manu_no")]
[JsonProperty("drug_manu_no")]
public string _DrugManuNos { get; set; }
///
/// 备注1
///
[SugarColumn(ColumnName = "notes_nn")]
public string NotesNN { get; set; }
///
/// 备注2
///
[SugarColumn(ColumnName = "notes_n")]
public string NotesN { get;set; }
///
/// 32:三级向二级请领;23:二级向三级退;
///
[SugarColumn(ColumnName = "type")]
public int Type { get; set; }
///
/// 0:创建完成;1:二级已授权;2:一级已查阅;3:已关联His
///
[SugarColumn(ColumnName = "state")]
public int State { get; set; }
///
/// 凭证号
///
[SugarColumn(ColumnName = "voucher")]
public string Voucher { get; set; }
///
/// 机器id
///
[SugarColumn(ColumnName = "machine_id")]
public string MachineId { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnName = "do_date")]
public DateTime DoDate { get; set; }
///
/// 申请人
///
[SugarColumn(ColumnName = "apply_user")]
public int ApplyUser { get; set; }
///
/// 复核人
///
[SugarColumn(ColumnName = "exp_user")]
public int ReviewUser { get; set; }
[SugarColumn(ColumnName = "please_no", IsPrimaryKey = true)]
public string PleaseNo { get; set; }
[SugarColumn(ColumnName = "department")]
public string Department { get; set; }
[SugarColumn(ColumnName = "totalQuantity")]
public int TotalQuantity { get; set; }
//[Navigate(NavigateType.ManyToMany, nameof(PleaseNo))]
//public CollectDrug collectDrug { get; set; }
[Navigate(NavigateType.OneToOne, nameof(DrugId))]
public DrugInfo DrugInfo { get; set; }
}
}