using System.ComponentModel.DataAnnotations; using Magic.Core; using SqlSugar; namespace Magic.FlowCenter.Entity; /// /// 创 建:超级管理员 /// 日 期:2020-07-14 09:18 /// 描 述:我的流程实体类 /// [SugarTable("flc_flowinstance")] public class FlcFlowinstance: FlcDBEntityTenant { /// /// 流程实例模板Id /// /// [SugarColumn(IsNullable = true, ColumnDescription = "流程实例模板Id")] public long? InstanceSchemeId { get; set; } /// /// 实例编号 /// /// [SugarColumn(IsNullable = false,ColumnDescription = "实例编号", UniqueGroupNameList = new string[] { "oms_flowinstance" })] public string Code { get; set; } /// /// 自定义名称 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "自定义名称")] public string CustomName { get; set; } /// /// 当前节点ID /// /// [SugarColumn(IsNullable = true, ColumnDescription = "当前节点ID")] public string ActivityId { get; set; } /// /// 当前节点类型(0会签节点) /// /// [SugarColumn(IsNullable = true, ColumnDescription = "当前节点类型")] public int? ActivityType { get; set; } /// /// 当前节点名称 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "当前节点名称")] public string ActivityName { get; set; } /// /// 前一个ID /// /// [SugarColumn(IsNullable = true,ColumnDescription = "前一个ID")] public string PreviousId { get; set; } /// /// 流程模板内容 /// /// [SugarColumn(IsNullable = true, ColumnDataType = "text", ColumnDescription = "流程模板内容")] public string SchemeContent { get; set; } /// /// 流程模板ID /// /// [Required(ErrorMessage = "模板不能为空")] [SugarColumn(IsNullable = true,ColumnDescription = "流程模板ID")] public long SchemeId { get; set; } /// /// 数据库名称 /// /// [SugarColumn(IsNullable = false, ColumnDescription = "数据库名称")] public string DbName { get; set; } /// /// 表单数据 /// /// [SugarColumn(IsNullable = true, ColumnName = "FrmData", ColumnDataType = "text", ColumnDescription = "表单数据")] public string FrmData { get; set; } /// /// 表单类型 /// /// [SugarColumn(IsNullable = false, ColumnDescription = "表单类型")] public FormType? FrmType { get; set; } /// /// 表单中的字段 /// /// [SugarColumn(IsNullable = true, ColumnDataType = "text", ColumnDescription = "表单中的字段")] public string FrmContentData { get; set; } /// /// 表单字段(冗余) /// /// [SugarColumn(IsNullable = true, ColumnDataType = "text", ColumnDescription = "表单字段")] public string FrmContentParse { get; set; } /// /// 表单参数 /// /// [SugarColumn(IsNullable = true,ColumnDataType = "text", ColumnDescription = "表单参数")] public string FrmContent { get; set; } /// /// 表单ID /// /// [SugarColumn(IsNullable = true, ColumnDescription = "表单ID")] public long? FrmId { get; set; } /// /// 流程类型 /// /// [SugarColumn(IsNullable = true, ColumnDataType = "text", ColumnDescription = "流程类型")] public string SchemeType { get; set; } /// /// 等级 /// /// [SugarColumn(IsNullable = false, ColumnDescription = "等级")] public int FlowLevel { get; set; } /// /// 是否完成 /// /// [SugarColumn(IsNullable = false, ColumnDescription = "是否完成")] public int IsFinish { get; set; } /// /// 执行人 /// /// [SugarColumn(IsNullable = true, ColumnDataType = "text", ColumnDescription = "执行人")] public string MakerList { get; set; } /// /// 所属部门 /// /// [SugarColumn(IsNullable = true, ColumnDescription = "所属部门")] public long? OrgId { get; set; } /// /// 状态标识 /// [SugarColumn(ColumnDescription = "状态")] public CommonStatus? Status { get; set; } /// /// 如果下个执行节点是运行时指定执行者。需要传指定的类型 /// 取值为RUNTIME_SPECIAL_ROLE、RUNTIME_SPECIAL_USER /// [SugarColumn(IsIgnore=true)] public string NextNodeDesignateType { get; set; } /// /// 如果下个执行节点是运行时指定执行者。该值表示具体的执行者 /// 如果NodeDesignateType为RUNTIME_SPECIAL_ROLE,则该值为指定的角色 /// 如果NodeDesignateType为RUNTIME_SPECIAL_USER,则该值为指定的用户 /// [SugarColumn(IsIgnore=true)] public string[] NextNodeDesignates { get; set; } /// /// 下个节点执行人 /// [SugarColumn(IsIgnore=true)] public string NextMakerName { get; set; } /// /// 当前节点执行人 /// [SugarColumn(IsIgnore=true)] public string CurrentMakerName { get; set; } /// /// 当前节点执行类型 /// [SugarColumn(IsIgnore=true)] public string CurrentNodeDesignateType { get; set; } }