protected void onChkCareAsPlannedValueChanged() throws PresentationLogicException { if (form.chkCareAsPlanned().getValue()) { CarePlanEvaluationNote eval = new CarePlanEvaluationNote(); eval.setNote(form.textEvaluationNotes().getValue()); if (eval.getNoteIsNotNull()) form.textEvaluationNotes().setValue("Care as planned. " + eval.getNote()); else form.textEvaluationNotes().setValue("Care as planned."); } }
protected void onGridNotesSelChange() throws PresentationLogicException { CarePlanEvaluationNote eval; if ((eval = form.gridNotes().getValue()) != null) { form.getGlobalContext().COE.setCarePlanEvaluation(eval); } updateControlState(); }
public void saveEvaluationNote(CarePlanEvaluationNote voNote) throws StaleObjectException { if (voNote == null) throw new CodingRuntimeException("voNote is null in method saveEvaluationNote"); if (!voNote.isValidated()) throw new CodingRuntimeException("voNote has not been validated in method saveEvaluationNote"); ims.nursing.careplans.domain.objects.CarePlanEvaluationNote doNote = CarePlanEvaluationNoteAssembler.extractCarePlanEvaluationNote(getDomainFactory(), voNote); getDomainFactory().save(doNote); }
private void populateEvaluationNotes(CarePlanEvaluationNoteCollection coll) { if (coll != null && coll.size() != 0) { GenForm.gridNotesRow row; for (int i = 0; i < coll.size(); i++) { CarePlanEvaluationNote note = coll.get(i); if (! ConfigFlag.GEN.CARE_PLAN_FUNCTIONALITY_TYPE.getValue().equals("CCO") && form.chkActive().getValue() == Boolean.TRUE.booleanValue()) { if (note.getActive().booleanValue() == false) continue; } row = form.gridNotes().getRows().newRow(); row.setValue(note); if (note.getRecordedBy() != null) row.setcolBy(note.getRecordedBy().getName().toString()); row.setcolDateTime(note.getRecordedDateTime()); row.setcolNoteType("Evaluation"); if (!note.getNoteIsNotNull()) //WDEV-14474 { note.setNote(""); } if (note.getActive().booleanValue() == false) // Correction // has been // added { String strCorrectedBy = ""; if (note.getCorrectedBy() != null) strCorrectedBy = note.getCorrectedBy().toString(); row.setcolNote(note.getNote() + "\nCorrected By:" + strCorrectedBy + " on " + note.getCorrectionDateTime().getDate() + " at " + note.getCorrectionDateTime().getTime() + " for the following reason: " + (note.getCorrectionReason()!=null? note.getCorrectionReason():""));//WDEV-14487 //WDEV-15029 row.setTooltipForcolNote(note.getNote() + "\nCorrected By:" + strCorrectedBy + " on " + note.getCorrectionDateTime().getDate() + " at " + note.getCorrectionDateTime().getTime() + " for the following reason: " + (note.getCorrectionReason()!=null? note.getCorrectionReason():"")); row.setSelectable(false); } else { row.setcolNote(note.getNote()); //WDEV-15029 row.setTooltipForcolNote(note.getNote()); } } } }