138 lines
4.1 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_SCHEMEINFO")]
public class NWFSchemeInfoEntity
{
#region
/// <summary>
/// 主键
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ID", IsPrimaryKey = true)]
public string F_Id { get; set; }
/// <summary>
/// 流程编码
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CODE")]
public string F_Code { get; set; }
/// <summary>
/// 流程模板名称
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_NAME")]
public string F_Name { get; set; }
/// <summary>
/// 流程分类
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_CATEGORY")]
public string F_Category { get; set; }
/// <summary>
/// 流程模板ID
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_SCHEMEID")]
public string F_SchemeId { get; set; }
/// <summary>
/// 是否有效
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ENABLEDMARK")]
public int? F_EnabledMark { get; set; }
/// <summary>
/// 是否在我的任务允许发起 1允许 2不允许
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_MARK")]
public int? F_Mark { get; set; }
/// <summary>
/// 是否在App上允许发起 1允许 2不允许
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_ISINAPP")]
public int? F_IsInApp { get; set; }
/// <summary>
/// 备注
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "F_DESCRIPTION")]
public string F_Description { get; set; }
/// <summary>
/// 项目ID
/// </summary>
/// <returns></returns>
[SugarColumn(ColumnName = "ProjectId")]
public string ProjectId { get; set; }
#endregion
#region
/// <summary>
/// 新增调用
/// </summary>
public void Create()
{
this.F_Id = Guid.NewGuid().ToString();
this.F_EnabledMark = 1;
this.F_Code = Str.ConvertPinYin(this.F_Name).ToUpper();
}
/// <summary>
/// 编辑调用
/// </summary>
/// <param name="keyValue"></param>
public void Modify(string keyValue)
{
this.F_Id = keyValue;
}
#endregion
#region
/// <summary>
/// 1.正式已发布2.草稿
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public int? F_Type { get; set; }
/// <summary>
/// 创建时间
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public DateTime? F_CreateDate { get; set; }
/// <summary>
/// 创建用户主键
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public string F_CreateUserId { get; set; }
/// <summary>
/// 创建用户
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public string F_CreateUserName { get; set; }
/// <summary>
/// 分类名称
/// </summary>
/// <returns></returns>
[SugarColumn(IsIgnore = true)]
public string CategoryName { get; set; }
#endregion
}
}