32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Text;
 | 
						|
using System.Threading.Tasks;
 | 
						|
using Prism.Mvvm;
 | 
						|
using SqlSugar;
 | 
						|
 | 
						|
namespace DM_Weight.Models
 | 
						|
{
 | 
						|
    /// <summary>
 | 
						|
    /// 药品基数表
 | 
						|
    /// </summary>
 | 
						|
    [SugarTable("drug_base")]
 | 
						|
    public class DrugBase:BindableBase
 | 
						|
    {
 | 
						|
        private int _baseId = 0;
 | 
						|
        [SugarColumn(ColumnName = "baseid", IsPrimaryKey = true)]
 | 
						|
        public int BaseId { get=> _baseId; set { SetProperty(ref _baseId, value); } }
 | 
						|
        private string _drugId;
 | 
						|
        [SugarColumn(ColumnName = "drugid")]
 | 
						|
        public string DrugId { get => _drugId; set { SetProperty(ref _drugId, value); } }
 | 
						|
        private string _machineId = "";
 | 
						|
        [SugarColumn(ColumnName = "machine_id")]
 | 
						|
        public string MachineId { get => _machineId; set { SetProperty(ref _machineId, value); } }
 | 
						|
        private int _baseQuantity = 0;
 | 
						|
        [SugarColumn(ColumnName = "baseQuantity")]
 | 
						|
        public int BaseQuantity { get=>_baseQuantity; set{ SetProperty(ref _baseQuantity, value); } }
 | 
						|
 | 
						|
    }
 | 
						|
}
 |