示例#1
0
        // GET: Patients/Create
        public ActionResult Create()
        {
            Patient patient = new Patient
            {
                getGender     = patientPortal.getGender(),
                getBloodGroup = patientPortal.getBloodGroup()
            };

            return(View(patient));
        }
示例#2
0
        // GET: Patients/Create
        public ActionResult Create()
        {
            Patient patient = new Patient
            {
                getRoomType       = patientPortal.getRoomType(),
                getAllDoctorsName = doctorPortal.getAllDoctorsName(),
                getGender         = patientPortal.getGender(),
                getBloodGroup     = patientPortal.getBloodGroup()
            };

            return(View(patient));
        }
        // GET: Doctor/Create
        public ActionResult Create()
        {
            PatientPortal patientPortal = new PatientPortal();
            Doctor        doctor        = new Doctor
            {
                getGender = patientPortal.getGender()
            };

            return(View(doctor));
        }
        // GET: Staff/Create
        public ActionResult Create()
        {
            PatientPortal patientPortal = new PatientPortal();
            Staff         staff         = new Staff
            {
                getGender = patientPortal.getGender()
            };

            return(View(staff));
        }
        // GET: Doctor/Create
        public ActionResult Create()
        {
            PatientPortal patientPortal = new PatientPortal();
            Doctor        doctor        = new Doctor
            {
                getAllDepartmentsName = doctorPortal.getAllDepartmentsName(),
                getGender             = patientPortal.getGender()
            };

            return(View(doctor));
        }
        // GET: Staff/Edit/5
        public ActionResult Edit(int id)
        {
            Staff         tempStaff     = staffPortal.select(id);
            PatientPortal patientPortal = new PatientPortal();
            Staff         staff         = new Staff
            {
                name      = tempStaff.name,
                gender    = tempStaff.gender,
                salary    = tempStaff.salary,
                address   = tempStaff.address,
                phone_no  = tempStaff.phone_no,
                getGender = patientPortal.getGender()
            };

            return(View(staff));
        }
        // GET: Doctor/Edit/5
        public ActionResult Edit(int id)
        {
            Doctor        tempDoctor    = doctorPortal.select(id);
            PatientPortal patientPortal = new PatientPortal();
            Doctor        doctor        = new Doctor
            {
                name          = tempDoctor.name,
                qualification = tempDoctor.qualification,
                dept          = tempDoctor.dept,
                designation   = tempDoctor.designation,
                gender        = tempDoctor.gender,
                phone_no      = tempDoctor.phone_no,
                getGender     = patientPortal.getGender()
            };

            return(View(doctor));
        }