Exemple #1
0
        public List<ReturnReport> GetReturnReportsNotSent()
        {
            ReturnKeySearchCriteria criteria = new ReturnKeySearchCriteria()
            {
                ReturnReportStatus = ReturnReportStatus.Generated
            };

            return returnKeyRepository.SearchReturnKeys(criteria);
        }
Exemple #2
0
        public List<ReturnReport> GetCompletedReturnReports()
        {
            ReturnKeySearchCriteria criteria = new ReturnKeySearchCriteria()
            {
                ReturnReportStatus = ReturnReportStatus.Completed
            };

            return returnKeyRepository.SearchReturnKeys(criteria);
        }
Exemple #3
0
        public List<ReturnReport> GetReadyReturnReports()
        {
            ReturnKeySearchCriteria criteria = new ReturnKeySearchCriteria()
            {
                ReturnReportStatus = ReturnReportStatus.Ready
            };

            return returnKeyRepository.SearchReturnKeys(criteria);
        }
 public List<ReturnReport> SearchReturnKeys(ReturnKeySearchCriteria criteria)
 {
     using (var context = GetContext())
     {
         IQueryable<ReturnReport> query = context.ReturnReports.Include("ReturnReportKeys");
         if (criteria.ReturnUniqueID != null)
             query = query.Where(c => c.ReturnUniqueId == criteria.ReturnUniqueID);
         if (!string.IsNullOrEmpty(criteria.OEMRMANumber))
             query = query.Where(c => c.OemRmaNumber == criteria.OEMRMANumber);
         if (criteria.ReturnReportStatus != null)
             query = query.Where(c => c.ReturnReportStatusId == (int)criteria.ReturnReportStatus);
         return query.ToList();
     }
 }
Exemple #5
0
        public List<ReturnReport> SearchCarbonCopyReturnReport()
        {
            ReturnKeySearchCriteria criteria = new ReturnKeySearchCriteria()
            {
                ReturnReportStatus = ReturnReportStatus.ShouldCarbonCopy
            };

            return returnKeyRepository.SearchReturnKeys(criteria);
        }