Exemplo n.º 1
0
        // GET: Home
        public ActionResult Index()
        {
            PatientViewModel patientViewModel = new PatientViewModel();
            var getAllPatient = _patientImplBL.GetAllPatient(GlobalConst.Records.Skip, GlobalConst.Records.LandingTake);

            patientViewModel.PatientSearchResult = getAllPatient.PatientDetails.Select(patientSearchResult => new PatientSearchResult().InjectFrom(patientSearchResult)).Cast <PatientSearchResult>().ToList();
            patientViewModel.PatientCount        = getAllPatient.TotalCount;
            return(View(patientViewModel));
        }
Exemplo n.º 2
0
        // GET: Patient
        public ActionResult Index()
        {
            PatientViewModel patientViewModel = new PatientViewModel();
            var getAllPatient = _patientBL.GetAllPatient(GlobalConst.Records.Skip, GlobalConst.Records.LandingTake);

            patientViewModel.PatientSearchResult = Mapper.Map <IEnumerable <PatientSearchResult> >(getAllPatient.PatientDetails);
            patientViewModel.PatientCount        = getAllPatient.TotalCount;
            return(View(patientViewModel));
        }
Exemplo n.º 3
0
        public ActionResult ViewAllPatient(QueryFilterAttribute queryFilterAttribute = QueryFilterAttribute.none, string filterValue = "", string viewMessage = "")
        {
            var getAll     = _objIPatient.GetAllPatient(queryFilterAttribute, filterValue, "IN", true);
            var filterList = _objIPatient.GetFilterList();

            ViewBag.FilterList = new SelectList(filterList, "Value", "Text");
            ViewBag.Message    = viewMessage;
            return(View(getAll));
        }
        public ActionResult ViewInvestigationReport(int ReportId, string viewMessage = "")
        {
            var patientList = _objIPatient.GetAllPatient(QueryFilterAttribute.none, "", "IN");

            ViewBag.PatientList = patientList.GetInPatientDropdowList();
            var getInvestigationReport = _objIInvoice.GetInvestigationReportDetailsById(ReportId);

            ViewBag.Message = viewMessage;
            return(View(getInvestigationReport));
        }
Exemplo n.º 5
0
        public void Get_AllPatients()
        {
            var getAllPatients = _patientImplBL.GetAllPatient(0, 10);

            Assert.IsTrue(getAllPatients != null, "Unable to find");
        }