GoodsInfoView.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using OASystem.Domain.Entities.PersonnelModule;
  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.ViewModels.PersonnelModule
  8. {
  9. /// <summary>
  10. /// 物品详细信息 View
  11. /// </summary>
  12. public class GoodsInfoView:Pm_GoodsInfo
  13. {
  14. }
  15. /// <summary>
  16. /// 物品类型View
  17. /// </summary>
  18. [SugarTable("Sys_SetDataType")]
  19. public class GoodsTypeView
  20. {
  21. /// <summary>
  22. /// 物品类型Id
  23. /// </summary>
  24. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  25. public int Id { get; set; }
  26. public string Name { get; set; }
  27. [Navigate(NavigateType.OneToMany, nameof(GoodsSubTypeView.STid))]
  28. public List<GoodsSubTypeView> SubTypeItems { get; set; }
  29. public string Remark { get; set; }
  30. public int IsDel { get; set; }
  31. }
  32. /// <summary>
  33. /// 物品Sub类型
  34. /// View
  35. /// </summary>
  36. [SugarTable("Sys_SetData")]
  37. public class GoodsSubTypeView
  38. {
  39. /// <summary>
  40. /// 物品类型Id
  41. /// </summary>
  42. [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
  43. public int Id { get; set; }
  44. public int STid { get; set; }
  45. public string Name { get; set; }
  46. public int IsDel { get; set; }
  47. }
  48. }