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