Files
wcs/WCS.Model/ApiModel/MatBaseInfo/MatBaseInfoModel.cs
hehaibing-1996 344158c722 提交代码
2024-06-29 17:30:54 +08:00

67 lines
1.5 KiB
C#

using System;
using System.ComponentModel;
namespace WCS.BLL.DbModels
{
///<summary>
///物料基础信息
///</summary>
public partial class MatBaseInfoModel: INotifyPropertyChanged
{
public int Id { get; set; }
public string MatCode { get; set; }
public string MatName { get; set; }
public string MatSpec { get; set; }
public string MatUnit { get; set; }
public string MatBatch { get; set; }
public string MatSupplier { get; set; }
public string MatCustomer { get; set; }
public string ModifyUser { get; set; }
public DateTime? ModifyTime { get; set; } = DateTime.Now;
public bool IsEnable { get; set; } = true;
public string IsEnableStr
{
get
{
if (IsEnable)
return "启用";
else
return "禁用";
}
}
public bool IsSelected
{
get { return isSelected; }
set
{
isSelected = value;
OnPropertyChanged(nameof(IsSelected));
}
}
public bool isSelected;
public int RowNumber { get; set; }
public int SerialNumber { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}