XiangTan_JiaoJie_Bak/DM_Weight/Models/DrugPleaseClaim.cs

131 lines
3.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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
{
/// <summary>
/// 请领申请表
/// </summary>
[SugarTable("drug_please_claim")]
public class DrugPleaseClaim
{
[SugarColumn(ColumnName = "id")]
public int Id { get; set; }
[SugarColumn(ColumnName = "drug_id")]
public string DrugId { get; set; }
/// <summary>
/// 请领数量
/// </summary>
[SugarColumn(ColumnName = "get_quantity")]
public int GetQuantity { get; set; }
/// <summary>
/// 交处方张数
/// </summary>
[SugarColumn(ColumnName = "return_prescription_quantity")]
public int ReturnPrQuantity { get; set; }
/// <summary>
/// 处方用量
/// </summary>
[SugarColumn(ColumnName = "prescription_quantity")]
public int PrescriptionQuantity { get; set; }
/// <summary>
/// 空瓶数量
/// </summary>
[SugarColumn(ColumnName = "empties_quantity")]
public int EmptiesQuantity { get; set; }
/// <summary>
/// 实发数
/// </summary>
[SugarColumn(ColumnName = "issue_quantity")]
public int IssueQuantity { get; set; }
/// <summary>
/// 批次(多条)
/// </summary>
[SugarColumn(ColumnName = "drug_manu_no")]
[JsonProperty("drug_manu_no")]
public string _DrugManuNos { get; set; }
/// <summary>
/// 备注1
/// </summary>
[SugarColumn(ColumnName = "notes_nn")]
public string NotesNN { get; set; }
/// <summary>
/// 备注2
/// </summary>
[SugarColumn(ColumnName = "notes_n")]
public string NotesN { get;set; }
/// <summary>
/// 32三级向二级请领23二级向三级退
/// </summary>
[SugarColumn(ColumnName = "type")]
public int Type { get; set; }
/// <summary>
/// 0:创建完成1二级已授权2一级已查阅3已关联His
/// </summary>
[SugarColumn(ColumnName = "state")]
public int State { get; set; }
/// <summary>
/// 凭证号
/// </summary>
[SugarColumn(ColumnName = "voucher")]
public string Voucher { get; set; }
/// <summary>
/// 机器id
/// </summary>
[SugarColumn(ColumnName = "machine_id")]
public string MachineId { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[SugarColumn(ColumnName = "do_date")]
public DateTime DoDate { get; set; }
/// <summary>
/// 申请人
/// </summary>
[SugarColumn(ColumnName = "apply_user")]
public int ApplyUser { get; set; }
/// <summary>
/// 复核人
/// </summary>
[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; }
}
}