mes_moentry.cs 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace Business.Domain
  6. {
  7. /// <summary>
  8. /// 生成工单子表
  9. /// </summary>
  10. [CollectionName("dopbase", "mes_moentry")]
  11. [Comment("生成工单子表")]
  12. public class mes_moentry : BaseEntity
  13. {
  14. ///// <summary>
  15. ///// 生产工单子表id
  16. ///// </summary>
  17. //[Key]
  18. //[Comment("生产工单子表id")]
  19. //public long moentry_id { get; set; }
  20. /// <summary>
  21. /// 工单主表id
  22. /// </summary>
  23. [Comment("工单主表id")]
  24. public long? moentry_moid { get; set; }
  25. /// <summary>
  26. /// 工单编号
  27. /// </summary>
  28. [StringLength(80)]
  29. [Comment("工单编号")]
  30. public string moentry_mono { get; set; }
  31. /// <summary>
  32. /// 订单行id
  33. /// </summary>
  34. [Comment("订单行id")]
  35. public long? soentry_id { get; set; }
  36. /// <summary>
  37. /// 订单行号
  38. /// </summary>
  39. [Comment("订单行号")]
  40. public long? fentry_id { get; set; }
  41. /// <summary>
  42. /// 订单编号
  43. /// </summary>
  44. [StringLength(80)]
  45. [Comment("订单编号")]
  46. public string fbill_no { get; set; }
  47. /// <summary>
  48. /// 单位
  49. /// </summary>
  50. [StringLength(80)]
  51. [Comment("单位")]
  52. public string unit { get; set; }
  53. /// <summary>
  54. /// 工单生产数量(计划数量)
  55. /// </summary>
  56. [Precision(23, 10)]
  57. [Comment("工单生产数量(计划数量)")]
  58. public decimal? morder_production_number { get; set; }
  59. /// <summary>
  60. /// 需求数量
  61. /// </summary>
  62. [Precision(23, 10)]
  63. [Comment("需求数量")]
  64. public decimal? need_number { get; set; }
  65. /// <summary>
  66. /// 剩余可用数量
  67. /// </summary>
  68. [Precision(23, 10)]
  69. [Comment("剩余可用数量")]
  70. public decimal? remaining_number { get; set; }
  71. /// <summary>
  72. /// 计算ID
  73. /// </summary>
  74. [Comment("计算id")]
  75. [NotMapped]
  76. public long? bang_id { get; set; }
  77. }
  78. }