盘点单对接金蝶

This commit is contained in:
18942506660
2023-12-01 16:26:01 +08:00
parent c501aa2f8c
commit c8df7c91f2
12 changed files with 156 additions and 44 deletions

View File

@@ -16,6 +16,11 @@ namespace WMS.Web.Core.Dto.Erp
{
this.AccessToken = accessToken;
}
public ErpBillQueryDto(string accessToken,string formid)
{
this.AccessToken = accessToken;
this.FormId = formid;
}
/// <summary>
/// 令牌
/// </summary>
@@ -26,5 +31,10 @@ namespace WMS.Web.Core.Dto.Erp
/// </summary>
[JsonProperty(PropertyName = "data")]
public string Data { get; set; }
/// <summary>
/// 参数(保存提交审核formId在外层)
/// </summary>
[JsonProperty(PropertyName = "formid")]
public string FormId { get; set; }
}
}

View File

@@ -0,0 +1,23 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Erp
{
/// <summary>
/// 编码
/// </summary>
public class ErpNumberDto
{
public ErpNumberDto() { }
public ErpNumberDto(string number) {
this.Number = number;
}
/// <summary>
/// 编码
/// </summary>
[JsonProperty("FNumber")]
public string Number { get; set; }
}
}

View File

@@ -36,5 +36,9 @@ namespace WMS.Web.Core.Dto.Erp
/// 基本单位名称
/// </summary>
public string BaseUnitName { get; set; }
/// <summary>
/// 基本单位编码
/// </summary>
public string BaseUnitNumber { get; set; }
}
}

View File

@@ -25,5 +25,9 @@ namespace WMS.Web.Core.Dto.Erp
/// 业务组织(使用组织)
/// </summary>
public int OrgId { get; set; }
/// <summary>
/// 业务组织(使用组织)编码
/// </summary>
public string OrgCode { get; set; }
}
}

View File

@@ -35,16 +35,16 @@ namespace WMS.Web.Core.Dto.Erp.TakeStock
/// 单据类型(标准盘亏单; 标准盘盈单 PY01_SYS) 盘亏 PK01_SYS
/// </summary>
[JsonProperty("FBillTypeID")]
public string Type { get; set; }
public ErpNumberDto Type { get; set; }
/// <summary>
/// 库存组织 (取仓库对应的库存组织)
/// </summary>
[JsonProperty("FStockOrgId")]
public string StockOrgId { get; set; }
public ErpNumberDto StockOrgId { get; set; }
/// <summary>
/// 货主类型: 默认为业务组织 BD_OwnerOrg
/// </summary>
[JsonProperty("FBillTypeID")]
[JsonProperty("FOwnerTypeIdHead")]
public string FOwnerTypeIdHead { get; set; } = "BD_OwnerOrg";
/// <summary>
/// 单据编号
@@ -68,7 +68,7 @@ namespace WMS.Web.Core.Dto.Erp.TakeStock
/// 库存状态 KCZT001
/// </summary>
[JsonProperty("FStockStatusId")]
public string FStockStatusId { get; set; } = "KCZT001";
public ErpNumberDto FStockStatusId { get; set; } = new ErpNumberDto("KCZT001");
/// <summary>
/// 货主类型: 默认为业务组织 BD_OwnerOrg
/// </summary>
@@ -78,7 +78,7 @@ namespace WMS.Web.Core.Dto.Erp.TakeStock
/// 取仓库对应的货主信息 货主: 等于库存组织
/// </summary>
[JsonProperty("FOwnerid")]
public string FOwnerid { get; set; }
public ErpNumberDto FOwnerid { get; set; }
/// <summary>
/// 保管者类型
/// </summary>
@@ -88,22 +88,22 @@ namespace WMS.Web.Core.Dto.Erp.TakeStock
/// 保管者 仓库”库存组织”
/// </summary>
[JsonProperty("FKeeperId")]
public string FKeeperId { get; set; }
public ErpNumberDto FKeeperId { get; set; }
/// <summary>
/// 物料ID
/// </summary>
[JsonProperty("FMaterialId")]
public string MaterialId { get; set; }
public ErpNumberDto MaterialId { get; set; }
/// <summary>
/// 单位ID
/// </summary>
[JsonProperty("FUnitID")]
public string UnitId { get; set; }
public ErpNumberDto UnitId { get; set; }
/// <summary>
/// 仓库ID
/// </summary>
[JsonProperty("FStockId")]
public string StockId { get; set; }
public ErpNumberDto StockId { get; set; }
/// <summary>
/// 仓位ID
/// </summary>