using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
namespace WCS.Model.ApiModel.StoreInfo
{
public class ShelfInfoModel : INotifyPropertyChanged
{
public int Id { get; set; }
///
/// 货架类型ID
///
public int? ShelfTypeId { get; set; } = 0;
///
/// 货架类型名称
///
public string ShelfTypeName { get; set; } = string.Empty;
///
/// 货架编码 对应二维码
///
public string ShelfCode { get; set; } = string.Empty;
///
/// 货架状态 货架当前的状态空货架/非空货架
///
public ShelfStatusEnum ShelfStatus { get; set; } = ShelfStatusEnum.空货架;
/////
///// 货架区域
/////
//public string ShelfArea { get; set; } = string.Empty;
///
/// 货架尺寸
///
public string ShelfSize { get; set; } = string.Empty;
///
/// 备注
///
public string Remark { get; set; } = string.Empty;
#region 当前位置信息
///
/// 当前位置ID
///
public int CurrentLocationId { get; set; } = 0;
///
/// 当前位置编码
///
public string CurrentLocaiotnCode { get; set; } = string.Empty;
#endregion
///
/// 更新人
///
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));
}
}
public enum ShelfStatusEnum
{
空货架 = 0,
非空货架 = 1,
}
}