You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

316 lines
15 KiB

  1. using Learun.Util;
  2. using Learun.Workflow.Engine;
  3. using System.Collections.Generic;
  4. using Learun.Application.TwoDevelopment.LR_LGManager;
  5. namespace Learun.Application.WorkFlow
  6. {
  7. /// <summary>
  8. /// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架
  9. /// Copyright (c) 2013-2018 上海力软信息技术有限公司
  10. /// 创建人:力软-框架开发组
  11. /// 日 期:2018.12.09
  12. /// 描 述:流程进程
  13. /// </summary>
  14. public interface NWFProcessIBLL
  15. {
  16. #region 获取数据
  17. /// <summary>
  18. /// 获取流程进程实体
  19. /// </summary>
  20. /// <param name="keyValue">主键</param>
  21. /// <returns></returns>
  22. NWFProcessEntity GetEntity(string keyValue);
  23. /// <summary>
  24. /// 获取流程信息列表
  25. /// </summary>
  26. /// <param name="pagination">分页参数</param>
  27. /// <param name="queryJson">查询条件</param>
  28. /// <returns></returns>
  29. IEnumerable<NWFProcessEntity> GetPageList(Pagination pagination, string queryJson);
  30. IEnumerable<NWFProcessEntity> GetAllList();
  31. LC_hetongEntity GetHTInfo(string keyValue);
  32. /// <summary>
  33. /// 获取我的流程信息列表
  34. /// </summary>
  35. /// <param name="userId">用户主键</param>
  36. /// <param name="pagination">分页参数</param>
  37. /// <param name="queryJson">查询条件</param>
  38. /// <param name="schemeCode">流程模板编码</param>
  39. /// <returns></returns>
  40. IEnumerable<NWFProcessEntity> GetMyPageList(string userId, Pagination pagination, string queryJson, string schemeCode = null);
  41. /// <summary>
  42. /// 获取我的流程信息列表
  43. /// </summary>
  44. /// <param name="userId">用户主键</param>
  45. /// <param name="queryJson">查询条件</param>
  46. /// <param name="schemeCode">流程模板编码</param>
  47. /// <returns></returns>
  48. IEnumerable<NWFProcessEntity> GetMyPageList(string userId, string queryJson, string schemeCode = null);
  49. /// <summary>
  50. /// 获取未处理任务列表
  51. /// </summary>
  52. /// <param name="userInfo">用户信息</param>
  53. /// <param name="pagination">翻页信息</param>
  54. /// <param name="queryJson">查询条件</param>
  55. /// <param name="schemeCode">流程模板编码</param>
  56. /// <returns></returns>
  57. IEnumerable<NWFProcessEntity> GetMyTaskPageList(UserInfo userInfo, Pagination pagination, string queryJson, string schemeCode = null);
  58. /// <summary>
  59. /// 获取未处理任务列表
  60. /// </summary>
  61. /// <param name="userInfo">用户信息</param>
  62. /// <param name="queryJson">查询条件</param>
  63. /// <param name="schemeCode">流程模板编码</param>
  64. /// <returns></returns>
  65. IEnumerable<NWFProcessEntity> GetMyTaskPageList(UserInfo userInfo, string queryJson, string schemeCode = null);
  66. /// <summary>
  67. /// 获取未处理任务列表
  68. /// </summary>
  69. /// <param name="userInfo">用户信息</param>
  70. /// <param name="pagination">分页参数</param>
  71. /// <param name="queryJson">查询条件</param>
  72. /// <param name="schemeCode">流程模板编码</param>
  73. /// <param name="isBatchAudit">true获取批量审核任务</param>
  74. /// <returns></returns>
  75. IEnumerable<NWFProcessEntity> GetMyTaskPageList(UserInfo userInfo, Pagination pagination, string queryJson, bool isBatchAudit, string schemeCode = null);
  76. /// <summary>
  77. /// 获取未处理任务列表
  78. /// </summary>
  79. /// <param name="userInfo">用户信息</param>
  80. /// <param name="queryJson">查询条件</param>
  81. /// <param name="schemeCode">流程模板编码</param>
  82. /// <param name="isBatchAudit">true获取批量审核任务</param>
  83. /// <returns></returns>
  84. IEnumerable<NWFProcessEntity> GetMyTaskPageList(UserInfo userInfo, string queryJson, bool isBatchAudit, string schemeCode = null);
  85. /// <summary>
  86. /// 获取已处理任务列表
  87. /// </summary>
  88. /// <param name="userInfo">用户信息</param>
  89. /// <param name="pagination">翻页信息</param>
  90. /// <param name="queryJson">查询条件</param>
  91. /// <param name="schemeCode">流程模板编码</param>
  92. /// <returns></returns>
  93. IEnumerable<NWFProcessEntity> GetMyFinishTaskPageList(UserInfo userInfo, Pagination pagination, string queryJson, string schemeCode = null);
  94. /// <summary>
  95. /// 获取已处理任务列表
  96. /// </summary>
  97. /// <param name="userInfo">用户信息</param>
  98. /// <param name="queryJson">查询条件</param>
  99. /// <param name="schemeCode">流程模板编码</param>
  100. /// <returns></returns>
  101. IEnumerable<NWFProcessEntity> GetMyFinishTaskPageList(UserInfo userInfo, string queryJson, string schemeCode = null);
  102. List<UserInfo> GetDelegateProcess(string userId);
  103. #endregion
  104. #region 保存更新删除
  105. /// <summary>
  106. /// 删除流程进程实体
  107. /// </summary>
  108. /// <param name="processId">流程进程主键</param>
  109. void DeleteEntity(string processId);
  110. #endregion
  111. #region 流程API
  112. /// <summary>
  113. /// 获取下一节点审核人
  114. /// </summary>
  115. /// <param name="code">流程模板code</param>
  116. /// <param name="processId">流程进程主键</param>
  117. /// <param name="taskId">流程任务主键</param>
  118. /// <param name="nodeId">流程节点Id</param>
  119. /// <param name="operationCode">流程操作代码</param>
  120. /// <param name="userInfo">用户信息</param>
  121. /// <returns></returns>
  122. Dictionary<string, List<NWFUserInfo>> GetNextAuditors(string code, string processId, string taskId, string nodeId, string operationCode, UserInfo userInfo);
  123. /// <summary>
  124. /// 获取流程进程信息
  125. /// </summary>
  126. /// <param name="processId">进程主键</param>
  127. /// <param name="taskId">任务主键</param>
  128. /// <param name="userInfo">当前人员信息</param>
  129. /// <returns></returns>
  130. NWFProcessDetailsModel GetProcessDetails(string processId, string taskId, UserInfo userInfo);
  131. /// <summary>
  132. /// 获取子流程详细信息
  133. /// </summary>
  134. /// <param name="processId">父流程进程主键</param>
  135. /// <param name="taskId">父流程子流程发起主键</param>
  136. /// <param name="schemeCode">子流程流程模板编码</param>
  137. /// <param name="nodeId">父流程发起子流程节点Id</param>
  138. /// <param name="userInfo">当前用户操作信息</param>
  139. /// <returns></returns>
  140. NWFProcessDetailsModel GetChildProcessDetails(string processId, string taskId, string schemeCode, string nodeId, UserInfo userInfo);
  141. /// <summary>
  142. /// 保存草稿
  143. /// </summary>
  144. /// <param name="processId">流程进程主键</param>
  145. /// <param name="schemeCode">流程模板编码</param>
  146. /// <param name="userInfo">当前操作人信息</param>
  147. void SaveDraft(string processId, string schemeCode, UserInfo userInfo);
  148. /// <summary>
  149. /// 删除草稿
  150. /// </summary>
  151. /// <param name="processId">流程进程主键</param>
  152. /// <param name="userInfo">当前用户操作信息</param>
  153. void DeleteDraft(string processId, UserInfo userInfo);
  154. /// <summary>
  155. /// 创建流程
  156. /// </summary>
  157. /// <param name="schemeCode">流程模板编码</param>
  158. /// <param name="processId">流程进程主键</param>
  159. /// <param name="title">标题</param>
  160. /// <param name="level">流程等级</param>
  161. /// <param name="auditors">下一节点审核人</param>
  162. /// <param name="userInfo">当前操作人信息</param>
  163. void CreateFlow(string schemeCode, string processId, string title, int level, string auditors, UserInfo userInfo);
  164. /// <summary>
  165. /// 创建流程(子流程)
  166. /// </summary>
  167. /// <param name="schemeCode">流程模板编码</param>
  168. /// <param name="processId">流程进程主键</param>
  169. /// <param name="userInfo">当前操作人信息</param>
  170. void CreateChildFlow(string schemeCode, string processId, string parentProcessId, string parentTaskId, UserInfo userInfo);
  171. /// <summary>
  172. /// 重新创建流程
  173. /// </summary>
  174. /// <param name="processId">流程进程主键</param>
  175. /// <param name="userInfo">当前操作人信息</param>
  176. void AgainCreateFlow(string processId, UserInfo userInfo);
  177. /// <summary>
  178. /// 审批流程
  179. /// </summary>
  180. /// <param name="operationCode">流程审批操作码agree 同意 disagree 不同意 lrtimeout 超时</param>
  181. /// <param name="operationName">流程审批操名称</param>
  182. /// <param name="processId">流程进程主键</param>
  183. /// <param name="taskId">流程任务主键</param>
  184. /// <param name="des">审批意见</param>
  185. /// <param name="auditors">下一节点指定审核人</param>
  186. /// <param name="userInfo">当前操作人信息</param>
  187. void AuditFlow(string operationCode, string operationName, string processId, string taskId, string des, string auditors, string stamp, string signUrl, UserInfo userInfo);
  188. /// <summary>
  189. /// 审批流程(只有审批操作码为back(退回至上一个审核节点)情况下执行)【暂定】
  190. /// </summary>
  191. /// <param name="operationCode">流程审批操作码agree 同意 disagree 不同意 lrtimeout 超时 back 退回至上一个审核节点</param>
  192. /// <param name="operationName">流程审批操名称</param>
  193. /// <param name="processId">流程进程主键</param>
  194. /// <param name="taskId">流程任务主键</param>
  195. /// <param name="des">审批意见</param>
  196. /// <param name="auditors">下一节点指定审核人</param>
  197. /// <param name="userInfo">当前操作人信息</param>
  198. void AuditFlow2(string operationCode, string operationName, string processId, string taskId, string des, string auditors, string stamp, string signUrl, UserInfo userInfo);
  199. /// <summary>
  200. /// 批量审核(只有同意和不同意)
  201. /// </summary>
  202. /// <param name="operationCode">操作码</param>
  203. /// <param name="taskIds">任务id串</param>
  204. /// <param name="userInfo">当前操作人信息</param>
  205. void AuditFlows(string operationCode, string taskIds, UserInfo userInfo);
  206. /// <summary>
  207. /// 流程加签
  208. /// </summary>
  209. /// <param name="processId">流程进程主键</param>
  210. /// <param name="taskId">流程任务主键</param>
  211. /// <param name="userId">加签人员</param>
  212. /// <param name="des">加签说明</param>
  213. /// <param name="userInfo">当前操作人信息</param>
  214. void SignFlow(string processId, string taskId, string userId, string des, UserInfo userInfo);
  215. /// <summary>
  216. /// 流程加签审核
  217. /// </summary>
  218. /// <param name="operationCode">审核操作码</param>
  219. /// <param name="processId">流程进程主键</param>
  220. /// <param name="taskId">流程任务主键</param>
  221. /// <param name="des">加签说明</param>
  222. /// <param name="userInfo">当前操作人信息</param>
  223. void SignAuditFlow(string operationCode, string processId, string taskId, string des, UserInfo userInfo);
  224. /// <summary>
  225. /// 确认阅读
  226. /// </summary>
  227. /// <param name="processId">流程进程主键</param>
  228. /// <param name="taskId">流程任务主键</param>
  229. /// <param name="userInfo">当前操作人信息</param>
  230. void ReferFlow(string processId, string taskId, UserInfo userInfo);
  231. /// <summary>
  232. /// 催办流程
  233. /// </summary>
  234. /// <param name="processId">流程进程主键</param>
  235. /// <param name="userInfo">当前操作人信息</param>
  236. void UrgeFlow(string processId, UserInfo userInfo);
  237. /// <summary>
  238. /// 撤销流程(只有在该流程未被处理的情况下)
  239. /// </summary>
  240. /// <param name="processId">流程进程主键</param>
  241. /// <param name="userInfo">当前操作人信息</param>
  242. void RevokeFlow(string processId, UserInfo userInfo);
  243. /// <summary>
  244. /// 撤销审核(只有在下一个节点未被处理的情况下才能执行)
  245. /// </summary>
  246. /// <param name="processId">流程进程主键</param>
  247. /// <param name="taskId">任务主键</param>
  248. /// <param name="userInfo">当前操作人信息</param>
  249. bool RevokeAudit(string processId, string taskId, UserInfo userInfo);
  250. /// <summary>
  251. /// 流程任务超时处理
  252. /// </summary>
  253. void MakeTaskTimeout();
  254. /// <summary>
  255. /// 获取流程当前任务需要处理的人
  256. /// </summary>
  257. /// <param name="processId">流程进程主键</param>
  258. /// <returns></returns>
  259. IEnumerable<NWFTaskEntity> GetTaskUserList(string processId);
  260. /// <summary>
  261. /// 指派流程审核人
  262. /// </summary>
  263. /// <param name="list">任务列表</param>
  264. /// <param name="userInfo">当前操作人信息</param>
  265. void AppointUser(IEnumerable<NWFTaskEntity> list, UserInfo userInfo);
  266. /// <summary>
  267. /// 作废流程
  268. /// </summary>
  269. /// <param name="processId">流程进程主键</param>
  270. /// <param name="userInfo">当前操作人信息</param>
  271. void DeleteFlow(string processId, UserInfo userInfo);
  272. /// <summary>
  273. /// 给指定的流程添加审核节点
  274. /// </summary>
  275. /// <param name="processId">流程实例ID</param>
  276. /// <param name="bNodeId">开始节点</param>
  277. /// <param name="eNodeId">结束节点(审核任务的节点)</param>
  278. void AddTask(string processId, string bNodeId, string eNodeId, UserInfo userInfo);
  279. #endregion
  280. #region 获取sql语句
  281. /// <summary>
  282. /// 获取我的流程信息列表SQL语句
  283. /// </summary>
  284. /// <returns></returns>
  285. string GetMySql();
  286. /// <summary>
  287. /// 获取我的代办任务列表SQL语句
  288. /// </summary>
  289. /// <param name="userInfo">用户信息</param>
  290. /// <param name="isBatchAudit">true获取批量审核任务</param>
  291. /// <returns></returns>
  292. string GetMyTaskSql(UserInfo userInfo, bool isBatchAudit = false);
  293. /// <summary>
  294. /// 获取我的已办任务列表SQL语句
  295. /// </summary>
  296. /// <returns></returns>
  297. string GetMyFinishTaskSql();
  298. #endregion
  299. }
  300. }