using LeaRun.Application.Code;
using System;
namespace LeaRun.Application.Entity.FlowManage
{
///
/// 版 本
/// Copyright (c) 2013-2016 上海力软信息技术有限公司
/// 创建人:陈彬彬
/// 日 期:2016.03.18 09:58
/// 描 述:工作流委托规则表
///
public class WFDelegateRuleEntity : BaseEntity
{
#region 获取/设置 字段值
///
/// 主键
///
public string Id { get; set; }
///
/// 被委托人Id
///
public string ToUserId { get; set; }
///
/// 被委托人
///
public string ToUserName { get; set; }
///
/// 委托开始时间
///
public DateTime? BeginDate { get; set; }
///
/// 委托结束时间
///
public DateTime? EndDate { get; set; }
///
/// 创建日期
///
public DateTime? CreateDate { get; set; }
///
/// 委托人Id
///
public string CreateUserId { get; set; }
///
/// 委托人
///
public string CreateUserName { get; set; }
///
/// 有效标志
///
public int? EnabledMark { get; set; }
///
/// 备注
///
public string Description { get; set; }
#endregion
#region 扩展操作
///
/// 新增调用
///
public override void Create()
{
this.Id = Guid.NewGuid().ToString();
this.CreateDate = DateTime.Now;
this.CreateUserId = OperatorProvider.Provider.Current().UserId;
this.CreateUserName = OperatorProvider.Provider.Current().UserName;
this.EnabledMark = 1;
}
///
/// 编辑调用
///
///
public override void Modify(string keyValue)
{
this.Id = keyValue;
}
#endregion
}
}