2023-11-13 13:25:46 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
namespace DM_Weight.Models
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
///</summary>
|
|
|
|
|
[SugarTable("drug_info")]
|
|
|
|
|
public class DrugInfo
|
|
|
|
|
{
|
|
|
|
|
/// <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>
|
2024-09-12 18:01:56 +08:00
|
|
|
|
/// <20><>װ<EFBFBD><D7B0>λ packUnit这个字段不用了,用bigUnit,smallUnit那2个字段
|
2023-11-13 13:25:46 +08:00
|
|
|
|
///</summary>
|
|
|
|
|
[SugarColumn(ColumnName = "pack_unit")]
|
|
|
|
|
public string PackUnit { get; set; }
|
|
|
|
|
/// <summary>
|
2024-09-12 18:01:56 +08:00
|
|
|
|
/// bigUnit大单位是整盒的
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "big_unit")]
|
|
|
|
|
public string BigUnit { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// smallUnit是拆零单位
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "small_unit")]
|
|
|
|
|
public string SmallUnit { get; set; }
|
|
|
|
|
/// <summary>
|
2023-11-13 13:25:46 +08:00
|
|
|
|
/// <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; }
|
|
|
|
|
//[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; }
|
|
|
|
|
|
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
public string drug_name_spec { get; set; }
|
2025-04-17 10:55:25 +08:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 药品单位转换率
|
|
|
|
|
/// </summary>
|
|
|
|
|
[SugarColumn(ColumnName = "convert_ratio")]
|
|
|
|
|
public int ConvertRatio { get; set; }
|
2023-11-13 13:25:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|