Files
number_zj/20220330_Vote/Ewide.RoadFlow/Entity/FlowRunModel/StepBase.cs
2022-03-30 17:54:33 +08:00

129 lines
5.0 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Text;
namespace RoadFlow.Model.FlowRunModel
{
/// <summary>
/// 步骤基本设置
/// </summary>
public class StepBase
{
/// <summary>
///<para>流转类型</para>
///<para>0 根据条件判断(无后续步骤时提示)</para>
///<para>1 单选一个步骤</para>
///<para>2 多选几个步骤(默认选中第一个)</para>
///<para>3 多选几个步骤(默认全部选中)</para>
///<para>4 多选几个步骤(默认全部选中不能取消)</para>
///<para>5 根据条件判断(无后续步骤时完成)</para>
/// </summary>
public int FlowType { get; set; }
/// <summary>
/// 运行时选择 0不允许 1允许
/// </summary>
public int RunSelect { get; set; }
/// <summary>
/// 处理者类型 0所有成员 1部门 2岗位 3工作组 4人员 5发起者 6前一步骤处理者 7某一步骤处理者 8字段值 9发起者主管 10发起者分管领导 11当前处理者主管 12当前处理者分管领导
/// </summary>
public string HandlerType { get; set; }
/// <summary>
/// 选择范围
/// </summary>
public string SelectRange { get; set; }
/// <summary>
/// 将默认处理者作为限定选择范围 0默认处理者选中 1默认处理者不选中
/// </summary>
public int SelectRangeForDefaultHandler { get; set; }
/// <summary>
/// 当处理者类型为 7某一步骤处理者 时的处理者步骤
/// </summary>
public Guid? HandlerStepId { get; set; }
/// <summary>
/// 当处理者类型为 8字段值 时的字段
/// </summary>
public string ValueField { get; set; }
/// <summary>
/// 没有找到处理者的时,是否取上一次的处理人作为默认处理者 0否 1是
/// </summary>
public int LastHadler { get; set; }
/// <summary>
/// 默认处理者
/// </summary>
public string DefaultHandler { get; set; }
/// <summary>
/// 退回策略 0不能退回 1根据处理策略退回 2一人退回全部退回 3所有人退回才退回 4独立退回
/// </summary>
public int BackModel { get; set; }
/// <summary>
/// 处理策略 0所有人必须处理 1一人同意即可 2依据人数比例 3独立处理 4 按选择人员顺序处理
/// </summary>
public int HanlderModel { get; set; }
/// <summary>
/// 处理策略分组 0不分组 1按发送人分组 2按接收人分组
/// </summary>
public int HanlderModelGroup { get; set; }
/// <summary>
/// 退回类型 0退回前一步 1退回第一步 2退回某一步
/// </summary>
public int BackType { get; set; }
/// <summary>
/// 是否可以在退回时选择接收人(默认是退回给上一步的发送人)
/// </summary>
public int BackSelectUser { get; set; }
/// <summary>
/// 策略百分比
/// </summary>
public decimal Percentage { get; set; }
/// <summary>
/// 退回步骤ID 当退回类型为 2退回某一步时
/// </summary>
public Guid? BackStepId { get; set; }
/// <summary>
/// 会签策略 0 不会签 1 所有步骤同意 2 一个步骤同意即可 3 依据比例
/// </summary>
public int Countersignature { get; set; }
/// <summary>
/// 步骤会签的起点步骤Id
/// </summary>
public Guid? CountersignatureStartStepId { get; set; }
/// <summary>
/// 会签策略是依据比例时设置的百分比
/// </summary>
public decimal CountersignaturePercentage { get; set; }
/// <summary>
/// 子流程处理策略 0 子流程完成后才能提交 1 子流程发起即可提交
/// </summary>
public int SubFlowStrategy { get; set; }
/// <summary>
/// 并发控制 0不控制 1控制
/// </summary>
public int ConcurrentModel { get; set; }
/// <summary>
/// 默认处理者SQL或方法
/// </summary>
public string DefaultHandlerSqlOrMethod { get; set; }
/// <summary>
/// 后续步骤有默认处理人直接发送(不需要点确定)
/// </summary>
public int AutoConfirm { get; set; }
/// <summary>
/// 发送人和接收人是同一人时跳过
/// </summary>
public int SkipIdenticalUser { get; set; }
/// <summary>
/// 根据方法跳过方法返回1或true时跳过
/// </summary>
public string SkipMethod { get; set; }
/// <summary>
/// 发送到退回步骤
/// </summary>
public int SendToBackStep { get; set; }
public override string ToString()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this);
}
}
}