/* (non-Javadoc)
* @see systole.view.crud.controller.ControllerEntityEdition#loadEntityFromForm()
*/
@Override
protected void loadEntityFromForm() {
SurgeryPatient surgeryPatient = (SurgeryPatient) this.curretnEntity;
JDialogSugeries form = (JDialogSugeries) this.editForm;
surgeryPatient.setPatient(this.patient);
surgeryPatient.setSurgery((Surgery) form.getCmbSurgeries().getSelectedItem());
Integer age = null;
try {
age = Integer.parseInt(form.getjTxtAge().getText());
} catch (NumberFormatException e) {
}
surgeryPatient.setAgeAtSurgery(age);
}