Читать диплом по Отсутствует: "Automation of business processes in hospitals" Страница 17

назад (Назад)скачать (Cкачать работу)

Функция "чтения" служит для ознакомления с работой. Разметка, таблицы и картинки документа могут отображаться неверно или не в полном объёме!

{RedirectToAction("GetAppointments", "MedicalCard", new { param = "FromIllness"});

}(command == "Appoint medicine")

{RedirectToAction("AppointMedicine", "DoctorCardOperation");

}(command == "Write feedback")

{RedirectToAction("WriteFeedback", "AdditionalFunction");

}(command == "Back to patient card operation page")

{RedirectToAction("GetRequest", "DoctorCardOperation");

}(command == "Create" && ((List)Session["AppointmentList"]).Count() != 0)

{illness = new Illness

{= model.Title,= model.Description,= false,= attendingDoctor,= DateTime.Now,= null,= patient.MedicalCard

};.UnitOfWork.IllnessRepository.Add(illness);RedirectToAction("GetRequest", "DoctorCardOperation", new { message = "The operation was successful" });

}RedirectToAction("CreateIllness", "DoctorCardOperation", new { message = "You have to fill all empty areas" });

}

[HttpGet]

[Authorize]ActionResult CreateReference(Appointment appointment, string message)

{.Message = message;(Session["AppointmentList"] == null)

{["AppointmentList"] = new List();

}

{

((List)Session["AppointmentList"]).Add(appointment);

}addedDoctor = Session["CurrentDoctor"] as Doctor;patient = Session["PatientRequest"] as Patient;model = new CreateReferenceModel

{= addedDoctor.Login,= addedDoctor.FirstName,= addedDoctor.LastName,= patient.Login,= patient.FirstName,= patient.LastName,= ((List) Session["AppointmentList"]).Select(x => new SelectListItem

{= x.Id.ToString(),= string.Format("{0}", x.Title)

})

};View(model);

}

[HttpPost]

[Authorize]

[ValidateAntiForgeryToken]ActionResult CreateReference(CreateReferenceModel model, string command)

{addedDoctor = Session["CurrentDoctor"] as Doctor;patient = Session["PatientRequest"] as Patient;(command == "Add appointment")

{RedirectToAction("GetAppointments", "MedicalCard", new { param = "FromReference" });

}(command == "Upload image")

{RedirectToAction("UploadImage", "DoctorAppointment");

}(command == "Write feedback")

{RedirectToAction("WriteFeedback", "AdditionalFunction");

}(command == "Back to patient card operation page")

{RedirectToAction("GetRequest", "DoctorCardOperation");

}(command == "Create" && ((List)Session["AppointmentList"]).Count() != 0)

{reference = new DoctorReference

{= model.Title,= model.Description,= null,= DateTime.Now,= null,= addedDoctor,= patient

};.UnitOfWork.DoctorReferenceRepository.Add(reference);RedirectToAction("GetRequest", new { message = "The operation was successful" });

}RedirectToAction("CreateReference", "DoctorCardOperation", new { message = "You have to fill all empty areas" });

}

[HttpGet]

[Authorize]ActionResult AddAppointment(Appointment appointment)

{param = Session["AimOfOpenCard"] as string;(param == "FromIllness")

{RedirectToAction("CreateIllness", "DoctorCardOperation", appointment);

}RedirectToAction("CreateReference", "DoctorCardOperation", appointment);

}


Интересная статья: Основы написания курсовой работы