namespace JNPF.Common.Models.WorkFlow { /// /// 工作流提交模型. /// public class FlowTaskSubmitModel : FlowTaskOtherModel { /// /// 任务主键id(id有值则是修改,反之就是新增) /// 在线开发:因为保存无需生成任务只有提交才会创建任务且所以id传空 /// 代码生成:无论保存还是提交第一次id传空,编辑时候id的值为processId. /// public string id { get; set; } /// /// 流程id. /// public string flowId { get; set; } /// /// 关联表数据id(必定有值). /// public string processId { get; set; } /// /// 任务标题. /// public string flowTitle { get; set; } /// /// 紧急程度. /// public int? flowUrgent { get; set; } /// /// 任务编码(数据来源前端传参或通过单据规则获取). /// public string billNo { get; set; } /// /// 表单数据. /// public object formData { get; set; } /// /// 状态 1:保存,0提交.. /// public int status { get; set; } /// /// 审批修改权限1:可写,0:可读.. /// public int approvaUpType { get; set; } = 0; /// /// true:系统表单,false:自定义表单. /// public bool isSysTable { get; set; } = true; /// /// 是否功能设计. /// public bool isDev { get; set; } = false; /// /// 流程父流程id(0:顶级流程,其他:子流程) 工作流使用. /// public string parentId { get; set; } = "0"; /// /// 流程发起人 工作流使用. /// public string crUser { get; set; } = null; /// /// 是否异步流程 工作流使用. /// public bool isAsync { get; set; } = false; /// /// 流程信息. /// public FlowJsonModel flowJsonModel { get; set; } /// /// 是否委托发起流程 工作流使用. /// public bool isDelegate { get; set; } = false; } /// /// 流程任务其他参数. /// public class FlowTaskOtherModel { /// /// 候选人. /// public Dictionary> candidateList { get; set; } /// /// 选择分支. /// public List branchList { get; set; } /// /// 异常审批人. /// public Dictionary> errorRuleUserList { get; set; } /// /// 自定义抄送人. /// public string? copyIds { get; set; } /// /// 委托发起人. /// public List delegateUserList { get; set; } = new List(); } }