// GET: Tab_Precreption public ActionResult ViewPreription() { Bal_Precription bp = new Bal_Precription(); PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"]; Medication MD = new Medication(); //Load lime always null not requird get data' Precription pd = new Precription(); pd = bp.ViewPricripion(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo); return(View("Examination", pd)); }
public ActionResult OpdExamination() { Bal_Precription bp = new Bal_Precription(); PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"]; Precription pd = new Precription(); pd = bp.ViewPricripion(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo); var Advice = ""; var Complaints = ""; var Diagnosis = ""; var TestBeforeVisit = ""; var NextVisit = ""; if (pd.clist.Count > 0) { foreach (var item in pd.clist) { if (item.AddAdvice != "" && item.AddAdvice != null) { Advice = Advice + item.AddAdvice + "," + " "; } } } if (pd.clist.Count > 0) { foreach (var item in pd.olist) { if (item.Complaints != "" && item.Complaints != null) { Complaints = Complaints + item.Complaints + "," + " "; } if (item.Diagnosis != "" && item.Diagnosis != null) { Diagnosis = Diagnosis + item.Diagnosis + "," + " "; } } } if (pd.clist.Count > 0) { foreach (var item in pd.NextListlst) { if (item.NestVisitDate != "" && item.NestVisitDate != null) { NextVisit = NextVisit + Convert.ToDateTime(item.NestVisitDate).Date.ToString("dd/MM/yyyy") + "," + " "; } } } if (pd.clist.Count > 0) { foreach (var item in pd.clist) { if (item.InvSelectTests != "" && item.InvSelectTests != null) { TestBeforeVisit = TestBeforeVisit + item.InvSelectTests + "," + " "; } } } pd.HospClinicNumber = pd.HospClinicNumber + " ,+91 " + pd.OtherNumber; pd.HospClinicNumber = pd.HospClinicNumber.TrimEnd(','); pd.TestBeforeVisit = TestBeforeVisit.TrimEnd(','); pd.NextVisit = NextVisit.TrimEnd(','); pd.AdviceNote = Advice.TrimEnd(','); pd.Complaints = Complaints.TrimEnd(','); pd.Diagnosis = Diagnosis.TrimEnd(','); return(View("Examination", pd)); }