94 lines
2.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Learun.Util;
using SqlSugar;
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Learun.Application.WorkFlow
{
/// <summary>
/// 版 本 PIT-ADMS V7.0.3 敏捷开发框架
/// Copyright (c) 2013-2018 Hexagon PPM
/// 创建人:研发部
/// 日 期2018.12.06
/// 描 述:工作流模板(新)
/// </summary>
[SugarTable(TableName = "LR_NWF_SCHEME")]
public class NWFSchemeEntity
{
#region
/// <summary>
/// 主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ID", IsPrimaryKey = true)]
public string F_Id { get; set; }
/// <summary>
/// 流程模板信息主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_SCHEMEINFOID")]
public string F_SchemeInfoId { get; set; }
/// <summary>
/// 1.正式2.草稿
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_TYPE")]
public int? F_Type { get; set; }
/// <summary>
/// 创建时间
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CREATEDATE")]
public DateTime? F_CreateDate { get; set; }
/// <summary>
/// 创建人主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CREATEUSERID")]
public string F_CreateUserId { get; set; }
/// <summary>
/// 创建人名字
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CREATEUSERNAME")]
public string F_CreateUserName { get; set; }
/// <summary>
/// 流程模板内容
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CONTENT")]
public string F_Content { get; set; }
#endregion
#region
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_Id = Guid.NewGuid().ToString();
this.F_CreateDate = DateTime.Now;
UserInfo userInfo = LoginUserInfo.Get();
this.F_CreateUserId = userInfo.userId;
this.F_CreateUserName = userInfo.realName;
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_Id = keyValue;
}
#endregion
#region
/// <summary>
/// 流程模板编码
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public string F_SchemeCode { get; set; }
#endregion
}
}