@Override protected SurgicalOperationDetailsVo populateDataFromScreen(SurgicalOperationDetailsVo value) { SurgicalOperationDetailsVo result = super.populateDataFromScreen(value); if (!result.getAuthoringInformationIsNotNull()) { result.setAuthoringInformation(new AuthoringInformationVo()); result.getAuthoringInformation().setAuthoringDateTime(new DateTime()); result.getAuthoringInformation().setAuthoringHcp((HcpLiteVo) domain.getHcpLiteUser()); } if (!result.getCareContextIsNotNull()) { result.setCareContext(form.getGlobalContext().Core.getCurrentCareContext()); } //wdev-13658 result.setProsthesis(form.txtProsthesis().getValue()); result.setDrain(form.txtDrain().getValue()); //-------- return result; }
protected void populateDisplayFromData(ims.clinical.vo.SurgicalOperationDetailsVo value) { clearControls(); populateScreenFromData(value); form.txtProsthesis().setValue(value != null ? value.getProsthesis():null); form.txtDrain().setValue(value != null ? value.getDrain():null); }