crm_seorderentry.cs 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel;
  5. using System.ComponentModel.DataAnnotations;
  6. using System.ComponentModel.DataAnnotations.Schema;
  7. namespace Business.Domain
  8. {
  9. /// <summary>
  10. ///销售订单明细表
  11. /// </summary>
  12. [Comment("销售订单明细表")]
  13. [CollectionName("dopbase", "crm_seorderentry")]
  14. [Index(nameof(bill_no), nameof(entry_seq), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  15. public class crm_seorderentry : BaseEntity
  16. {
  17. ///// <summary>
  18. ///// 销售订单明细表id
  19. ///// </summary>
  20. //[Key]
  21. //[Comment("销售订单明细表id")]
  22. //public long seorderentry_id { get; set; }
  23. /// <summary>
  24. /// 销售订单id
  25. /// </summary>
  26. [Comment("销售订单id")]
  27. public long? seorder_id { get; set; }
  28. /// <summary>
  29. /// 销售订单编号
  30. /// </summary>
  31. [StringLength(50)]
  32. [Comment("销售订单编号")]
  33. public string bill_no { get; set; }
  34. /// <summary>
  35. /// 行号
  36. /// </summary>
  37. [Comment("行号")]
  38. public int? entry_seq { get; set; }
  39. /// <summary>
  40. /// 对应代码
  41. /// </summary>
  42. [StringLength(255)]
  43. [Comment("对应代码")]
  44. public string map_number { get; set; }
  45. /// <summary>
  46. /// 代码名称
  47. /// </summary>
  48. [StringLength(255)]
  49. [Comment("代码名称")]
  50. public string map_name { get; set; }
  51. /// <summary>
  52. /// 产品代码
  53. /// </summary>
  54. [StringLength(255)]
  55. [Comment("产品代码")]
  56. public string item_number { get; set; }
  57. /// <summary>
  58. /// FMS旧料号
  59. /// </summary>
  60. [StringLength(255)]
  61. [Comment("FMS旧料号")]
  62. public string fms_number { get; set; }
  63. /// <summary>
  64. /// 产品名称
  65. /// </summary>
  66. [StringLength(255)]
  67. [Comment("产品名称")]
  68. public string item_name { get; set; }
  69. /// <summary>
  70. /// 规格型号
  71. /// </summary>
  72. [StringLength(255)]
  73. [Comment("规格型号")]
  74. public string specification { get; set; }
  75. /// <summary>
  76. /// 加急级别
  77. /// </summary>
  78. [Comment("加急级别")]
  79. public int? urgent { get; set; }
  80. /// <summary>
  81. /// BOM编号
  82. /// </summary>
  83. [StringLength(255)]
  84. [Comment("BOM编号")]
  85. public string bom_number { get; set; }
  86. /// <summary>
  87. /// 单位
  88. /// </summary>
  89. [StringLength(50)]
  90. [Comment("单位")]
  91. public string unit { get; set; }
  92. /// <summary>
  93. /// 订单数量
  94. /// </summary>
  95. [Precision(20, 8)]
  96. [Comment("订单数量")]
  97. public decimal? qty { get; set; }
  98. /// <summary>
  99. /// 单价
  100. /// </summary>
  101. [Precision(23, 10)]
  102. [Comment("单价")]
  103. public decimal? price { get; set; }
  104. /// <summary>
  105. /// 含税单价
  106. /// </summary>
  107. [Precision(23, 10)]
  108. [Comment("含税单价")]
  109. public decimal? tax_price { get; set; }
  110. /// <summary>
  111. /// 金额
  112. /// </summary>
  113. [Precision(23, 10)]
  114. [Comment("金额")]
  115. public decimal? amount { get; set; }
  116. /// <summary>
  117. /// 税率
  118. /// </summary>
  119. [Precision(23, 10)]
  120. [Comment("税率")]
  121. public decimal? tax_rate { get; set; }
  122. /// <summary>
  123. /// 折扣率
  124. /// </summary>
  125. [Precision(23, 10)]
  126. [Comment("折扣率")]
  127. public decimal? discount_rate { get; set; }
  128. /// <summary>
  129. /// 折扣额
  130. /// </summary>
  131. [Precision(23, 10)]
  132. [Comment("折扣额")]
  133. public decimal? discount_amount { get; set; }
  134. /// <summary>
  135. /// 实际含税单价
  136. /// </summary>
  137. [Precision(23, 10)]
  138. [Comment("实际含税单价")]
  139. public decimal? aux_price_discount { get; set; }
  140. /// <summary>
  141. /// 销项税额
  142. /// </summary>
  143. [Precision(23, 10)]
  144. [Comment("销项税额")]
  145. public decimal? tax_amtount { get; set; }
  146. /// <summary>
  147. /// 价税合计
  148. /// </summary>
  149. [Precision(23, 10)]
  150. [Comment("价税合计")]
  151. public decimal? total_amount { get; set; }
  152. /// <summary>
  153. /// 客户要求交期
  154. /// </summary>
  155. [Comment("客户要求交期")]
  156. public DateTime? plan_date { get; set; }
  157. /// <summary>
  158. /// 最终交货日期
  159. /// </summary>
  160. [Comment("最终交货日期")]
  161. public DateTime? date { get; set; }
  162. /// <summary>
  163. /// 计划员
  164. /// </summary>
  165. [StringLength(50)]
  166. [Comment("计划员")]
  167. public string planner_name { get; set; }
  168. /// <summary>
  169. /// 计划员_工号
  170. /// </summary>
  171. [StringLength(50)]
  172. [Comment("计划员_工号")]
  173. public string planner_no { get; set; }
  174. /// <summary>
  175. /// 备注
  176. /// </summary>
  177. [StringLength(255)]
  178. [Comment("备注")]
  179. public string remark { get; set; }
  180. /// <summary>
  181. /// 源单编号
  182. /// </summary>
  183. [StringLength(50)]
  184. [Comment("源单编号")]
  185. public string soure_bill_no { get; set; }
  186. /// <summary>
  187. /// 客户订单号
  188. /// </summary>
  189. [StringLength(50)]
  190. [Comment("客户订单号")]
  191. public string custom_order_bill_no { get; set; }
  192. /// <summary>
  193. /// 客户订单行号
  194. /// </summary>
  195. [Comment("客户订单行号")]
  196. public int? custom_order_entryid { get; set; }
  197. /// <summary>
  198. /// 系统建议交期(产能)
  199. /// </summary>
  200. [Comment("系统建议交期(产能)")]
  201. public DateTime? sys_capacity_date { get; set; }
  202. /// <summary>
  203. ///调整建议交期
  204. /// </summary>
  205. [Comment("调整建议交期")]
  206. public DateTime? adjust_date { get; set; }
  207. /// <summary>
  208. ///调整建议交期
  209. /// </summary>
  210. [Comment("mrp关闭")]
  211. [DefaultValue(false)]
  212. public bool? mrp_closed { get; set; }
  213. /// <summary>
  214. /// 操作时间
  215. /// </summary>
  216. [Comment("操作时间")]
  217. public DateTime? op_time { get; set; }
  218. /// <summary>
  219. /// 客户料号
  220. /// </summary>
  221. [StringLength(80)]
  222. [Comment("客户料号")]
  223. public string custom_order_itemno { get; set; }
  224. /// <summary>
  225. /// 数据状态标识 0停用 1启用
  226. /// </summary>
  227. [Comment("数据状态标识 0停用 1启用")]
  228. [DefaultValue(true)]
  229. public bool? state { get; set; }
  230. /// <summary>
  231. /// 评审状态
  232. /// </summary>
  233. [Comment("评审状态")]
  234. public int? rstate { get; set; }
  235. /// <summary>
  236. /// 评审次数
  237. /// </summary>
  238. [Comment("评审次数")]
  239. public int? rnumber { get; set; }
  240. /// <summary>
  241. /// 订单进度(1,新增 2,检查 3,评审 4,执行 5,发运) 暂定,如需调整需要调整引用位置
  242. /// </summary>
  243. [StringLength(255)]
  244. [Comment("订单进度")]
  245. public string progress { get; set; }
  246. /// <summary>
  247. /// 发货通知单数量
  248. /// </summary>
  249. [Precision(23, 10)]
  250. [Comment("发货通知单数量")]
  251. public decimal? deliver_notice_count { get; set; }
  252. /// <summary>
  253. /// 发货数量(已出库数量)
  254. /// </summary>
  255. [Precision(23, 10)]
  256. [Comment("发货数量(已出库数量)")]
  257. public decimal? deliver_count { get; set; }
  258. /// <summary>
  259. /// 业务员工号
  260. /// </summary>
  261. [StringLength(80)]
  262. [Comment("业务员工号")]
  263. public string se_reject_reason { get; set; }
  264. /// <summary>
  265. /// 出库类型
  266. /// </summary>
  267. [StringLength(50)]
  268. [Comment("出库类型")]
  269. public string out_stock_type { get; set; }
  270. /// <summary>
  271. /// 是否完成检测,0未完成,1完成
  272. /// </summary>
  273. [Comment("是否完成检测,0未完成,1完成")]
  274. public bool? is_checked { get; set; }
  275. /// <summary>
  276. /// 系统建议交期(物料)
  277. /// </summary>
  278. [Comment("系统建议交期(物料)")]
  279. public DateTime? sys_material_date { get; set; }
  280. /// <summary>
  281. /// 合同编号
  282. /// </summary>
  283. [Comment("合同编号")]
  284. [StringLength(50)]
  285. public string contract_no { get; set; }
  286. /// <summary>
  287. /// 创建部门id
  288. /// </summary>
  289. [Comment("创建部门id")]
  290. public long? create_dept { get; set; }
  291. /// <summary>
  292. /// 计算ID
  293. /// </summary>
  294. [Comment("计算id")]
  295. [NotMapped]
  296. public long? bang_id { get; set; }
  297. }
  298. }