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