PermissionButtonViewModel.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System.Collections.Generic;
  2. using ShwasherSys.BaseSysInfo;
  3. namespace ShwasherSys.Models.Layout
  4. {
  5. public class PermissionButtonViewModel
  6. {
  7. public PermissionButtonViewModel()
  8. {
  9. }
  10. public string Name { get; private set; }
  11. public string FunctionNo { get; private set; }
  12. public string DisplayName { get; set; }
  13. public string Url { get; set; }
  14. public string Icon { get; set; }
  15. public string Class { get; set; }
  16. public string Script { get; set; }
  17. public int MenuType { get; set; }
  18. public string Description { get; set; }
  19. public IList<PermissionButtonViewModel> Children { get; set; }
  20. public PermissionButtonViewModel(SysFunction function)
  21. {
  22. Name = function.PermissionName;
  23. FunctionNo = function.FunctionNo;
  24. DisplayName = function.FunctionName;
  25. Url = function.Url;
  26. Icon = function.Icon;
  27. Class = function.Class;
  28. Script = function.Script;
  29. MenuType = function.FunctionType;
  30. Children = new List<PermissionButtonViewModel>();
  31. }
  32. }
  33. }