92 lines
2.9 KiB
C#
92 lines
2.9 KiB
C#
using SqlSugar;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WCS.BLL.HardWare;
|
|
|
|
namespace WCS.DAL.DbModels
|
|
{
|
|
[SugarTable("wcs_location_info")]
|
|
public class LocationInfo
|
|
{
|
|
/// <summary>
|
|
/// 主键 自增Id
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)]
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// 位置编码
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "location_code", Length = 64, IsNullable = false, ColumnDescription = "位置编码")]
|
|
public string LocationCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 库位区域
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "location_area_id", IsNullable = true, ColumnDescription = "库位区域Id")]
|
|
public int LocationAreaId { get; set; }
|
|
/// <summary>
|
|
/// 库位区域
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "location_area", Length = 64, IsNullable = false, ColumnDescription = "库位区域名称")]
|
|
public string LocationArea { get; set; }
|
|
|
|
/// <summary>
|
|
/// RCS库位编号
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "rcs_store_code", Length = 64, IsNullable = true, ColumnDescription = "RCS库位编号")]
|
|
public string RcsStoreCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 可放置货架类型
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "allow_shelf_types", Length = 512, IsNullable = true, ColumnDescription = "可放置货架类型")]
|
|
public string AllowShelfTypes { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新人
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_user", Length = 128, IsNullable = true, ColumnDescription = "更新人")]
|
|
public string ModifyUser { get; set; }
|
|
|
|
/// <summary>
|
|
/// 更新时间
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "modify_time", IsNullable = false, ColumnDescription = "更新时间")]
|
|
public DateTime ModifyTime { get; set; } = DateTime.Now;
|
|
|
|
/// <summary>
|
|
/// 是否启用
|
|
/// </summary>
|
|
[SugarColumn(ColumnName = "is_enable", IsNullable = false, ColumnDescription = "是否启用")]
|
|
public bool IsEnable { get; set; } = true;
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
public string IsEnableStr
|
|
{
|
|
get
|
|
{
|
|
if (IsEnable)
|
|
return "启用";
|
|
else
|
|
return "禁用";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 序号
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public int RowNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 是否已经选择
|
|
/// </summary>
|
|
[SugarColumn(IsIgnore = true)]
|
|
public bool IsSelected { get; set; }
|
|
}
|
|
}
|