ISysStatesManager.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System.Linq.Expressions;
  2. using VberZero.BaseSystem;
  3. namespace VberZero.DomainService.States;
  4. public interface ISysStatesManager
  5. {
  6. #region GetSelectList
  7. #region CodeFilter
  8. Task<string> GetSelectStrAsync(QueryStateDisplayValue input, params string[] codeFilter);
  9. Task<string> GetSelectStrAsync(string codeKey, params string[] codeFilter);
  10. #endregion CodeFilter
  11. #region CodeFilterReversal
  12. Task<string> GetSelectStrReversalAsync(QueryStateDisplayValue input, params string[] codeFilter);
  13. Task<string> GetSelectStrReversalAsync(string codeKey, params string[] codeFilter);
  14. #endregion CodeFilterReversal
  15. #region Exp
  16. Task<string> GetSelectStrAsync(QueryStateDisplayValue input, Expression<Func<SysState, bool>> exp = null);
  17. Task<string> GetSelectStrAsync(string codeKey,
  18. Expression<Func<SysState, bool>> exp = null);
  19. #endregion Exp
  20. #region StateDisplayDto
  21. Task<List<StateDisplayDto>> GetStateListAsync(QueryStateDisplayValue input,
  22. Expression<Func<SysState, bool>> exp = null);
  23. Task<List<StateDisplayDto>> GetStateListAsync(string codeKey,
  24. Expression<Func<SysState, bool>> exp = null);
  25. Task<List<StateDisplayDto>> GetStateListAsync(string codeKey, params string[] codeFilter);
  26. Task<List<StateDisplayDto>> GetStateListReversalAsync(string codeKey, params string[] codeFilter);
  27. #endregion StateDisplayDto
  28. #endregion GetSelectList
  29. #region GetDisplayValue
  30. Task<string> GetDisplayValueAsync(QueryStateDisplayValue input);
  31. Task<string> GetDisplayValueAsync(string codeKey, string codeValue);
  32. #endregion GetDisplayValue
  33. }