123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- using LeaRun.Application.Code;
- using System;
- namespace LeaRun.Application.Entity.PublicInfoManage
- {
- /// <summary>
- /// 版 本 6.1
- /// Copyright (c) 2013-2016 上海力软信息技术有限公司
- /// 创建人:佘赐雄
- /// 日 期:2015.12.15 10:56
- /// 描 述:文件夹
- /// </summary>
- public class FileFolderEntity : BaseEntity
- {
- #region 实体成员
- /// <summary>
- /// 文件夹主键
- /// </summary>
- public string FolderId { get; set; }
- /// <summary>
- /// 父级主键
- /// </summary>
- public string ParentId { get; set; }
- /// <summary>
- /// 文件夹类型
- /// </summary>
- public string FolderType { get; set; }
- /// <summary>
- /// 文件夹名称
- /// </summary>
- public string FolderName { get; set; }
- /// <summary>
- /// 共享
- /// </summary>
- public int? IsShare { get; set; }
- /// <summary>
- /// 共享连接
- /// </summary>
- public string ShareLink { get; set; }
- /// <summary>
- /// 共享提取码
- /// </summary>
- public int? ShareCode { get; set; }
- /// <summary>
- /// 共享日期
- /// </summary>
- public DateTime? ShareTime { get; set; }
- /// <summary>
- /// 排序码
- /// </summary>
- public int? SortCode { get; set; }
- /// <summary>
- /// 删除标记
- /// </summary>
- public int? DeleteMark { get; set; }
- /// <summary>
- /// 有效标志
- /// </summary>
- public int? EnabledMark { get; set; }
- /// <summary>
- /// 备注
- /// </summary>
- public string Description { get; set; }
- /// <summary>
- /// 创建日期
- /// </summary>
- public DateTime? CreateDate { get; set; }
- /// <summary>
- /// 创建用户主键
- /// </summary>
- public string CreateUserId { get; set; }
- /// <summary>
- /// 创建用户
- /// </summary>
- public string CreateUserName { get; set; }
- /// <summary>
- /// 修改日期
- /// </summary>
- public DateTime? ModifyDate { get; set; }
- /// <summary>
- /// 修改用户主键
- /// </summary>
- public string ModifyUserId { get; set; }
- /// <summary>
- /// 修改用户
- /// </summary>
- public string ModifyUserName { get; set; }
- #endregion
- #region 扩展操作
- /// <summary>
- /// 新增调用
- /// </summary>
- public override void Create()
- {
- this.FolderId = Guid.NewGuid().ToString();
- this.CreateDate = DateTime.Now;
- this.CreateUserId = OperatorProvider.Provider.Current().UserId;
- this.CreateUserName = OperatorProvider.Provider.Current().UserName;
- this.ModifyDate = DateTime.Now;
- this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
- this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
- this.DeleteMark = 0;
- this.EnabledMark = 1;
- }
- /// <summary>
- /// 编辑调用
- /// </summary>
- /// <param name="keyValue"></param>
- public override void Modify(string keyValue)
- {
- this.FolderId = keyValue;
- this.ModifyDate = DateTime.Now;
- this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
- this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
- }
- #endregion
- }
- }
|