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

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

            //Ob.CasePaperNo =
            int Flag = BM.ManageObservationDetails(Ob);

            if (Flag > 0)
            {
                Observation        ob             = new Observation();
                List <Observation> lstObservation = new List <Observation>();
                ob             = BM.GetObservationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                lstObservation = ob.lst;
                return(Json(lstObservation, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json("", JsonRequestBehavior.AllowGet));
            }
        }
Ejemplo n.º 2
0
        public ActionResult PrecObservation()
        {
            PatientAllDetails patientDETAILS = (PatientAllDetails)Session["patientDetails"];
            string            Status         = "1";
            Observation       ob             = new Observation();
            BAL_MyOPD         BL             = new BAL_MyOPD();
            int flag = BL.SetStatus(patientDETAILS.QueueId, Status);

            if (flag != 0)
            {
                ob = BM.GetObservationDetails(patientDETAILS.QueueId, patientDETAILS.CasePapaerNo);
                return(View("Observation", ob));
            }

            return(View("Observation", ob));
        }