You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.1 KiB

8 months ago
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.ComponentModel.DataAnnotations.Schema;
  4. using System.Text.Json.Serialization;
  5. namespace Mirle.Component.Database.Model.WES
  6. {
  7. /// <summary>
  8. /// 即時物料資訊類別
  9. /// </summary>
  10. [Table("CUR_MATERIAL_DATA")]
  11. public class CurMaterialDataDto
  12. {
  13. /// <summary>
  14. /// 儲存區編號
  15. /// </summary>
  16. /// <remarks>STG[Floor][Sequence * 2]</remarks>
  17. [Column(Name = "STORAGE_ID")]
  18. [Required, Key, StringLength(6), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(1)]
  19. public string STORAGE_ID { get; set; }
  20. /// <summary>
  21. /// 儲位編號
  22. /// </summary>
  23. [Column(Name = "LOC_ID")]
  24. [Required, Key, StringLength(9), JsonPropertyName("LOC_ID"), JsonPropertyOrder(2)]
  25. public string LOC_ID { get; set; }
  26. /// <summary>
  27. /// 命令序號
  28. /// </summary>
  29. /// <remarks>
  30. /// Warehouse Executeing System Command Sequence Number <br/>
  31. /// W[YYYYMMDDHH][Sequence * 5] <br/>
  32. /// </remarks>
  33. [Column(Name = "CMD_SNO")]
  34. [Required, StringLength(20), JsonPropertyName("CMD_SNO"), JsonPropertyOrder(3)]
  35. public string CMD_SNO { get; set; }
  36. /// <summary>
  37. /// 載具編號
  38. /// </summary>
  39. /// <remarks>棧板編號/物流箱號</remarks>
  40. [Column(Name = "CARRIER_ID")]
  41. [Required, StringLength(64), JsonPropertyName("CARRIER_ID"), JsonPropertyOrder(4)]
  42. public string CARRIER_ID { get; set; }
  43. /// <summary>
  44. /// 物料編號
  45. /// </summary>
  46. /// <remarks>M[Product Type][Sequnece * 2]</remarks>
  47. [Column(Name = "MATERILA_ID")]
  48. [Required, StringLength(30), JsonPropertyName("MATERILA_ID"), JsonPropertyOrder(5)]
  49. public string MATERILA_ID { get; set; }
  50. /// <summary>
  51. /// 物料批號
  52. /// </summary>
  53. [Column(Name = "MATERILA_BATCH")]
  54. [JsonPropertyName("MATERILA_BATCH"), JsonPropertyOrder(6)]
  55. public int MATERILA_BATCH { get; set; }
  56. /// <summary>
  57. /// 物料數量
  58. /// </summary>
  59. [Column(Name = "MATERIAL_QUANTITY")]
  60. [Required, JsonPropertyName("MATERIAL_QUANTITY"), JsonPropertyOrder(7)]
  61. public int MATERIAL_QUANTITY { get; set; } = 1;
  62. /// <summary>
  63. /// 物料重量 (KG)
  64. /// </summary>
  65. [Column(Name = "MATERIAL_WEIGHT")]
  66. [JsonPropertyName("MATERIAL_WEIGHT"), JsonPropertyOrder(8)]
  67. public double MATERIAL_WEIGHT { get; set; }
  68. /// <summary>
  69. /// 程式名稱
  70. /// </summary>
  71. [Column(Name = "PROGRAM_NAME")]
  72. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(9)]
  73. public string PROGRAM_NAME { get; set; }
  74. /// <summary>
  75. /// 更新時間
  76. /// </summary>
  77. [Column(Name = "UPDATE_TIME")]
  78. [Required, JsonPropertyName("UPDATE_TIME"), JsonPropertyOrder(10)]
  79. public DateTime UPDATE_TIME { get; set; } = DateTime.Now;
  80. }
  81. }