예제 #1
0
 private ItemData getItemData(QueryServiceHelperBean helperBean) {
   ItemData id =
       itemDataDao.findByEventCrfItemName(
           helperBean.getContainer().getEventCrf().getEventCrfId(),
           helperBean.getParentElementName(),
           helperBean.getItemOrdinal());
   return id;
 }
예제 #2
0
 private ItemData createBlankItemData(QueryServiceHelperBean helperBean) {
   Item item =
       itemDao.findByNameCrfId(
           helperBean.getParentElementName(),
           helperBean.getContainer().getCrfVersion().getCrf().getCrfId());
   ItemData itemData = new ItemData();
   itemData.setItem(item);
   itemData.setEventCrf(helperBean.getContainer().getEventCrf());
   itemData.setValue("");
   itemData.setDateCreated(new Date());
   itemData.setStatus(Status.AVAILABLE);
   // TODO this value should change once you have an ordinal attribute specified in the query
   itemData.setOrdinal(helperBean.getItemOrdinal());
   itemData.setUserAccount(helperBean.getUserAccount());
   itemData.setDeleted(false);
   itemDataDao.saveOrUpdate(itemData);
   return itemData;
 }