コード例 #1
0
        public List <CHCSampleStatusReports> RetriveCHCReports(CHCReportsRequest mrData)
        {
            string stProc = FetchCHCStatusReports;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@SampleStatus", mrData.sampleStatus),
                new SqlParameter("@TestingCHCId", mrData.testingCHCId),
                new SqlParameter("@CHCID", mrData.chcId),
                new SqlParameter("@PHCID", mrData.phcId),
                new SqlParameter("@ANMID", mrData.anmId),
                new SqlParameter("@FromDate", mrData.fromDate.ToCheckNull()),
                new SqlParameter("@ToDate", mrData.toDate.ToCheckNull()),
            };
            var allSubjects = UtilityDL.FillData <CHCSampleStatusReports>(stProc, pList);

            return(allSubjects);
        }
コード例 #2
0
 public CHCReportResponse GETCHCSampleStatusReports(CHCReportsRequest mrData)
 {
     try
     {
         _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}");
         _logger.LogDebug($"Request - Retrieve subject for chc test reports  - {JsonConvert.SerializeObject(mrData)}");
         var subjects = _chcReceiptService.RetriveCHCReports(mrData);
         _logger.LogInformation($"Retrieve subject for chc test reports  - {subjects}");
         _logger.LogDebug($"Respone - Retrieve subject for chc test reports  - {JsonConvert.SerializeObject(subjects)}");
         return(subjects.Count == 0 ? new CHCReportResponse {
             Status = "true", Message = "No subjects found", Subjects = new List <CHCSampleStatusReports>()
         }
         : new CHCReportResponse {
             Status = "true", Message = string.Empty, Subjects = subjects
         });
     }
     catch (Exception e)
     {
         _logger.LogError($"Error in Retrieve subject for chc test reports -  {e.StackTrace}");
         return(new CHCReportResponse {
             Status = "false", Message = e.Message, Subjects = null
         });
     }
 }
コード例 #3
0
        public List <CHCSampleStatusReports> RetriveCHCReports(CHCReportsRequest mrData)
        {
            var allSubject = _chcReceiptData.RetriveCHCReports(mrData);

            return(allSubject);
        }