NavigationModel.cs 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /**
  2. * 命名空间: CZFW.Framework.Modules.Model
  3. *
  4. * 功 能: N/A
  5. * 类 名: NavigationModel
  6. *
  7. * Ver 变更日期 负责人 变更内容
  8. * ───────────────────────────────────
  9. * V0.01 2016/12/1 9:36:10 吴争辉 初稿
  10. *
  11. * Copyright (c) 2016 CHUANGZHIKEJI Corporation. All rights reserved.
  12. *┌──────────────────────────────────┐
  13. *│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
  14. *│ 版权所有:创执科技(北京)有限公司                │
  15. *└──────────────────────────────────┘
  16. */
  17. using System.Collections.Generic;
  18. using System.ComponentModel.DataAnnotations;
  19. using CZFW.Framework.Attributes;
  20. namespace CZFW.Framework.Model.ViewModel
  21. {
  22. /// <summary>
  23. /// 导航
  24. /// </summary>
  25. public sealed class NavigationModel : ModelBase
  26. {
  27. public string ParentMark;
  28. /// <summary>
  29. /// 标识
  30. /// </summary>
  31. [Invisible]
  32. public string Mark { get; set; }
  33. /// <summary>
  34. /// 图标
  35. /// </summary>
  36. [Display(Name = "图标样式类")]
  37. public string Icon { get; set; }
  38. /// <summary>
  39. /// 缩略图
  40. /// </summary>
  41. [Display(Name = "上传图标")]
  42. [DataType(DataType.ImageUrl)]
  43. public string Thumbnail { get; set; }
  44. /// <summary>
  45. /// 链接
  46. /// </summary>
  47. [Display(Name = "链接")]
  48. [Required]
  49. public string Url { get; set; }
  50. /// <summary>
  51. /// 名称
  52. /// </summary>
  53. [Display(Name = "名称")]
  54. public string Name { get; set; }
  55. /// <summary>
  56. /// 描述
  57. /// </summary>
  58. [Display(Name = "简介")]
  59. public string Description { get; set; }
  60. [Invisible]
  61. public IList<NavigationModel> Children { get; set; }
  62. }
  63. }