IDIS.Model.YL106/IDIS.YL106.Model/Src/Object_Product.cs

57 lines
1.6 KiB
C#
Raw Normal View History

2024-05-04 16:11:53 +08:00
using System.ComponentModel;
using IDIS.Model;
using Newtonsoft.Json;
2024-05-11 20:32:19 +08:00
namespace IDIS.YL106.Model
2024-05-04 16:11:53 +08:00
{
/// <summary>
2024-05-11 20:32:19 +08:00
/// 实体,用于描述产品的信息
2024-05-04 16:11:53 +08:00
/// </summary>
2024-05-11 20:32:19 +08:00
public record Object_Product:IDIS_Model
{
/// <summary>
/// 产品名称
/// </summary>
[DisplayName("产品名称")]
[JsonProperty("product_name")]
public string ProductName { get; set; } = string.Empty;
/// <summary>
/// 产品类型
/// </summary>
[DisplayName("产品类型")]
[JsonProperty("product_type")]
public string ProductType { get; set; }= string.Empty;
/// <summary>
/// 订单标识
/// </summary>
[DisplayName("订单标识")]
[JsonProperty("order_handle")]
public string OrderHandle { get; set; }= string.Empty;
/// <summary>
/// 生产日期
/// </summary>
[DisplayName("生产日期")]
[JsonProperty("manufacture_date")]
public DateTime ManufactureDate { get; set; } = DateTime.MinValue;
/// <summary>
/// 批次号
/// </summary>
[DisplayName("批次号")]
[JsonProperty("batch_number")]
public string BatchNumber { get; set; }= string.Empty;
/// <summary>
/// 注意事项 (默认值: "请勿将移动电源放入水中")
/// </summary>
[DisplayName("注意事项")]
[JsonProperty("note")]
public string Note { get; set; } = "请不要在用力弯曲或者误食笔芯";
2024-05-10 02:59:49 +08:00
2024-05-04 16:11:53 +08:00
2024-05-11 20:32:19 +08:00
}
2024-05-04 16:11:53 +08:00
}