136 lines
3.9 KiB
C#
136 lines
3.9 KiB
C#
using Newtonsoft.Json;
|
||
using System;
|
||
|
||
public class CustodyInbound
|
||
{
|
||
/// <summary>
|
||
/// 物资数量(单位:台)
|
||
/// </summary>
|
||
[JsonProperty("materialQuantity")]
|
||
public int MaterialQuantity { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 物资名称(示例:10KV变压器)
|
||
/// </summary>
|
||
[JsonProperty("materialName")]
|
||
public string MaterialName { get; set; } = "10KV变压器";
|
||
|
||
/// <summary>
|
||
/// 物料编码(示例:500007396)
|
||
/// </summary>
|
||
[JsonProperty("materialCode")]
|
||
public string MaterialCode { get; set; } = "500007396";
|
||
|
||
/// <summary>
|
||
/// 物资描述(示例:10kV变压器,400KVA,普通,硅钢片,油浸)
|
||
/// </summary>
|
||
[JsonProperty("materialDescription")]
|
||
public string MaterialDescription { get; set; } = "10kV变压器,400KVA,普通,硅钢片,油浸";
|
||
|
||
/// <summary>
|
||
/// 暂存区域(示例:入库待检区)
|
||
/// </summary>
|
||
[JsonProperty("temporaryStorageArea")]
|
||
public string TemporaryStorageArea { get; set; } = "入库待检区";
|
||
|
||
/// <summary>
|
||
/// 入库单据(示例:《退出退役资产保管委托申请单》《技术鉴定报告》)
|
||
/// </summary>
|
||
[JsonProperty("entryDocuments")]
|
||
public string EntryDocuments { get; set; } = "《退出退役资产保管委托申请单》《技术鉴定报告》";
|
||
|
||
/// <summary>
|
||
/// 存放区域(示例:货架区)
|
||
/// </summary>
|
||
[JsonProperty("storageArea")]
|
||
public string StorageArea { get; set; } = "货架区";
|
||
|
||
/// <summary>
|
||
/// 仓位编号(格式:G01-010101)
|
||
/// </summary>
|
||
[JsonProperty("binNumber")]
|
||
public string BinNumber { get; set; } = "G01-010101";
|
||
|
||
/// <summary>
|
||
/// 工厂代码(示例:11D0)
|
||
/// </summary>
|
||
[JsonProperty("plantCode")]
|
||
public string PlantCode { get; set; } = "11D0";
|
||
|
||
/// <summary>
|
||
/// 物资批次号(示例:2025D02001)
|
||
/// </summary>
|
||
[JsonProperty("batchNumber")]
|
||
public string BatchNumber { get; set; } = "2025D02001";
|
||
|
||
/// <summary>
|
||
/// 库存地点(示例:国网常州供电公司青龙仓库(HDA1))
|
||
/// </summary>
|
||
[JsonProperty("inventoryLocation")]
|
||
public string InventoryLocation { get; set; } = "国网常州供电公司青龙仓库(HDA1)";
|
||
|
||
/// <summary>
|
||
/// 仓库编号(示例:DA1)
|
||
/// </summary>
|
||
[JsonProperty("warehouseNumber")]
|
||
public string WarehouseNumber { get; set; } = "DA1";
|
||
|
||
/// <summary>
|
||
/// 仓储单号(示例:DA1-2025-001)
|
||
/// </summary>
|
||
[JsonProperty("storageDocument")]
|
||
public string StorageDocument { get; set; } = "DA1-2025-001";
|
||
|
||
/// <summary>
|
||
/// 移动类型(示例:X04)
|
||
/// </summary>
|
||
[JsonProperty("movementType")]
|
||
public string MovementType { get; set; } = "X04";
|
||
|
||
/// <summary>
|
||
/// 库存变动明细
|
||
/// </summary>
|
||
[JsonProperty("inventoryChange")]
|
||
public InventoryChange Change { get; set; } = new InventoryChange();
|
||
|
||
/// <summary>
|
||
/// 凭证日期(ISO 8601格式)
|
||
/// </summary>
|
||
[JsonProperty("documentDate")]
|
||
public DateTime DocumentDate { get; set; } = DateTime.Now;
|
||
|
||
/// <summary>
|
||
/// 库管员(示例:张三)
|
||
/// </summary>
|
||
[JsonProperty("warehouseKeeper")]
|
||
public string WarehouseKeeper { get; set; } = "张三";
|
||
|
||
/// <summary>
|
||
/// 仓库主管(示例:李四)
|
||
/// </summary>
|
||
[JsonProperty("warehouseSupervisor")]
|
||
public string WarehouseSupervisor { get; set; } = "李四";
|
||
}
|
||
|
||
public class InventoryChange
|
||
{
|
||
/// <summary>
|
||
/// 期初库存数量
|
||
/// </summary>
|
||
[JsonProperty("initialQuantity")]
|
||
public int InitialQuantity { get; set; } = 0;
|
||
|
||
/// <summary>
|
||
/// 收入数量
|
||
/// </summary>
|
||
[JsonProperty("incomeQuantity")]
|
||
public int IncomeQuantity { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 发出数量
|
||
/// </summary>
|
||
[JsonProperty("issueQuantity")]
|
||
public int IssueQuantity { get; set; } = 0;
|
||
}
|
||
|