PurOrdMaster.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. using Microsoft.EntityFrameworkCore;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Business.Domain
  9. {
  10. /// <summary>
  11. /// 采购订单主表
  12. /// </summary>
  13. [Comment("采购订单主表")]
  14. public class PurOrdMaster
  15. {
  16. /// <summary>
  17. /// 主键
  18. /// </summary>
  19. [Comment("主键")]
  20. [Key]
  21. public int RecID { get; set; }
  22. /// <summary>
  23. /// 域名
  24. /// </summary>
  25. [Comment("域名")]
  26. public string Domain { get; set; }
  27. /// <summary>
  28. /// 租户ID
  29. /// </summary>
  30. [Comment("租户ID")]
  31. public long? tenant_id { get; set; }
  32. /// <summary>
  33. /// 类型
  34. /// </summary>
  35. [Comment("类型")]
  36. public string Potype { get; set; }
  37. /// <summary>
  38. /// PO单号
  39. /// </summary>
  40. [Comment("PO单号")]
  41. public string PurOrd { get; set; }
  42. /// <summary>
  43. /// 采购员工号
  44. /// </summary>
  45. [Comment("采购员工号")]
  46. public string Buyer { get; set; }
  47. /// <summary>
  48. /// 日期
  49. /// </summary>
  50. [Comment("日期")]
  51. public DateTime? OrdDate { get; set; }
  52. /// <summary>
  53. /// 结束日期
  54. /// </summary>
  55. [Comment("结束日期")]
  56. public DateTime? DueDate { get; set; }
  57. /// <summary>
  58. /// 币别
  59. /// </summary>
  60. [Required]
  61. [Comment("币别")]
  62. public string Curr { get; set; }
  63. /// <summary>
  64. /// 供应商编号
  65. /// </summary>
  66. [StringLength(80)]
  67. [Comment("供应商编号")]
  68. public string Supp { get; set; }
  69. /// <summary>
  70. /// 税率
  71. /// </summary>
  72. [Precision(23, 10)]
  73. [Comment("税率")]
  74. public decimal Tax1 { get; set; }
  75. /// <summary>
  76. /// 部门
  77. /// </summary>
  78. [Comment("部门")]
  79. public string Department { get; set; }
  80. /// <summary>
  81. /// 供应商联系人电话
  82. /// </summary>
  83. [StringLength(80)]
  84. [Comment("供应商联系人电话")]
  85. public string CustPhone { get; set; }
  86. /// <summary>
  87. /// 供应地址
  88. /// </summary>
  89. [StringLength(200)]
  90. [Comment("供应地址")]
  91. public string CustAddress { get; set; }
  92. /// <summary>
  93. /// 是否有效:1-有效;0-无效
  94. /// </summary>
  95. [Comment("是否有效")]
  96. public bool IsActive { get; set; }
  97. /// <summary>
  98. /// 是否确认:1-确认;0-无效
  99. /// </summary>
  100. [Comment("是否确认")]
  101. public bool IsConfirm { get; set; }
  102. /// <summary>
  103. /// 创建时间
  104. /// </summary>
  105. [Comment("创建时间")]
  106. public DateTime? CreateTime { get; set; }
  107. /// <summary>
  108. /// 创建人
  109. /// </summary>
  110. [Comment("创建人")]
  111. public string CreateUser { get; set; }
  112. /// <summary>
  113. /// 创建时间
  114. /// </summary>
  115. [Comment("修改时间")]
  116. public DateTime? UpdateTime { get; set; }
  117. /// <summary>
  118. /// 修改人
  119. /// </summary>
  120. [Comment("修改人")]
  121. public string UpdateUser { get; set; }
  122. /// <summary>
  123. /// 类型 DO:要货令
  124. /// </summary>
  125. [Comment("类型")]
  126. public string ReqBy { get; set; }
  127. /// <summary>
  128. /// 供应类别
  129. /// </summary>
  130. [Comment("供应类别")]
  131. public string USAGE { get; set; }
  132. /// <summary>
  133. /// 仓类型
  134. /// </summary>
  135. [Comment("仓类型")]
  136. public string FSTID { get; set; }
  137. /// <summary>
  138. /// 状态 "",新增;A,审核中;B,同意;C,关闭
  139. /// </summary>
  140. [Comment("状态")]
  141. public string Status { get; set; }
  142. /// <summary>
  143. /// 类型
  144. /// </summary>
  145. [Comment("类型")]
  146. public string Typed { get; set; }
  147. /// <summary>
  148. /// 工单号
  149. /// </summary>
  150. [Comment("工单号")]
  151. public string WorkOrd { get; set; }
  152. /// <summary>
  153. /// ERP工单号
  154. /// </summary>
  155. [Comment("ERP工单号")]
  156. public string ERPWorkOrd { get; set; }
  157. }
  158. }