Beispiel #1
0
        public ActionResult SearchPatient(string SearchPatientID)
        {
            PresentModel p = new PresentModel();

            IEnumerable <PresentViewModel> vm = p.ForTest(SearchPatientID);
            string jsonSeries = JsonConvert.SerializeObject(vm);

            ViewBag.item = jsonSeries;

            IEnumerable <PresentViewModel> vm2 = p.GetMed_Dormicum();
            string jsonSeries2 = JsonConvert.SerializeObject(vm2);

            ViewBag.item2 = jsonSeries2;

            IEnumerable <PresentViewModel> vm3 = p.GetMed_TARGO();
            string jsonSeries3 = JsonConvert.SerializeObject(vm3);

            ViewBag.item3 = jsonSeries3;

            IEnumerable <PresentViewModel> vm4 = p.GetMed_MEPE2();
            string jsonSeries4 = JsonConvert.SerializeObject(vm4);

            ViewBag.item4 = jsonSeries4;

            IEnumerable <PresentViewModel> vm_MedRecord = p.GetMedRecord();
            string jsonSerie_MedRecord = JsonConvert.SerializeObject(vm_MedRecord);

            ViewBag.item_MedRecord = jsonSerie_MedRecord;

            //IEnumerable<PresentViewModel> vm_med = p.GetMed();

            return(PartialView(vm));
        }
Beispiel #2
0
        public ActionResult index()
        {
            PresentModel p = new PresentModel();

            //IEnumerable<PresentViewModel> vm_PatientID = p.GetPatientID();
            //string jsonSeries_PatientID = JsonConvert.SerializeObject(vm_PatientID);
            //ViewBag.item_PatientID = jsonSeries_PatientID;

            IEnumerable <PresentViewModel> vm_Patient = p.GetPatient();
            string jsonSeries = JsonConvert.SerializeObject(vm_Patient);

            ViewBag.item = jsonSeries;

            IEnumerable <PresentViewModel> vm2 = p.GetMed_Dormicum();
            string jsonSeries2 = JsonConvert.SerializeObject(vm2);

            ViewBag.item2 = jsonSeries2;

            IEnumerable <PresentViewModel> vm3 = p.GetMed_TARGO();
            string jsonSeries3 = JsonConvert.SerializeObject(vm3);

            ViewBag.item3 = jsonSeries3;

            IEnumerable <PresentViewModel> vm4 = p.GetMed_MEPE2();
            string jsonSeries4 = JsonConvert.SerializeObject(vm4);

            ViewBag.item4 = jsonSeries4;

            IEnumerable <PresentViewModel> vm_MedRecord = p.GetMedRecord();
            string jsonSerie_MedRecord = JsonConvert.SerializeObject(vm_MedRecord);

            ViewBag.item_MedRecord = jsonSerie_MedRecord;

            IEnumerable <PresentViewModel> vm_med = p.GetMed();

            return(View(vm_med));
        }