using SqlSugar;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using WIDESEA_Core.DB.Models;
|
|
namespace WIDESEA_Model.Models
|
{
|
[SugarTable("Dt_CabinOrderDetail_Hty ", "入库明细历史表")]
|
public class Dt_CabinOrderDetail_Hty : BaseEntity
|
{
|
|
[SugarColumn(ColumnName = "HistoryId", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "历史记录主键")]
|
public long HistoryId { get; set; }
|
// 保留原表所有字段
|
[SugarColumn(ColumnName = "Id", ColumnDescription = "原主键")]
|
public int Id { get; set; }
|
|
[SugarColumn(ColumnName = "OrderId", ColumnDescription = "关联入库单ID")]
|
public int OrderId { get; set; }
|
|
[SugarColumn(ColumnName = "Reservoirarea", IsNullable = true, Length = 50, ColumnDescription = "库区")]
|
public string Reservoirarea { get; set; }
|
|
[SugarColumn(ColumnName = "Goods_no", IsNullable = true, Length = 50, ColumnDescription = "药品编码")]
|
public string Goods_no { get; set; }
|
|
[SugarColumn(ColumnName = "Order_qty", IsNullable = true, ColumnDescription = "入库数量")]
|
public decimal Order_qty { get; set; }
|
|
[SugarColumn(ColumnName = "Batch_num", IsNullable = true, Length = 50, ColumnDescription = "批号")]
|
public string Batch_num { get; set; }
|
|
[SugarColumn(ColumnName = "Exp_date", IsNullable = true, Length = 8, ColumnDescription = "校期")]
|
public string Exp_date { get; set; }
|
|
[SugarColumn(ColumnName = "Warehouse_no", IsNullable = true, ColumnDescription = "库房号")]
|
public string Warehouse_no { get; set; }
|
/// <summary>
|
/// 订单详情状态 新建,开始,已完成
|
/// 库房号+状态+(新建):判断是否下发给wcs
|
/// 详情开始(开始)
|
/// 详情完成(已完成,移入历史表删除信息)
|
/// </summary>
|
[SugarColumn(ColumnName = "OrderDetailStatus", IsNullable = true, Length = 50, ColumnDescription = "状态")]
|
public string OrderDetailStatus { get; set; }
|
|
//状态
|
[SugarColumn(ColumnName = "Status", IsNullable = true, ColumnDescription = "状态 同步状态:0未同步 1已同步 2无需同步(即同步下发给wcs)")]
|
public int Status { get; set; }
|
|
// 新增历史表专用字段
|
|
|
[SugarColumn(ColumnName = "OperationType", ColumnDescription = "操作类型:1新增 2修改 3删除")]
|
public int OperationType { get; set; }
|
|
[SugarColumn(ColumnName = "OperationTime", ColumnDescription = "操作时间")]
|
public DateTime? OperationTime { get; set; }
|
|
|
}
|
}
|