Example #1
0
        public List <MTPPending> GetMTPPending(ObstetricianRequest oData)
        {
            string stProc = FetchSubjectsMTPPending;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@DistrictId", oData.districtId),
                new SqlParameter("@CHCId", oData.chcId),
                new SqlParameter("@PHCId", oData.phcId),
                new SqlParameter("@ANMId", oData.anmId)
            };
            var pendingData = UtilityDL.FillData <MTPPending>(stProc, pList);

            return(pendingData);
        }
Example #2
0
        public List <MTPSummary> GetMTPCompleted(ObstetricianRequest oData)
        {
            string stProc = FetchSubjectsMTPCompleted;
            var    pList  = new List <SqlParameter>()
            {
                new SqlParameter("@DistrictId", oData.districtId),
                new SqlParameter("@CHCId", oData.chcId),
                new SqlParameter("@PHCId", oData.phcId),
                new SqlParameter("@ANMId", oData.anmId)
            };
            var completedData = UtilityDL.FillData <MTPSummary>(stProc, pList);

            return(completedData);
        }
Example #3
0
 public MTPCompletedResponse GetMTPCompleted(ObstetricianRequest oData)
 {
     try
     {
         _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}");
         _logger.LogDebug($"Retrieve subjects for completed MTP  - {JsonConvert.SerializeObject(oData)}");
         var mtpCompleted = _mtpObstetricianService.GetMTPCompleted(oData);
         return(mtpCompleted.Count == 0 ? new MTPCompletedResponse {
             Status = "true", Message = "No subjects found", data = new List <MTPSummary>()
         } : new MTPCompletedResponse {
             Status = "true", Message = string.Empty, data = mtpCompleted
         });
     }
     catch (Exception e)
     {
         return(new MTPCompletedResponse {
             Status = "false", Message = e.Message, data = null
         });
     }
 }
Example #4
0
 public PNDTPendingListResponse GetPNDTPending(ObstetricianRequest oData)
 {
     try
     {
         _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}");
         _logger.LogDebug($"Retrieve subjects for pending PNDT who agree the test - {JsonConvert.SerializeObject(oData)}");
         var pndtPending = _pndtObstetricianService.GetPNDTPending(oData);
         return(pndtPending.Count == 0 ? new PNDTPendingListResponse {
             Status = "true", Message = "No subjects found", data = new List <PNDTPending>()
         }
         : new PNDTPendingListResponse {
             Status = "true", Message = string.Empty, data = pndtPending
         });
     }
     catch (Exception e)
     {
         return(new PNDTPendingListResponse {
             Status = "false", Message = e.Message, data = null
         });
     }
 }
Example #5
0
        public List <PNDTPending> GetPNDTPending(ObstetricianRequest oData)
        {
            var pendingData = _pndtObstetricianData.GetPNDTPending(oData);

            return(pendingData);
        }
Example #6
0
        //public List<PNDTCompletedSummary> GetPNDTCompletedSummary()
        //{
        //    var completedData = _pndtObstetricianData.GetPNDTCompletedSummary();
        //    return completedData;
        //}

        public List <PNDTNotCompleted> GetPNDTNotCompleted(ObstetricianRequest oData)
        {
            var notCompletedData = _pndtObstetricianData.GetPNDTNotCompleted(oData);

            return(notCompletedData);
        }
Example #7
0
        public List <MTPPending> GetMTPPending(ObstetricianRequest oData)
        {
            var pendingData = _mtpObstetricianData.GetMTPPending(oData);

            return(pendingData);
        }
Example #8
0
        public List <MTPSummary> GetMTPCompleted(ObstetricianRequest oData)
        {
            var completedData = _mtpObstetricianData.GetMTPCompleted(oData);

            return(completedData);
        }