using Learun.Util; using SqlSugar; using System; using System.ComponentModel.DataAnnotations.Schema; namespace Learun.Application.WorkFlow { /// /// 版 本 PIT-ADMS V7.0.3 敏捷开发框架 /// Copyright (c) 2013-2018 Hexagon PPM /// 创建人:研发部 /// 日 期:2018.12.06 /// 描 述:工作流模板信息(新) /// [SugarTable(TableName = "LR_NWF_SCHEMEINFO")] public class NWFSchemeInfoEntity { #region 实体成员 /// /// 主键 /// /// [SugarColumn(ColumnName = "F_ID", IsPrimaryKey = true)] public string F_Id { get; set; } /// /// 流程编码 /// /// [SugarColumn(ColumnName = "F_CODE")] public string F_Code { get; set; } /// /// 流程模板名称 /// /// [SugarColumn(ColumnName = "F_NAME")] public string F_Name { get; set; } /// /// 流程分类 /// /// [SugarColumn(ColumnName = "F_CATEGORY")] public string F_Category { get; set; } /// /// 流程模板ID /// /// [SugarColumn(ColumnName = "F_SCHEMEID")] public string F_SchemeId { get; set; } /// /// 是否有效 /// /// [SugarColumn(ColumnName = "F_ENABLEDMARK")] public int? F_EnabledMark { get; set; } /// /// 是否在我的任务允许发起 1允许 2不允许 /// /// [SugarColumn(ColumnName = "F_MARK")] public int? F_Mark { get; set; } /// /// 是否在App上允许发起 1允许 2不允许 /// /// [SugarColumn(ColumnName = "F_ISINAPP")] public int? F_IsInApp { get; set; } /// /// 备注 /// /// [SugarColumn(ColumnName = "F_DESCRIPTION")] public string F_Description { get; set; } /// /// 项目ID /// /// [SugarColumn(ColumnName = "ProjectId")] public string ProjectId { get; set; } #endregion #region 扩展操作 /// /// 新增调用 /// public void Create() { this.F_Id = Guid.NewGuid().ToString(); this.F_EnabledMark = 1; this.F_Code = Str.ConvertPinYin(this.F_Name).ToUpper(); } /// /// 编辑调用 /// /// public void Modify(string keyValue) { this.F_Id = keyValue; } #endregion #region 扩展字段 /// /// 1.正式(已发布)2.草稿 /// /// [SugarColumn(IsIgnore = true)] public int? F_Type { get; set; } /// /// 创建时间 /// /// [SugarColumn(IsIgnore = true)] public DateTime? F_CreateDate { get; set; } /// /// 创建用户主键 /// /// [SugarColumn(IsIgnore = true)] public string F_CreateUserId { get; set; } /// /// 创建用户 /// /// [SugarColumn(IsIgnore = true)] public string F_CreateUserName { get; set; } /// /// 分类名称 /// /// [SugarColumn(IsIgnore = true)] public string CategoryName { get; set; } #endregion } }