ic_item_stockoccupy.cs 2.1 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", "ic_item_stockoccupy")]
  11. [Comment("资源检查物料占用明细表")]
  12. [Index(nameof(orderentry_id), nameof(icitem_number), nameof(fversion), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  13. public class ic_item_stockoccupy : BaseEntity
  14. {
  15. /// <summary>
  16. /// bangid
  17. /// </summary>
  18. [Comment("bangid")]
  19. [NotMapped]
  20. public long bang_id { get; set; }
  21. /// <summary>
  22. /// 订单id
  23. /// </summary>
  24. [Comment("订单id")]
  25. public long order_id { get; set; }
  26. /// <summary>
  27. /// 订单行id
  28. /// </summary>
  29. [Comment("订单行id")]
  30. public long orderentry_id { get; set; }
  31. /// <summary>
  32. /// 工单ID
  33. /// </summary>
  34. [Comment("工单ID")]
  35. public long? morder_id { get; set; }
  36. /// <summary>
  37. /// 工单编号
  38. /// </summary>
  39. [Comment("工单编号")]
  40. public string morder_mo { get; set; }
  41. /// <summary>
  42. /// 物料id
  43. /// </summary>
  44. [Comment("物料id")]
  45. public long icitem_id { get; set; }
  46. /// <summary>
  47. /// 物料编码
  48. /// </summary>
  49. [StringLength(80)]
  50. [Comment("物料编码")]
  51. public string icitem_number { get; set; }
  52. /// <summary>
  53. /// 版本号
  54. /// </summary>
  55. [StringLength(80)]
  56. [Comment("版本号")]
  57. public string fversion { get; set; }
  58. /// <summary>
  59. /// 占用数量
  60. /// </summary>
  61. [Comment("占用数量")]
  62. public decimal quantity { get; set; }
  63. /// <summary>
  64. /// 项次号
  65. /// </summary>
  66. [Comment("项次号")]
  67. public string item_no { get; set; }
  68. }
  69. }