feat: 接入ERP成品发货出库流程
This commit is contained in:
1 parent
66a1f60428
commit
7c2722c88d
25 files changed
+2547
-22
No files matched your search
@@ -10,6 +10,7 @@ namespace HHWMS.Web.Models
|
||||
public class InventoryTransaction : BasePoco
|
||||
{
|
||||
public const string ErpOtherOutBillType = "AddOtherOut";
|
||||
public const string ErpSaleOutBillType = "AddSaleOut";
|
||||
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP成品出库请求
|
||||
/// </summary>
|
||||
public class AddSaleOutRequest
|
||||
{
|
||||
public AddSaleOutMain Main { get; set; }
|
||||
|
||||
public List<AddSaleOutDetail> Details { get; set; }
|
||||
}
|
||||
|
||||
public class AddSaleOutMain
|
||||
{
|
||||
public string ErpCode { get; set; }
|
||||
|
||||
public string OutCode { get; set; }
|
||||
|
||||
public string WhCode { get; set; }
|
||||
|
||||
public string Maker { get; set; }
|
||||
}
|
||||
|
||||
public class AddSaleOutDetail
|
||||
{
|
||||
public long DLsID { get; set; }
|
||||
|
||||
public string InvCode { get; set; }
|
||||
|
||||
public decimal OutQty { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP发货通知单查询请求
|
||||
/// </summary>
|
||||
public class LoadDispatchRequest
|
||||
{
|
||||
public string ErpCode { get; set; }
|
||||
|
||||
public int BReturnFlag { get; set; }
|
||||
|
||||
public string DLCode { get; set; }
|
||||
|
||||
public string InvCode { get; set; }
|
||||
|
||||
public string InvName { get; set; }
|
||||
|
||||
public string InvDefine1 { get; set; }
|
||||
|
||||
public string InvDefine4 { get; set; }
|
||||
|
||||
public string CusCode { get; set; }
|
||||
|
||||
public string CusName { get; set; }
|
||||
|
||||
public string BeginCreateDate { get; set; }
|
||||
|
||||
public string EndCreateDate { get; set; }
|
||||
|
||||
public int Size { get; set; }
|
||||
|
||||
public int Page { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace HHWMS.Web.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// ERP发货通知单查询响应
|
||||
/// </summary>
|
||||
public class LoadDispatchResponse
|
||||
{
|
||||
public List<DispatchItem> Data { get; set; }
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public int Code { get; set; }
|
||||
|
||||
public string Msg { get; set; }
|
||||
}
|
||||
|
||||
public class DispatchItem
|
||||
{
|
||||
public string DLCode { get; set; }
|
||||
|
||||
public int BReturnFlag { get; set; }
|
||||
|
||||
public DateTime? CreateDate { get; set; }
|
||||
|
||||
public string ErpCode { get; set; }
|
||||
|
||||
public string ExchName { get; set; }
|
||||
|
||||
public decimal? ExchRate { get; set; }
|
||||
|
||||
public string CusCode { get; set; }
|
||||
|
||||
public string CusName { get; set; }
|
||||
|
||||
public string InvCode { get; set; }
|
||||
|
||||
public string InvName { get; set; }
|
||||
|
||||
public decimal DeliveryQty { get; set; }
|
||||
|
||||
public decimal FOutQuantity { get; set; }
|
||||
|
||||
public decimal? TaxUnitPrice { get; set; }
|
||||
|
||||
public decimal? DeliveryMoney { get; set; }
|
||||
|
||||
public string InvDefine1 { get; set; }
|
||||
|
||||
public string InvDefine4 { get; set; }
|
||||
|
||||
public long DLsID { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,9 @@ namespace HHWMS.Web.Models
|
||||
[Display(Name = "Ship.ShipmentCode")]
|
||||
public int HeaderId { get; set; }
|
||||
|
||||
[Display(Name = "ERP发货明细ID", Description = "ERP发货通知单表体明细ID")]
|
||||
public long? DLsID { get; set; }
|
||||
|
||||
[Display(Name = "Task.ZoneCode", Description = "库区")]
|
||||
[StringLength(50, ErrorMessage = "Validate.{0}stringmax{1}")]
|
||||
public string ZoneCode { get; set; }
|
||||
|
||||
Reference in new issue
Block a user