using System.Collections.Generic;
namespace GDZZ.FlowCenter.Entity;
///
/// 流程节点
///
public class FlowNode
{
public const string START = "start round mix";
public const string END = "end round";
public const string NODE = "node";
public const string FORK = "fork"; //会签开始节点
public const string JOIN = "join"; //会签结束节点
///
/// id
///
public string id { get; set; }
///
/// 名称
///
public string name { get; set; }
///
/// 类型
///
public string type { get; set; }
///
/// 图标
///
public string icon { get; set; }
///
/// x坐标
///
public int x { get; set; }
///
/// y左边
///
public int y { get; set; }
///
/// 宽度
///
public int width { get; set; }
///
/// 高度
///
public int height { get; set; }
///
/// 节点的附加数据项
///
/// The set information.
public Setinfo setInfo { get; set; }
}
///
/// 节点详细
///
public class Setinfo
{
public const string SPECIAL_USER = "SPECIAL_USER"; //指定用户
public const string ALL_USER = "ALL_USER"; //所有用户
public const string SPECIAL_ROLE = "SPECIAL_ROLE"; //指定角色
public const string RUNTIME_SPECIAL_ROLE = "RUNTIME_SPECIAL_ROLE"; //运行时指定角色
public const string RUNTIME_SPECIAL_USER = "RUNTIME_SPECIAL_USER"; //运行时指定用户
///
/// 节点执行权限类型
///
public string NodeDesignate { get; set; }
///
/// 选择值
///
public List NodeDesignateData { get; set; }
///
/// 选择显示
///
public List NodeDesignateName { get; set; }
///
/// 当前部门
///
public bool CurrentDepart { get; set; } = false;
///
/// 节点编号
///
public string NodeCode { get; set; }
///
/// 节点名称
///
public string NodeName { get; set; }
///
/// 流程执行时,三方回调的URL地址
///
public string ThirdPartyUrl { get; set; }
///
/// 驳回节点0"前一步"1"第一步"2"某一步" 3"不处理"
///
public string NodeRejectType { get; set; } = "1";
///
/// 节点状态
///
public int? Taged { get; set; }
///
/// 用户名称
///
public string UserName { get; set; }
///
/// 用户Id
///
public long? UserId { get; set; }
///
/// 描述
///
public string Description { get; set; }
///
/// 节点时间
///
public string TagedTime { get; set; }
///
/// 节点会签方式,all/空:默认为全部通过,one :至少有一个通过
///
public string NodeConfluenceType { get; set; } = "all";
///
/// 会签通过的个数
///
public int? ConfluenceOk { get; set; }
///
/// 会签拒绝的个数
///
public int? ConfluenceNo { get; set; }
}
///
/// 节点执行结果标签
///
public class Tag
{
///
/// 1: 通过
/// 2:不通过
/// 3:驳回
///
public int Taged { get; set; }
///
/// 用户id
///
public long? UserId { get; set; }
///
/// 用户名
///
public string UserName { get; set; }
///
/// 描述
///
public string Description { get; set; }
///
/// 时间
///
public string TagedTime { get; set; }
}
///
/// 1: 通过
/// 2:不通过
/// 3:驳回
///
public enum TagState
{
Ok = 1,
No = 2 ,
Reject =3
}