添加项目文件。

This commit is contained in:
2023-03-13 15:00:34 +08:00
parent 42bf06ca3e
commit 1d73df3235
1205 changed files with 185078 additions and 0 deletions

View File

@@ -0,0 +1,353 @@
using JNPF.DependencyInjection;
using JNPF.WorkFlow.Entitys.Model.Conifg;
using JNPF.WorkFlow.Entitys.Model.Item;
namespace JNPF.WorkFlow.Entitys.Model.Properties;
[SuppressSniffer]
public class ApproversProperties
{
/// <summary>
/// 标题.
/// </summary>
public string? title { get; set; }
/// <summary>
/// 审批类型类型参考FlowTaskOperatorEnum类.
/// </summary>
public int assigneeType { get; set; }
/// <summary>
/// 进度.
/// </summary>
public string? progress { get; set; }
/// <summary>
/// 驳回类型(1:重新审批 2:从当前节点审批).
/// </summary>
public int? rejectType { get; set; }
/// <summary>
/// 驳回节点.
/// </summary>
public string? rejectStep { get; set; }
/// <summary>
/// 描述.
/// </summary>
public string? description { get; set; }
/// <summary>
/// 自定义抄送人.
/// </summary>
public bool isCustomCopy { get; set; }
/// <summary>
/// 发起人主管级别.
/// </summary>
public int managerLevel { get; set; } = 1;
/// <summary>
/// 发起人主管级别.
/// </summary>
public int departmentLevel { get; set; } = 1;
/// <summary>
/// 会签比例.
/// </summary>
public int? countersignRatio { get; set; } = 100;
/// <summary>
/// 审批类型0或签 1会签 .
/// </summary>
public int? counterSign { get; set; } = 0;
/// <summary>
/// 表单字段.
/// </summary>
public string? formField { get; set; }
/// <summary>
/// 指定复审审批节点.
/// </summary>
public string? nodeId { get; set; }
/// <summary>
/// 服务 请求路径.
/// </summary>
public string? getUserUrl { get; set; }
/// <summary>
/// 是否有签名.
/// </summary>
public bool hasSign { get; set; }
/// <summary>
/// 是否有审批意见.
/// </summary>
public bool hasOpinion { get; set; } = true;
/// <summary>
/// 是否可以加签.
/// </summary>
public bool hasFreeApprover { get; set; }
/// <summary>
/// 打印id.
/// </summary>
public string? printId { get; set; }
/// <summary>
/// 表单字段审核方式的类型(1-用户 2-部门).
/// </summary>
public int formFieldType { get; set; }
/// <summary>
/// 是否条件分支.
/// </summary>
public bool isBranchFlow { get; set; }
/// <summary>
/// 开启自动同意.
/// </summary>
public bool hasAgreeRule { get; set; }
/// <summary>
/// 自动同意规则,默认不启用.
/// 1:不启用、2:审批人为发起人、3:审批人与上一审批节点处理人相同、4:审批人审批过.
/// </summary>
public List<string> agreeRules { get; set; } = new List<string>();
/// <summary>
/// 附加条件,默认无附加条件.
/// 1:无附加条件、2:同一部门、3:同一岗位、4:发起人上级、5:发起人下属、6:同一公司.
/// </summary>
public string extraRule { get; set; } = "1";
/// <summary>
/// 抄送附加条件,默认无附加条件.
/// 1:无附加条件、2:同一部门、3:同一岗位、4:发起人上级、5:发起人下属、6:同一公司.
/// </summary>
public string extraCopyRule { get; set; } = "1";
/// <summary>
/// 表单权限数据.
/// </summary>
public List<object>? formOperates { get; set; }
/// <summary>
/// 定时器到时时间.
/// </summary>
public List<TimerProperties> timerList { get; set; } = new List<TimerProperties>();
/// <summary>
/// 表单id.
/// </summary>
public string formId { get; set; }
/// <summary>
/// 继承父流程字段数据.
/// </summary>
public List<AssignItem>? assignList { get; set; }
#region
/// <summary>
/// 指定审批人.
/// </summary>
public List<string> approvers { get; set; } = new List<string>();
/// <summary>
/// 指定审批岗位.
/// </summary>
public List<string> approverPos { get; set; } = new List<string>();
/// <summary>
/// 指定抄送岗位.
/// </summary>
public List<string> circulatePosition { get; set; } = new List<string>();
/// <summary>
/// 指定抄送人.
/// </summary>
public List<string> circulateUser { get; set; } = new List<string>();
/// <summary>
/// 指定审批角色.
/// </summary>
public List<string> approverRole { get; set; } = new List<string>();
/// <summary>
/// 抄送角色.
/// </summary>
public List<string> circulateRole { get; set; } = new List<string>();
/// <summary>
/// 指定审批部门.
/// </summary>
public List<string> approverOrg { get; set; } = new List<string>();
/// <summary>
/// 指定抄送部门.
/// </summary>
public List<string> circulateOrg { get; set; } = new List<string>();
/// <summary>
/// 指定审批分组.
/// </summary>
public List<string> approverGroup { get; set; } = new List<string>();
/// <summary>
/// 指定抄送分组.
/// </summary>
public List<string> circulateGroup { get; set; } = new List<string>();
#endregion
#region
/// <summary>
/// 审核通过.
/// </summary>
public MsgConfig? approveMsgConfig { get; set; } = new MsgConfig();
/// <summary>
/// 审核驳回.
/// </summary>
public MsgConfig? rejectMsgConfig { get; set; } = new MsgConfig();
/// <summary>
/// 审核抄送.
/// </summary>
public MsgConfig? copyMsgConfig { get; set; } = new MsgConfig();
/// <summary>
/// 审核超时.
/// </summary>
public MsgConfig? overTimeMsgConfig { get; set; } = new MsgConfig();
/// <summary>
/// 审核提醒.
/// </summary>
public MsgConfig? noticeMsgConfig { get; set; } = new MsgConfig();
#endregion
#region
/// <summary>
/// 审核通过事件.
/// </summary>
public FuncConfig? approveFuncConfig { get; set; } = new FuncConfig();
/// <summary>
/// 审核驳回事件.
/// </summary>
public FuncConfig? rejectFuncConfig { get; set; } = new FuncConfig();
/// <summary>
/// 审核撤回事件.
/// </summary>
public FuncConfig? recallFuncConfig { get; set; } = new FuncConfig();
/// <summary>
/// 审核超时事件.
/// </summary>
public FuncConfig? overTimeFuncConfig { get; set; } = new FuncConfig();
/// <summary>
/// 审核提醒事件.
/// </summary>
public FuncConfig? noticeFuncConfig { get; set; } = new FuncConfig();
#endregion
#region
/// <summary>
/// 是否保存.
/// </summary>
public bool hasSaveBtn { get; set; }
/// <summary>
/// 保存按钮.
/// </summary>
public string? saveBtnText { get; set; } = "暂 存";
/// <summary>
/// 是否打印.
/// </summary>
public bool hasPrintBtn { get; set; } = false;
/// <summary>
/// 打印.
/// </summary>
public string? printBtnText { get; set; } = "打 印";
/// <summary>
/// 是否通过.
/// </summary>
public bool hasAuditBtn { get; set; } = true;
/// <summary>
/// 通过按钮.
/// </summary>
public string? auditBtnText { get; set; } = "通 过";
/// <summary>
/// 是否拒绝.
/// </summary>
public bool hasRejectBtn { get; set; } = true;
/// <summary>
/// 拒绝按钮.
/// </summary>
public string? rejectBtnText { get; set; } = "退 回";
/// <summary>
/// 是否撤回.
/// </summary>
public bool hasRevokeBtn { get; set; } = true;
/// <summary>
/// 撤回按钮.
/// </summary>
public string? revokeBtnText { get; set; } = "撤 回";
/// <summary>
/// 是否转办.
/// </summary>
public bool hasTransferBtn { get; set; } = true;
/// <summary>
/// 转办按钮.
/// </summary>
public string? transferBtnText { get; set; } = "转 办";
/// <summary>
/// 是否加签.
/// </summary>
public bool hasFreeApproverBtn { get; set; } = true;
/// <summary>
/// 加签按钮.
/// </summary>
public string? hasFreeApproverBtnText { get; set; } = "加 签";
#endregion
#region
/// <summary>
/// 限时.
/// </summary>
public TimeOutConfig? timeLimitConfig { get; set; } = new TimeOutConfig();
/// <summary>
/// 超时.
/// </summary>
public TimeOutConfig? overTimeConfig { get; set; } = new TimeOutConfig();
/// <summary>
/// 提醒.
/// </summary>
public TimeOutConfig? noticeConfig { get; set; } = new TimeOutConfig();
#endregion
}

View File

@@ -0,0 +1,116 @@
using JNPF.DependencyInjection;
using JNPF.WorkFlow.Entitys.Model.Conifg;
using JNPF.WorkFlow.Entitys.Model.Item;
namespace JNPF.WorkFlow.Entitys.Model.Properties;
[SuppressSniffer]
public class ChildTaskProperties
{
/// <summary>
/// 子流程标题.
/// </summary>
public string? title { get; set; }
/// <summary>
/// 子流程发起人类型参考FlowTaskOperatorEnum类.
/// </summary>
public int initiateType { get; set; }
/// <summary>
/// 主管级别.
/// </summary>
public int managerLevel { get; set; }
/// <summary>
/// 主管级别.
/// </summary>
public int departmentLevel { get; set; }
/// <summary>
/// 自定义人员.
/// </summary>
public List<string>? initiator { get; set; }
/// <summary>
/// 自定义岗位.
/// </summary>
public List<string>? initiatePos { get; set; }
/// <summary>
/// 自定义角色.
/// </summary>
public List<string>? initiateRole { get; set; }
/// <summary>
/// 指定发起部门(为空则是所有人).
/// </summary>
public List<string>? initiateOrg { get; set; } = new List<string>();
/// <summary>
/// 指定发起分组.
/// </summary>
public List<string>? initiateGroup { get; set; } = new List<string>();
/// <summary>
/// 子流程引擎.
/// </summary>
public string? flowId { get; set; }
/// <summary>
/// 继承父流程字段数据.
/// </summary>
public List<AssignItem>? assignList { get; set; }
/// <summary>
/// 子流程节点下子流程任务id.
/// </summary>
public List<string> childTaskId { get; set; } = new List<string>();
/// <summary>
/// 子流程数据.
/// </summary>
public string? formData { get; set; }
/// <summary>
/// 同步异步(异步:true).
/// </summary>
public bool isAsync { get; set; }
/// <summary>
/// 表单字段.
/// </summary>
public string? formField { get; set; }
/// <summary>
/// 指定复审审批节点.
/// </summary>
public string? nodeId { get; set; }
/// <summary>
/// 服务 请求路径.
/// </summary>
public string? getUserUrl { get; set; }
/// <summary>
/// 发起通知.
/// </summary>
public MsgConfig? launchMsgConfig { get; set; }
/// <summary>
/// // 表单字段审核方式的类型(1-用户 2-部门).
/// </summary>
public int formFieldType { get; set; }
/// <summary>
/// 异常处理规则
/// 1:超级管理员处理、2:指定人员处理、3:上一节点审批人指定处理人、4:默认审批通过、5:无法提交、6流程发起人.
/// </summary>
public string errorRule { get; set; } = "1";
/// <summary>
/// 异常处理人.
/// </summary>
public List<string>? errorRuleUser { get; set; } = new List<string>();
}

View File

@@ -0,0 +1,23 @@
using JNPF.DependencyInjection;
using JNPF.WorkFlow.Entitys.Model.Item;
namespace JNPF.WorkFlow.Entitys.Model.Properties;
[SuppressSniffer]
public class ConditionProperties
{
/// <summary>
/// 标题.
/// </summary>
public string? title { get; set; }
/// <summary>
/// 条件明细.
/// </summary>
public List<ConditionsItem>? conditions { get; set; }
/// <summary>
/// 是否默认.
/// </summary>
public bool isDefault { get; set; }
}

View File

@@ -0,0 +1,257 @@
using JNPF.DependencyInjection;
using JNPF.WorkFlow.Entitys.Model.Conifg;
namespace JNPF.WorkFlow.Entitys.Model.Properties;
[SuppressSniffer]
public class StartProperties
{
/// <summary>
/// 发起节点标题.
/// </summary>
public string? title { get; set; }
/// <summary>
/// 指定发起人(为空则是所有人).
/// </summary>
public List<string>? initiator { get; set; } = new List<string>();
/// <summary>
/// 指定发起岗位(为空则是所有人).
/// </summary>
public List<string>? initiatePos { get; set; } = new List<string>();
/// <summary>
/// 指定发起角色.
/// </summary>
public List<string>? initiateRole { get; set; } = new List<string>();
/// <summary>
/// 指定发起部门(为空则是所有人).
/// </summary>
public List<string>? initiateOrg { get; set; } = new List<string>();
/// <summary>
/// 指定发起分组.
/// </summary>
public List<string>? initiateGroup { get; set; } = new List<string>();
/// <summary>
/// 指定抄送岗位.
/// </summary>
public List<string> circulatePosition { get; set; } = new List<string>();
/// <summary>
/// 指定抄送人.
/// </summary>
public List<string> circulateUser { get; set; } = new List<string>();
/// <summary>
/// 抄送角色.
/// </summary>
public List<string> circulateRole { get; set; } = new List<string>();
/// <summary>
/// 指定抄送部门.
/// </summary>
public List<string> circulateOrg { get; set; } = new List<string>();
/// <summary>
/// 指定抄送分组.
/// </summary>
public List<string> circulateGroup { get; set; } = new List<string>();
/// <summary>
/// 表单权限.
/// </summary>
public List<object>? formOperates { get; set; }
/// <summary>
/// 打印id.
/// </summary>
public string? printId { get; set; }
/// <summary>
/// 是否评论.
/// </summary>
public bool isComment { get; set; }
/// <summary>
/// 是否批量.
/// </summary>
public bool isBatchApproval { get; set; }
/// <summary>
/// 自定义抄送人.
/// </summary>
public bool isCustomCopy { get; set; }
/// <summary>
/// 是否有签名.
/// </summary>
public bool hasSign { get; set; }
/// <summary>
/// 是否有审批意见.
/// </summary>
public bool hasOpinion { get; set; } = true;
/// <summary>
/// 抄送附加条件,默认无附加条件.
/// 1:无附加条件、2:同一部门、3:同一岗位、4:发起人上级、5:发起人下属、6:同一公司.
/// </summary>
public string extraCopyRule { get; set; } = "1";
/// <summary>
/// 异常处理规则
/// 1:超级管理员处理、2:指定人员处理、3:上一节点审批人指定处理人、4:默认审批通过、5:无法提交.
/// </summary>
public string errorRule { get; set; } = "1";
/// <summary>
/// 异常处理人.
/// </summary>
public List<string>? errorRuleUser { get; set; } = new List<string>();
/// <summary>
/// 任务名类型 0默认 1自定义.
/// </summary>
public int titleType { get; set; } = 0;
/// <summary>
/// 任务名格式.
/// </summary>
public string titleContent { get; set; }
/// <summary>
/// 表单id.
/// </summary>
public string formId { get; set; }
#region
/// <summary>
/// 撤回按钮.
/// </summary>
public string? revokeBtnText { get; set; } = "撤 回";
/// <summary>
/// 是否撤回.
/// </summary>
public bool hasRevokeBtn { get; set; } = true;
/// <summary>
/// 提交按钮.
/// </summary>
public string? submitBtnText { get; set; } = "提 交";
/// <summary>
/// 是否提交.
/// </summary>
public bool hasSubmitBtn { get; set; } = true;
/// <summary>
/// 保存按钮.
/// </summary>
public string? saveBtnText { get; set; } = "暂 存";
/// <summary>
/// 是否保存.
/// </summary>
public bool hasSaveBtn { get; set; } = true;
/// <summary>
/// 催办按钮.
/// </summary>
public string? pressBtnText { get; set; } = "催 办";
/// <summary>
/// 是否催办.
/// </summary>
public bool hasPressBtn { get; set; } = true;
/// <summary>
/// 打印按钮.
/// </summary>
public string? printBtnText { get; set; } = "打 印";
/// <summary>
/// 是否打印.
/// </summary>
public bool hasPrintBtn { get; set; } = true;
#endregion
#region
/// <summary>
/// 流程发起事件.
/// </summary>
public FuncConfig? initFuncConfig { get; set; }
/// <summary>
/// 流程结束事件.
/// </summary>
public FuncConfig? endFuncConfig { get; set; }
/// <summary>
/// 流程撤回事件.
/// </summary>
public FuncConfig? flowRecallFuncConfig { get; set; }
#endregion
#region
/// <summary>
/// 审核.
/// </summary>
public MsgConfig? waitMsgConfig { get; set; }
/// <summary>
/// 结束.
/// </summary>
public MsgConfig? endMsgConfig { get; set; }
/// <summary>
/// 同意.
/// </summary>
public MsgConfig? approveMsgConfig { get; set; }
/// <summary>
/// 拒绝.
/// </summary>
public MsgConfig? rejectMsgConfig { get; set; }
/// <summary>
/// 抄送.
/// </summary>
public MsgConfig? copyMsgConfig { get; set; }
/// <summary>
/// 超时.
/// </summary>
public MsgConfig? overTimeMsgConfig { get; set; }
/// <summary>
/// 提醒.
/// </summary>
public MsgConfig? noticeMsgConfig { get; set; }
#endregion
#region
/// <summary>
/// 限时.
/// </summary>
public TimeOutConfig? timeLimitConfig { get; set; } = new TimeOutConfig();
/// <summary>
/// 超时.
/// </summary>
public TimeOutConfig? overTimeConfig { get; set; } = new TimeOutConfig();
/// <summary>
/// 提醒.
/// </summary>
public TimeOutConfig? noticeConfig { get; set; } = new TimeOutConfig();
#endregion
}

View File

@@ -0,0 +1,37 @@
using JNPF.DependencyInjection;
namespace JNPF.WorkFlow.Entitys.Model.Properties;
[SuppressSniffer]
public class TimerProperties
{
/// <summary>
/// 标题.
/// </summary>
public string? title { get; set; }
/// <summary>
/// 日.
/// </summary>
public int day { get; set; }
/// <summary>
/// 小时.
/// </summary>
public int hour { get; set; }
/// <summary>
/// 分钟.
/// </summary>
public int minute { get; set; }
/// <summary>
/// 秒.
/// </summary>
public int second { get; set; }
/// <summary>
/// 定时器节点的上一节点编码.
/// </summary>
public string? upNodeCode { get; set; }
}