FlowService.cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using GxPress.Repository.Interface;
  2. using GxPress.Repository.Interface.WorkFlow;
  3. using GxPress.Repository.Interface.WorkProcess;
  4. using GxPress.Service.Interface;
  5. using GxPress.Service.Interface.Notice;
  6. using Microsoft.AspNetCore.Hosting;
  7. using GxPress.Repository.Interface.FlowAttachment;
  8. namespace GxPress.Service.Implement
  9. {
  10. public partial class FlowService : IFlowService
  11. {
  12. private readonly IWebHostEnvironment _environment;
  13. private readonly IProcessRepository _processRepository;
  14. private readonly IProcessFieldRepository _processFieldRepository;
  15. private readonly IProcessNodeRepository _processNodeRepository;
  16. private readonly IRuleCarbonCopyRepository _ruleCarbonCopyRepository;
  17. private readonly IRuleApproverCheckRepository _ruleApproverCheckRepository;
  18. private readonly IRuleConditionRepository _ruleConditionRepository;
  19. private readonly IFlowRepository _flowRepository;
  20. private readonly IFlowMessageRepository _flowMessageRepository;
  21. private readonly IFlowTodoRepository _flowTodoRepository;
  22. private readonly IFlowFieldValueRepository _flowFieldValueRepository;
  23. private readonly IProcessService _processService;
  24. private readonly IUserRepository _userRepository;
  25. private readonly IDepartmentRepository _departmentRepository;
  26. private readonly INoticeService _noticeService;
  27. private readonly INoticeRepository _noticeRepository;
  28. private readonly IFlowAttachmentRepository flowAttachmentRepository;
  29. private readonly IMiddleRepository middleRepository;
  30. public FlowService(
  31. IWebHostEnvironment environment,
  32. IProcessRepository processRepository,
  33. IProcessFieldRepository processFieldRepository,
  34. IProcessNodeRepository processNodeRepository,
  35. IRuleCarbonCopyRepository ruleCarbonCopyRepository,
  36. IRuleApproverCheckRepository ruleApproverCheckRepository,
  37. IRuleConditionRepository ruleConditionRepository,
  38. IFlowRepository flowRepository,
  39. IFlowMessageRepository flowMessageRepository,
  40. IFlowTodoRepository flowTodoRepository,
  41. IFlowFieldValueRepository flowFieldValueRepository,
  42. IProcessService processService,
  43. IUserRepository userRepository,
  44. IDepartmentRepository departmentRepository,
  45. INoticeService noticeService,
  46. IFlowAttachmentRepository flowAttachmentRepository,
  47. IMiddleRepository middleRepository,
  48. INoticeRepository _noticeRepository
  49. )
  50. {
  51. _environment = environment;
  52. _processRepository = processRepository;
  53. _processFieldRepository = processFieldRepository;
  54. _processNodeRepository = processNodeRepository;
  55. _ruleCarbonCopyRepository = ruleCarbonCopyRepository;
  56. _ruleApproverCheckRepository = ruleApproverCheckRepository;
  57. _ruleConditionRepository = ruleConditionRepository;
  58. _flowRepository = flowRepository;
  59. _flowMessageRepository = flowMessageRepository;
  60. _flowTodoRepository = flowTodoRepository;
  61. _flowFieldValueRepository = flowFieldValueRepository;
  62. _processService = processService;
  63. _userRepository = userRepository;
  64. _departmentRepository = departmentRepository;
  65. _noticeService = noticeService;
  66. this.flowAttachmentRepository = flowAttachmentRepository;
  67. this.middleRepository = middleRepository;
  68. this._noticeRepository = _noticeRepository;
  69. }
  70. //public void OnFlowAdded(FlowDto flow)
  71. //{
  72. // flow.
  73. //}
  74. }
  75. }