ic_item_stock.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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_stock")]
  11. [Comment("物料库存表")]
  12. [Index(nameof(icitem_number), nameof(fversion), nameof(tenant_id), nameof(factory_id), IsUnique = true)]
  13. public class ic_item_stock : BaseEntity
  14. {
  15. /// <summary>
  16. /// 物料id
  17. /// </summary>
  18. [Required]
  19. [Comment("物料id")]
  20. public long icitem_id { get; set; }
  21. /// <summary>
  22. /// 物料编码
  23. /// </summary>
  24. [StringLength(80)]
  25. [Comment("物料编码")]
  26. public string icitem_number { get; set; }
  27. /// <summary>
  28. /// 物料名称
  29. /// </summary>
  30. [StringLength(80)]
  31. [Comment("物料名称")]
  32. public string icitem_name { get; set; }
  33. /// <summary>
  34. /// 版本号
  35. /// </summary>
  36. [StringLength(80)]
  37. [Comment("版本号")]
  38. public string fversion { get; set; }
  39. /// <summary>
  40. /// 物料库存量
  41. /// </summary>
  42. [Precision(23, 10)]
  43. [Comment("物料库存量")]
  44. public decimal? sqty { get; set; }
  45. /// <summary>
  46. /// 调拨在途数量
  47. /// </summary>
  48. [Precision(23, 10)]
  49. [Comment("调拨在途数量")]
  50. public decimal? quantity_in_transit { get; set; }
  51. /// <summary>
  52. /// 计算id
  53. /// </summary>
  54. [Comment("计算id")]
  55. [NotMapped]
  56. public long? bang_id { get; set; }
  57. }
  58. }