using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; namespace WCS.Model.ApiModel.StoreInfo { public class LocationInfoModel : INotifyPropertyChanged { /// /// 主键 自增Id /// public int Id { get; set; } /// /// 位置编码 /// public string LocationCode { get; set; } /// /// 库位区域 /// public int? LocationAreaId { get; set; } /// /// 库位区域 /// public string LocationArea { get; set; } /// /// RCS库位编码 /// public string RcsStoreCode { get; set; } = string.Empty; /// /// 允许放置的货架类型 /// public List AllowShelfTypes { get; set; } = new List(); /// /// 更新人 /// public string ModifyUser { get; set; } = string.Empty; /// /// 更新时间 /// public DateTime ModifyTime { get; set; } = DateTime.Now; /// /// 是否启用 /// public bool IsEnable { get; set; } = true; /// /// 启用状态显示用字符串 /// public string IsEnableStr { get { if (IsEnable) return "启用"; else return "禁用"; } } /// /// 序号 /// public int RowNumber { get; set; } public bool IsSelected { get { return isSelected; } set { isSelected = value; OnPropertyChanged(nameof(IsSelected)); } } public bool isSelected; public event PropertyChangedEventHandler PropertyChanged; protected virtual void OnPropertyChanged(string propertyName) { PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName)); } } }