GoodsInfoView.cs 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. using OASystem.Domain.Entities.PersonnelModule;
  2. using OASystem.Domain.Enums;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace OASystem.Domain.ViewModels.PersonnelModule
  9. {
  10. /// <summary>
  11. /// 物品详细信息 View
  12. /// </summary>
  13. public class GoodsInfoView:Pm_GoodsInfo
  14. {
  15. }
  16. /// <summary>
  17. /// 物品类型View
  18. /// </summary>
  19. [SugarTable("Sys_SetDataType")]
  20. public class GoodsTypeView
  21. {
  22. /// <summary>
  23. /// 物品类型Id
  24. /// </summary>
  25. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  26. public int Id { get; set; }
  27. public string Name { get; set; }
  28. [Navigate(NavigateType.OneToMany, nameof(GoodsSubTypeView.STid))]
  29. public List<GoodsSubTypeView> SubTypeItems { get; set; }
  30. public string Remark { get; set; }
  31. public int IsDel { get; set; }
  32. }
  33. /// <summary>
  34. /// 物品Sub类型
  35. /// View
  36. /// </summary>
  37. [SugarTable("Sys_SetData")]
  38. public class GoodsSubTypeView
  39. {
  40. /// <summary>
  41. /// 物品类型Id
  42. /// </summary>
  43. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  44. public int Id { get; set; }
  45. public int STid { get; set; }
  46. public string Name { get; set; }
  47. public int IsDel { get; set; }
  48. }
  49. public class GoodsReceiveView
  50. {
  51. public int Id { get; set; }
  52. public int GroupId { get; set; }
  53. public int GoodsId { get; set; }
  54. public string GoodsName { get; set; }
  55. public decimal Quantity { get; set; }
  56. public string Reason { get; set; }
  57. public string Remark { get; set; }
  58. public GoodsAuditEnum AuditStatus { get; set; }
  59. public string AuditStatusText { get { return AuditStatus.GetEnumDescription(); } }
  60. public int AuditUserId { get; set; }
  61. public string AuditUserName { get; set; }
  62. public DateTime AuditTime { get; set; }
  63. public string CreateUserName { get; set; }
  64. public DateTime CreateTime { get; set; }
  65. }
  66. /// <summary>
  67. ///
  68. /// </summary>
  69. public class GoodsReceiveListView: GoodsReceiveView
  70. {
  71. public string GoodsType { get; set; }
  72. }
  73. /// <summary>
  74. ///
  75. /// </summary>
  76. public class GoodsReceiveInfoView : GoodsReceiveView
  77. {
  78. public string GoodsStorageInfo { get; set; }
  79. public object? QuantityInfos { get; set; }
  80. public object? GoodsStorageInfoStr { get; set; }
  81. public string GoodsType { get; set; }
  82. }
  83. /// <summary>
  84. ///
  85. /// </summary>
  86. public class GoodsReceiveLinkStorageView
  87. {
  88. public int StorageId { get; set; }
  89. public decimal Quantity { get; set; }
  90. }
  91. }