加入erp的相关服务

This commit is contained in:
tongfei
2023-10-25 15:31:26 +08:00
parent 25c09f4a0a
commit 22213af18f
16 changed files with 1827 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Erp
{
/// <summary>
/// ERP单据查询-dto
/// </summary>
public class ErpBillQueryDto
{
public ErpBillQueryDto() { }
public ErpBillQueryDto(string accessToken)
{
this.AccessToken = accessToken;
}
/// <summary>
/// 令牌
/// </summary>
[JsonProperty(PropertyName = "ACCESSTOKEN")]
public string AccessToken { get; set; }
/// <summary>
/// 参数
/// </summary>
[JsonProperty(PropertyName = "data")]
public string Data { get; set; }
}
}

View File

@@ -0,0 +1,48 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Erp
{
/// <summary>
/// ERP单据查询-参数-dto
/// </summary>
public class ErpBillQueryParamDto
{
/// <summary>
/// 业务对象表单Id必录
/// </summary>
public string FormId { get; set; } = "STK_InStock";
/// <summary>
/// 需查询的字段key集合字符串类型格式"key1,key2,..."(必录) 注(查询单据体内码,需加单据体Key和下划线,如FEntryKey_FEntryId
/// </summary>
public string FieldKeys { get; set; } = "FBillNo,FUOM";
/// <summary>
/// 过滤条件,数组类型,如:[{"Left":"(","FieldName":"Field1","Compare":"=","Value":"111","Right":")","Logic":"AND"},{"Left":"(","FieldName":"Field2","Compare":"=","Value":"222","Right":")","Logic":""}]
/// </summary>
public string FilterString { get; set; }
/// <summary>
/// 排序字段,字符串类型(非必录)
/// </summary>
public string OrderString { get; set; }
/// <summary>
/// 返回总行数,整型(非必录)
/// </summary>
public int TopRowCount { get; set; }
/// <summary>
/// 开始行索引,整型(非必录)
/// </summary>
public int StartRow { get; set; } = 1;
/// <summary>
/// 最大行数整型不能超过10000非必录
/// </summary>
public int Limit { get; set; } = 10;
/// <summary>
/// 表单所在的子系统内码,字符串类型(非必录)
/// </summary>
public string SubSystemId { get; set; }
}
}

View File

@@ -0,0 +1,24 @@
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;
namespace WMS.Web.Core.Dto.Erp.Purchase
{
/// <summary>
/// erp-采购入库-返回数据源
/// </summary>
[Serializable]
public class ErpPurchaseInStockResultDto
{
/// <summary>
/// 单据编号
/// </summary>
public string BillNo { get; set; }
/// <summary>
/// 物料规格信号
/// </summary>
public string Specifications { get; set; }
}
}