|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using SqlSugar;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sln.Wcs.Model.Domain
|
|
|
|
|
|
{
|
|
|
|
|
|
[SugarTable("base_location"), TenantAttribute("wcs")]
|
|
|
|
|
|
[DataContract(Name = "库位信息表")]
|
|
|
|
|
|
public class BaseLocation
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 库位ID
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "location_id", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "库位ID")]
|
|
|
|
|
|
public int LocationId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 所属车间编号(2-2#,3-3#)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "workshop_id", ColumnDescription = "所属车间编号")]
|
|
|
|
|
|
public int? WorkshopId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 所属车间编号(2-2#,3-3#)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "workshop_level", ColumnDescription = "所属车间层数")]
|
|
|
|
|
|
public int? WorkshopLevel { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 仓库ID,关联wms_base_warehouse的warehouse_id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "warehouse_id", ColumnDescription = "仓库ID")]
|
|
|
|
|
|
public int? WarehouseId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 所属机台
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "machine_id", ColumnDescription = "所属机台")]
|
|
|
|
|
|
public int? MachineId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 库位编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "location_code", ColumnDescription = "库位编码")]
|
|
|
|
|
|
public string? LocationCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// AGV的点位编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "agv_position_code", ColumnDescription = "AGV点位编码")]
|
|
|
|
|
|
public string? AgvPositionCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 料箱编码
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "container_code", ColumnDescription = "料箱编码")]
|
|
|
|
|
|
public string? ContainerCode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 列
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "loc_count", ColumnDescription = "数量")]
|
|
|
|
|
|
public int? LocCount { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 激活标记 1是 0否
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "active_flag", ColumnDescription = "激活标记")]
|
|
|
|
|
|
public int? ActiveFlag { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 库位状态(0正常 1锁定)
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "location_status", ColumnDescription = "库位状态")]
|
|
|
|
|
|
public int? LocationStatus { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建者
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "create_by", ColumnDescription = "创建者")]
|
|
|
|
|
|
public string? CreateBy { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 创建时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "created_time", ColumnDescription = "创建时间")]
|
|
|
|
|
|
public DateTime? CreatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "updated_by", ColumnDescription = "更新人")]
|
|
|
|
|
|
public string? UpdatedBy { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新时间
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "updated_time", ColumnDescription = "更新时间")]
|
|
|
|
|
|
public DateTime? UpdatedTime { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 备注
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "remark", ColumnDescription = "备注")]
|
|
|
|
|
|
public string? Remark { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// RFID设备key
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[SugarColumn(ColumnName = "equip_key", ColumnDescription = "RFID设备key")]
|
|
|
|
|
|
public string? EquipKey { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|