protected NurAssessmentSkinVo populateDataFromScreen() { NurAssessmentSkinVo voSkin = form.getLocalContext().getAssessmentSkin(); voSkin = super.populateDataFromScreen(voSkin); PatientTurnsVoCollection voTursColl = new PatientTurnsVoCollection(); GenForm.grdTurnsRow row = null; for (int i = 0; i < form.grdTurns().getRows().size(); i++) { PatientTurnsVo voTurn = new PatientTurnsVo(); row = form.grdTurns().getRows().get(i); voTurn.setDuration(row.getColDuration()); voTurn.setPosition(row.getColPosition()); voTurn.setTime(row.getColTime()); voTursColl.add(voTurn); } voSkin.setTurns(voTursColl); voSkin.setIsComplete(new Boolean(form.chkSectionComplete().getValue())); voSkin.setBradenScale(form.getGlobalContext().COE.getBradenScaleRecord()); form.getLocalContext().setAssessmentSkin(voSkin); return voSkin; }
private PatientTurnsVoCollection copyTurns(PatientTurnsVoCollection turns) { if (turns == null) return null; for (int i = 0 ; i <turns.size() ; i++) { PatientTurnsVo turn = turns.get(i); if (turn == null) continue; turn.clearIDAndVersion(); } return turns; }
protected void onImbNewTurnClick() throws ims.framework.exceptions.PresentationLogicException { GenForm.grdTurnsRow row = form.grdTurns().getRows().newRow(); row.setValue(new PatientTurnsVo()); }