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.

54 lines
1.8 KiB

8 months ago
  1. using System.ComponentModel.DataAnnotations;
  2. using System.ComponentModel.DataAnnotations.Schema;
  3. using System.Text.Json.Serialization;
  4. namespace Mirle.Component.Database.Model.WES
  5. {
  6. /// <summary>
  7. /// 儲存區基本資料類別
  8. /// </summary>
  9. [Table("CFG_STORAGE")]
  10. public class CfgStorageDto : CommonDto
  11. {
  12. /// <summary>
  13. /// 倉庫編號
  14. /// </summary>
  15. /// <remarks>WHS[Sequence * 2]</remarks>
  16. [Column(Name = "WAREHOUSE_ID")]
  17. [Required, Key, StringLength(5), JsonPropertyName("WAREHOUSE_ID"), JsonPropertyOrder(1)]
  18. public string WAREHOUSE_ID { get; set; }
  19. /// <summary>
  20. /// 儲存區編號
  21. /// </summary>
  22. /// <remarks>
  23. /// STAT[Floor][Sequence * 2] <br/>
  24. /// AUTO[Floor][Sequence * 2] <br/>
  25. /// TEMP[Floor][Sequence * 2] <br/>
  26. /// </remarks>
  27. [Column(Name = "STORAGE_ID")]
  28. [Required, Key, StringLength(7), JsonPropertyName("STORAGE_ID"), JsonPropertyOrder(2)]
  29. public string STORAGE_ID { get; set; }
  30. /// <summary>
  31. /// 儲存區名稱
  32. /// </summary>
  33. [Column(Name = "STORAGE_NAME")]
  34. [StringLength(30), JsonPropertyName("STORAGE_NAME"), JsonPropertyOrder(3)]
  35. public string STORAGE_NAME { get; set; }
  36. /// <summary>
  37. /// 儲存區敘述
  38. /// </summary>
  39. [Column(Name = "STORAGE_DESC")]
  40. [StringLength(50), JsonPropertyName("STORAGE_DESC"), JsonPropertyOrder(4)]
  41. public string STORAGE_DESC { get; set; }
  42. /// <summary>
  43. /// 儲存區類別
  44. /// </summary>
  45. /// <value>
  46. /// 0 = Station
  47. /// 1 = Warehouse
  48. /// </value>
  49. [Column(Name = "STORAGE_TYPE")]
  50. [Required, JsonPropertyName("STORAGE_TYPE"), JsonPropertyOrder(5)]
  51. public int STORAGE_TYPE { get; set; }
  52. }
  53. }