|
@ -1,6 +1,7 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using System.ComponentModel.DataAnnotations; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
using Win_in.Sfs.Shared.Application.Contracts; |
|
|
|
|
|
using Win_in.Sfs.Shared.Application.Contracts.ExportAndImport; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
using Win_in.Sfs.Shared.Domain; |
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
using Win_in.Sfs.Shared.Domain.Shared; |
|
|
|
|
|
|
|
@ -18,6 +19,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase |
|
|
/// 采购订单号
|
|
|
/// 采购订单号
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "采购订单号")] |
|
|
[Display(Name = "采购订单号")] |
|
|
|
|
|
[Key] |
|
|
public string Number { get; set; } |
|
|
public string Number { get; set; } |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 供应商代码
|
|
|
/// 供应商代码
|
|
@ -84,12 +86,14 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase |
|
|
/// 明细-订单行
|
|
|
/// 明细-订单行
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-订单行")] |
|
|
[Display(Name = "明细-订单行")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public string PoLine { get; set; } |
|
|
public string PoLine { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 明细-物品代码
|
|
|
/// 明细-物品代码
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-物品代码")] |
|
|
[Display(Name = "明细-物品代码")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public string ItemCode { get; set; } |
|
|
public string ItemCode { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -97,18 +101,21 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-数量")] |
|
|
[Display(Name = "明细-数量")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public decimal Qty { get; set; } |
|
|
public decimal Qty { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 数量计量单位
|
|
|
/// 数量计量单位
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-数量计量单位")] |
|
|
[Display(Name = "明细-数量计量单位")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public string Uom { get; set; } |
|
|
public string Uom { get; set; } |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 明细-标准包装数量
|
|
|
/// 明细-标准包装数量
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-标准包装数量")] |
|
|
[Display(Name = "明细-标准包装数量")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public decimal StdPackQty { get; set; } |
|
|
public decimal StdPackQty { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -116,12 +123,14 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-供应商包装数量")] |
|
|
[Display(Name = "明细-供应商包装数量")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public decimal SupplierPackQty { get; set; } |
|
|
public decimal SupplierPackQty { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 明细-供应商包装单位
|
|
|
/// 明细-供应商包装单位
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-供应商包装单位")] |
|
|
[Display(Name = "明细-供应商包装单位")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public string SupplierPackUom { get; set; } |
|
|
public string SupplierPackUom { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
@ -129,6 +138,7 @@ public class PurchaseOrderImportInput : SfsStoreImportInputBase |
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
[Display(Name = "明细-转换率")] |
|
|
[Display(Name = "明细-转换率")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
[Required(ErrorMessage = "{0}是必填项")] |
|
|
|
|
|
[ImportDetail(IsDetail = true)] |
|
|
public decimal ConvertRate { get; set; } |
|
|
public decimal ConvertRate { get; set; } |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|