public void ViewInfo() { patient.username = Login.username; Patient p = patientRepo.PatientView(patient); tbUserid.Text = p.username; tbPassword.Text = p.password; tbFirstName.Text = p.firstName; tbLastname.Text = p.lastName; dtpdob.Text = p.dob; tbPhone.Text = p.phone; tbMail.Text = p.email; cbDistrict.Text = p.district; cbDivision.Text = p.division; tbArea.Text = p.area; tbHouse.Text = p.houseNo; tbRoad.Text = p.roadNo; tbSex.Text = p.sex; tbPassword.Text = p.password; }
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; }