You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
323 lines
8.7 KiB
323 lines
8.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Win_in.Sfs.Basedata.Application.Contracts;
|
|
using Win_in.Sfs.Basedata.Domain;
|
|
using Win_in.Sfs.Basedata.Domain.Shared;
|
|
using Win_in.Sfs.Shared.Domain;
|
|
|
|
namespace Win_in.Sfs.Basedata.Application.Contracts;
|
|
|
|
|
|
public class SplitPackingRecEditInput : SfsBaseDataCreateOrUpdateInputBase
|
|
, IHasPurchaseInfoDto
|
|
, IHasProductionInfoDto
|
|
, IHasQualityInfoDto
|
|
{
|
|
/// <summary>
|
|
/// 操作类型
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public OprTypeEnum OprType { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源箱码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string FromPackingCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源顶级箱码
|
|
/// </summary>
|
|
//public string FromTopPackingCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源标包数量
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public decimal FromStdPackQty { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源计量单位
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string FromUom { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源数量
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public decimal FromQty { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标箱码
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ToPackingCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标顶级箱码
|
|
/// </summary>
|
|
//public string ToTopPackingCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标标包数量
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public decimal ToStdPackQty { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标计量单位
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ToUom { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标数量
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public decimal ToQty { get; set; }
|
|
|
|
/// <summary>
|
|
/// ERP料号
|
|
/// </summary>
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ItemCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料名称
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.NameLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ItemName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料描述1
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.DescLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ItemDesc1 { get; set; }
|
|
|
|
/// <summary>
|
|
/// 物料描述2
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.DescLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ItemDesc2 { get; set; }
|
|
|
|
/// <summary>
|
|
/// 源批次
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string FromLot { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标批次
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ToLot { get; set; }
|
|
|
|
/// <summary>
|
|
/// 采购订单
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string PurchaseInfo_PoNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商发货单
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string PurchaseInfo_AsnNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 到货通知
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ArrivalNoticNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 任务单
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string TaskOrderNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 收货记录单
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string ReceiptRecNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 上架单
|
|
/// </summary>
|
|
[StringLength(SfsEfCorePropertyConst.CodeLength, ErrorMessage = "{0}最多输入{1}个字符")]
|
|
public string PutOnShelfNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标签类型
|
|
/// </summary>
|
|
public EnumLabelType LabelType { get; set; }
|
|
|
|
|
|
|
|
|
|
#region InventoryLabel兼容成员
|
|
|
|
/// <summary>
|
|
/// 完整条码文本
|
|
/// </summary>
|
|
[Display(Name = "完整条码文本")]
|
|
public string FullBarcodeString { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商批次
|
|
/// </summary>
|
|
[Display(Name = "供应商批次")]
|
|
public string SupplierBatch { get; set; }
|
|
|
|
/// <summary>
|
|
/// 到货时间
|
|
/// </summary>
|
|
[Display(Name = "summary")]
|
|
public DateTime ArriveDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 生产时间
|
|
/// </summary>
|
|
[Display(Name = "生产时间")]
|
|
public DateTime ProduceDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 过期时间
|
|
/// </summary>
|
|
[Display(Name = "过期时间")]
|
|
public DateTime ExpireDate { get; set; }
|
|
|
|
/// <summary>
|
|
/// 标签状态
|
|
/// </summary>
|
|
[Display(Name = "标签状态")]
|
|
public LabelStatus LabelStatus { get; set; }
|
|
|
|
/// <summary>
|
|
/// 建议库位
|
|
/// </summary>
|
|
[Display(Name = "建议库位")]
|
|
public string RecommendLocationCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 目标ERP库位
|
|
/// </summary>
|
|
[Display(Name = "目标ERP库位")]
|
|
public string LocationErpCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 托标签号
|
|
/// </summary>
|
|
[Display(Name = "托标签号")]
|
|
public string ContainerCode { get; set; }
|
|
|
|
#region 三个子实体成员
|
|
//-----------------------QualityInfo
|
|
/// <summary>
|
|
/// 质量级别
|
|
/// </summary>
|
|
[Display(Name = "质量级别")]
|
|
public string QLevel { get; set; }
|
|
|
|
/// <summary>
|
|
/// 质检文件
|
|
/// </summary>
|
|
[Display(Name = "质检文件")]
|
|
public string QualityFile { get; set; }
|
|
|
|
//----------------------PurchaseInfo
|
|
/// <summary>
|
|
/// 供应商代码
|
|
/// </summary>
|
|
[Display(Name = "供应商代码")]
|
|
public string SupplierCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 订单号
|
|
/// </summary>
|
|
[Display(Name = "订单号")]
|
|
public string PoNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 要货看板号
|
|
/// </summary>
|
|
[Display(Name = "要货看板号")]
|
|
public string RpNumber { get; set; }
|
|
|
|
/// <summary>
|
|
/// 发货单号
|
|
/// </summary>
|
|
[Display(Name = "发货单号")]
|
|
public string AsnNumber { get; set; }
|
|
|
|
//--------------------------------ProductionInfo
|
|
/// <summary>
|
|
/// 生产线
|
|
/// </summary>
|
|
[Display(Name = "生产线")]
|
|
public string ProdLine { get; set; }
|
|
|
|
/// <summary>
|
|
/// 班组
|
|
/// </summary>
|
|
[Display(Name = "班组")]
|
|
public string Team { get; set; }
|
|
|
|
/// <summary>
|
|
/// 班次
|
|
/// </summary>
|
|
[Display(Name = "班次")]
|
|
public string Shift { get; set; }
|
|
|
|
#endregion
|
|
|
|
/// <summary>
|
|
/// 规格
|
|
/// </summary>
|
|
[Display(Name = "规格")]
|
|
public string Specifications { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商名称
|
|
/// </summary>
|
|
[Display(Name = "供应商名称")]
|
|
public string SupplierName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商简称
|
|
/// </summary>
|
|
[Display(Name = "供应商简称")]
|
|
public string SupplierSimpleName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商ERP料号
|
|
/// </summary>
|
|
[Display(Name = "供应商ERP料号")]
|
|
public string SupplierItemCode { get; set; }
|
|
|
|
/// <summary>
|
|
/// 供应商物品名
|
|
/// </summary>
|
|
[Display(Name = "供应商物品名")]
|
|
public string SupplierItemName { get; set; }
|
|
|
|
/// <summary>
|
|
/// 要求到货时间
|
|
/// </summary>
|
|
[Display(Name = "要求到货时间")]
|
|
[Required(ErrorMessage = "{0}是必填项")]
|
|
public DateTime PlanArriveDate { get; set; }
|
|
#endregion
|
|
|
|
}
|
|
|