public string CurrentActivityName() { if (DocumentState == DocumentState.Agreement || DocumentState == DocumentState.Execution) { IWorkflowTrackerService _service = DependencyResolver.Current.GetService <IWorkflowTrackerService>(); IEnumerable <WFTrackerTable> items = _service.GetCurrentStep(x => x.DocumentTableId == Id && x.TrackerType == TrackerType.Waiting); string currentName = String.Empty; if (items != null) { foreach (var item in items) { currentName += item.ActivityName + "/"; } } if (currentName != String.Empty) { currentName = currentName.Remove(currentName.Length - 1); } return(currentName); } else { return(""); } }
public WorkflowService(IUnitOfWork uow, IAccountService accountService, IDocumentService documentService, IEmplService emplService, IWorkflowTrackerService workflowTrackerService, IEmailService emailService, IHistoryUserService historyUserService) { _uow = uow; _AccountService = accountService; _DocumentService = documentService; _EmplService = emplService; _WorkflowTrackerService = workflowTrackerService; _EmailService = emailService; _HistoryUserService = historyUserService; }
public DocumentService(IUnitOfWork uow, INumberSeqService numberSeqService, IProcessService processService, IAccountService accountService, IEmplService emplService, IWorkflowTrackerService workflowTrackerService, IDelegationService delegationService, IDocumentReaderService documentReaderService, IWorkScheduleService workScheduleService) { _uow = uow; repoProcess = uow.GetRepository <ProcessTable>(); repoDocument = uow.GetRepository <DocumentTable>(); repoFile = uow.GetRepository <FileTable>(); _NumberSeqService = numberSeqService; _ProcessService = processService; _AccountService = accountService; _EmplService = emplService; _WorkflowTrackerService = workflowTrackerService; _DelegationService = delegationService; _DocumentReaderService = documentReaderService; _WorkScheduleService = workScheduleService; }
public DocumentController(IDocumentService documentService, IProcessService processService, IWorkflowService workflowService, IEmplService emplService, IAccountService accountService, ISystemService systemService, IWorkflowTrackerService workflowTrackerService, IReviewDocLogService reviewDocLogService, IDocumentReaderService documentReaderService, ICommentService commentService, IEmailService emailService, IHistoryUserService historyUserService, ISearchService searchService) { _DocumentService = documentService; _ProcessService = processService; _WorkflowService = workflowService; _EmplService = emplService; _AccountService = accountService; _SystemService = systemService; _WorkflowTrackerService = workflowTrackerService; _ReviewDocLogService = reviewDocLogService; _DocumentReaderService = documentReaderService; _CommentService = commentService; _EmailService = emailService; _HistoryUserService = historyUserService; _SearchService = searchService; }
public ReportController(IWorkflowTrackerService workflowTrackerService) { _WorkflowTrackerService = workflowTrackerService; }