ic_item_stock.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using Business.Core.Attributes;
  2. using Business.Model;
  3. using Microsoft.EntityFrameworkCore;
  4. using MongoDB.Bson.Serialization.Attributes;
  5. using System.ComponentModel;
  6. using System.ComponentModel.DataAnnotations;
  7. using System.ComponentModel.DataAnnotations.Schema;
  8. namespace Business.Model.MES.IC
  9. {
  10. /// <summary>
  11. /// 物料库存表
  12. /// </summary>
  13. [CollectionName("dopbase", "ic_item_stock")]
  14. [Comment("物料库存表")]
  15. public class ic_item_stock : BaseEntity
  16. {
  17. /// <summary>
  18. /// 物料id
  19. /// </summary>
  20. [Required]
  21. [Comment("物料id")]
  22. public long icitem_id { get; set; }
  23. /// <summary>
  24. /// 物料名称
  25. /// </summary>
  26. [StringLength(80)]
  27. [Comment("物料名称")]
  28. public string? icitem_name { get; set; }
  29. /// <summary>
  30. /// 物料库存量
  31. /// </summary>
  32. [Precision(23, 10)]
  33. [Comment("物料库存量")]
  34. public decimal? sqty { get; set; }
  35. /// <summary>
  36. /// 调拨在途数量
  37. /// </summary>
  38. [Precision(23, 10)]
  39. [Comment("调拨在途数量")]
  40. public decimal? quantity_in_transit { get; set; }
  41. /// <summary>
  42. /// 工厂编码
  43. /// </summary>
  44. [StringLength(80)]
  45. [Comment("工厂编码")]
  46. public string? factory_fode { get; set; }
  47. /// <summary>
  48. /// 计算id
  49. /// </summary>
  50. [Comment("计算id")]
  51. [NotMapped]
  52. public long? bang_id { get; set; }
  53. }
  54. }