using System.Collections.Generic; using GxPress.Common.Tools; using Datory; using Datory.Annotations; using GxPress.EnumConst; namespace GxPress.Entity.WorkFlow { /// /// 办公流定义 /// [DataTable("tede_flow")] public class Flow : Datory.Entity { /// /// 工作流规则id /// [DataColumn] public int ProcessId { get; set; } /// /// 发起用户id /// [DataColumn] public int UserId { get; set; } /// /// 流程状态(Meeting上会, Checked已通过, Denied已拒绝) /// [DataColumn] public FlowState State { get; set; } /// /// 当前流程节点 /// [DataColumn] public int ProcessNodeId { get; set; } /// /// 审核人Id列表 /// [DataColumn(Text = true)] public string ApproverCheckUserIdCollection { get; set; } /// /// 审核人Id列表 /// public IEnumerable ApproverCheckUserIds { get => StringUtils.StringCollectionToIntList(ApproverCheckUserIdCollection); set => ApproverCheckUserIdCollection = string.Join(",", value); } /// /// 抄送人Id列表 /// [DataColumn(Text = true)] public string CarbonCopyUserIdCollection { get; set; } /// /// 抄送人Id列表 /// public IEnumerable CarbonCopyUserIds { get => StringUtils.StringCollectionToIntList(CarbonCopyUserIdCollection); set => CarbonCopyUserIdCollection = string.Join(",", value); } /// /// 审批编号 /// [DataColumn] public string No { get; set; } /// /// 是否阅读 /// /// [DataColumn] public bool IsRead { get; set; } } }