ic_item_stockoccupy.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. using Business.Core.Attributes;
  2. using Microsoft.EntityFrameworkCore;
  3. using System;
  4. using System.ComponentModel.DataAnnotations;
  5. using System.ComponentModel.DataAnnotations.Schema;
  6. namespace Business.Domain
  7. {
  8. /// <summary>
  9. /// 资源检查物料占用明细表
  10. /// </summary>
  11. [CollectionName("dopbase", "ic_item_stockoccupy")]
  12. [Comment("资源检查物料占用明细表")]
  13. //[Index(nameof(orderentry_id), nameof(icitem_number), nameof(fversion), nameof(tenant_id), nameof(company_id), nameof(factory_id), IsUnique = true)]
  14. public class ic_item_stockoccupy : BaseEntity
  15. {
  16. /// <summary>
  17. /// bangid
  18. /// </summary>
  19. [Comment("bangid")]
  20. [NotMapped]
  21. public long bang_id { get; set; }
  22. /// <summary>
  23. /// 订单id
  24. /// </summary>
  25. [Comment("订单id")]
  26. public long? order_id { get; set; }
  27. /// <summary>
  28. /// 订单行id
  29. /// </summary>
  30. [Comment("订单行id")]
  31. public long? orderentry_id { get; set; }
  32. /// <summary>
  33. /// 工单ID
  34. /// </summary>
  35. [Comment("工单ID")]
  36. public long? morder_id { get; set; }
  37. /// <summary>
  38. /// 工单编号
  39. /// </summary>
  40. [Comment("工单编号")]
  41. [StringLength(80)]
  42. public string morder_mo { get; set; }
  43. /// <summary>
  44. /// 物料id
  45. /// </summary>
  46. [Comment("物料id")]
  47. public long icitem_id { get; set; }
  48. /// <summary>
  49. /// 物料编码
  50. /// </summary>
  51. [StringLength(80)]
  52. [Comment("物料编码")]
  53. public string icitem_number { get; set; }
  54. /// <summary>
  55. /// 版本号
  56. /// </summary>
  57. [StringLength(80)]
  58. [Comment("版本号")]
  59. public string fversion { get; set; }
  60. /// <summary>
  61. /// 占用数量
  62. /// </summary>
  63. [Comment("占用数量")]
  64. [Precision(23, 10)]
  65. public decimal quantity { get; set; }
  66. /// <summary>
  67. /// 占用时间
  68. /// </summary>
  69. [Comment("占用时间")]
  70. public DateTime? occupy_time { get; set; }
  71. /// <summary>
  72. /// 项次号
  73. /// </summary>
  74. [Comment("项次号")]
  75. [StringLength(20)]
  76. public string item_no { get; set; }
  77. }
  78. }