Exemple #1
0
        public ActionResult Treatment(int treatmentid = 0)
        {
            Session.Remove("TreatInvestigationList");
            Session.Remove("TreatmentMedicine");
            Session.Remove("TreatmentComplents");
            Session.Remove("TreatmentComplents");
            Session.Remove("TreatmentDiagnosis");
            Session.Remove("TreatmentHistory");
            Session.Remove("TreatmentCheckups");
            Session.Remove("TreatmentFundus");
            Session.Remove("TreatmentAdvice");

            Treatment t = new Treatment();

            if (treatmentid > 0)
            {
                t.CMD         = "View1";
                t.hid         = Convert.ToInt32(Session["hospital"]);
                t.patientid   = Convert.ToInt32(Session["PatientId"]);
                t.treatmentid = treatmentid;
                Treatment t1 = t.GetSingleTreatment();
                return(View(t1));
            }
            else
            {
                TreatmentInvestigation ti = new TreatmentInvestigation();
                Session["TreatInvestigationList"] = t.TreatInvestigationList = ti.GetList();

                TreatmentMedicine tm = new TreatmentMedicine();
                tm.mischecked = tm.aischecked = tm.eischecked = tm.nischecked = false;

                return(View(t));
            }
        }