You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

116 lines
2.9 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace BPA.SAAS.KitChenManageOrder.Application.BaseDto
  8. {
  9. /// <summary>
  10. /// 通用输入扩展参数(带权限)
  11. /// </summary>
  12. public class XnInputBase : PageInputBase
  13. {
  14. /// <summary>
  15. /// 授权菜单
  16. /// </summary>
  17. public List<string> GrantMenuIdList { get; set; } = new List<string>();
  18. /// <summary>
  19. /// 授权角色
  20. /// </summary>
  21. public List<string> GrantRoleIdList { get; set; } = new List<string>();
  22. /// <summary>
  23. /// 授权数据
  24. /// </summary>
  25. public List<string> GrantOrgIdList { get; set; } = new List<string>();
  26. /// <summary>
  27. /// 搜索值
  28. /// </summary>
  29. public virtual string SearchValue { get; set; }
  30. /// <summary>
  31. /// 搜索开始时间
  32. /// </summary>
  33. public virtual string SearchBeginTime { get; set; }
  34. /// <summary>
  35. /// 搜索结束时间
  36. /// </summary>
  37. public virtual string SearchEndTime { get; set; }
  38. /// <summary>
  39. /// 排序字段
  40. /// </summary>
  41. public virtual string SortField { get; set; }
  42. /// <summary>
  43. /// 排序方法,默认升序,否则降序(配合antd前端,约定参数为 Ascend,Dscend)
  44. /// </summary>
  45. public virtual string SortOrder { get; set; }
  46. /// <summary>
  47. /// 降序排序(不要问我为什么是descend不是desc,前端约定参数就是这样)
  48. /// </summary>
  49. public virtual string DescStr { get; set; } = "descend";
  50. /// <summary>
  51. /// 复杂查询条件
  52. /// </summary>
  53. // public virtual List<Condition> SearchParameters { get; set; } = new();
  54. }
  55. /// <summary>
  56. /// 通用分页输入参数
  57. /// </summary>
  58. public class PageInputBase
  59. {
  60. public string bomId { get; set; }
  61. public string chnologyId { get; set; }
  62. /// <summary>
  63. /// 当前页码
  64. /// </summary>
  65. private int current;
  66. public virtual int Current
  67. {
  68. get
  69. {
  70. return current;
  71. }
  72. set
  73. {
  74. current = value;
  75. if (current <= 0)
  76. {
  77. current = 1;
  78. }
  79. }
  80. }
  81. //public int? Status { get; set; }
  82. /// <summary>
  83. /// 页码容量
  84. /// </summary>
  85. private int pagesize;
  86. public virtual int PageSize
  87. {
  88. get
  89. {
  90. return pagesize;
  91. }
  92. set
  93. {
  94. pagesize = value;
  95. if (pagesize <= 0)
  96. {
  97. pagesize = 20;
  98. }
  99. }
  100. }
  101. }
  102. }