using System.Collections.Generic;
using System.Reflection.Metadata.Ecma335;
using System.Text.Json.Serialization;
using Datory;
using Datory.Annotations;
using GxPress.Common.Tools;
namespace GxPress.Entity.WorkFlow
{
///
/// 审批/抄送意见
///
[DataTable("tede_flow_message")]
public class FlowMessage : Datory.Entity
{
///
/// 流规则id
///
[DataColumn]
public int ProcessId { get; set; }
///
/// 流id
///
[DataColumn]
public int FlowId { get; set; }
///
/// 用户id
///
[DataColumn]
public int UserId { get; set; }
///
/// 待办工作类型(TodoTypeConst):ApproverCheck审核,CarbonCopy抄送
///
[DataColumn]
public string Type { get; set; }
///
/// 审批/抄送意见
///
[DataColumn]
public string Message { get; set; }
///
/// 附件列表
///
[JsonIgnore]
[DataColumn]
private string FileIdCollection { get; set; }
///
/// 附件列表
///
public IEnumerable FileIds
{
get => StringUtils.StringCollectionToIntList(FileIdCollection);
set => FileIdCollection = StringUtils.ObjectCollectionToString(value);
}
}
}