private void Update_UpdatePanelPermissions(string nric) { Classes.Entity.Therapist therapist = patientBLL.GetTherapistPermission(nric); LabelTherapistName.Text = therapist.lastName + " " + therapist.firstName; CheckBoxTypeHeightMeasurementApproved.Checked = therapist.hasHeightMeasurementPermissionsApproved; CheckBoxTypeWeightMeasurementApproved.Checked = therapist.hasWeightMeasurementPermissionsApproved; CheckBoxTypeTemperatureReadingApproved.Checked = therapist.hasTemperatureReadingPermissionsApproved; CheckBoxTypeBloodPressureReadingApproved.Checked = therapist.hasBloodPressureReadingPermissionsApproved; CheckBoxTypeECGReadingApproved.Checked = therapist.hasECGReadingPermissionsApproved; CheckBoxTypeMRIApproved.Checked = therapist.hasMRIPermissionsApproved; CheckBoxTypeXRayApproved.Checked = therapist.hasXRayPermissionsApproved; CheckBoxTypeGaitApproved.Checked = therapist.hasGaitPermissionsApproved; CheckBoxTypeHeightMeasurement.Checked = therapist.hasHeightMeasurementPermissions; CheckBoxTypeWeightMeasurement.Checked = therapist.hasWeightMeasurementPermissions; CheckBoxTypeTemperatureReading.Checked = therapist.hasTemperatureReadingPermissions; CheckBoxTypeBloodPressureReading.Checked = therapist.hasBloodPressureReadingPermissions; CheckBoxTypeECGReading.Checked = therapist.hasECGReadingPermissions; CheckBoxTypeMRI.Checked = therapist.hasMRIPermissions; CheckBoxTypeXRay.Checked = therapist.hasXRayPermissions; CheckBoxTypeGait.Checked = therapist.hasGaitPermissions; if (therapist.requestTime == null) { if (therapist.approvedTime == null) { DivModalPermissionStatus.Attributes.Add("class", "alert alert-secondary my-2 text-center small"); modalPermissionStatus.Text = therapist.lastName + " " + therapist.firstName + " has no permissions."; } else { DivModalPermissionStatus.Attributes.Add("class", "alert alert-info my-2 text-center small"); modalPermissionStatus.Text = therapist.lastName + " " + therapist.firstName + " has permissions and has not submitted any new request."; } } else { if (therapist.approvedTime == null) { DivModalPermissionStatus.Attributes.Add("class", "alert alert-danger my-2 text-center small"); modalPermissionStatus.Text = therapist.lastName + " " + therapist.firstName + " has no permissions and has requested for permissions sent on " + therapist.requestTime; } else { DivModalPermissionStatus.Attributes.Add("class", "alert alert-warning my-2 text-center small"); modalPermissionStatus.Text = therapist.lastName + " " + therapist.firstName + " has permissions and has requested for new permissions sent on " + therapist.requestTime; } } UpdatePanelPermissions.Update(); }