添加项目文件。
This commit is contained in:
27
src/BarCode.Web.Core/Dto/Erp/Customer/ErpCustomerDto.cs
Normal file
27
src/BarCode.Web.Core/Dto/Erp/Customer/ErpCustomerDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.Customer
|
||||
{
|
||||
/// <summary>
|
||||
/// 客户
|
||||
/// </summary>
|
||||
public class ErpCustomerDto
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
15
src/BarCode.Web.Core/Dto/Erp/ErpBaseDto.cs
Normal file
15
src/BarCode.Web.Core/Dto/Erp/ErpBaseDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
public class ErpBaseDto
|
||||
{
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Number { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
40
src/BarCode.Web.Core/Dto/Erp/ErpBillQueryDto.cs
Normal file
40
src/BarCode.Web.Core/Dto/Erp/ErpBillQueryDto.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP:单据查询-dto
|
||||
/// </summary>
|
||||
public class ErpBillQueryDto
|
||||
{
|
||||
public ErpBillQueryDto() { }
|
||||
|
||||
public ErpBillQueryDto(string accessToken)
|
||||
{
|
||||
this.AccessToken = accessToken;
|
||||
}
|
||||
public ErpBillQueryDto(string accessToken,string formid)
|
||||
{
|
||||
this.AccessToken = accessToken;
|
||||
this.FormId = formid;
|
||||
}
|
||||
/// <summary>
|
||||
/// 令牌
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "ACCESSTOKEN")]
|
||||
public string AccessToken { get; set; }
|
||||
/// <summary>
|
||||
/// 参数
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "data")]
|
||||
public string Data { get; set; }
|
||||
/// <summary>
|
||||
/// 参数(保存提交审核formId在外层)
|
||||
/// </summary>
|
||||
[JsonProperty(PropertyName = "formid")]
|
||||
public string FormId { get; set; }
|
||||
}
|
||||
}
|
||||
55
src/BarCode.Web.Core/Dto/Erp/ErpBillQueryParamDto.cs
Normal file
55
src/BarCode.Web.Core/Dto/Erp/ErpBillQueryParamDto.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP:单据查询-参数-dto
|
||||
/// </summary>
|
||||
public class ErpBillQueryParamDto
|
||||
{
|
||||
public ErpBillQueryParamDto() { }
|
||||
|
||||
public ErpBillQueryParamDto(string formId)
|
||||
{
|
||||
this.FormId = formId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 业务对象表单Id(必录)
|
||||
/// </summary>
|
||||
public string FormId { get; set; }
|
||||
/// <summary>
|
||||
/// 需查询的字段key集合,字符串类型,格式:"key1,key2,..."(必录) 注(查询单据体内码,需加单据体Key和下划线,如:FEntryKey_FEntryId)
|
||||
/// </summary>
|
||||
public string FieldKeys { get; set; }
|
||||
/// <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; } = 0;
|
||||
/// <summary>
|
||||
/// 最大行数,整型,不能超过10000(非必录)
|
||||
/// </summary>
|
||||
public int Limit { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 表单所在的子系统内码,字符串类型(非必录)
|
||||
/// </summary>
|
||||
public string SubSystemId { get; set; }
|
||||
}
|
||||
}
|
||||
92
src/BarCode.Web.Core/Dto/Erp/ErpInStockResultDto.cs
Normal file
92
src/BarCode.Web.Core/Dto/Erp/ErpInStockResultDto.cs
Normal file
@@ -0,0 +1,92 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP:入库单-统一响应对象
|
||||
/// </summary>
|
||||
public class ErpInStockResultDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
public string BillNo { get; set; }
|
||||
/// <summary>
|
||||
/// 组织
|
||||
/// </summary>
|
||||
public int OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// erp的明细ID
|
||||
/// </summary>
|
||||
public int ErpDetailId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商
|
||||
/// </summary>
|
||||
public int SupplierId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
/// </summary>
|
||||
public string MaterialNumber { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 仓库ID
|
||||
/// </summary>
|
||||
public int StockId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 仓库code
|
||||
/// </summary>
|
||||
public string StockCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public decimal Qty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出厂价
|
||||
/// </summary>
|
||||
public decimal FactoryPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 已交数量(对应金蝶的已交数量-对应物料),目前只有采购订单有
|
||||
/// </summary>
|
||||
public decimal DeliveredQty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 明细备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 单据类型
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 销售订单
|
||||
/// </summary>
|
||||
public string SaleBillNo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 客户编码
|
||||
/// </summary>
|
||||
public string CustomerCode { get; set; }
|
||||
}
|
||||
}
|
||||
30
src/BarCode.Web.Core/Dto/Erp/ErpInventoryDto.cs
Normal file
30
src/BarCode.Web.Core/Dto/Erp/ErpInventoryDto.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
public class ErpInventoryDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
/// </summary>
|
||||
public string MaterialNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库
|
||||
/// </summary>
|
||||
public string StockCode { get; set; }
|
||||
/// <summary>
|
||||
/// 子仓库(跟金蝶交互字段)
|
||||
/// </summary>
|
||||
public int Erp_SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public decimal Qty { get; set; }
|
||||
}
|
||||
}
|
||||
50
src/BarCode.Web.Core/Dto/Erp/ErpNumberDto.cs
Normal file
50
src/BarCode.Web.Core/Dto/Erp/ErpNumberDto.cs
Normal file
@@ -0,0 +1,50 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.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; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 盘点子仓库
|
||||
/// </summary>
|
||||
public class ErpSubStockDto
|
||||
{
|
||||
public ErpSubStockDto() { }
|
||||
public ErpSubStockDto(string stockCode, string subCode)
|
||||
{
|
||||
if (stockCode != null && stockCode.Equals("GD"))
|
||||
this.GD = new ErpNumberDto(subCode ?? "");
|
||||
if (stockCode != null && stockCode.Equals("HD"))
|
||||
this.HD = new ErpNumberDto(subCode ?? "");
|
||||
}
|
||||
/// <summary>
|
||||
/// GD仓
|
||||
/// </summary>
|
||||
[JsonProperty("FSTOCKLOCID__FF100005")]
|
||||
public ErpNumberDto GD { get; set; } = new ErpNumberDto("");
|
||||
|
||||
/// <summary>
|
||||
/// HD仓
|
||||
/// </summary>
|
||||
[JsonProperty("FSTOCKLOCID__FF100007")]
|
||||
public ErpNumberDto HD { get; set; } = new ErpNumberDto("");
|
||||
}
|
||||
}
|
||||
28
src/BarCode.Web.Core/Dto/Erp/ErpOperateDto.cs
Normal file
28
src/BarCode.Web.Core/Dto/Erp/ErpOperateDto.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// erp 提交和审核
|
||||
/// </summary>
|
||||
public class ErpOperateDto
|
||||
{
|
||||
public ErpOperateDto(string formId, string number)
|
||||
{
|
||||
this.FormId = formId;
|
||||
this.Numbers =new List<string>() { number };
|
||||
}
|
||||
/// <summary>
|
||||
/// 业务对象表单Id(必录)
|
||||
/// </summary>
|
||||
[JsonProperty("FormId")]
|
||||
public string FormId { get; set; }
|
||||
/// <summary>
|
||||
/// 单据编码
|
||||
/// </summary>
|
||||
public List<string> Numbers { get; set; }
|
||||
}
|
||||
}
|
||||
74
src/BarCode.Web.Core/Dto/Erp/ErpPurchaseInStockSaveDto.cs
Normal file
74
src/BarCode.Web.Core/Dto/Erp/ErpPurchaseInStockSaveDto.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// 修改采购入库单
|
||||
/// </summary>
|
||||
public class ErpPurchaseInStockSaveDto
|
||||
{
|
||||
public ErpPurchaseInStockSaveDto() { }
|
||||
public ErpPurchaseInStockSaveDto(string id)
|
||||
{
|
||||
this.Id = id;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 单据Id
|
||||
/// </summary>
|
||||
[JsonProperty("FID")]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 明细
|
||||
/// </summary>
|
||||
[JsonProperty("FInStockEntry")]
|
||||
public List<ErpPurchaseInStockDetailsSaveDto> Details { get; set; } = new List<ErpPurchaseInStockDetailsSaveDto>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 明细
|
||||
/// </summary>
|
||||
public class ErpPurchaseInStockDetailsSaveDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 明细Id
|
||||
/// </summary>
|
||||
[JsonProperty("FEntryID")]
|
||||
public string DetailId { get; set; }
|
||||
/// <summary>
|
||||
/// 采购订单明细Id
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string PurchaseDetailId { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[JsonProperty("FRealQty")]
|
||||
public decimal Qty { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 批号
|
||||
/// </summary>
|
||||
[JsonProperty("FLot")]
|
||||
public ErpLotSaveDto Lot { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 批号
|
||||
/// </summary>
|
||||
public class ErpLotSaveDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 批号
|
||||
/// </summary>
|
||||
[JsonProperty("FNumber")]
|
||||
public string Number { get; set; }
|
||||
}
|
||||
}
|
||||
62
src/BarCode.Web.Core/Dto/Erp/ErpPushDto.cs
Normal file
62
src/BarCode.Web.Core/Dto/Erp/ErpPushDto.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// 下推
|
||||
/// </summary>
|
||||
public class ErpPushDto
|
||||
{
|
||||
public ErpPushDto() { }
|
||||
|
||||
public ErpPushDto(string formId,List<int> detailIds,string targetFormId)
|
||||
{
|
||||
this.FormId = formId;
|
||||
//this.Numbers.Add(number);
|
||||
this.DetailsId = detailIds.ToString();
|
||||
this.TargetFormId = targetFormId;
|
||||
}
|
||||
|
||||
/// <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("TargetFormId")]
|
||||
public string TargetFormId { get; set; }
|
||||
/// <summary>
|
||||
/// 是否启用默认转换规则,布尔类型,默认false(非必录)
|
||||
/// false 需要穿 RuleId true 不需要传RuleId
|
||||
/// </summary>
|
||||
[JsonProperty("IsEnableDefaultRule")]
|
||||
public bool IsEnableDefaultRule { get; set; } = false;
|
||||
/// <summary>
|
||||
/// 转换规则内码
|
||||
/// </summary>
|
||||
[JsonProperty("RuleId")]
|
||||
public string RuleId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 保存失败时是否暂存,布尔类型,默认false(非必录) 注(暂存的单据是没有编码的)
|
||||
/// </summary>
|
||||
[JsonProperty("IsDraftWhenSaveFail")]
|
||||
public bool IsDraftWhenSaveFail { get; set; } = false;
|
||||
|
||||
}
|
||||
}
|
||||
28
src/BarCode.Web.Core/Dto/Erp/ErpSave.cs
Normal file
28
src/BarCode.Web.Core/Dto/Erp/ErpSave.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// Erp同步数据时单据头
|
||||
/// </summary>
|
||||
public class ErpSave<T>
|
||||
{
|
||||
public ErpSave(string formId,T model)
|
||||
{
|
||||
this.FormId = formId;
|
||||
this.Model = model;
|
||||
}
|
||||
/// <summary>
|
||||
/// 业务对象表单Id(必录)
|
||||
/// </summary>
|
||||
[JsonProperty("FormId")]
|
||||
public string FormId { get; set; }
|
||||
/// <summary>
|
||||
/// 单据体
|
||||
/// </summary>
|
||||
public T Model { get; set; }
|
||||
}
|
||||
}
|
||||
68
src/BarCode.Web.Core/Dto/Erp/Material/ErpMaterialDto.cs
Normal file
68
src/BarCode.Web.Core/Dto/Erp/Material/ErpMaterialDto.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// 对应金蝶,物料信息
|
||||
/// </summary>
|
||||
public class ErpMaterialDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 组织ID
|
||||
/// </summary>
|
||||
public int OrgId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料ID
|
||||
/// </summary>
|
||||
public int MaterialId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 物料名称
|
||||
/// </summary>
|
||||
public string MaterialName { get; set; }
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
/// </summary>
|
||||
public string MaterialNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 物料规格型号
|
||||
/// </summary>
|
||||
public string Specifications { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基本单位
|
||||
/// </summary>
|
||||
public int BaseUnitId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 基本单位名称
|
||||
/// </summary>
|
||||
public string BaseUnitName { get; set; }
|
||||
/// <summary>
|
||||
/// 基本单位编码
|
||||
/// </summary>
|
||||
public string BaseUnitNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 条码
|
||||
/// </summary>
|
||||
public string BarCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 是否启用批号管理
|
||||
/// </summary>
|
||||
public bool IsBatchManage { get; set; }
|
||||
/// <summary>
|
||||
/// 物料Id 32进制字符串
|
||||
/// </summary>
|
||||
public string IdConvertBar { get; set; }
|
||||
}
|
||||
}
|
||||
27
src/BarCode.Web.Core/Dto/Erp/Org/ErpOrgDto.cs
Normal file
27
src/BarCode.Web.Core/Dto/Erp/Org/ErpOrgDto.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.Org
|
||||
{
|
||||
/// <summary>
|
||||
/// 金蝶组织-基本信息
|
||||
/// </summary>
|
||||
public class ErpOrgDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.OutStock
|
||||
{
|
||||
/// <summary>
|
||||
/// 发货通知单转出库任务
|
||||
/// </summary>
|
||||
public class ErpDeliveryNoticeOutStockResultDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 来源单号
|
||||
///</summary>
|
||||
public string SourceBillNo { get; set; }
|
||||
/// <summary>
|
||||
/// 销售订单号
|
||||
///</summary>
|
||||
public string SaleBillNo { get; set; }
|
||||
/// <summary>
|
||||
/// 发货组织
|
||||
///</summary>
|
||||
public int DeliveryOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
///</summary>
|
||||
public string OrgCode { get; set; }
|
||||
/// <summary>
|
||||
/// 收货客户
|
||||
///</summary>
|
||||
public int ReceiptCustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 对应金蝶单据明细id(销售出库同步金蝶下推使用)
|
||||
/// </summary>
|
||||
public int Erp_DetailId { get; set; } = 0;
|
||||
/// <summary>
|
||||
/// 物料编码
|
||||
///</summary>
|
||||
public string MaterialNumber { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库ID
|
||||
///</summary>
|
||||
public string StockCode { get; set; }
|
||||
/// <summary>
|
||||
/// 仓位ID
|
||||
///</summary>
|
||||
public int? SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 应出库数量
|
||||
///</summary>
|
||||
public decimal AccruedQty { get; set; }
|
||||
/// <summary>
|
||||
/// 订单明细备注
|
||||
///</summary>
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间(erp那边的创建时间)
|
||||
///</summary>
|
||||
public DateTime? CreateTime { get; set; }
|
||||
/// <summary>
|
||||
/// 用来自动构建单据类型 跟OutStockType 一致
|
||||
/// </summary>
|
||||
public int Type { get; set; }
|
||||
}
|
||||
}
|
||||
94
src/BarCode.Web.Core/Dto/Erp/OutStock/ErpOutStockSaveDto.cs
Normal file
94
src/BarCode.Web.Core/Dto/Erp/OutStock/ErpOutStockSaveDto.cs
Normal file
@@ -0,0 +1,94 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.OutStock
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库单同步金蝶
|
||||
/// </summary>
|
||||
public class ErpOutStockSaveDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
[JsonProperty("BillNo")]
|
||||
public string BillNo { get; set; }
|
||||
/// <summary>
|
||||
/// 单据类型
|
||||
/// </summary>
|
||||
[JsonProperty("BillNo")]
|
||||
public string Type { get; set; }
|
||||
/// <summary>
|
||||
/// 发货组织
|
||||
///</summary>
|
||||
[JsonProperty("DeliveryOrgId")]
|
||||
public int DeliveryOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 收货客户
|
||||
///</summary>
|
||||
[JsonProperty("ReceiptCustomerId")]
|
||||
public int ReceiptCustomerId { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间(出库时间)
|
||||
/// </summary>
|
||||
[JsonProperty("CreateTime")]
|
||||
public DateTime CreateTime { get; set; } = DateTime.Now;
|
||||
/// <summary>
|
||||
/// 结算币别默认为: 人民币
|
||||
///</summary>
|
||||
[JsonProperty("Currency")]
|
||||
public string Currency { get; set; }
|
||||
/// <summary>
|
||||
/// 销售组织取对应发货通知单的销售组织
|
||||
///</summary>
|
||||
[JsonProperty("Currency")]
|
||||
public string SalOrg { get; set; }
|
||||
/// <summary>
|
||||
/// 销售部门取对应发货通知单的销售部门
|
||||
///</summary>
|
||||
[JsonProperty("Currency")]
|
||||
public string SalDept { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ErpOutStockSaveDetailsDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料Id
|
||||
///</summary>
|
||||
[JsonProperty("MaterialId")]
|
||||
public string MaterialId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库ID
|
||||
///</summary>
|
||||
[JsonProperty("StockId")]
|
||||
public string StockId { get; set; }
|
||||
/// <summary>
|
||||
/// 出库数量
|
||||
///</summary>
|
||||
[JsonProperty("UnitId")]
|
||||
public string UnitId { get; set; }
|
||||
/// <summary>
|
||||
/// 出库数量
|
||||
///</summary>
|
||||
[JsonProperty("Qty")]
|
||||
public decimal Qty { get; set; }
|
||||
/// <summary>
|
||||
/// 应发数量,取对应发货通知单的销售数量
|
||||
///</summary>
|
||||
[JsonProperty("YFQty")]
|
||||
public string YFQty { get; set; }
|
||||
/// <summary>
|
||||
/// 单价 取对应发货通知单对应物料编码行的 单价
|
||||
///</summary>
|
||||
[JsonProperty("Price")]
|
||||
public string Price { get; set; }
|
||||
/// <summary>
|
||||
///含税单价 取对应发货通知单对应物料编码行的 含税单价
|
||||
///</summary>
|
||||
[JsonProperty("HSPrice")]
|
||||
public string HSPrice { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.OutStock
|
||||
{
|
||||
/// <summary>
|
||||
/// 修改销售出库单
|
||||
/// </summary>
|
||||
public class ErpSalOutStockSaveDto
|
||||
{
|
||||
public ErpSalOutStockSaveDto() { }
|
||||
public ErpSalOutStockSaveDto(string id)
|
||||
{
|
||||
this.Id = id;
|
||||
}
|
||||
/// <summary>
|
||||
/// 单据Id
|
||||
/// </summary>
|
||||
[JsonProperty("FID")]
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// 明细
|
||||
/// </summary>
|
||||
[JsonProperty("FEntity")]
|
||||
public List<ErpSalOutStockDetailsSaveDto> Details { get; set; } = new List<ErpSalOutStockDetailsSaveDto>();
|
||||
}
|
||||
public class ErpSalOutStockDetailsSaveDto
|
||||
{
|
||||
public ErpSalOutStockDetailsSaveDto(){}
|
||||
/// <summary>
|
||||
/// 明细Id
|
||||
/// </summary>
|
||||
[JsonProperty("FENTRYID")]
|
||||
public string DetailId { get; set; }
|
||||
/// <summary>
|
||||
/// 发货通知单明细Id
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public string DeliveryNoticeDetailId { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
[JsonProperty("FRealQty")]
|
||||
public decimal Qty { get; set; }
|
||||
}
|
||||
}
|
||||
29
src/BarCode.Web.Core/Dto/Erp/PullDownStrResponse.cs
Normal file
29
src/BarCode.Web.Core/Dto/Erp/PullDownStrResponse.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// key为string 下拉列表对象
|
||||
/// </summary>
|
||||
public class PullDownStrResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 名字
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 是否默认选中
|
||||
/// </summary>
|
||||
public bool IsDefault { get; set; } = false;
|
||||
}
|
||||
}
|
||||
33
src/BarCode.Web.Core/Dto/Erp/Stock/ErpStockDto.cs
Normal file
33
src/BarCode.Web.Core/Dto/Erp/Stock/ErpStockDto.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库信息
|
||||
/// </summary>
|
||||
public class ErpStockDto
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 名字
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 业务组织(使用组织)
|
||||
/// </summary>
|
||||
public int OrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 业务组织(使用组织)编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
}
|
||||
}
|
||||
37
src/BarCode.Web.Core/Dto/Erp/Stock/ErpSubStockDto.cs
Normal file
37
src/BarCode.Web.Core/Dto/Erp/Stock/ErpSubStockDto.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp
|
||||
{
|
||||
/// <summary>
|
||||
/// 子仓库信息
|
||||
/// </summary>
|
||||
public class Erp_SubStockDto
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 名字
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 业务组织(使用组织)
|
||||
/// </summary>
|
||||
public int OrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 业务组织(使用组织)编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库编码
|
||||
/// </summary>
|
||||
public string StockCode { get; set; }
|
||||
}
|
||||
}
|
||||
31
src/BarCode.Web.Core/Dto/Erp/Supplier/ErpSupplierDto.cs
Normal file
31
src/BarCode.Web.Core/Dto/Erp/Supplier/ErpSupplierDto.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.Supplier
|
||||
{
|
||||
/// <summary>
|
||||
/// erp供应商基础数据
|
||||
/// </summary>
|
||||
public class ErpSupplierDto
|
||||
{
|
||||
/// <summary>
|
||||
/// ID
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 编码
|
||||
/// </summary>
|
||||
public string Number { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 名称
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
/// <summary>
|
||||
/// 组织编码
|
||||
/// </summary>
|
||||
public string OrgCode { get; set; }
|
||||
}
|
||||
}
|
||||
138
src/BarCode.Web.Core/Dto/Erp/TakeStock/ErpTakeStockSaveDto.cs
Normal file
138
src/BarCode.Web.Core/Dto/Erp/TakeStock/ErpTakeStockSaveDto.cs
Normal file
@@ -0,0 +1,138 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Core.Dto.Erp.TakeStock
|
||||
{
|
||||
/// <summary>
|
||||
/// 盘点单
|
||||
/// </summary>
|
||||
public class ErpTakeStockSaveDto
|
||||
{
|
||||
|
||||
public ErpTakeStockSaveDto() { }
|
||||
/*
|
||||
* 单据编号:FBillNo
|
||||
日期:FDate (必填项)
|
||||
|
||||
库存组织:FStockOrgId (必填项)
|
||||
单据类型:FBillTypeID (必填项)
|
||||
货主类型:FOwnerTypeIdHead (必填项) BD_OwnerOrg
|
||||
|
||||
物料编码:FMaterialId (必填项)
|
||||
单位:FUnitID (必填项)
|
||||
仓库:FStockId (必填项)
|
||||
库存状态:FStockStatusId (必填项)
|
||||
货主类型:FOwnerTypeId (必填项) BD_OwnerOrg
|
||||
货主:FOwnerid (必填项)
|
||||
保管者类型:FKeeperTypeId (必填项) BD_KeeperOrg
|
||||
保管者:FKeeperId (必填项)
|
||||
子仓库:FStockLocId
|
||||
*/
|
||||
|
||||
/// <summary>
|
||||
/// 单据类型(标准盘亏单; 标准盘盈单 PY01_SYS) 盘亏 PK01_SYS
|
||||
/// </summary>
|
||||
[JsonProperty("FBillTypeID")]
|
||||
public ErpNumberDto Type { get; set; }
|
||||
/// <summary>
|
||||
/// 库存组织 (取仓库对应的库存组织)
|
||||
/// </summary>
|
||||
[JsonProperty("FStockOrgId")]
|
||||
public ErpNumberDto StockOrgId { get; set; }
|
||||
/// <summary>
|
||||
/// 货主类型: 默认为业务组织 BD_OwnerOrg
|
||||
/// </summary>
|
||||
[JsonProperty("FOwnerTypeIdHead")]
|
||||
public string FOwnerTypeIdHead { get; set; } = "BD_OwnerOrg";
|
||||
/// <summary>
|
||||
/// 单据编号
|
||||
/// </summary>
|
||||
[JsonProperty("FBillNo")]
|
||||
public string BillNo { get; set; }
|
||||
/// <summary>
|
||||
/// 盘点日期
|
||||
/// </summary>
|
||||
[JsonProperty("FDate")]
|
||||
public DateTime Date { get; set; }
|
||||
/// <summary>
|
||||
/// 明细
|
||||
/// </summary>
|
||||
[JsonProperty("FBillEntry")]
|
||||
public List<ErpTakeStockDetailsSaveDto> Details = new List<ErpTakeStockDetailsSaveDto>();
|
||||
}
|
||||
public class ErpTakeStockDetailsSaveDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存状态 KCZT01_SYS
|
||||
/// </summary>
|
||||
[JsonProperty("FStockStatusId")]
|
||||
public ErpNumberDto FStockStatusId { get; set; } = new ErpNumberDto("KCZT01_SYS");
|
||||
/// <summary>
|
||||
/// 货主类型: 默认为业务组织 BD_OwnerOrg
|
||||
/// </summary>
|
||||
[JsonProperty("FOwnerTypeId")]
|
||||
public string FOwnerTypeId { get; set; } = "BD_OwnerOrg";
|
||||
/// <summary>
|
||||
/// 取仓库对应的货主信息 货主: 等于库存组织
|
||||
/// </summary>
|
||||
[JsonProperty("FOwnerid")]
|
||||
public ErpNumberDto FOwnerid { get; set; }
|
||||
/// <summary>
|
||||
/// 保管者类型
|
||||
/// </summary>
|
||||
[JsonProperty("FKeeperTypeId")]
|
||||
public string FKeeperTypeId { get; set; } = "BD_KeeperOrg";
|
||||
/// <summary>
|
||||
/// 保管者 仓库”库存组织”
|
||||
/// </summary>
|
||||
[JsonProperty("FKeeperId")]
|
||||
public ErpNumberDto FKeeperId { get; set; }
|
||||
/// <summary>
|
||||
/// 物料ID
|
||||
/// </summary>
|
||||
[JsonProperty("FMaterialId")]
|
||||
public ErpNumberDto MaterialId { get; set; }
|
||||
/// <summary>
|
||||
/// 单位ID
|
||||
/// </summary>
|
||||
[JsonProperty("FUnitID")]
|
||||
public ErpNumberDto UnitId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库ID
|
||||
/// </summary>
|
||||
[JsonProperty("FStockId")]
|
||||
public ErpNumberDto StockId { get; set; }
|
||||
/// <summary>
|
||||
/// 仓位ID
|
||||
/// </summary>
|
||||
[JsonProperty("FStockLocId")]
|
||||
public ErpSubStockDto SubStockId { get; set; }
|
||||
/// <summary>
|
||||
/// 盘点前数量(wms系统数量)
|
||||
/// </summary>
|
||||
[JsonProperty("FAcctQty")]
|
||||
public decimal BeforeQty { get; set; }
|
||||
/// <summary>
|
||||
/// 盘点实际数量(实际仓库数量)
|
||||
/// </summary>
|
||||
[JsonProperty("FCountQty")]
|
||||
public decimal AfterQty { get; set; }
|
||||
/// <summary>
|
||||
/// 盘盈数量
|
||||
/// </summary>
|
||||
[JsonProperty("FGainQty")]
|
||||
public decimal FinalQty { get; set; }
|
||||
/// <summary>
|
||||
/// 盘亏数量
|
||||
/// </summary>
|
||||
[JsonProperty("FLossQty")]
|
||||
public decimal LossQty { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
[JsonProperty("Fnote")]
|
||||
public string Fnote { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user