131 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			131 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using SqlSugar;
 | 
						|
namespace DM_Weight.Models
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// 
 | 
						|
    ///</summary>
 | 
						|
    [SugarTable("order_detail")]
 | 
						|
    public class OrderDetail
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
 | 
						|
        public int Id { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        //[SugarColumn(ColumnName = "order_id")]
 | 
						|
        //public int? OrderId { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "patient_id")]
 | 
						|
        public string PatientId { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "order_no")]
 | 
						|
        public string OrderNo { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "charge_date")]
 | 
						|
        public DateTime ChargeDate { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        //[SugarColumn(ColumnName = "serial_no")]
 | 
						|
        //public int? SerialNo { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "drug_id")]
 | 
						|
        public string DrugId { get; set; }
 | 
						|
 | 
						|
        [Navigate(NavigateType.ManyToOne, nameof(DrugId))]
 | 
						|
        public DrugInfo DrugInfo { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "quantity")]
 | 
						|
        public int Quantity { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "order_unit")]
 | 
						|
        public string OrderUnit { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: 1
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "unit_convercoef")]
 | 
						|
        public int? UnitConvercoef { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "set_manu_no")]
 | 
						|
        public string SetManuNo { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "set_eff_date")]
 | 
						|
        public string SetEffDate { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        //[SugarColumn(ColumnName = "price")]
 | 
						|
        //public string Price { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        //[SugarColumn(ColumnName = "total_price")]
 | 
						|
        //public string TotalPrice { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_discrip")]
 | 
						|
        public string UseDiscrip { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_frequ")]
 | 
						|
        public string UseFrequ { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_once")]
 | 
						|
        public string UseOnce { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_by")]
 | 
						|
        public string UseBy { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: '0'
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_self")]
 | 
						|
        public string UseSelf { get; set; }
 | 
						|
        /// <summary>
 | 
						|
        ///  
 | 
						|
        /// 默认值: NULL
 | 
						|
        ///</summary>
 | 
						|
        [SugarColumn(ColumnName = "use_dosage")]
 | 
						|
        public string UseDosage { get; set; }
 | 
						|
    }
 | 
						|
} |