XiangTan_JiaoJie_Bak/DM_Weight/Models/DrugInfo.cs

106 lines
3.1 KiB
C#
Raw Normal View History

2025-01-06 09:40:32 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using Prism.Mvvm;
using SqlSugar;
namespace DM_Weight.Models
{
/// <summary>
///
///</summary>
[SugarTable("drug_info")]
public class DrugInfo:BindableBase
{
/// <summary>
///
///</summary>
//[SugarColumn(ColumnName = "pharmacy")]
//public string Pharmacy { get; set; }
/// <summary>
/// ҩƷID
///</summary>
[SugarColumn(ColumnName = "drug_id", IsPrimaryKey = true)]
public string DrugId { get; set; }
/// <summary>
/// ƴ
///</summary>
[SugarColumn(ColumnName = "py_code")]
public string PyCode { get; set; }
/// <summary>
///
///</summary>
//[SugarColumn(ColumnName = "BD_code")]
//public string BdCode { get; set; }
/// <summary>
/// ҩƷ
///</summary>
[SugarColumn(ColumnName = "drug_barcode")]
public string DrugBarcode { get; set; }
/// <summary>
/// ҩƷ<D2A9><C6B7><EFBFBD><EFBFBD>
///</summary>
[SugarColumn(ColumnName = "drug_name")]
public string DrugName { get; set; }
/// <summary>
///
///</summary>
[SugarColumn(ColumnName = "drug_brand_name")]
public string DrugBrandname { get; set; }
/// <summary>
/// ҩƷ<D2A9><C6B7><EFBFBD>
///</summary>
[SugarColumn(ColumnName = "drug_spec")]
public string DrugSpec { get; set; }
/// <summary>
/// <20><><EFBFBD><EFBFBD>
///</summary>
[SugarColumn(ColumnName = "dosage")]
public string Dosage { get; set; }
/// <summary>
/// <20><>װ<EFBFBD><D7B0>λ
///</summary>
[SugarColumn(ColumnName = "pack_unit")]
public string PackUnit { get; set; }
/// <summary>
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
///</summary>
[SugarColumn(ColumnName = "manufactory")]
public string Manufactory { get; set; }
/// <summary>
/// <20><><EFBFBD>ҩ<EFBFBD><D2A9>
///</summary>
[SugarColumn(ColumnName = "max_stock")]
public int? MaxStock { get; set; }
/// <summary>
/// 药品类型
/// </summary>
[SugarColumn(ColumnName ="drug_type")]
public string DrugType { get; set; }
//[SugarColumn(IsIgnore=true)]
[Navigate(NavigateType.OneToMany, nameof(ChannelStock.DrugId), nameof(DrugId))]//BookA表中的studenId
public List<ChannelStock> channelStocks { get; set; }
[Navigate(NavigateType.OneToMany, nameof(DrugManuNo.DrugId))]//BookA表中的studenId
public List<DrugManuNo>? DrugManuNos { get; set; }
[SugarColumn(IsIgnore = true)]
public int? StockQuantity { get; set; }
private DrugBase _base;
[Navigate(NavigateType.OneToOne, nameof(DrugBase.DrugId), nameof(DrugId))]
public DrugBase drugBase
{
get=> _base;
set { SetProperty(ref _base, value); }
}
[SugarColumn(IsIgnore = true)]
public string drug_name_spec { get; set; }
}
}