Tz2/Assets/Scripts/Dto/CustodyInbound‌ ‌.cs

136 lines
3.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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;
}