private void populateSurgicalPackGrid( SurgicalAuditSurgicalPackVoCollection surgColl) { if( surgColl != null && surgColl.size() == 0 ) return; for( int i = 0; i < surgColl.size(); i++) { SurgicalAuditSurgicalPackVo tempVo = surgColl.get(i); if( tempVo != null ) { grdSurgicalPackRow row = form.grdSurgicalPack().getRows().newRow(); row.setColumnNameOfSetDevice(tempVo.getSurgicalPackIsNotNull() ? tempVo.getSurgicalPack().getIItemText():null); row.setTooltipForColumnNameOfSetDevice(tempVo.getSurgicalPackIsNotNull() ? tempVo.getSurgicalPack().getIItemText():null); row.setColumnBarcodeNo(tempVo.getBarcodeNumber()); row.setTooltipForColumnBarcodeNo(tempVo.getBarcodeNumber()); row.setColumnFreeText(tempVo.getComment()); row.setTooltipForColumnFreeText(tempVo.getComment()); tempVo.setIsSaved(Boolean.TRUE); row.setValue(tempVo); } } }
protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException { clearAll(); if( form.getGlobalContext().Clinical.getSurgicalAuditSurgicalPackIsNotNull()) { if( Boolean.FALSE.equals( form.getGlobalContext().Clinical.getSurgicalAuditAddEditSurgicalPack())) { SurgicalAuditSurgicalPackVo tempVo = form.getGlobalContext().Clinical.getSurgicalAuditSurgicalPack(); if( tempVo != null ) { form.cmbNameSetDevice().setValue(tempVo.getSurgicalPack()); form.txtBarCodeNumber().setValue(tempVo.getBarcodeNumber()); form.txtComment().setValue(tempVo.getComment()); } } } }