using LeaRun.Application.Code;
using System;
namespace LeaRun.Application.Entity.SystemManage
{
///
/// 版 本 6.1
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:佘赐雄
/// 日 期:2015.12.21 16:19
/// 描 述:编号规则种子
///
public class CodeRuleSeedEntity : BaseEntity
{
#region 实体成员
///
/// 编号规则种子主键
///
public string RuleSeedId { get; set; }
///
/// 编码规则主键
///
public string RuleId { get; set; }
///
/// 用户主键
///
public string UserId { get; set; }
///
/// 种子值
///
public int? SeedValue { 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.RuleSeedId = Guid.NewGuid().ToString();
this.CreateDate = DateTime.Now;
this.ModifyDate = DateTime.Now;
this.CreateUserId = OperatorProvider.Provider.Current().UserId;
this.CreateUserName = OperatorProvider.Provider.Current().UserName;
}
///
/// 编辑调用
///
///
public override void Modify(string keyValue)
{
this.ModifyDate = DateTime.Now;
this.ModifyUserId = OperatorProvider.Provider.Current().UserId;
this.ModifyUserName = OperatorProvider.Provider.Current().UserName;
}
#endregion
}
}