54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Text;
 | 
						|
using System.Threading.Tasks;
 | 
						|
using SqlSugar;
 | 
						|
 | 
						|
namespace DM_Weight.Models
 | 
						|
{
 | 
						|
    [SugarTable("surgical_residual")]
 | 
						|
    public class SurgicalResidual
 | 
						|
    {
 | 
						|
        //[SugarColumn(ColumnName = "id")]
 | 
						|
        //public int Id { get; set; }
 | 
						|
 | 
						|
        [SugarColumn(ColumnName = "order_no", IsPrimaryKey = true)]
 | 
						|
        public string OrderNo { get; set; }
 | 
						|
        [SugarColumn(ColumnName = "send_no")]
 | 
						|
        public string SendNo { get; set; }
 | 
						|
 | 
						|
        [SugarColumn(ColumnName = "drug_id")]
 | 
						|
        public string DrugId { get; set; }
 | 
						|
 | 
						|
        //public string residual_dose { get; set; }
 | 
						|
        [SugarColumn(ColumnName = "create_time")]
 | 
						|
        public string CreateTime { get; set; }
 | 
						|
        //使用量
 | 
						|
        [SugarColumn(ColumnName = "use_dose")]
 | 
						|
        public string UseDose { get; set; }
 | 
						|
        //剩余量
 | 
						|
        [SugarColumn(ColumnName = "residual_dose")]
 | 
						|
        public string ResidualDose { get; set; }
 | 
						|
        [SugarColumn(ColumnName = "dose_unit")]
 | 
						|
        public string DoseUnit { get; set; }
 | 
						|
        //余液处置时间
 | 
						|
        [SugarColumn(ColumnName = "disposal_time")]
 | 
						|
        public string DisposalTime { get; set; }
 | 
						|
        //使用量+单位
 | 
						|
        [SugarColumn(IsIgnore = true)]
 | 
						|
        public string UseDoseInfo
 | 
						|
        {
 | 
						|
            get => UseDose==null ? "" : UseDose + DoseUnit;
 | 
						|
        }
 | 
						|
        /// <summary>
 | 
						|
        /// 剩余量+单位
 | 
						|
        /// </summary>
 | 
						|
        [SugarColumn(IsIgnore = true)]
 | 
						|
        public string ResidualDoseInfo
 | 
						|
        {
 | 
						|
            get => ResidualDose == null ? "" : ResidualDose + DoseUnit;
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |