Example #1
0
 public AttendanceController(
     IAttendanceService attendanceService,
     ICoursesService coursesService)
 {
     _attendanceService = attendanceService;
     _coursesService    = coursesService;
 }
Example #2
0
 public AttendanceController(IAttendanceService attendanceService, IActivityService activityService, IMemberService memberService, IClubService clubService)
 {
     AttendanceService = attendanceService;
     ActivityService   = activityService;
     MemberService     = memberService;
     ClubService       = clubService;
 }
Example #3
0
 public MeetService(IMeetRepository meetRepository, IWeatherService weatherService
                    , IAttendanceService attendanceService)
 {
     this._meetRepository    = meetRepository;
     this._weatherService    = weatherService;
     this._attendanceService = attendanceService;
 }
Example #4
0
 public DepartmentController(IDepartmentService _departmentService, IJobService _jobService,
                             IAttendanceService _attendanceService)
 {
     this._departmentService = _departmentService;
     this._jobService        = _jobService;
     this._attendanceService = _attendanceService;
 }
Example #5
0
 public AttendanceController(IAttendanceService attendanceService, IEmployeeService employeeService, ITicketService ticketService, IAspNetUserService aspNetUserService)
 {
     this.attendanceService = attendanceService;
     this.employeeService   = employeeService;
     this.ticketService     = ticketService;
     this.aspNetUserService = aspNetUserService;
 }
 public GetInfoToCheckAttendanceGeneralHandler(NetBairesContext context,
                                               IAttendanceService attendanceService,
                                               IMapper mapper)
 {
     _context           = context;
     _attendanceService = attendanceService;
     _mapper            = mapper;
 }
Example #7
0
 public AttendanceController(IUserService userService,
                             IAttendanceService attendanceService,
                             IDepartmentService departmentService)
 {
     _userService       = userService;
     _departmentService = departmentService;
     _attendanceService = attendanceService;
 }
 public PutReportAttendanceHandler(NetBairesContext context,
                                   ICurrentUser currentUser,
                                   IAttendanceService attendanceService)
 {
     _context               = context;
     _currentUser           = currentUser;
     this.attendanceService = attendanceService;
 }
Example #9
0
 public GetDataToReportAttendanceToEventHandler(IAttendanceService attendanceService,
                                                IMapper mapper,
                                                NetBairesContext context)
 {
     _attendanceService = attendanceService;
     _mapper            = mapper;
     _context           = context;
 }
Example #10
0
 public AttendanceController(IMapper mapper, IAttendanceService attendanceService, IUserService userService,
                             IMeetService meetService)
 {
     this._mapper            = mapper;
     this._attendanceService = attendanceService;
     this._userService       = userService;
     this._meetService       = meetService;
 }
Example #11
0
 public DashboardViewModelService(
     IAttendanceService attendanceService,
     IEmployeeStateService employeeStateService,
     IShiftService shiftService)
 {
     _attendanceService    = attendanceService;
     _employeeStateService = employeeStateService;
     _shiftService         = shiftService;
 }
Example #12
0
 public SubjectsController(
     ISubjectServices subjectServices,
     IAttendanceService attendanceService,
     UserManager <User> userManager)
 {
     this.subjectServices   = subjectServices;
     this.attendanceService = attendanceService;
     this.userManager       = userManager;
 }
Example #13
0
 public AttendanceController(IAttendanceService service, IUserService userService, ICoordinatorService coordinatorService, IClassService classService, IStudentService studentService, IInstructorService instructorService)
 {
     this._service            = service;
     this._userService        = userService;
     this._coordinatorService = coordinatorService;
     this._classService       = classService;
     this._studentService     = studentService;
     this._instructorService  = instructorService;
 }
 public GetEventLiveDetailHandler(IMapper mapper,
                                  ICurrentUser currentUser,
                                  IAttendanceService attendanceService,
                                  NetBairesContext context)
 {
     _mapper            = mapper;
     _currentUser       = currentUser;
     _attendanceService = attendanceService;
     _context           = context;
 }
Example #15
0
        public static bool IsUserAlreadyLogout(string userID, IAttendanceService _attendanceService, DateTime time)
        {
            var result = _attendanceService.GetAll().Result.Where(ass => ass.UserID == userID && ass.AttendanceDate.Value.Date >= time.Date && ass.TimeOutImage == null).FirstOrDefault();

            if (result == null)
            {
                return(true);
            }
            return(false);
        }
Example #16
0
 public AttendanceViewModelService(
     IEmployeeService employeeService,
     IEmployeeImageService employeeImageService,
     IAttendanceService attendanceService,
     IEmployeeDetailService employeeDetailService)
 {
     _employeeService       = employeeService;
     _employeeImageService  = employeeImageService;
     _attendanceService     = attendanceService;
     _employeeDetailService = employeeDetailService;
 }
Example #17
0
 public AttendanceController(
     IEmployeeService employeeService,
     IEmployeeImageService employeeImageService,
     IAttendanceService attendanceService,
     IAttendanceViewModelService attendanceViewModelService)
 {
     _employeeService            = employeeService;
     _employeeImageService       = employeeImageService;
     _attendanceService          = attendanceService;
     _attendanceViewModelService = attendanceViewModelService;
 }
Example #18
0
        public AttendanceServiceTests()
        {
            this.storageBrokerMock  = new Mock <IStorageBroker>();
            this.loggingBrokerMock  = new Mock <ILoggingBroker>();
            this.dateTimeBrokerMock = new Mock <IDateTimeBroker>();

            this.attendanceService = new AttendanceService(
                storageBroker: this.storageBrokerMock.Object,
                loggingBroker: this.loggingBrokerMock.Object,
                dateTimeBroker: this.dateTimeBrokerMock.Object);
        }
Example #19
0
        public AttendanceSchedule()
        {
            _attendanceRepository         = new AttendanceRepository(_databaseFactory);
            _employeeDepartmentRepository = new EmployeeDepartmentRepository(_databaseFactory);
            _employeeRepository           = new EmployeeRepository(_databaseFactory, _employeeDepartmentRepository);
            _attendanceLogRepository      = new AttendanceLogRepository(_databaseFactory, _employeeRepository);
            _employeeHoursRepository      = new EmployeeHoursRepository(_databaseFactory);

            _attendanceLogService = new AttendanceLogService(_attendanceLogRepository);
            _attendanceService    = new AttendanceService(_unitOfWork, _attendanceRepository, _attendanceLogService, _employeeHoursRepository);
        }
Example #20
0
 public StatisticsDataServices(IAccountService accountService,
                               IStudentService studentService, ICourseServices courseServices,
                               ILecturerService lecturerServices, IRegistrationService registrationService,
                               IAttendanceService attendanceService)
 {
     _accountService      = accountService;
     _studentService      = studentService;
     _courseServices      = courseServices;
     _lecturerServices    = lecturerServices;
     _registrationService = registrationService;
     _attendanceService   = attendanceService;
 }
 public SchoolClassesController(
     ISchoolClassService schoolClassService,
     ISubjectServices subjectServices,
     IAttendanceService attendanceService,
     UserManager <User> userManager, IConfiguration config)
 {
     this.schoolClassService = schoolClassService;
     this.subjectServices    = subjectServices;
     this.attendanceService  = attendanceService;
     this.userManager        = userManager;
     this.config             = config;
 }
Example #22
0
        public static string GetTimeInOutString(string id, IAttendanceService _attendanceService, int type, DateTime time)
        {
            var result = type == 1 ? GetAttendanceNowByUserID(id, _attendanceService, time).TimeIn : GetAttendanceNowByUserID(id, _attendanceService, time).TimeOut;

            if (result != null)
            {
                var extra = TimeCalculator.IdentifyMeridiem(result.Value.Hours);
                var hour  = result.Value.Hours > 12 ? result.Value.Hours - 12 : result.Value.Hours;
                return(hour + ":" + result.Value.Minutes + " " + extra);
            }
            return(null);
        }
Example #23
0
 public static Attendance GetAttendanceNowByUserID(string id, IAttendanceService _attendanceService, DateTime time)
 {
     try
     {
         var result = _attendanceService.GetAll().Result.Where(ats => ats.UserID == id &&
                                                               ats.AttendanceDate.Value.Day == time.Day &&
                                                               ats.AttendanceDate.Value.Month == time.Month &&
                                                               ats.AttendanceDate.Value.Year == time.Year).FirstOrDefault();
         return(result);
     }
     catch (Exception e) { Console.WriteLine(e); throw; }
 }
        public ViewAttendanceViewModel(ILecturerService lecturerService,
                                       IAuthenticator authenticator,
                                       IAttendanceService attendanceService)
        {
            _lecturerService   = lecturerService;
            _authenticator     = authenticator;
            _attendanceService = attendanceService;

            PrintAttendance = new RelayACommand(AttendancePrint);

            LoadAttendance();
        }
Example #25
0
        public EmployeesController(
            IEmployeeService employeeService,
            IUserService userService,
            IAttendanceService attendanceService
            )

        {
            this._employeeService = employeeService;
            _userService          = userService;
            _attendanceService    = attendanceService;
            _helper = new HelperClass();
        }
Example #26
0
 public AttendanceController(
     IHttpContextAccessor httpContextAccessor,
     IEmployeeService employeeService,
     IEmployeeImageService employeeImageService,
     IEmployeeDetailService employeeDetailService,
     IAttendanceService attendanceService)
 {
     _httpContextAccessor   = httpContextAccessor;
     _employeeService       = employeeService;
     _employeeImageService  = employeeImageService;
     _employeeDetailService = employeeDetailService;
     _attendanceService     = attendanceService;
 }
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     IAttendanceService attendanceService,
     ILogger <AccountController> logger)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _emailSender       = emailSender;
     _attendanceService = attendanceService;
     _logger            = logger;
 }
Example #28
0
 public EmployeeHoursService(IUnitOfWork unitOfWork,
                             IEmployeeHoursRepository employeeHoursRepository,
                             IAttendanceService attendanceService, ISettingService settingService,
                             IEmployeeWorkScheduleService employeeWorkScheduleService,
                             IEmployeeInfoService employeeInfoService)
 {
     _employeeHoursRepository = employeeHoursRepository;
     _unitOfWork                  = unitOfWork;
     _attendanceService           = attendanceService;
     _settingService              = settingService;
     _employeeWorkScheduleService = employeeWorkScheduleService;
     _employeeInfoService         = employeeInfoService;
 }
Example #29
0
 public AttendanceController(IGenericRepository genericRepository,
                             ISectionRepository sectionRepository,
                             SectionToTakeAttendanceModelMapper sectionToTakeAttendanceModelMapper,
                             TakeAttendanceModelToStudentSectionAttendanceEventListMapper takeAttendanceModelToStudentSectionAttendanceEventListMapper,
                             IAttendanceService attendanceService,
                             IStudentRepository studentRepository)
 {
     _genericRepository = genericRepository;
     _sectionRepository = sectionRepository;
     _sectionToTakeAttendanceModelMapper = sectionToTakeAttendanceModelMapper;
     _takeAttendanceModelToStudentSectionAttendanceEventListMapper = takeAttendanceModelToStudentSectionAttendanceEventListMapper;
     _attendanceService = attendanceService;
     _studentRepository = studentRepository;
 }
 public AttendanceController(IGenericRepository genericRepository,
     ISectionRepository sectionRepository,
     SectionToTakeAttendanceModelMapper sectionToTakeAttendanceModelMapper,
     TakeAttendanceModelToStudentSectionAttendanceEventListMapper takeAttendanceModelToStudentSectionAttendanceEventListMapper, 
     IAttendanceService attendanceService, 
     IStudentRepository studentRepository)
 {
     _genericRepository = genericRepository;
     _sectionRepository = sectionRepository;
     _sectionToTakeAttendanceModelMapper = sectionToTakeAttendanceModelMapper;
     _takeAttendanceModelToStudentSectionAttendanceEventListMapper = takeAttendanceModelToStudentSectionAttendanceEventListMapper;
     _attendanceService = attendanceService;
     _studentRepository = studentRepository;
 }
Example #31
0
 public AttendanceController(IAttendanceLogRepository attendanceLogRepository,
                             IAttendanceRepository attendanceRepository, IEmployeeRepository employeeRepository, IUnitOfWork unitOfWork,
                             IEmployeePayrollRepository employeePayrollRepository, IEmployeeHoursRepository employeeHoursRepository, IAttendanceService attendanceService,
                             IHolidayRepository holidayRepository)
 {
     _attendanceLogRepository = attendanceLogRepository;
     _attendanceRepository    = attendanceRepository;
     _employeeRepository      = employeeRepository;
     _unitOfWork = unitOfWork;
     _employeePayrollRepository = employeePayrollRepository;
     _employeeHoursRepository   = employeeHoursRepository;
     _attendanceService         = attendanceService;
     _holidayRepository         = holidayRepository;
 }
Example #32
0
 public Attendence(IAttendanceService attendanceService)
 {
     _attendanceService = attendanceService;
     InitializeComponent();
 }
 public AttendanceController(IAttendanceService attendanceService)
 {
     this.attendanceService = attendanceService;
 }
 public UsersApiController(IUserDataService UserDataService, IAttendanceService AttendanceService, IMessagingService messagingService)
 {
     _userDataService = UserDataService;
     _attendanceService = AttendanceService;
     _messagingService = messagingService;
 }