@Override protected void onBtnOKClick() throws ims.framework.exceptions.PresentationLogicException { ReferralToSpecialtyCommentsVo commentForReferral = populateDataFromScreen(); String[] errors = commentForReferral.validate(); if (errors != null && errors.length > 0) { engine.showErrors(errors); return; } form.getGlobalContext().Emergency.setReferralToSpecialtyComments(commentForReferral); engine.close(DialogResult.OK); }
private void updateCommentToReferral(ReferralToSpecialtyCommentsVo referralComment) { grdCommentsRow updateRow = form.grdComments().getSelectedRow(); updateRow.setcolAuthoringHCP(referralComment.getAuthoringInformation().getAuthoringHcp().toString()); updateRow.setcolDate(referralComment.getAuthoringInformation().getAuthoringDateTime().toString()); updateRow.setcolComments(referralComment.getComments()); updateRow.setValue(referralComment); }
private void addCommentToReferral(ReferralToSpecialtyCommentsVo referralComment) { grdCommentsRow newrow = form.grdComments().getRows().newRow(); newrow.setcolAuthoringHCP(referralComment.getAuthoringInformation().getAuthoringHcp().toString()); newrow.setcolDate(referralComment.getAuthoringInformation().getAuthoringDateTime().toString()); newrow.setcolComments(referralComment.getComments()); newrow.setValue(referralComment); }
private ReferralToSpecialtyCommentsVo populateDataFromScreen() { ReferralToSpecialtyCommentsVo commentForReferral = new ReferralToSpecialtyCommentsVo(); commentForReferral.setAuthoringInformation(form.ccAuthoring().getValue()); commentForReferral.setComments(form.txtComments().getValue()); return commentForReferral; }