예제 #1
0
        private void ViewHospitalInfo()
        {
            GetHospitaLId();
            Hospital h = hospitalRepo.ViewInfo(hospital);

            lblHospitalId.Text   = hospital.hospitalId;
            lblHospitalName.Text = h.name;
        }
        private void GetAll()
        {
            GetHospitaLId();
            Hospital h = hospitalRepo.ViewInfo(hospital);

            lblName.Text     = h.name;
            lblPhone.Text    = h.phone;
            lblDivision.Text = h.division;
            lblDistrict.Text = h.district;
            lblArea.Text     = h.area;
            lblRoad.Text     = h.road;
            lblHouse.Text    = h.house;
        }
예제 #3
0
        private void FillEntity()
        {
            GetHospitaLId();
            appointment.doctorName = tbDoctorname.Text;
            appointment.department = tbDepartment.Text;
            appointment.patientId  = Login.username;
            appointment.hospitalId = hospital.hospitalId;
            hospital.hospitalId    = hospital.hospitalId;
            Hospital h = hospitalRepo.ViewInfo(hospital);

            appointment.hospitalName = h.name;

            patient.username = Login.username;

            Patient p = patientRepo.PatientView(patient);

            appointment.patientName  = p.firstName;
            appointment.patientPhone = p.phone;
            appointment.district     = p.district;
            appointment.division     = p.division;
            appointment.patientEmail = p.email;
        }
예제 #4
0
        private void Fill()
        {
            appointment.hospitalId   = this.dgvAppointment.CurrentRow.Cells["hospitalId"].Value.ToString();
            appointment.patientId    = this.dgvAppointment.CurrentRow.Cells["patientId"].Value.ToString();
            appointment.patientName  = this.dgvAppointment.CurrentRow.Cells["patientName"].Value.ToString();
            appointment.patientPhone = this.dgvAppointment.CurrentRow.Cells["patientPhone"].Value.ToString();
            appointment.patientEmail = this.dgvAppointment.CurrentRow.Cells["patientEmail"].Value.ToString();
            appointment.district     = this.dgvAppointment.CurrentRow.Cells["district"].Value.ToString();
            appointment.division     = this.dgvAppointment.CurrentRow.Cells["division"].Value.ToString();
            appointment.doctorName   = this.dgvAppointment.CurrentRow.Cells["doctorName"].Value.ToString();
            appointment.department   = this.dgvAppointment.CurrentRow.Cells["department"].Value.ToString();
            appointment.time         = this.dtpTime.Value;
            appointment.date         = this.dtpDate.Value;

            GetHospitaLId();
            hospital.hospitalId = hospital.hospitalId;
            Hospital h = hospitalRepo.ViewInfo(hospital);

            appointment.hospitalName = h.name;

            string acceptMessage = "Your appointment has been accepted ";

            appointment.message = acceptMessage;
        }