Ejemplo n.º 1
0
        public int GetNumberOfRepairedFailuresByEmployee(IEmployeeServicesStatisticsView inForm,
                                                         IRepository <Service> serviceRepository)
        {
            var startDate = inForm.StartDate;
            var endDate   = inForm.EndDate;
            var oib       = inForm.Oib;

            return(serviceRepository.All().Count(x => x.ServicedBy.Oib.Equals(oib) &&
                                                 DateTime.Compare(startDate, x.ServiceStart) <= 0 &&
                                                 DateTime.Compare(endDate, x.ServiceEnd) >= 0));
        }
Ejemplo n.º 2
0
 public void ShowEmployeeServicesReport(IEmployeeServicesStatisticsView inForm)
 {
     inForm.ShowViewModal();
 }
Ejemplo n.º 3
0
 public int GetEmployeeStatistics(IEmployeeServicesStatisticsView inForm)
 {
     return(_serviceController.GetNumberOfRepairedFailuresByEmployee(inForm, _serviceRepository));
 }