Читать диплом по Отсутствует: "Automation of business processes in hospitals" Страница 17
{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);
}
Похожие работы
| Тема: Automated design of of business processes |
| Предмет/Тип: Информационное обеспечение, программирование (Реферат) |
| Тема: Robotics And Automation Essay Research Paper Robotics |
| Предмет/Тип: Английский (Реферат) |
| Тема: Brief History Of Library Automation 19301996 Essay |
| Предмет/Тип: Английский (Реферат) |
| Тема: A Brief History Of Library Automation 19301996 |
| Предмет/Тип: Английский (Реферат) |
| Тема: Беспроводная сеть домашней автоматики на основе профайла ZigBee Home Automation |
| Предмет/Тип: Отсутствует (Курсовая работа (т)) |
Интересная статья: Основы написания курсовой работы

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