public ActionResult ManageMedication(Medication Ob)
        {
            AdminDetails      admObj         = (AdminDetails)Session["UserDetails"];
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];

            Ob.QueueId     = patientDETAILS.QueueId;
            Ob.HospitalId  = patientDETAILS.HospitalId.ToString();
            Ob.CreatedBy   = admObj.UserId.ToString();
            Ob.PatientId   = patientDETAILS.Id.ToString();
            Ob.CasePaperNo = patientDETAILS.CasePapaerNo;
            ModelState.Clear();
            int Flag = BM.ManageMedicationDetails(Ob);

            if (Flag > 0)
            {
                Medication        ob             = new Medication();
                List <Medication> lstObservation = new List <Medication>();
                ob             = BM.GetMedicationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                lstObservation = ob.lst;
                return(Json(lstObservation, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json("", JsonRequestBehavior.AllowGet));
            }
        }
Exemplo n.º 2
0
        public ActionResult MedicationPrec()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            Medication        MD             = new Medication();

            //Load lime always null not requird get data
            MD = BM.GetMedicationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);

            return(View("PrecMedication", MD));
        }