public ActionResult PrenatalPhyExamPartial(int mrno) { PreNatal_PhysicalExamination model = new PreNatal_PhysicalExamination(); model = obj.PopulateByMrNumber(mrno, out outmodel); if (model == null) { model = new PreNatal_PhysicalExamination(); model.RecordExist = false; } else { model.RecordExist = true; } ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text", model.PatientId); ViewBag.VisitNo = new SelectList(Dropdowns.VisitNumber, "Value", "Text", model.VisitNo); ViewBag.GeneralAppearance = new SelectList(Dropdowns.Appearance, "Value", "Text", model.GeneralAppearance); ViewBag.Lungs = new SelectList(Dropdowns.Lungs, "Value", "Text", model.Lungs); ViewBag.Abdomen = new SelectList(Dropdowns.Abdomen, "Value", "Text", model.Abdomen); ViewBag.FetalPosition = new SelectList(Dropdowns.FetalPosition, "Value", "Text", model.FetalPosition); ViewBag.Edema = new SelectList(Dropdowns.Edema, "Value", "Text", model.Edema); return(PartialView("~/Views/Shared/Prenatal/_PrenatalPhysicalExamination.cshtml", model)); }
public ActionResult PhysicalExamTab(PreNatal_PhysicalExamination model) { if (ModelState.IsValid) { var toReturn = obj.Save(model, out outmodel); return(RedirectToAction("LabtestTab", "LabTest", new { area = "PN", PatientId = model.PatientId })); } ViewBag.PatientId = new SelectList(Dropdowns.PatientDropDown, "Value", "Text"); ViewBag.VisitNo = new SelectList(Dropdowns.VisitNumber, "Value", "Text"); ViewBag.GeneralAppearance = new SelectList(Dropdowns.Appearance, "Value", "Text"); ViewBag.Lungs = new SelectList(Dropdowns.Lungs, "Value", "Text"); ViewBag.Abdomen = new SelectList(Dropdowns.Abdomen, "Value", "Text"); return(View()); }
public ActionResult Edit(PreNatal_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()); } }
public ActionResult Create(PreNatal_PhysicalExamination model) { var toReturn = obj.Save(model, out outmodel); return(Json(new { mdl = outmodel, pa = toReturn }, JsonRequestBehavior.AllowGet)); }