156 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			156 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			C#
		
	
	
	
using SqlSugar;
 | 
						||
using System;
 | 
						||
using System.Collections.Generic;
 | 
						||
using System.Linq;
 | 
						||
using System.Reactive;
 | 
						||
using System.Text;
 | 
						||
using System.Threading.Tasks;
 | 
						||
 | 
						||
namespace DM_Weight.Models
 | 
						||
{
 | 
						||
    [SugarTable("in_out_invoice")]
 | 
						||
    public class InOutInvoice
 | 
						||
    {
 | 
						||
        /// <summary>
 | 
						||
        /// 主键(序号)       
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity =true)]
 | 
						||
        public int Id { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "in_pharmacy_id")]
 | 
						||
        public string InPharmacyId { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "out_pharmacy_id")]
 | 
						||
        public string OutPharmacyId { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 库存管理单位(入库单位代码) 
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "storage")]
 | 
						||
        public string storage { get; set; }
 | 
						||
 | 
						||
         /// <summary>
 | 
						||
         /// 单据号
 | 
						||
         /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "invoice_no")]
 | 
						||
        public string InvoiceNo { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "invoice_date")]
 | 
						||
        public string InvoiceDate { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 药品id
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "drug_id")]
 | 
						||
        public string DrugId { get; set; }
 | 
						||
 | 
						||
 | 
						||
 | 
						||
        [Navigate(NavigateType.ManyToOne, nameof(DrugId))]
 | 
						||
        public DrugInfo DrugInfo { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 药品规格
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "drug_spec")]
 | 
						||
        public string DrugSpec { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 计算单位
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "units")]
 | 
						||
        public string Units { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 厂商标识
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "firm_id")]
 | 
						||
        public string FirmId { get; set; }
 | 
						||
 | 
						||
        /// <summary>
 | 
						||
        /// 包装规格(反映药品含量及包装信息,如0.25g*30)   
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "package_spec")]
 | 
						||
        public string PackageSpec { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 数量(以包装单位所计的数量)      
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "quantity")]
 | 
						||
        public int quantity { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 计量单位,可使用任一级管理上方便的包装
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "package_units")]
 | 
						||
        public string PackageUnits { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 药品批次
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "drug_manu_no")]
 | 
						||
        public string DrugManuNo { get; set; }
 | 
						||
       
 | 
						||
        /// <summary>
 | 
						||
        /// 创建时间(入库日期)
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "create_time")]
 | 
						||
        public DateTime CreateTime { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 1.请领入库 0.其它
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "type")]
 | 
						||
        public int Type { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 类型描述
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "type_describe")]
 | 
						||
        public string TypeDescribe { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 供货方
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "supplier")]
 | 
						||
        public string Supplier { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 操作人
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "operator")]
 | 
						||
        public string Operator { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 存放库房
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "sub_storage")]
 | 
						||
        public string SubStorage { get; set; }
 | 
						||
        
 | 
						||
        /// <summary>
 | 
						||
        /// 备注
 | 
						||
        /// </summary>
 | 
						||
        [SugarColumn(ColumnName = "memos")]
 | 
						||
        public string Memos { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "status")]
 | 
						||
        public int Status { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "drug_eff_date")]
 | 
						||
        public string DrugEffDate { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "his_id")]
 | 
						||
        public string HisId { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(ColumnName = "cancel_flag")]
 | 
						||
        public int CancelFlag { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(IsIgnore =true)]
 | 
						||
        public int CountNum { get; set; }
 | 
						||
 | 
						||
        [SugarColumn(IsIgnore =true)]
 | 
						||
        public int SumQuantity { get; set; }
 | 
						||
 | 
						||
    }
 | 
						||
}
 |