[HttpPost]// עדכון הנתונים במסד public ActionResult SavevPhyicalExam(PhysicalExam p) { try { Session.Timeout += 10; BLPhyicalExam bl = new BLPhyicalExam(); int result = bl.AddOrUpdatePhysicalExam1(DateTime.Today, Session["Patiant"].ToString(), p.ApearsWell, p.ApearsWellT, p.PupilsEqual, p.PupilsEqualT, p.TmNormal, p.TmNormalT, p.Oropharynx, p.OropharynxT, p.Atraumatic, p.AtraumaticT, p.HeentMucosa, p.HeentMucosaT, p.Supple, p.SuppleT, p.thyromegaly, p.thyromegalyT, p.HeartsoundsRegular, p.HeartsoundsRegularT, p.Murmur, p.MurmurT, p.GoodAir, p.GoodAirT, p.ClearToAuscultation, p.ClearToAuscultationT, p.SymmetricalBreast, p.SymmetricalBreastT, p.Palpable, p.PalpableT, p.SkinChanges, p.SkinChangesT, p.Nipple, p.NippleT, p.Axillary, p.AxillaryT, p.Soft, p.SoftT, p.Tender, p.TenderT, p.ABDdescription, p.BowelSounds, p.BowelSoundsT, p.RenalArtery, p.RenalArteryT, p.Masses, p.MassesT, p.Organomegaly, p.OrganomegalyT, p.SkinAbnormalities, p.SkinAbnormalitiesT, p.SignificantScoliosis, p.SignificantScoliosisT, p.Kyphosis, p.KyphosisT, p.Edema, p.EdemaT, p.EXTRash, p.EXTRashT, p.Varicosities, p.VaricositiesT, p.Pppx4, p.Pppx4T, p.PedalEdema, p.PedalEdemaT, p.Toes, p.ToesT, p.Pattelar, p.PattelarT, p.Gait, p.GaitT, p.Speech, p.SpeechT, p.Female, p.FemaleT, p.PelvicMucosa, p.Kegels, p.Cervix, p.VaginalWalls, p.VaginalWallsT, p.Pap, p.PapT); if (result == 0)// שמירת הנתונים צלחה { return(Json("הנתונים נשמרו בהצלחה", JsonRequestBehavior.AllowGet)); } else// כשל בשמירת הנתונים { return(Json("התרחשה שגיאה", JsonRequestBehavior.AllowGet)); } } catch { return(View(p)); } }
public ActionResult PhyicalExam() // כניסה ללשונית בדיקה רפואית של מטופלת { try { if (Session["UserName"] == null || Session["UserPasswerd"] == null) { return(RedirectToAction("Login", "Account")); } if (Session["Patiant"] == null) { return(RedirectToAction("Login", "Account")); } string id = Session["Patiant"].ToString(); BLPhyicalExam b = new BLPhyicalExam(); PhysicalExam p = b.GetPhyicalExam(DateTime.Today, id);// שליפת נתוני המטופלת מהמסד return(View(p)); } catch (Exception) { return(View()); } }