public ActionResult MotherCheckupTab(PostNatal_MotherPhysicalExamination model) { if (ModelState.IsValid) { var toReturn = obj.Save(model, out outmodel); return(RedirectToAction("LabtestTab", "PostNatalMotherPhyExamination", new { area = "PN", PatientId = model.PatientId })); } ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text"); ViewBag.DeliveryCondition = new SelectList(Dropdowns.DeliveryCondition, "Value", "Text"); ViewBag.DeliveryTerm = new SelectList(Dropdowns.DeliveryTerm, "Value", "Text"); ViewBag.DischargeType = new SelectList(Dropdowns.DischargeType, "Value", "Text"); ViewBag.UrinationDifficultyType = new SelectList(Dropdowns.UrinationDifficulty, "Value", "Text"); ViewBag.PainAbdomen = new SelectList(Dropdowns.PainAbdomen, "Value", "Text"); ViewBag.Heent = new SelectList(Dropdowns.Heent, "Value", "Text"); ViewBag.Abdomen = new SelectList(Dropdowns.Abdomen, "Value", "Text"); ViewBag.HeartRate = new SelectList(Dropdowns.HeartRate, "Value", "Text"); ViewBag.HeartRythm = new SelectList(Dropdowns.HeartRythm, "Value", "Text"); ViewBag.Tender = new SelectList(Dropdowns.Tender, "Value", "Text"); ViewBag.Mass = new SelectList(Dropdowns.Mass, "Value", "Text"); ViewBag.MassQuality = new SelectList(Dropdowns.MassQuality, "Value", "Text"); ViewBag.WoundDischarge = new SelectList(Dropdowns.WoundDischarge, "Value", "Text"); ViewBag.Lungscondition = new SelectList(Dropdowns.LungsRespiration, "Value", "Text"); ViewBag.InfantCondition = new SelectList(Dropdowns.InfantCondition, "Value", "Text"); return(View()); }
public ActionResult Edit(PostNatal_MotherPhysicalExamination 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()); } }
public ActionResult Create(PostNatal_MotherPhysicalExamination model) { var toReturn = obj.Save(model, out outmodel); return(Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet)); }