Exemplo n.º 1
0
        private void FormAdminPanel_Load(object sender, EventArgs e)
        {
            cmbDoctorSignUpDepartment.DataSource    = departmentController.GetDepartment();
            cmbDoctorSignUpDepartment.DisplayMember = "DepartmentName";
            cmbDoctorSignUpDepartment.ValueMember   = "DepartmentId";

            cmbDoctorSignUpHospital.DataSource    = hospitalController.GetHospital();
            cmbDoctorSignUpHospital.DisplayMember = "HospitalName";
            cmbDoctorSignUpHospital.ValueMember   = "HospitalId";
        }
        private void FormPatientPanel_Load(object sender, EventArgs e)
        {
            pnlGetAnAppointment.Visible = true;
            pnlAppointmentList.Visible  = false;
            patient = patientController.GetPatient(memberPatient);
            lblPatientNameAndSurname.Text = string.Format("Hoşgeldiniz {0} {1}", patient.PatientFirstName, patient.PatientLastName);

            cmbAppointmentHospitalName.DataSource    = hospitalController.GetHospital();
            cmbAppointmentHospitalName.DisplayMember = "HospitalName";
            cmbAppointmentHospitalName.ValueMember   = "HospitalId";

            cmbAppointmentDepartmentName.DataSource    = departmentController.GetDepartment();
            cmbAppointmentDepartmentName.DisplayMember = "DepartmentName";
            cmbAppointmentDepartmentName.ValueMember   = "DepartmentId";

            pnlAnAppointmentInfos.Visible = false;

            dgvGetAllAppointments.DataSource = appointmentController.GetPatientAppointmentHistory(patient.PatientId);
            dgvGetAllAppointments.Columns["PatientId"].Visible = false;
            dgvGetAllAppointments.Columns["SessionId"].Visible = false;
            //cmbAppointmentPolyclinicName.SelectedItem = null;
            //cmbAppointmentPolyclinicName.Text = "Seçiniz....";
        }
Exemplo n.º 3
0
        public void GetHospital_ReturnsHospitalObject()
        {
            var result = _controller.GetHospital();

            Assert.IsType <ActionResult <HospitalDTO> >(result);
        }