|
@ -7,7 +7,7 @@ using Win_in.Sfs.Shared.Domain.Shared; |
|
|
namespace Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
namespace Win_in.Sfs.Wms.Inventory.Application.Contracts; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 实体DTO
|
|
|
/// 实体DTO
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "实体DTO")] |
|
|
[Display(Name = "实体DTO")] |
|
|
public class BalanceDTO : SfsBasicDTOBase |
|
|
public class BalanceDTO : SfsBasicDTOBase |
|
@ -19,139 +19,140 @@ public class BalanceDTO : SfsBasicDTOBase |
|
|
, IHasPacking |
|
|
, IHasPacking |
|
|
, IHasInventoryStatus |
|
|
, IHasInventoryStatus |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 箱标签
|
|
|
/// 箱标签
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "箱标签")] |
|
|
[Display(Name = "箱标签")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string PackingCode { get; set; } |
|
|
public string PackingCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 物品名称
|
|
|
/// 物品名称
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "物品名称")] |
|
|
[Display(Name = "物品名称")] |
|
|
public string ItemName { get; set; } |
|
|
public string ItemName { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 物品描述1
|
|
|
/// 物品描述1
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "物品描述1")] |
|
|
[Display(Name = "物品描述1")] |
|
|
public string ItemDesc1 { get; set; } |
|
|
public string ItemDesc1 { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 物品描述2
|
|
|
/// 物品描述2
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "物品描述2")] |
|
|
[Display(Name = "物品描述2")] |
|
|
public string ItemDesc2 { get; set; } |
|
|
public string ItemDesc2 { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// ERP料号
|
|
|
/// ERP料号
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "ERP料号")] |
|
|
[Display(Name = "ERP料号")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string ItemCode { get; set; } |
|
|
public string ItemCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 配置
|
|
|
/// 配置
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "配置")] |
|
|
[Display(Name = "配置")] |
|
|
public string Configuration { get; set; } |
|
|
public string Configuration { get; set; } |
|
|
|
|
|
|
|
|
//供应商批次
|
|
|
//供应商批次
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 供应商批次
|
|
|
/// 供应商批次
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "供应商批次")] |
|
|
[Display(Name = "供应商批次")] |
|
|
public string SupplierBatch { get; set; } |
|
|
public string SupplierBatch { get; set; } |
|
|
|
|
|
|
|
|
//到货时间
|
|
|
//到货时间
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 到货时间
|
|
|
/// 到货时间
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "到货时间")] |
|
|
[Display(Name = "到货时间")] |
|
|
public DateTime ArriveDate { get; set; } = DateTime.Now; |
|
|
public DateTime ArriveDate { get; set; } = DateTime.Now; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 生产时间
|
|
|
/// 生产时间
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "生产时间")] |
|
|
[Display(Name = "生产时间")] |
|
|
public DateTime ProduceDate { get; set; } = DateTime.Now; |
|
|
public DateTime ProduceDate { get; set; } = DateTime.Now; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 过期时间
|
|
|
/// 过期时间
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "过期时间")] |
|
|
[Display(Name = "过期时间")] |
|
|
public DateTime ExpireDate { get; set; } = DateTime.MaxValue; |
|
|
public DateTime ExpireDate { get; set; } = DateTime.MaxValue; |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 排序批次
|
|
|
/// 排序批次
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "排序批次")] |
|
|
[Display(Name = "排序批次")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string Lot { get; set; } |
|
|
public string Lot { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 序号
|
|
|
/// 序号
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "序号")] |
|
|
[Display(Name = "序号")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string SerialNumber { get; set; } |
|
|
public string SerialNumber { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 计量单位
|
|
|
/// 计量单位
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "计量单位")] |
|
|
[Display(Name = "计量单位")] |
|
|
public string Uom { get; set; } |
|
|
public string Uom { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 数量
|
|
|
/// 数量
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "数量")] |
|
|
[Display(Name = "数量")] |
|
|
public decimal Qty { get; set; } |
|
|
public decimal Qty { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 标包数量
|
|
|
/// 标包数量
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "标包数量")] |
|
|
[Display(Name = "标包数量")] |
|
|
public decimal StdPackQty { get; set; } |
|
|
public decimal StdPackQty { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 状态
|
|
|
/// 状态
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "状态")] |
|
|
[Display(Name = "状态")] |
|
|
public EnumInventoryStatus Status { get; set; } |
|
|
public EnumInventoryStatus Status { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 仓库代码
|
|
|
/// 仓库代码
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "仓库代码")] |
|
|
[Display(Name = "仓库代码")] |
|
|
public string WarehouseCode { get; set; } |
|
|
public string WarehouseCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 库位组
|
|
|
/// 库位组
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "库位组")] |
|
|
[Display(Name = "库位组")] |
|
|
public string LocationGroup { get; set; } |
|
|
public string LocationGroup { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 库区
|
|
|
/// 库区
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "库区")] |
|
|
[Display(Name = "库区")] |
|
|
public string LocationArea { get; set; } |
|
|
public string LocationArea { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// ERP库位
|
|
|
/// ERP库位
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "ERP库位")] |
|
|
[Display(Name = "ERP库位")] |
|
|
public string LocationErpCode { get; set; } |
|
|
public string LocationErpCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 入库时间
|
|
|
/// 入库时间
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "入库时间")] |
|
|
[Display(Name = "入库时间")] |
|
|
public DateTime PutInTime { get; set; } |
|
|
public DateTime PutInTime { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 托盘标签
|
|
|
/// 托盘标签
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "托盘标签")] |
|
|
[Display(Name = "托盘标签")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
@ -164,66 +165,64 @@ public class BalanceDTO : SfsBasicDTOBase |
|
|
// public DateTime ExpireDate { get; set; }
|
|
|
// public DateTime ExpireDate { get; set; }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 最后盘点时间
|
|
|
/// 最后盘点时间
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "最后盘点时间")] |
|
|
[Display(Name = "最后盘点时间")] |
|
|
public DateTime LastCountTime { get; set; } |
|
|
public DateTime LastCountTime { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 最后盘点计划
|
|
|
/// 最后盘点计划
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "最后盘点计划")] |
|
|
[Display(Name = "最后盘点计划")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string LastCountPlanNumber { get; set; } |
|
|
public string LastCountPlanNumber { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 最后盘点标签
|
|
|
/// 最后盘点标签
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "最后盘点标签")] |
|
|
[Display(Name = "最后盘点标签")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")] |
|
|
public string LastCountLabel { get; set; } |
|
|
public string LastCountLabel { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 是否可用
|
|
|
/// 是否可用
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "是否可用")] |
|
|
[Display(Name = "是否可用")] |
|
|
public bool IsActive { get; set; } |
|
|
public bool IsActive { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 库位代码
|
|
|
/// 库位代码
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "库位代码")] |
|
|
[Display(Name = "库位代码")] |
|
|
public string LocationCode { get; set; } |
|
|
public string LocationCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 管理类型
|
|
|
/// 管理类型
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "管理类型")] |
|
|
[Display(Name = "管理类型")] |
|
|
public EnumItemManageType ManageType { get; set; } |
|
|
public EnumItemManageType ManageType { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 最后事务类型
|
|
|
/// 最后事务类型
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "最后事务类型")] |
|
|
[Display(Name = "最后事务类型")] |
|
|
public EnumTransType LastTransType { get; set; } |
|
|
public EnumTransType LastTransType { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 最后事务号
|
|
|
/// 最后事务号
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "最后事务号")] |
|
|
[Display(Name = "最后事务号")] |
|
|
public string LastTransNumber { get; set; } |
|
|
public string LastTransNumber { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 标准成本单价
|
|
|
/// 标准成本单价
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "标准成本单价")] |
|
|
[Display(Name = "标准成本单价")] |
|
|
public decimal StdCostPrice { get; set; } |
|
|
public decimal StdCostPrice { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 标准成本价格
|
|
|
/// 标准成本价格
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "标准成本价格")] |
|
|
[Display(Name = "标准成本价格")] |
|
|
public decimal StdCost |
|
|
public decimal StdCost => StdCostPrice * Qty; |
|
|
{ |
|
|
|
|
|
get { return StdCostPrice *Qty; } |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|