ITispRecordRepository.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. using Ropin.Inspection.Model.Entities;
  2. using Ropin.Inspection.Model.SearchModel;
  3. using Ropin.Inspection.Model.ViewModel;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace Ropin.Inspection.Repository.Interface
  10. {
  11. public interface ITispRecordRepository : IRepositoryBase<TISP_Record>, IRepositoryBaseById<TISP_Record, Guid>
  12. {
  13. Task<TispRecordViewModel> GetRecordAsync(Guid id);
  14. Task<IEnumerable<TispRecordDetailViewModel>> GetRecordsConditionAsync(TispRecordSearchModel searchModel);
  15. Task<IEnumerable<AllSpotRecordWithDevViewModel>> GetAllSpotRecordAsync(AllSpotRecordSearchModel searchModel);
  16. Task<IEnumerable<AllSpotRecordViewModel>> GetUserSpotRecordAsync(UserSpotRecordSearchModel searchModel);
  17. Task<int> GetUserTodaySpotRecordCountAsync(Guid id, string storeCode);
  18. //Task<int> GetAllTodaySpotRecordCountAsync(string storeCode);
  19. Task<int> GetUserTodayNotSpotRecordCountAsync(Guid id, string storeCode);
  20. //Task<int> GetAllTodayNotSpotRecordCountAsync();
  21. //Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodaySpotRecordsAsync(Guid id);
  22. //Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodayNotSpotRecordsAsync(Guid id);
  23. //Task<IEnumerable<TispRecord30DaysStatistics>> GetRecords30DaysStatisticsAsync();
  24. //Task<IEnumerable<AlarmRecovery7DaysStatistics>> GetAlarmRecovery7DaysStatisticsAsync();
  25. //Task<TodaySpotStatistics> GetTodaySpotStatisticsAsync();
  26. //Task<TodaySpotContentStatistics> GetTodaySpotContentStatisticsAsync();
  27. //Task<IEnumerable<Record12MonthStatistics>> GetRecord12MonthStatisticsAsync();
  28. Task<int> GetAllTodaySpotRecordCountAsync(string storeCode);
  29. Task<int> GetAllTodayNotSpotRecordCountAsync(string storeCode);
  30. Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodaySpotRecordsAsync(Guid id, string storeCode);
  31. Task<IEnumerable<AllSpotRecordViewModel>> GetUserTodayNotSpotRecordsAsync(Guid id, string storeCode);
  32. Task<IEnumerable<TispRecord30DaysStatistics>> GetRecords30DaysStatisticsAsync(string storeCode);
  33. Task<IEnumerable<AlarmRecovery7DaysStatistics>> GetAlarmRecovery7DaysStatisticsAsync(string storeCode);
  34. Task<TodaySpotStatistics> GetTodaySpotStatisticsAsync(string storeCode);
  35. Task<TodaySpotContentStatistics> GetTodaySpotContentStatisticsAsync(string storeCode);
  36. Task<IEnumerable<Record12MonthStatistics>> GetRecord12MonthStatisticsAsync(string storeCode);
  37. }
  38. }