139 lines
4.4 KiB
C#
139 lines
4.4 KiB
C#
using Newtonsoft.Json;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Text;
|
||
|
||
namespace WMS.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>
|
||
/// 库存状态 KCZT001
|
||
/// </summary>
|
||
[JsonProperty("FStockStatusId")]
|
||
public ErpNumberDto FStockStatusId { get; set; } = new ErpNumberDto("KCZT001");
|
||
/// <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; }
|
||
}
|
||
}
|