示例#1
0
 public DocumentReaderService(IUnitOfWork uow, IAccountService accountService, IEmplService emplService)
 {
     _uow            = uow;
     repo            = uow.GetRepository <DocumentReaderTable>();
     _AccountService = accountService;
     _EmplService    = emplService;
 }
示例#2
0
        private void EmplUpdateIntegration(string _firstname, string _secondname, string _middlename, Guid _company, string _managerUserId)
        {
            IEmplService _EmplService = DependencyResolver.Current.GetService <IEmplService>();
            Guid?        manageId     = null;

            if (_managerUserId != String.Empty)
            {
                if (_EmplService.Contains(x => x.CompanyTableId == _company &&
                                          x.ApplicationUserId == _managerUserId))
                {
                    manageId = _EmplService.FirstOrDefault(x => x.CompanyTableId == _company &&
                                                           x.ApplicationUserId == _managerUserId).Id;

                    if (_EmplService.Contains(x => x.CompanyTableId == _company &&
                                              x.FirstName == _firstname &&
                                              x.MiddleName == _middlename &&
                                              x.SecondName == _secondname))
                    {
                        EmplTable empl = _EmplService.FirstOrDefault(x => x.CompanyTableId == _company &&
                                                                     x.FirstName == _firstname &&
                                                                     x.MiddleName == _middlename &&
                                                                     x.SecondName == _secondname);

                        empl.ManageId = manageId;
                        _EmplService.SaveDomain(empl, "Admin");
                    }
                }
            }
        }
示例#3
0
 public NewProcessController(IProcessService processService, IGroupProcessService groupProcessService, IEmplService emplService, IAccountService accountService)
 {
     _ProcessService      = processService;
     _GroupProcessService = groupProcessService;
     _EmplService         = emplService;
     _AccountService      = accountService;
 }
示例#4
0
 public EmailService(IUnitOfWork uow, IAccountService accountService, IDocumentService documentService, IEmplService emplService)
 {
     _uow             = uow;
     repo             = uow.GetRepository <EmailParameterTable>();
     _AccountService  = accountService;
     _DocumentService = documentService;
     _EmplService     = emplService;
 }
示例#5
0
 public CommentService(IUnitOfWork uow, IAccountService accountService, IEmplService emplService, ISystemService systemService)
 {
     _uow            = uow;
     repo            = uow.GetRepository <CommentTable>();
     _AccountService = accountService;
     _EmplService    = emplService;
     _SystemService  = systemService;
 }
示例#6
0
 public WorkflowTrackerService(IUnitOfWork uow, IAccountService accountService, IEmplService emplService, IDelegationService delegationService)
 {
     _uow               = uow;
     repo               = uow.GetRepository <WFTrackerTable>();
     _AccountService    = accountService;
     _EmplService       = emplService;
     _DelegationService = delegationService;
 }
示例#7
0
 public DelegationController(IDelegationService service, ICompanyService companyService,
                             IGroupProcessService groupProcessService, IProcessService processService, IEmplService emplService, IEmailService emailService)
 {
     _Service             = service;
     _CompanyService      = companyService;
     _GroupProcessService = groupProcessService;
     _ProcessService      = processService;
     _EmplService         = emplService;
     _EmailService        = emailService;
 }
示例#8
0
 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;
 }
示例#9
0
 public EmplController(IEmplService service, ITitleService titleService, IProfileService profileService, ICompanyService companyService,
                       IDepartmentService departmentService, IAccountService accountService, IWorkScheduleService workScheduleService)
 {
     _Service             = service;
     _TitleService        = titleService;
     _ProfileService      = profileService;
     _CompanyService      = companyService;
     _DepartmentService   = departmentService;
     _AccountService      = accountService;
     _WorkScheduleService = workScheduleService;
 }
示例#10
0
        private void EmplIntegration(string _firstname, string _secondname, string _middlename, string _workphone, string _mobilephone, string _userId, Guid _departmentId, Guid _titleId, Guid _company, string _managerUserId)
        {
            IEmplService         _EmplService         = DependencyResolver.Current.GetService <IEmplService>();
            IWorkScheduleService _WorkScheduleService = DependencyResolver.Current.GetService <IWorkScheduleService>();
            Guid?manageId = null;

            if (_managerUserId != String.Empty)
            {
                if (_EmplService.Contains(x => x.CompanyTableId == _company &&
                                          x.ApplicationUserId == _managerUserId))
                {
                    manageId = _EmplService.FirstOrDefault(x => x.CompanyTableId == _company &&
                                                           x.ApplicationUserId == _managerUserId).Id;
                }
            }

            if (!_EmplService.Contains(x => x.CompanyTableId == _company &&
                                       x.FirstName == _firstname &&
                                       x.MiddleName == _middlename &&
                                       x.SecondName == _secondname))
            {
                _EmplService.SaveDomain(new EmplTable()
                {
                    isIntegratedLDAP    = true,
                    FirstName           = _firstname,
                    SecondName          = _secondname,
                    MiddleName          = _middlename,
                    ApplicationUserId   = _userId,
                    DepartmentTableId   = _departmentId,
                    TitleTableId        = _titleId,
                    CompanyTableId      = _company,
                    WorkScheduleTableId = _WorkScheduleService.FirstOrDefault(x => x.Id != null).Id,
                    ManageId            = manageId
                }, "Admin");
            }
            else
            {
                EmplTable empl = _EmplService.FirstOrDefault(x => x.CompanyTableId == _company &&
                                                             x.FirstName == _firstname &&
                                                             x.MiddleName == _middlename &&
                                                             x.SecondName == _secondname);

                empl.FirstName         = _firstname;
                empl.SecondName        = _secondname;
                empl.MiddleName        = _middlename;
                empl.DepartmentTableId = _departmentId;
                empl.TitleTableId      = _titleId;
                empl.isIntegratedLDAP  = true;
                empl.ManageId          = manageId;
                _EmplService.SaveDomain(empl, "Admin");
            }
        }
示例#11
0
 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;
 }
示例#12
0
 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;
 }
示例#13
0
 public CustomController(IEmplService emplService, ISystemService systemService)
 {
     _EmplService   = emplService;
     _SystemService = systemService;
 }