Beispiel #1
0
        public ActionResult HistoryOfPatient(string nid, string name, string address)
        {
            PatientInfo patient = new PatientInfo()
            {
                HdAddress = address, HdName = name, NIDno = nid
            };

            ViewBag.PatientInfo     = patient;
            ViewBag.PatientHistorys = centerManager.GetTreatmentList(nid);
            return(View());
        }
        public void showPrescription()
        {
            if (!result)
            {
                GetJSONdata();
            }
            Treatment aTreatment = new Treatment();

            aTreatment.VoterId = voterIdTextBox.Text;
            string           patientID = aPatientManager.GetPatientId(voterIdTextBox.Text);
            List <Treatment> treatment = aCenterManager.GetTreatmentList(patientID);

            ViewState["Treatment"] = treatment;
            int count = 1;

            foreach (Treatment aNewTreatment in treatment)
            {
                mainHtml += GetTreatment(count, aNewTreatment);
                count++;
            }
            Content.InnerHtml = mainHtml;
        }