HuNan_NOSqlSugar/DM_Dal/Models/ChannelStock.cs

150 lines
3.3 KiB
C#
Raw Normal View History

2024-07-06 10:01:30 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
namespace DM_Dal.Models
{
/// <summary>
///
///</summary>
[Serializable]
public class ChannelStock
{
/// <summary>
///
///</summary>
//[SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
public string Id { get; set; }
public string Chnguid { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public string MachineId { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public int DrawerNo { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public int ColNo { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public int PosNo { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public string DrugId { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public string ManuNo { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public string EffDate { get; set; }
/// <summary>
///
/// 默认值: NULL
///</summary>
public int Quantity { get; set; }
/// <summary>
///
/// 默认值: 1
///</summary>
public int DrawerType { get; set; }
/// <summary>
///
/// 默认值: 1
///</summary>
public int BoardType { get; set; }
/// <summary>
///
/// 默认值: 1
///</summary>
public int? State { get; set; }
public bool IsSelected { get; set; }
public InOutInvoice Invoice { get; set; }
public string Location
{
get => DrawerNo + "-" + ColNo;
}
private int _addQuantity = 0;
public int AddQuantity
{
get;
set;
}
private int _takeQuantity = 0;
public int TakeQuantity
{
get;
set;
}
//private string _tipMessage=string.Empty;
//[SugarColumn(IsIgnore = true)]
//public string TipMessage
//{
// get => _tipMessage;
// set
// {
// SetProperty(ref _tipMessage, value);
// }
//}
private int _returnQuantity = 0;
public int ReturnQuantity
{
get;
set;
}
private int _checkQuantity = 0;
public int CheckQuantity
{
get;
set;
}
public int? CanReturnQuantity { get; set; }
private DrugInfo? _DrugInfo;
public DrugInfo DrugInfo { get; set; }
public int process { get; set; } = 0;
private DrugManuNo? _drugManuNo;
public DrugManuNo? drugManuNo { get; set; }
//private string _manuNoEffDate;
//[SugarColumn(IsIgnore = true)]
//public string ManuNoEffDate { get => _manuNoEffDate; set => SetProperty(ref _manuNoEffDate, value); }
private ChannelList? _channelList;
public ChannelList ChannelLst { get; set; }
}
}