crm_seorderentry.cs 9.3 KB

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