示例#1
0
        public MomentController(ISessionProvider<AefSession> sessionProvider,
            IMomentManager momentManager,
            IMomentFileManager momentFileManager,
            IMomentLikeManager momentLikeManager,
            IMomentCommentManager momentCommentManager,
            IAccessTimeManager accessTimeManager,
            IStaffManager staffManager,
            IOrgManager orgManager) : base(sessionProvider)
        {
            Args.NotNull(momentManager, nameof(momentManager));
            Args.NotNull(momentFileManager, nameof(momentFileManager));
            Args.NotNull(momentManager, nameof(momentManager));
            Args.NotNull(staffManager, nameof(staffManager)); 
            Args.NotNull(accessTimeManager, nameof(accessTimeManager));
            Args.NotNull(orgManager, nameof(orgManager));

            m_MomentManager = momentManager;
            m_MomentFileManager = momentFileManager;
            m_MomentLikeManager = momentLikeManager;
            m_MomentCommentManager = momentCommentManager;
            m_SessionProvider = sessionProvider;
            m_StaffManager = staffManager;
            m_AccessTimeManager = accessTimeManager;
            m_OrgManager = orgManager;
        }
示例#2
0
        public IList <IStaffManager> GetAllStaffManager()
        {
            using (new OperationContextScope((IContextChannel)_emsEndPointClient.InnerChannel))
            {
                if (ServiceHeaders != null)
                {
                    OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = Utility.SetMessageProperty(ServiceHeaders);
                }

                EmsService.GetAllStaffManagersResponse response = _emsEndPointClient.getAllStaffManagers(new EmsService.getAllStaffManagersRequest());

                IList <IStaffManager> listReturn = new List <IStaffManager>();
                foreach (EmsService.employeeInfoDTO item in response.list)
                {
                    IStaffManager manager = Translator.EmployeeToEntity <StaffManager>(item);

                    if (item.accountInfoDTO != null)
                    {
                        manager.PersonObject = Translator.PersonToEntity(DataIntegrationMapper.ToAccountInfoDto(item.accountInfoDTO));
                    }

                    listReturn.Add(manager);
                }

                return(listReturn);
            }
        }
示例#3
0
        public StaffController(ISessionScopeFactory sessionScopeFactory, IStaffManager staffManager)
        {
            Args.NotNull(sessionScopeFactory, nameof(sessionScopeFactory));
            Args.NotNull(staffManager, nameof(staffManager));

            this.SessionScopeFactory = sessionScopeFactory;
            this.StaffManager = staffManager;
        }
示例#4
0
 public TaskController(ISessionScopeFactory sessionScopeFactory, ITaskManager taskManager
     , IPartakerManager partakerManager, IAccountManager accountManager,
      IStaffManager staffManager)
 {
     if (sessionScopeFactory == null) throw new ArgumentException("sessionScopeFactory");
     if (taskManager == null) throw new ArgumentException("TaskManager");
     m_SessionScopeFactory = sessionScopeFactory;
     m_TaskManager = taskManager;
     m_PartakerManager = partakerManager;
     m_AccountManager = accountManager;
     m_StaffManager = staffManager;
 }
示例#5
0
        public StaffController(ISessionScopeFactory sessionScopeFactory, IStaffManager staffManager,
            IPartakerManager partakerManager)
            : base(sessionScopeFactory)
        {
            Args.NotNull(sessionScopeFactory, nameof(sessionScopeFactory));
            Args.NotNull(staffManager, nameof(staffManager));
            Args.NotNull(partakerManager, nameof(partakerManager));

            this.m_SessionScopeFactory = sessionScopeFactory;
            this.StaffManager = staffManager;

        }
示例#6
0
        public TaskAlarmController(ISessionScopeFactory sessionScopeFactory,
            IAlarmPeriodManager alarmPeriodManager,
            ITaskAlarmManager taskAlarmManager,
            IStaffManager staffManager)
            : base(sessionScopeFactory)
        {
            if (sessionScopeFactory == null) throw new ArgumentNullException(nameof(sessionScopeFactory));
            if (alarmPeriodManager == null) throw new ArgumentNullException(nameof(alarmPeriodManager));
            if (staffManager == null) throw new ArgumentNullException(nameof(staffManager));

            m_AlarmPeriodManager = alarmPeriodManager;
            m_TaskAlarmManager = taskAlarmManager;
            m_StaffManager = staffManager;
        }
示例#7
0
 public OrgController(ISessionScopeFactory sessionScopeFactory,
     IStaffManager staffManager,
     IOrgManager orgManager,
     IAccountManager accountManager
     ) : base(sessionScopeFactory)
 {
     if (sessionScopeFactory == null) throw new ArgumentNullException(nameof(sessionScopeFactory));
     if (orgManager == null) throw new ArgumentNullException(nameof(orgManager));
     if (staffManager == null) throw new ArgumentNullException(nameof(staffManager));
     if (accountManager == null) throw new ArgumentNullException(nameof(accountManager));
     m_SessionScopeFactory = sessionScopeFactory;
     m_OrgManager = orgManager;
     m_StaffManager = staffManager;
     m_AccountManager = accountManager;
 }
示例#8
0
        public PartakerReqController(ISessionScopeFactory sessionScopeFactory,
            ITaskManager taskManager,
            IStaffManager staffManager,
            IPartakerReqManager partakerReqManager)
            : base(sessionScopeFactory)
        {
            if (sessionScopeFactory == null) throw new ArgumentNullException(nameof(sessionScopeFactory));
            if (taskManager == null) throw new ArgumentNullException(nameof(taskManager));
            if (staffManager == null) throw new ArgumentNullException(nameof(staffManager));
            if (partakerReqManager == null) throw new ArgumentNullException(nameof(partakerReqManager));

            m_SessionScopeFactory = sessionScopeFactory;
            m_TaskManager = taskManager;
            m_StaffManager = staffManager;
            m_PartakerReqManager = partakerReqManager;
        }
示例#9
0
        public StaffReqController(ISessionProvider<AefSession> sessionProvider,
            IStaffManager staffManager,
            IOrgManager orgManager,
            IAccountManager accountManager,
            IStaffReqManager staffReqManager,
            INotificationManager notificationManager,
            IConfiguration config)
            : base(sessionProvider)
        {
            if (staffManager == null) throw new ArgumentException(nameof(staffManager));
            if (staffReqManager == null) throw new ArgumentException(nameof(staffReqManager));
            if (accountManager == null) throw new ArgumentException(nameof(accountManager));
            if (orgManager == null) throw new ArgumentException(nameof(orgManager));
            if (notificationManager == null) throw new ArgumentException(nameof(notificationManager));
            if (config == null) throw new ArgumentException(nameof(config));
            m_StaffManager = staffManager;
            m_StaffReqManager = staffReqManager;
            m_OrgManager = orgManager;
            m_NotificationManager = notificationManager;
            m_AccountManager = accountManager;
            m_Configuration = config;

        }
示例#10
0
        public PartakerInvController(ISessionProvider<AefSession> sessionProvider,
            ITaskManager taskManager,
            IStaffManager staffManager,
            IPartakerInvManager partakerInvManager,
            INotificationManager notificationManager, 
            IConfiguration config,
            IIMService imService)
            : base(sessionProvider)
        {
            if (taskManager == null) throw new ArgumentNullException(nameof(taskManager));
            if (staffManager == null) throw new ArgumentNullException(nameof(staffManager));
            if (partakerInvManager == null) throw new ArgumentNullException(nameof(partakerInvManager));
            if (notificationManager == null) throw new ArgumentException(nameof(notificationManager));
            if (config == null) throw new ArgumentException(nameof(config));
            if (imService == null) throw new ArgumentException(nameof(imService));

            m_TaskManager = taskManager;
            m_StaffManager = staffManager;
            m_PartakerInvManager = partakerInvManager;
            m_Configuration = config;
            m_NotificationManager = notificationManager;
            m_IIMService = imService;
        } 
 public ProjectController(IProjectManager context, IStaffManager staffMgr)
 {
     _context  = context;
     _staffMgr = staffMgr;
 }
示例#12
0
 // GET: Rate
 public RateController(IStaffManager istaffMgr)
 {
     _istaffMgr = istaffMgr;
 }
示例#13
0
 public AdminController(IStaffManager staffManager)
 {
     _staffManager = staffManager;
 }
示例#14
0
 //private IExcelProcessor _excel;
 public StaffController(IStaffManager context)
 {
     _context = context;
 }