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.

71 lines
2.5 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_LOC_STATUS")]
  11. public class CurLocStatusDto
  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. /// <value>
  30. /// N = 空庫位 <br/>
  31. /// E = 空棧板 <br/>
  32. /// S = 庫存庫位 <br/>
  33. /// I = 入庫預約 <br/>
  34. /// O = 出庫預約 <br/>
  35. /// C = 盤點預約 <br/>
  36. /// P = 盤點調帳 <br/>
  37. /// X = 禁用庫位 <br/>
  38. /// L = 鎖定 (Double Deep) <br/>
  39. /// D = 二重格儲位 <br/>
  40. /// </value>
  41. [Column(Name = "LOC_STATUS")]
  42. [Required, Key, StringLength(2), JsonPropertyName("LOC_STATUS"), JsonPropertyOrder(3)]
  43. public string LOC_STATUS { get; set; } = "N";
  44. /// <summary>
  45. /// 載具編號
  46. /// </summary>
  47. /// <remarks>棧板編號/物流箱號</remarks>
  48. [Column(Name = "CARRIER_ID")]
  49. [Required, StringLength(64), JsonPropertyName("CARRIER_ID"), JsonPropertyOrder(4)]
  50. public string CARRIER_ID { get; set; }
  51. /// <summary>
  52. /// 程式名稱
  53. /// </summary>
  54. [Column(Name = "PROGRAM_NAME")]
  55. [Required, StringLength(30), JsonPropertyName("PROGRAM_NAME"), JsonPropertyOrder(5)]
  56. public string PROGRAM_NAME { get; set; }
  57. /// <summary>
  58. /// 更新人員
  59. /// </summary>
  60. [Column(Name = "UPDATE_USER")]
  61. [Required, StringLength(30), JsonPropertyName("UPDATE_USER"), JsonPropertyOrder(6)]
  62. public string UPDATE_USER { get; set; }
  63. /// <summary>
  64. /// 更新時間
  65. /// </summary>
  66. [Column(Name = "UPDATE_TIME")]
  67. [Required, JsonPropertyName("UPDATE_TIME"), JsonPropertyOrder(7)]
  68. public DateTime UPDATE_TIME { get; set; } = DateTime.Now;
  69. }
  70. }