HKC_Blazor/MasaBlazorApp3/Pojo/ChannelStock.cs

86 lines
2.0 KiB
C#

using LinqToDB.Common.Internal.Cache;
using LinqToDB.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MasaBlazorApp3.Pojo
{
[Table("channel_stock")]
public class ChannelStock
{
[PrimaryKey]
[Column("chsguid")]
public string Id { get; set; }
[Column("chnguid")]
public string ListId { get; set; }
[Column("machine_id")]
public string MachineId { get; set; }
[Column("row_no")]
public int DrawerNo { get; set; }
[Column("col_no")]
public int ColNo { get; set; }
[Column("drug_id")]
public string DrugId { get; set; }
[Column("quantity")]
public int Quantity { get; set; }
[Column("drawer_type")]
public int DrawerType { get; set; }
[Column("board_type")]
public int BoardType { get; set; }
[Column("manu_no")]
public string ManuNo { get; set; }
[Column("eff_date")]
public string EffDate { get; set; }
[Association(ThisKey = nameof(DrugId), OtherKey = nameof(DrugInfo.DrugId))]
public DrugInfo? Drug { get; set; }
[Column(IsColumn = false)]
public int TakeQuantity { get; set; } = 0;
[Column(IsColumn = false)]
public int AddQuantity { get; set; } = 0;
[Column(IsColumn = false)]
public int ReturnQuantity { get; set; }
[Column("dmnguid")]
public string Dmnguid { get; set; }
[Association(ThisKey = nameof(Dmnguid), OtherKey = nameof(DrugManuNo.Id))]
public DrugManuNo? drugManuNo { get; set; }
[Column(IsColumn = false)]
public string Location
{ get => DrawerNo + "-" + ColNo; }
[Column(IsColumn = false)]
public int CanReturnQuantity { get; set; }
[Column(IsColumn = false)]
public int CheckQuantity
{
get;
set;
}
[Column("Pos_No")]
public int BiaoDingStatus { get; set; }
}
}