Pm_GoodsReceive.cs 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. using OASystem.Domain.Enums;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace OASystem.Domain.Entities.PersonnelModule
  8. {
  9. /// <summary>
  10. /// 物品领用表
  11. /// </summary>
  12. [SugarTable(tableName: "Pm_GoodsReceive", tableDescription: "物品领用表")]
  13. public class Pm_GoodsReceive: EntityBase
  14. {
  15. /// <summary>
  16. /// 团组Id
  17. /// Grp_DelegationInfo Id
  18. /// </summary>
  19. [SugarColumn(ColumnDescription = "团组Id", IsNullable = true, ColumnDataType = "int")]
  20. public int GroupId { get; set; }
  21. /// <summary>
  22. /// 物资入库批次信息
  23. /// {storageId:1,quantity:10}
  24. /// </summary>
  25. [SugarColumn(ColumnDescription = "物资入库批次信息", IsNullable = true, ColumnDataType = "varchar(200)")]
  26. public string? GoodsStorageInfo { get; set; }
  27. /// <summary>
  28. /// 商品Id
  29. /// Pm_GoodsInfo Id
  30. /// </summary>
  31. [SugarColumn(ColumnDescription = "商品Id", IsNullable = true, ColumnDataType = "int")]
  32. public int GoodsId { get; set; }
  33. /// <summary>
  34. /// 领用数量
  35. /// </summary>
  36. [SugarColumn(ColumnDescription = "领用数量", IsNullable = true, ColumnDataType = "decimal(8,2)")]
  37. public decimal Quantity { get; set; }
  38. /// <summary>
  39. /// 领用原因
  40. /// </summary>
  41. [SugarColumn(ColumnDescription = "领用原因", IsNullable = true, ColumnDataType = "varchar(200)")]
  42. public string? Reason { get; set; }
  43. /// <summary>
  44. /// 审核状态
  45. /// </summary>
  46. [SugarColumn(ColumnDescription = "审核状态", IsNullable = true, ColumnDataType = "int")]
  47. public GoodsAuditEnum AuditStatus { get; set; } = GoodsAuditEnum.Pending;
  48. /// <summary>
  49. /// 审核人 Id
  50. /// Sys_User Id
  51. /// </summary>
  52. [SugarColumn(ColumnDescription = "审核人Id", IsNullable = true, ColumnDataType = "int")]
  53. public int AuditUserId { get; set; }
  54. /// <summary>
  55. /// 审核时间
  56. /// </summary>
  57. [SugarColumn(ColumnDescription = "审核时间", IsNullable = true, ColumnDataType = "datetime")]
  58. public DateTime AuditTime { get; set; }
  59. }
  60. }