Exemple #1
0
        public ActionResult SetAppointment(int pid)
        {
            PatientMaster obj = new PatientMaster();

            if (pid > 0)
            {
                Session["PatientId"]  = pid;                                                                              //hold only session id
                Session["PatientObj"] = obj = obj.GetSinglePatient(pid, Convert.ToInt32(Session["hospital"].ToString())); //hold whole patient details
            }
            return(RedirectToAction("Appointment", "Patient", obj));
        }
Exemple #2
0
        public ActionResult Select(int patientid)
        {
            PatientMaster obj = new PatientMaster();

            if (patientid > 0)
            {
                Session["PatientId"]  = patientid;                                                                              //hold only session id
                Session["PatientObj"] = obj = obj.GetSinglePatient(patientid, Convert.ToInt32(Session["hospital"].ToString())); //hold whole patient details
            }
            return(RedirectToAction("Dashboard", "Home"));
        }
Exemple #3
0
        public ViewResult Update(int patientid)
        {
            PatientMaster obj = new PatientMaster();

            if (patientid > 0)
            {
                obj.CMD = "Update";
                obj     = obj.GetSinglePatient(patientid, Convert.ToInt32(Session["hospital"].ToString()));
            }
            return(View("Registration", obj));
        }