FileFolderEntity.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. using LeaRun.Application.Code;
  2. using System;
  3. namespace LeaRun.Application.Entity.PublicInfoManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.12.15 10:56
  10. /// 描 述:文件夹
  11. /// </summary>
  12. public class FileFolderEntity : BaseEntity
  13. {
  14. #region 实体成员
  15. /// <summary>
  16. /// 文件夹主键
  17. /// </summary>
  18. public string FolderId { get; set; }
  19. /// <summary>
  20. /// 父级主键
  21. /// </summary>
  22. public string ParentId { get; set; }
  23. /// <summary>
  24. /// 文件夹类型
  25. /// </summary>
  26. public string FolderType { get; set; }
  27. /// <summary>
  28. /// 文件夹名称
  29. /// </summary>
  30. public string FolderName { get; set; }
  31. /// <summary>
  32. /// 共享
  33. /// </summary>
  34. public int? IsShare { get; set; }
  35. /// <summary>
  36. /// 共享连接
  37. /// </summary>
  38. public string ShareLink { get; set; }
  39. /// <summary>
  40. /// 共享提取码
  41. /// </summary>
  42. public int? ShareCode { get; set; }
  43. /// <summary>
  44. /// 共享日期
  45. /// </summary>
  46. public DateTime? ShareTime { get; set; }
  47. /// <summary>
  48. /// 排序码
  49. /// </summary>
  50. public int? SortCode { get; set; }
  51. /// <summary>
  52. /// 删除标记
  53. /// </summary>
  54. public int? DeleteMark { get; set; }
  55. /// <summary>
  56. /// 有效标志
  57. /// </summary>
  58. public int? EnabledMark { get; set; }
  59. /// <summary>
  60. /// 备注
  61. /// </summary>
  62. public string Description { get; set; }
  63. /// <summary>
  64. /// 创建日期
  65. /// </summary>
  66. public DateTime? CreateDate { get; set; }
  67. /// <summary>
  68. /// 创建用户主键
  69. /// </summary>
  70. public string CreateUserId { get; set; }
  71. /// <summary>
  72. /// 创建用户
  73. /// </summary>
  74. public string CreateUserName { get; set; }
  75. /// <summary>
  76. /// 修改日期
  77. /// </summary>
  78. public DateTime? ModifyDate { get; set; }
  79. /// <summary>
  80. /// 修改用户主键
  81. /// </summary>
  82. public string ModifyUserId { get; set; }
  83. /// <summary>
  84. /// 修改用户
  85. /// </summary>
  86. public string ModifyUserName { get; set; }
  87. #endregion
  88. #region 扩展操作
  89. /// <summary>
  90. /// 新增调用
  91. /// </summary>
  92. public override void Create()
  93. {
  94. this.FolderId = Guid.NewGuid().ToString();
  95. this.CreateDate = DateTime.Now;
  96. this.CreateUserId = OperatorProvider.Provider.Current().UserId;
  97. this.CreateUserName = OperatorProvider.Provider.Current().UserName;
  98. this.ModifyDate = DateTime.Now;
  99. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  100. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  101. this.DeleteMark = 0;
  102. this.EnabledMark = 1;
  103. }
  104. /// <summary>
  105. /// 编辑调用
  106. /// </summary>
  107. /// <param name="keyValue"></param>
  108. public override void Modify(string keyValue)
  109. {
  110. this.FolderId = keyValue;
  111. this.ModifyDate = DateTime.Now;
  112. this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
  113. this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
  114. }
  115. #endregion
  116. }
  117. }