|
@@ -5,6 +5,7 @@ using GxPress.Service.Interface;
|
|
using GxPress.Service.Interface.Notice;
|
|
using GxPress.Service.Interface.Notice;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using GxPress.Repository.Interface.FlowAttachment;
|
|
using GxPress.Repository.Interface.FlowAttachment;
|
|
|
|
+
|
|
namespace GxPress.Service.Implement
|
|
namespace GxPress.Service.Implement
|
|
{
|
|
{
|
|
public partial class FlowService : IFlowService
|
|
public partial class FlowService : IFlowService
|
|
@@ -25,6 +26,7 @@ namespace GxPress.Service.Implement
|
|
private readonly IDepartmentRepository _departmentRepository;
|
|
private readonly IDepartmentRepository _departmentRepository;
|
|
private readonly INoticeService _noticeService;
|
|
private readonly INoticeService _noticeService;
|
|
private readonly IFlowAttachmentRepository flowAttachmentRepository;
|
|
private readonly IFlowAttachmentRepository flowAttachmentRepository;
|
|
|
|
+ private readonly IMiddleRepository middleRepository;
|
|
|
|
|
|
public FlowService(
|
|
public FlowService(
|
|
IWebHostEnvironment environment,
|
|
IWebHostEnvironment environment,
|
|
@@ -40,7 +42,7 @@ namespace GxPress.Service.Implement
|
|
IFlowFieldValueRepository flowFieldValueRepository,
|
|
IFlowFieldValueRepository flowFieldValueRepository,
|
|
IProcessService processService,
|
|
IProcessService processService,
|
|
IUserRepository userRepository,
|
|
IUserRepository userRepository,
|
|
- IDepartmentRepository departmentRepository, INoticeService noticeService,IFlowAttachmentRepository flowAttachmentRepository
|
|
|
|
|
|
+ IDepartmentRepository departmentRepository, INoticeService noticeService, IFlowAttachmentRepository flowAttachmentRepository, IMiddleRepository middleRepository
|
|
)
|
|
)
|
|
{
|
|
{
|
|
_environment = environment;
|
|
_environment = environment;
|
|
@@ -58,10 +60,12 @@ namespace GxPress.Service.Implement
|
|
_userRepository = userRepository;
|
|
_userRepository = userRepository;
|
|
_departmentRepository = departmentRepository;
|
|
_departmentRepository = departmentRepository;
|
|
_noticeService = noticeService;
|
|
_noticeService = noticeService;
|
|
- this.flowAttachmentRepository=flowAttachmentRepository;
|
|
|
|
|
|
+ this.flowAttachmentRepository = flowAttachmentRepository;
|
|
|
|
+ this.middleRepository = middleRepository;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
//public void OnFlowAdded(FlowDto flow)
|
|
//public void OnFlowAdded(FlowDto flow)
|
|
//{
|
|
//{
|
|
// flow.
|
|
// flow.
|