This commit is contained in:
tongfei
2023-11-03 16:35:43 +08:00
3 changed files with 64 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Erp
{
/// <summary>
/// 下推
/// </summary>
public class ErpPushDto
{
public ErpPushDto() { }
public ErpPushDto(string formId,string number,List<int> detailIds,string type)
{
this.FormId = formId;
this.Numbers.Add(number);
this.DetailsId = detailIds.ToString();
this.Type = type;
}
/// <summary>
/// 业务对象表单Id必录
/// </summary>
[JsonProperty("FormId")]
public string FormId { get; set; }
/// <summary>
/// 业务对象表单Id必录
/// </summary>
[JsonProperty("Numbers")]
public List<string> Numbers { get; set; }
/// <summary>
/// 分录内码集合,逗号分隔(分录下推时必录) 注(按分录下推时,单据内码和编码不需要填,否则按整单下推)
/// </summary>
[JsonProperty("EntryIds")]
public string DetailsId { get; set; }
/// <summary>
/// 目标单据类型内码
/// </summary>
[JsonProperty("TargetBillTypeId")]
public string Type { get; set; }
}
}