Exemplo n.º 1
0
 public ActionResult PhysicalExaminationTab(Gynae_PhysicalExamination model)
 {
     if (ModelState.IsValid)
     {
         var toReturn = obj.Save(model, out outmodel);
         return(RedirectToAction("LabtestTab", "GynaePhyExamination", new { area = "PN", PatientId = model.PatientId }));
     }
     ViewBag.PatientId          = new SelectList(Dropdowns.PatientDropDown, "Value", "Text");
     ViewBag.Lungscondition     = new SelectList(Dropdowns.LungsRespiration, "Value", "Text");
     ViewBag.HeartRate          = new SelectList(Dropdowns.HeartRate, "Value", "Text");
     ViewBag.HeartRythm         = new SelectList(Dropdowns.HeartRythm, "Value", "Text");
     ViewBag.Thyroid            = new SelectList(Dropdowns.Thyroid, "Value", "Text");
     ViewBag.Abdomen            = new SelectList(Dropdowns.Abdomen, "Value", "Text");
     ViewBag.VaginalExamination = new SelectList(Dropdowns.VaginalExamination, "Value", "Text");
     ViewBag.UterusNl           = new SelectList(Dropdowns.Uterus, "Value", "Text");
     ViewBag.AdnexaLeft         = new SelectList(Dropdowns.AdnexaLeft, "Value", "Text");
     ViewBag.AdnexaRight        = new SelectList(Dropdowns.AdnexaRight, "Value", "Text");
     return(View());
 }
Exemplo n.º 2
0
        public ActionResult Edit(Gynae_PhysicalExamination model)
        {
            try
            {
                obj.Update(model, out outmodel);
                if (!outmodel.Error)
                {
                    // TODO: Add update logic here

                    return(RedirectToAction("Index"));
                }
                else
                {
                    return(View(model));
                }
            }
            catch
            {
                return(View());
            }
        }
Exemplo n.º 3
0
        public ActionResult Create(Gynae_PhysicalExamination model)
        {
            var toReturn = obj.Save(model, out outmodel);

            return(Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet));
        }